1 Reply Latest reply on Sep 22, 2001 10:05 AM by Simon Kenyon

    Problem with example code

    Erik Weber Newbie

      http://localhost:8080/jboss/index.html

      clicking on "execute the example" results in this:

      Using jndi name Optimized: getMessage() returned:StatelessSessionBean says: Hello
      World

      Servlet Trace Info:

      +++ AdaptiveClassLoader( )
      +++ sun.misc.Launcher$AppClassLoader@4afa9e
      - file:/httpd/jboss-tomcat/DEV/jboss/bin/
      - file:/usr/j2se/lib/tools.jar
      - file:/httpd/jboss-tomcat/DEV/jboss/bin/run.jar
      - file:/httpd/jboss-tomcat/DEV/jboss/lib/crimson.jar
      +++ sun.misc.Launcher$ExtClassLoader@71732b
      +++ 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:39)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      at org.apache.tomcat.core.Handler.service(Handler.java:287)
      at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      at java.lang.Thread.run(Thread.java:484)


      clicking on "Execute the example with tracing"



      Using jndi name NonOptimized: getMessage() returned:


      StatelessSessionBean says: Hello World
      +++ java.net.URLClassLoader@1c2715
      +++ org.jboss.web.WebClassLoader@5e2075
      - http://cia.hrn.cimedia.net:8083/WebClassLoader@6168693/
      +++ java.net.URLClassLoader@3e41ec
      - file:/httpd/jboss-tomcat/DEV/jboss/tmp/deploy/Default/tomcat-test.ear/ejb1002.jar
      +++ javax.management.loading.MLet@30c221
      - file:/httpd/jboss-tomcat/DEV/jboss/conf/tomcat/
      - file:/httpd/jboss-tomcat/DEV/jboss/lib/ext/jboss.jar

      . . . .


      +++ sun.misc.Launcher$ExtClassLoader@71732b
      +++ 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 java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:543)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:298)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:390)
      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 $Proxy13.getMessageAndTrace(Unknown Source)
      at org.jboss.test.tomcat.servlet.HelloEJB.testBean(HelloEJB.java:65)
      at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:36)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      at org.apache.tomcat.core.Handler.service(Handler.java:287)
      at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      at java.lang.Thread.run(Thread.java:484)


      I'm using 2.4.0.6 on Solaris. Any takers?

      -Erik

        • 1. Re: Problem with example code
          Simon Kenyon Newbie

          from looking at the source on the web browsable CVS repository (can't find it in anything i've downloaded - including the supposed
          complete source zip file) it appears that an exception is being thrown
          creating an exception. this does not seem right to me. line 81 is:

          Throwable t = new Exception("Stack Trace");

          yes, you've guessed it. i'm having similar problems, but no. i do not
          have a solution
          --
          simon kenyon <simon@koala.ie>