[jboss-dev-forums] [Design of JBoss Portal] - JBoss Portal User Account Management Question

andytsoy do-not-reply at jboss.com
Mon Nov 20 21:30:31 EST 2006


Dear all,

Platform: JBoss 4.0.3sp1 + JBoss Portal 2.2.1sp1

I am writing a portlet to handle user deletion. Could anyone help me to fix. The code for deleting the user as below:

User user = userModule.findUserByUserName(username);            
userModule.removeUser(user.getId());


where username is the user to be deleted

But it throws the following exception:

 [STDOUT] java.lang.reflect.UndeclaredThrowableException
 [STDOUT]     at $Proxy149.removeUser(Unknown Source)
.
.
.
.
.
.
.
.
 [STDOUT] Caused by: java.lang.NoSuchMethodException: Unable to find operation removeUser(java.lang.Object)
 [STDOUT]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:209)
 [STDOUT]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
 [STDOUT]     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)


-------------------------------------------------------------------------------------
I also try to put 

User user = userModule.findUserByUserName(username);            
userModule.removeUser(user);

But it throws the same exception, I also check for the library portal-core-lib.jar, the class contains the method removeUser(Object), I really have no idea on how to solve it. Please help me . Thank you!

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

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



More information about the jboss-dev-forums mailing list