Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1610

NPE on server startup and setup of MDBs.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Blocker
    • None
    • 7.0.0.Beta1
    • EJB
    • Hide

      Create an MDB based on the example code in the JEE6 tutorial.

      Show
      Create an MDB based on the example code in the JEE6 tutorial.
    • Workaround Exists
    • Hide

      Define destination and acknowledgement type using @ActivationConfigProperty on the MDB.

      Show
      Define destination and acknowledgement type using @ActivationConfigProperty on the MDB.

    Description

      When I start the server with a deployed application (EAR archive) the MDB setup is causing a NullPointerException.
      The MDB uses annotations rather than declarative XML for it's configuration.

      14:36:55,642 ERROR [org.hornetq.ra.inflow.HornetQActivation]
      (jca-short-running-threads-threads - 6) Unable to reconnect
      org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@2f8541f5
      destination=null destinationType=javax.jms.Queue ack=Auto-acknowledge
      durable=false clientID=null user=null maxSession=15):
      java.lang.NullPointerException
      at javax.naming.NameImpl.<init>(NameImpl.java:281) [:1.6.0_20]
      at javax.naming.CompositeName.<init>(CompositeName.java:231) [:1.6.0_20]
      at org.jboss.as.naming.util.NameParser.parse(NameParser.java:49)
      at org.jboss.as.naming.NamingContext.parseName(NamingContext.java:393)
      at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:207)
      at javax.naming.InitialContext.lookup(InitialContext.java:409)
      [:1.6.0_20]
      at org.hornetq.ra.Util.lookup(Util.java:174)
      [hornetq-ra-2.2.7.Final.jar:]
      at
      org.hornetq.ra.inflow.HornetQActivation.setupDestination(HornetQActivation.java:436)
      [hornetq-ra-2.2.7.Final.jar:]
      at
      org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:283) [hornetq-ra-2.2.7.Final.jar:]
      at
      org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:548)
      [hornetq-ra-2.2.7.Final.jar:]
      at
      org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:591)
      [hornetq-ra-2.2.7.Final.jar:]
      at org.jboss.jca.core.workmanager.WorkWrapper.run(WorkWrapper.java:212)
      at
      org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
      at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801)
      at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
      at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821)
      at java.lang.Thread.run(Thread.java:636) [:1.6.0_20]
      at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Currently the hornetq implementation HornetQActivation expects the HornetQActivationSpec to be configured using properties. These properties are destination and acknowlegment type.
      This test case shows the implementation is expecting the properties.

      hornetq-2-2-7/examples/javaee/mdb-cmt-tx-not-supported/src/org/hornetq/javaee/example/server/MDB_CMT_TxNotSupported.java

      However the JEE6 tutorial shows a table of the allowed properties for application and these two are not listed. I checked the spec to make sure.
      http://download.oracle.com/javaee/6/tutorial/doc/bnbpo.html

      Attachments

        Activity

          People

            rhn-engineering-cdewolf Carlo de Wolf
            jwhiting@redhat.com Jeremy Whiting
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: