Hi David,

thanks for the hint but that�s not the problem
I did a cut and paste error producing the email

of cause it should be: List users = TurbineSecurity.getUserList(crit);

with a blank criteria it works just fine.

/uwe



                                                                       
                      "David Demner"                                   
                      <[EMAIL PROTECTED]        An:       <[EMAIL PROTECTED]>
                      om>                      Kopie:                  
                                               Thema:    RE: TorqueSecurity : 
getUserList - sorted
                      20.11.2003 19:54                                 
                                                                       
                                                                       




I have no idea if this is the problem, but maybe

List users = TurbineSecurity.getUserList(new Criteria());

Should read

List users = TurbineSecurity.getUserList(crit);

Good luck,

David

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: November 20, 2003 10:46 AM
To: [EMAIL PROTECTED]
Subject: TorqueSecurity : getUserList - sorted






Hi all,

I try to get a sorted user list from TorqueSecurity using the following
code:

               ...
      Criteria crit = new Criteria();
      crit.addAscendingOrderByColumn(TurbineUserPeer.LOGIN_NAME);
      List users = TurbineSecurity.getUserList(new Criteria());
               ...


Trying this I get the following error:

java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at
org.apache.turbine.services.security.torque.UserPeerManager.doSelect(Use
rPeerManager.java:767)
      at
org.apache.turbine.services.security.torque.TorqueUserManager.retrieveLi
st(TorqueUserManager.java:255)
      at
org.apache.turbine.services.security.BaseSecurityService.getUserList(Bas
eSecurityService.java:785)
      at
org.apache.turbine.services.security.TurbineSecurity.getUserList(Turbine
Security.java:357)
      at
de.gea.wiegand.teben.modules.actions.progtab.SecurityAction.doSelectuser
(SecurityAction.java:257)
               ......

This code has worked fine under turbine 2.2 but now ...
Did I miss something or has anybody an idea what�s going wrong or has
had
the same problems (and found the solution ;-))

Any help is appreciated

thanks

/uwe



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to