[jboss-jira] [JBoss JIRA] (AS7-3198) Cannot call external OSGI bundle from EAR package - NullPointerException

Peter Penzov (Created) (JIRA) jira-events at lists.jboss.org
Thu Jan 5 03:42:09 EST 2012


Cannot call external OSGI bundle from EAR package - NullPointerException 
-------------------------------------------------------------------------

                 Key: AS7-3198
                 URL: https://issues.jboss.org/browse/AS7-3198
             Project: Application Server 7
          Issue Type: Bug
          Components: OSGi
    Affects Versions: 7.1.0.CR1b
         Environment: Centos 5.6 JVM 1.7
            Reporter: Peter Penzov
            Assignee: Thomas Diesler
            Priority: Blocker


  I downloaded this basic example: https://github.com/bosschaert/coderthoughts/tree/master/WebAppOSGiService

I created simple EAR package with Netbeans 7.1. I configure the EAR package to call service from the OSGI bundle in the WebAppOSGiService example. I successfully compiled the sources and I uploaded them into JBoss. When I opened the web browser and type the applet into the EAR package I get this error:

Obtaining stock quote for @@@@@@@@ use proper data type! 'ACME'

java.lang.NullPointerException at org.coderthoughts.demo.web.osgi.DemoServlet.doGet(DemoServlet.java:21) at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) at java.lang.Thread.run(Thread.java:722) 


This is the source code that I have tested 
http://www.mediafire.com/?gzy43y69cga5gas

Please write me is this a bug in JBoss 7.1.0 application server or I have made a mistake.

Regards

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list