[
http://jira.jboss.com/jira/browse/EJBTHREE-933?page=comments#action_12357923 ]
Heiko Braun commented on EJBTHREE-933:
--------------------------------------
I was able to track it down to the ProxyDeployer, which deciides to create a RemoteProxy
when it encounters a RemoteBinding for this bean. In this particular case however, the
bean itself isn't annoted, but stepping through the debugger show that a
@RemoteBinding and @RemoteHomeBinding has been introduced to the bean. Either this happens
through the porting layer or at runtime. However it's not correct IMO, and leads to
the NPE described above.
NPE when deploying web service beans
------------------------------------
Key: EJBTHREE-933
URL:
http://jira.jboss.com/jira/browse/EJBTHREE-933
Project: EJB 3.0
Issue Type: Bug
Reporter: Heiko Braun
Priority: Blocker
The exception:
java.lang.NullPointerException
at
org.jboss.ejb3.stateless.StatelessRemoteProxyFactory.getInterfaces(StatelessRemoteProxyFactory.java:74)
at
org.jboss.ejb3.stateless.BaseStatelessProxyFactory.init(BaseStatelessProxyFactory.java:172)
at
org.jboss.ejb3.stateless.StatelessRemoteProxyFactory.init(StatelessRemoteProxyFactory.java:100)
at
org.jboss.ejb3.stateless.BaseStatelessProxyFactory.start(BaseStatelessProxyFactory.java:221)
at
org.jboss.ejb3.stateless.StatelessRemoteProxyFactory.start(StatelessRemoteProxyFactory.java:107)
at org.jboss.ejb3.ProxyDeployer.start(ProxyDeployer.java:83)
at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:124)
at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:94)
The bean that get's deployed:
package com.sun.ts.tests.webservices12.ejb.annotations.WSEjbPortFieldInjectionTest;
import javax.ejb.Stateless;
import javax.jws.WebService;
@WebService(
portName="Hello",
serviceName="HelloService",
targetNamespace="http://Hello.org",
wsdlLocation="META-INF/wsdl/HelloService.wsdl",
endpointInterface="com.sun.ts.tests.webservices12.ejb.annotations.WSEjbPortFieldInjectionTest.Hello")
@Stateless(name="WSEjbPortFieldInjectionTest")
public class HelloBean {
public String hello(String str)
{
return "WebSvcTest-Hello " + str;
}
public String bye(String str)
{
return "WebSvcTest-Bye and take care " + str;
}
}
The spec:
Session bean's business interface(s), if the session bean provides an EJB 3.0 local
or remote
client view.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira