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!
Dear all,
Am I coded something wrong? Or I do not provide enough information? Could anyone help me?