1 Reply Latest reply on Jun 20, 2006 10:59 AM by auryn

    Problem / bug ?

    auryn Newbie

      Here is the scenario:
      web application running on jboss with both a web part and ejb part. On the top of this, when the application is first invoked I launch a thread which runs indefinetly and check every 20 sec. if there is something it must do.

      During one of these iterations, where it must actually take action, it meets this code:

      ....
      MyBeanLocalHome mblh = MyBeanUtil.getLocalHome(); // I use xdoclet generated methods
      MyBeanLocal mbl = mblh.create();

      try{
      mbl.doSomeMethod(); // opens a HttpConnection and do other things
      } catch (...) {...}
      ....

      After running smoothly for many itarations, it unexplainedly hangs during doSomeMethod. The really bad thing is that it hangs/kills my supervisor thread and so it causes serius problem to my application. It simply disappears in the method, nothing happens, not even an exception which is caught by the catch clause.

      Any idea?

        • 1. Re: Problem / bug ?
          auryn Newbie

          more infos no the issue:

          when I bring jboss down, an error pops up in the logs:

          16:49:24,074 ERROR [LogInterceptor] Unexpected Error in method:<my session-bean method where the thread disappered>
          java.lang.NoClassDefFoundError: java/lang/reflect/InvocationTargetException

          This happens on jboss 4.0.3 s1, jdk 1.5.0 p2 on freebsd 5.4 stable

          cheers