[jboss-user] [JNDI/Naming/Network] - java.lang.ClassCastException in EJB-Proxy

tonioc do-not-reply at jboss.com
Thu Dec 14 16:39:02 EST 2006


Hi,

I'm usign 4.0.5/EJB3 and an independent Tomcat 5.5
Ububntu 5-10 java 1.5.08.

Using StatelessSessionBean with a BusinessDelegate as a facade.

Every now an then, sometimes after re-deploying, sometimes after
restarting jboss, a call to Business-Method (isUserAuthorized) from 
my tomcat application (web-service) gives this error

Caused by: java.lang.ClassCastException: isoa.users.bean.UserContext
  |         at $Proxy15.isUserAuthorized(Unknown Source)         
  |         at isoa.users.bean.UsersServiceBd$3.run(UsersServiceBd.java:91)
  |         at isoa.commons.bean.AbstractBizDelegate$EjbRun.runWithRetries(AbstractBizDelegate.java:150)
  |         ... 37 more

UserContext class is in the class-path, I checked the version is
always the same in my client and in my server, etc., etc..., all
seems pretty ok.

Sometimes after calling the method a second time or just re-deploying begins to work OK again.

Any Idea where to look for, or what is happening

Thanks in advance
tonio

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

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



More information about the jboss-user mailing list