java - Mobicent EJB Injection in a sip servlet/ rest service project -
Issue: The use of reest service and SIP service in a project is for exception, if EJB is also used in injection is.
-
Adding a SIP service and REES service in the project (REST service is activated through a class extension and has been annotated with the application @
ApplicationPath , which is not a Java EE6 "no XML" approach, activating JX-RS)
Using the REST service and / or the SIP servicelet
Add an injected service to the project by AJB.
Error:
Error:
send exception listener class org.jboss.weld.servlet.WeldListener deleted lifecycle event request example: Java.lang.NullPointerException at org.jboss.weld.context.AbstractBoundContext.deactivate (Absbband Kntentektkjawaः 71) [weld core-Lklk8kfnlkjr: 2012-04-29 10:45] org.jboss.weld.context.http.HttpRequestContextImpl.deactivate (HttpRequestContextImpl.java:86) [weld core -1.1.8. Final. On jar: 2012-04-29 10:45] On the organization. Jboss.weld.servlet.WeldListener.requestDestroyed (WeldListener.java:103) [weld core -1.1.8. Final.jar: 2012-04-29 10:45] at org.apache.catalina.core.StandardHostValve.invoke ( StandardHostValve.java:185) [jbossweb-7.0.16.Final.jar:] [jbossweb-7.0.16.Final.jar on org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102):] org on .apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) [on jbossweb-7.0.16.Final.jar:] org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:368) [ jbossweb-7.0.16.Final.jar:] on org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:877) [jbossweb-7.0.16.Final.jar:] on org.apache.coyote. http11.Http11Protocol $ Http11ConnectionHandler.process (Http11Protocol.java:679) [jbossweb-7.0.16.Final.jar:] org.apache.tomcat.util.net.JIoEndpoint at $ workers. Run (jioEndpoint.java: 931) [jbossweb-7.0.16.Final.jar:] at java.lang.Thread.run (Thread.Java: 680) [classes.jar: 1.6.0_37]
I am using:
- Mobicents: mss-2.0.0.FINAL-jboss-as-7.1.2.Final
- OS: Mac OS X 10.6.8, Ubuntu 12.04, Windows 8
I have also posted this problem, where a test project has been uploaded and used to run the actual test case Could. There is a test file in Src / test / java that is calling the deployed REST service. The original project should have an error in the above version.
If the SIP servlet is not active (for example, sip.xml is renamed) no service is made to call the REST service.
If SIP servlet is active and the injected service
HelloWorldService has been removed, there is no error in calling the rest of the service.
There are 2 solutions until weld-core -1.1.8. FINAL.jar will not be updated , Wait till then! Or you get the source code and do a hard fix in org.jboss.weld.context.AbstractBoundContext:
Deactivate Public Zero (if (getBeanStore ()! = Null) {getBeanStore (GetBeanStore) .detach (); see super.deactivate ();}}
for more information
Comments
Post a Comment