2 Replies Latest reply on Aug 30, 2013 7:22 PM by Darryl Miles

    WFLY-71 work around? JMS NPE on startup (EAP 6.1.beta1)

    Darryl Miles Novice

      https://issues.jboss.org/browse/WFLY-71 

      messaging resource adapter does not depend on RA's BootstrapContext service 

       

       

      Can not update to EAP6.1 GA as OSGi is broken (https://bugzilla.redhat.com/show_bug.cgi?id=907713).

       

      Will look at WildFly in a few months when Beta2 is around (i.e. out of alpha and nearing RC/GA stages).

       

      So stuck with EAP6.1.beta1 and need to make it work.

       

      The problem: NullPointerException with JMS starting up.

       

       

      Can I manually edit some JAR MANIFEST.MF or add something to standalone.xml to make it depend on something else ?

       

      Sometime I see this problem 10% of the time, sometimes 90% of the time, I guess it depends how fast things bootup.

        • 1. Re: WFLY-71 work around? JMS NPE on startup (EAP 6.1.beta1)
          jaikiran pai Master

          Can you post the relevant exception stacktrace?

          • 2. Re: WFLY-71 work around? JMS NPE on startup (EAP 6.1.beta1)
            Darryl Miles Novice

            As per the referenced bug report.  But here it is.

             

            ```

            17:16:02,250 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.raactivator.hornetq-ra: org.jboss.msc.service.StartException in service jboss.raactivator.hornetq-ra: JBAS010446: Failed to start RA deployment [hornetq-ra]

                at org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService.start(ResourceAdapterActivatorService.java:100)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]

                at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

            Caused by: org.jboss.jca.deployers.common.DeployException: IJ020051: Unable to start org.hornetq.ra.HornetQResourceAdapter

                at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.startContext(AbstractResourceAdapterDeployer.java:359)

                at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2408)

                at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1104)

                at org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService$ResourceAdapterActivator.doDeploy(ResourceAdapterActivatorService.java:155)

                at org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService.start(ResourceAdapterActivatorService.java:94)

                ... 5 more

            Caused by: java.lang.NullPointerException

                at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.startContext(AbstractResourceAdapterDeployer.java:346)

                ... 9 more

            ```