Hi,

I'm porting an application from JBoss 3.0.x to 3.2.0.

This application uses statefull session beans. When I try to create one of 
these beans, I got the following stacktrace.

java.lang.reflect.UndeclaredThrowableException
        at $Proxy53.createByUsername(Unknown Source)
        at 
com.philips.epg.user.impl.SubscriptionManagerLocalEjbFactoryImpl.getInstanceByUsername(SubscriptionManagerLocalEjbFactoryImpl.java:71)
        at 
com.philips.epg.webapp.security.AbstractLoginServlet.doGet(AbstractLoginServlet.java:73)
        at 
com.philips.epg.webapp.security.AbstractLoginServlet.doPost(AbstractLoginServlet.java:33)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
        at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:278)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1713)
        ...
Caused by: java.lang.NoSuchMethodException: 
com.philips.epg.user.impl.session.SubscriptionManagerWrapperBean.ejbCreate(java.lang.String)
        at java.lang.Class.getMethod0(Class.java:1756)
        at java.lang.Class.getMethod(Class.java:963)
        at 
org.jboss.ejb.StatefulSessionContainer.createSession(StatefulSessionContainer.java:496)
        at 
org.jboss.ejb.StatefulSessionContainer.createLocalHome(StatefulSessionContainer.java:580)
        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:324)
        at 
org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionContainer.java:836)
        at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:105)
        at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)
        at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:128)
        at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:112)
        ...

My code tries to invoke 'createByUsername(String)' on the home intf, which 
is implemented by 'ejbCreateByUsername(String)' in the bean impl.

The very strange thing is that the log says : "Caused by: 
java.lang.NoSuchMethodException: ...ejbCreate(java.lang.String)" instead 
of " ... ejbCreateByUsername(String)".

This problem occurs on 3.2.0 RC 2 & 3 (did not check other 3.2).

This does not occur on JBoss 3.0.x (although not tested for some time).

Did anyone noticed problems with statefull session beans ?

Regards,

----------------------------------------------------------------------------
Sebastien Petrucci
Java Technology Consultant - Altran Europe
Philips Remote Control Systems
Interleuvenlaan 74-76, B-3001 Leuven (Belgium)
----------------------------------------------------------------------------


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to