I threw in a few more printlns. The $Proxy classes are created on the client side. I think that in the case of the jsp, the proxy uses the tomcat classloader (at least, I can see the .war in its classpath), while the exception was created in the EJB classloader (it has the ejb jar file in its classpath). I assume that means that the exception class is being loaded from different locations - but it should be the same file. Also, it works fine for the java client, which is using the class file on a remote machine. Any help would be greatly appreciated - I cant figure out why the classes dont match -----Original Message----- From: Castro, David [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 9:36 AM To: 'jBoss' Subject: [jBoss-User] Proxy throws java.lang.reflect.UndefinedThrowableException - can anyone explain this? Stack trace below: Here is what happens: My remote interface has a method logonDirect which is handled by $Proxy10 in the stack trace below. That method throws an application exception, com.retek.uap.access.LogonException. When I call the function from a java client, everything works fine, and the exception is thrown properly. When I call the function from a jsp (integrated tomcat), $Proxy10 wraps the application exception in java.lang.reflect.UndeclaredThrowableException. I threw in some printlns, and got the following results: The exception class that was thrown, and the exception class declared by $Proxy10.logonDirect, are both named com.retek.uap.access.LogonException, but they do not match under == or .equals. Also they have different ClassLoaders (see below). I am assuming it is because the classes do not match under == that I am getting the UndefinedThrowableException, but I don't see why this would happen. Is it because of classloading issues on the tomcat side? Thrown exception: class com.retek.uap.access.LogonException, ClassLoader=java.net.URLClassLoader@3a1834 Declared exception: class com.retek.uap.access.LogonException, ClassLoader=AdaptiveClassLoader( ) java.lang.reflect.UndeclaredThrowableException: [EmbeddedTomcat] com.retek.uap.access.LogonException: Logon Failed. The username/password combination is invalid. [EmbeddedTomcat] at com.retek.uap.access.UserEventControllerEJB.logonDirect(UserEventControllerE JB.java:66) [EmbeddedTomcat] at java.lang.reflect.Method.invoke(Native Method) [EmbeddedTomcat] at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulS essionContainer.java:570) [EmbeddedTomcat] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:14 4) [EmbeddedTomcat] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.java:198) [EmbeddedTomcat] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133) [EmbeddedTomcat] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:226) [EmbeddedTomcat] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) [EmbeddedTomcat] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) [EmbeddedTomcat] at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java: 326) [EmbeddedTomcat] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI nvoker.java:163) [EmbeddedTomcat] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI nvoker.java:228) [EmbeddedTomcat] at org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSe ssionProxy.java:151) [EmbeddedTomcat] at $Proxy10.logonDirect(Unknown Source) [EmbeddedTomcat] at com.retek.uap.access.UserEventController.logonDirect(UserEventController.jav a:70) [EmbeddedTomcat] at com.retek.uap.web.JSPSupportBean.logon(JSPSupportBean.java:72) [EmbeddedTomcat] at _0002ffront_0005fpage_0002ejspfront_0005fpage_jsp_19._jspService(_0002ffront _0005fpage_0002ejspfront_0005fpage_jsp_19.java:121) [EmbeddedTomcat] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) [EmbeddedTomcat] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [EmbeddedTomcat] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) [EmbeddedTomcat] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) [EmbeddedTomcat] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) [EmbeddedTomcat] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [EmbeddedTomcat] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) [EmbeddedTomcat] at org.apache.tomcat.core.Handler.service(Handler.java:286) [EmbeddedTomcat] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) [EmbeddedTomcat] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 9) [EmbeddedTomcat] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745) [EmbeddedTomcat] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) [EmbeddedTomcat] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407) [EmbeddedTomcat] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) [EmbeddedTomcat] at java.lang.Thread.run(Thread.java:484) -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED] -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
