[jboss-user] [JBoss Portal] - findUserByUserName Problem

djmacpac do-not-reply at jboss.com
Mon Nov 27 09:35:12 EST 2006


Hi,
when i try to find a User on this way:

  | User user = userModule.findUserByUserName(UserName);
  | 
i get following error:

Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:400)
	... 274 more
Caused by: java.lang.ClassCastException: org.jboss.portal.identity.db.UserImpl
	at $Proxy148.findUserByUserName(Unknown Source)
	at TreeBacker.check_access(TreeBacker.java:100)
	at TreeBacker.get_tree_rek(TreeBacker.java:139)
	at TreeBacker.getTreeData(TreeBacker.java:232)
	... 279 more


Can anybody help me? Do I need to work with Transactions? If yes, how does this work?

I want to user the User to get his Role...

thx
Marc

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988879#3988879

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988879



More information about the jboss-user mailing list