You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Peter Neubauer <pe...@yahoo.se> on 2002/08/28 18:39:27 UTC
torque 3.0-b4 group selection bug?
Hi,
trying to log in via torque, I get the following StackTrace. Debugging
against the sources reveals that the BaseSecurotyService hands a new
Criteria boject to the DBSecurityService.getGroups, and there is no
KeySet to ask for in that method. Has anyone had the same problem?
I'm using torque-3.0-b4-dev.20020814.103755.jar from ibiblio.
/peter
BaseSecurityService:
public GroupSet getAllGroups()
throws DataBackendException
{
if (allGroups == null)
{
synchronized(this)
{
if (allGroups == null)
{
allGroups = getGroups(new Criteria());
}
}
}
return allGroups;
}
DBSecurityservervie.getGroups:
public GroupSet getGroups( Criteria criteria )
throws DataBackendException
{
Criteria dbCriteria = new Criteria();
//////////////exception
Iterator keys = criteria.keySet().iterator();
while(keys.hasNext())
{
String key = (String)keys.next();
dbCriteria.put(GroupPeer.getColumnName(key),
criteria.get(key));
}
Exception: org.apache.turbine.util.security.DataBackendException:
Failed to build ACL for user 'admin': getGroups(Criteria) failed
Stack Trace follows:
java.lang.NullPointerException
at
org.apache.torque.util.BasePeer.createQueryString(BasePeer.java:1162) at
org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1254)
at
org.apache.turbine.om.security.peer.GroupPeer.doSelect(GroupPeer.java:166)
at
org.apache.turbine.services.security.db.DBSecurityService.getGroups(DBSecurityService.java:503)
at
org.apache.turbine.services.security.BaseSecurityService.getAllGroups(BaseSecurityService.java:608)
at
org.apache.turbine.services.security.db.DBSecurityService.getACL(DBSecurityService.java:144)
at
org.apache.turbine.services.security.TurbineSecurity.getACL(TurbineSecurity.java:314)
_____________________________________________________
Gratis e-mail resten av livet p� www.yahoo.se/mail
Busenkelt!
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>