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

NPE in AnnotationDeployer

    XMLWordPrintableJSON

Details

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

    Description

      java.lang.NullPointerException
      	at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:892)
      	at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:413)
      	at org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:165)
      	at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:141)
      	at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:425)
      	at org.apache.servicemix.ejb3.deployer.Deployer.deploy(Deployer.java:85)
      	at org.apache.servicemix.ejb3.deployer.Test.test(Test.java:60)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
      

      This exception is thrown when deploying the following bean:

      @Stateless
      public class MyService implements MyServiceItf {
      
          public String hello(String msg) {
              return "Hello " + msg + "!";
          }
      
      }
      
      @WebService
      public interface MyServiceItf {
      
          String hello(String ms);
      
      }
      

      Note that the bean does not have the @WebService annotation, which is the cause of this NPE.
      I'm not sure exactly if this kind of deployment is legal or not so I can't provide a fix right now, but i'd
      be happy to if pointed in the right direction.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gnodet Guillaume Nodet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: