0 Replies Latest reply on Mar 18, 2002 4:04 AM by Daniel Williams

    java.lang.RunTimeException in Tracing example

    Daniel Williams Newbie

      Hi,

      I have installed and played with the JBOSS 2.4.4 and TOMCAT 4.0.1 bundle successfully.

      In general, any problems I've encountered are due to 'user ignorance'. :-)

      I've been banging my head against a brick wall for so long that I'm actually tempted to blame this one on the software however:

      When I connect to my bulk standard unchanged installation of the JBoss/Tomcat bundle on http://myhost:8080/jboss then follow the 'Execute the example with tracing' link, I get the below page (it's at the bottom of this message.)

      The same happens using the following browsers:
      IE5.5
      Netscape 4.75
      Netscape 6
      Mozilla (from testing Linux debian dist.)
      It happens with the same browser in conjoint with the following server platforms:
      Solaris 8 (Sunfire 6800 HW)
      Linux debian testing dist, kernel 2.4.18 (i386 arch.)
      NT 4.0 (Well come on, what else does it run on... :-))
      Win2k (Same S***, same vendor, same OS, same bugs..., different day and different colors though!)
      and with the following JVM/JDK versions
      JDK1.4.0
      JDK1.3.1

      So I think it might even be something to do with the configuration I have or the server its self.

      Why the exceptions? Anyone have any ideas?

      --the output web page I get starts heret--
      Servlet calling EJB

      Accessing EJB: java:comp/env/ejb/NonOptimized, method=getMessage()


      StatelessSessionBean says: Hello World
      +++ java.net.URLClassLoader@67d7fb
      +++ org.jboss.web.WebClassLoader@d8d39f
      - http://dblon29274:8083/WebClassLoader@14209951/
      +++ java.net.URLClassLoader@408a92
      - file:C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/lib1002.jar
      - file:/C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/tomcat-test.ear/ejb1002.jar
      +++ org.jboss.Main$NullURLsMLet@e859c0
      +++ sun.misc.Launcher$AppClassLoader@bac748
      - file:/C:/j2sdk1.4.0/jre/lib/rt.jar
      - file:/C:/j2sdk1.4.0/lib/tools.jar
      - file:/C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/bin/run.jar
      - file:/C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/lib/xerces.jar
      +++ sun.misc.Launcher$ExtClassLoader@7172ea
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/dnsns.jar
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/ldapsec.jar
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/localedata.jar
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/sunjce_provider.jar
      +++ Call stack:
      java.lang.RuntimeException
      at org.jboss.test.tomcat.ejb.bean.StatelessSessionBean.getClassLoaders(StatelessSessionBean.java:66)
      at org.jboss.test.tomcat.ejb.bean.StatelessSessionBean.getMessageAndTrace(StatelessSessionBean.java:38)
      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.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:410)
      at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:349)
      at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
      at $Proxy5.getMessageAndTrace(Unknown Source)
      at org.jboss.test.tomcat.servlet.HelloEJB.testBean(HelloEJB.java:79)
      at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:40)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
      at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
      at java.lang.Thread.run(Thread.java:536)

      Accessing EJB: java:comp/env/ejb/Optimized, method=getMessage()


      StatelessSessionBean says: Hello World
      +++ java.net.URLClassLoader@7e9ce2
      +++ org.jboss.web.WebClassLoader@d8d39f
      - http://dblon29274:8083/WebClassLoader@14209951/
      +++ java.net.URLClassLoader@408a92
      - file:C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/lib1002.jar
      - file:/C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/tomcat-test.ear/ejb1002.jar
      +++ org.jboss.Main$NullURLsMLet@e859c0
      +++ sun.misc.Launcher$AppClassLoader@bac748
      - file:/C:/j2sdk1.4.0/jre/lib/rt.jar
      - file:/C:/j2sdk1.4.0/lib/tools.jar
      - file:/C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/bin/run.jar
      - file:/C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/lib/xerces.jar
      +++ sun.misc.Launcher$ExtClassLoader@7172ea
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/dnsns.jar
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/ldapsec.jar
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/localedata.jar
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/sunjce_provider.jar
      +++ Call stack:
      java.lang.RuntimeException
      at org.jboss.test.tomcat.ejb.bean.StatelessSessionBean.getClassLoaders(StatelessSessionBean.java:66)
      at org.jboss.test.tomcat.ejb.bean.StatelessSessionBean.getMessageAndTrace(StatelessSessionBean.java:38)
      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.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:504)
      at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
      at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
      at $Proxy3.getMessageAndTrace(Unknown Source)
      at org.jboss.test.tomcat.servlet.HelloEJB.testBean(HelloEJB.java:79)
      at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:41)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
      at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
      at java.lang.Thread.run(Thread.java:536)

      Servlet Trace Info:


      +++ WebappClassLoader
      available:
      delegate: false
      repositories:
      /WEB-INF/classes/
      required:
      ----------> Parent Classloader:
      java.net.FactoryURLClassLoader@9abc69

      - file:/C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/tomcat-test.ear/web1001/WEB-INF/classes/
      +++ java.net.FactoryURLClassLoader@9abc69
      +++ java.net.URLClassLoader@408a92
      - file:C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/lib1002.jar
      - file:/C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/tomcat-test.ear/ejb1002.jar
      +++ org.jboss.Main$NullURLsMLet@e859c0
      +++ sun.misc.Launcher$AppClassLoader@bac748
      - file:/C:/j2sdk1.4.0/jre/lib/rt.jar
      - file:/C:/j2sdk1.4.0/lib/tools.jar
      - file:/C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/bin/run.jar
      - file:/C:/daniel/JBoss-2.4.4_Tomcat-4.0.1/jboss/lib/xerces.jar
      +++ sun.misc.Launcher$ExtClassLoader@7172ea
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/dnsns.jar
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/ldapsec.jar
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/localedata.jar
      - file:/C:/Program%20Files/Java/j2re1.4.0/lib/ext/sunjce_provider.jar
      +++ Call stack:
      java.lang.RuntimeException
      at org.jboss.test.tomcat.servlet.PrintClassLoaders.getClassLoaders(PrintClassLoaders.java:81)
      at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:45)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
      at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
      at java.lang.Thread.run(Thread.java:536)

      JNDI ENC:


      +- security
      | +- realmMapping
      | +- subject[link -> java:/jaas/null/subject]
      | +- securityMgr
      | +- security-domain[link -> java:/jaas/null]