4 Replies Latest reply on Jun 8, 2004 1:24 AM by saroj

    Possible bug in JBoss 3.2.3

    apinto

      Hi there,

      I'm noticing a strange behaviour in JBoss 3.2.3. When an undeployment is immediatly followed be a deployment, the following exception occurs:

      Caused by: java.lang.NullPointerException
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:119)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:169)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:123)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:140)
      at oracle.net.ns.NetException.(Unknown Source)
      at oracle.net.ano.Ano.e(Ano)
      at oracle.net.ano.Ano.init(Ano)
      at oracle.net.ns.NSProtocol.connect(Unknown Source)
      at oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:1774)
      at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:215)
      at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:362)
      at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:536)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:328)
      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:150)
      ... 44 more


      In the application, I'm trying to create a connection from a DataSource to an Oracle database. I've inspected LoadMgr3.java:119 and a NPE can only occur if "task" or "repository" are null. Has anyone experienced the same error? Thanks in advance,

      Arménio Pinto

        • 1. Re: Possible bug in JBoss 3.2.3

          Please file a bug report on this.

          • 2. Re: Possible bug in JBoss 3.2.3
            starksm64

            This occurs when another deployment is using stale classes from deployment which has been replaced. In this case, the jdbc driver container deployment has presumably been redeployed which the datasource configuration has not.

            • 3. Re: Possible bug in JBoss 3.2.3
              patrickvankann

              Has this been posted as a bug? I have searched the sourceforge bug page but can't find a reference to it.

              I ask because I am having a similar problem in JBoss 3.2.3 (i.e. I have an MBean in a SAR and an app in an EAR that share a common jar... everything works fine from a cold startup until you try and hot re-deploy the SAR... the NPE is thrown as described above).

              Note the problem goes away if I put the shared jar in server/default/lib instead, but isn't this generally bad practice?

              Thanks in advance.

              Patrick

              • 4. Re: Possible bug in JBoss 3.2.3
                saroj

                Hi Apinto,

                Advance thanks for your help...

                I can able to deploy ny EJB application in JBoss3.2.1 under Linux7.3 ,NetBeans3.6IDE.But Iam unable to do it in JBoss3.2.3.Is there any changes I have to made.

                Iam getting Exception :jmx:hostname:rmi not bound....

                Need ur help..