Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-9941

Catch NullPointerException in SetDefaultLocalBusinessInterfaceProcessor.process() -> Class.forName() and throw real error throw

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • TBD EAP 5
    • EAP_EWP 5.1.2
    • EJB
    • None
    • Release Notes
    • Hide

      Fix the issue in the ejb deployment.

      https://access.redhat.com/knowledge/solutions/76173

      Show
      Fix the issue in the ejb deployment. https://access.redhat.com/knowledge/solutions/76173
    • Hide
      Deploying an EJB which has an EJB name in <filename>jboss.xml</filename> that is not defined in <filename>ejb-jar.xml</filename> or in <literal>@Stateless</literal> will throw a NullPointerException instead of throwing an exception with the underlying issue.

      For example:
      <screen>
      Caused by: java.lang.NullPointerException
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.jboss.metadata.process.processor.ejb.jboss.SetDefaultLocalBusinessInterfaceProcessor.process(SetDefaultLocalBusinessInterfaceProcessor.java:114)
      at org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain.process(JBossMetaDataProcessorChain.java:115)
      at org.jboss.ejb3.deployers.Ejb3MetadataProcessingDeployer.deploy(Ejb3MetadataProcessingDeployer.java:142)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
      <screen>

      The root cause of this under investigation and it is expected to be resolved in a future release.
      Show
      Deploying an EJB which has an EJB name in <filename>jboss.xml</filename> that is not defined in <filename>ejb-jar.xml</filename> or in <literal>@Stateless</literal> will throw a NullPointerException instead of throwing an exception with the underlying issue. For example: <screen> Caused by: java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.jboss.metadata.process.processor.ejb.jboss.SetDefaultLocalBusinessInterfaceProcessor.process(SetDefaultLocalBusinessInterfaceProcessor.java:114) at org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain.process(JBossMetaDataProcessorChain.java:115) at org.jboss.ejb3.deployers.Ejb3MetadataProcessingDeployer.deploy(Ejb3MetadataProcessingDeployer.java:142) at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) <screen> The root cause of this under investigation and it is expected to be resolved in a future release.
    • Documented as Known Issue
    • NEW

    Description

      Deploying an ejb which has an ejb name in jboss.xml that is not defined in ejb-jar.xml or in @Stateless will throw a NullPointerException instead of throwing an exception with the real issue.

      Caused by: java.lang.NullPointerException
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at org.jboss.metadata.process.processor.ejb.jboss.SetDefaultLocalBusinessInterfaceProcessor.process(SetDefaultLocalBusinessInterfaceProcessor.java:114)
      at org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain.process(JBossMetaDataProcessorChain.java:115)
      at org.jboss.ejb3.deployers.Ejb3MetadataProcessingDeployer.deploy(Ejb3MetadataProcessingDeployer.java:142)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
      ... 30 more

      Attachments

        Issue Links

          Activity

            People

              rhn-support-bmaxwell Brad Maxwell
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: