You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2008/01/30 13:03:35 UTC
[jira] Created: (OPENEJB-751) NPE in AnnotationDeployer
NPE in AnnotationDeployer
-------------------------
Key: OPENEJB-751
URL: https://issues.apache.org/jira/browse/OPENEJB-751
Project: OpenEJB
Issue Type: Bug
Affects Versions: (trunk/openejb3)
Reporter: Guillaume Nodet
{code}
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)
{code}
This exception is thrown when deploying the following bean:
{code}
@Stateless
public class MyService implements MyServiceItf {
public String hello(String msg) {
return "Hello " + msg + "!";
}
}
{code}
{code}
@WebService
public interface MyServiceItf {
String hello(String ms);
}
{code}
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.