Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-969

NullPointerException in TempClassLoader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Got the error below. Direct cause is that in
      AnnotationDeployer$ProcessAnnotatedBeans.deploy(EjbModule) line: 699
      bean.getEjbClass() returns null, which results in NPE in TempClassLoader.
      (The bean works in Geronimo 2.1.3)

      INFO - Found EjbModule in classpath ...

      ERROR - FATAL ERROR: Unknown error in Assembler. Please send the following stack trace and this message to user@openejb.org :
      java.lang.NullPointerException
      at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:74)
      at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:50)

      @MessageDriven(name = "MyCommandMessageBean")
      public class MyCommandMessageBean implements javax.jms.MessageListener
      ...

      <message-driven>
      <display-name>MyCommand MessageBean</display-name>
      <ejb-name>MyCommandMessageBean</ejb-name>
      <messaging-type>javax.jms.MessageListener</messaging-type>
      <transaction-type>Container</transaction-type>
      </message-driven>

      The null ejbClass Bean @ 699:

      bean MessageDrivenBean (id=76)
      activationConfig null
      aroundInvoke null
      description TextMap (id=90)
      displayName TextMap (id=92)
      ejbClass null
      ejbLocalRef null
      ejbName "MyCommandMessageBean" (id=71)
      ejbRef null
      envEntry null
      icon LocalCollection<V> (id=99)
      id null
      mappedName null
      messageDestinationLink null
      messageDestinationRef null
      messageDestinationType null
      messageDrivenDestination null
      messagingType "javax.jms.MessageListener" (id=112)
      persistenceContextRef null
      persistenceUnitRef null
      postConstruct null
      preDestroy null
      resourceEnvRef null
      resourceRef null
      securityIdentity null
      serviceRef null
      timeoutMethod null
      transactionType TransactionType (id=123)

      Attachments

        Activity

          People

            Unassigned Unassigned
            weberjn Jürgen Weber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: