OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | January 2007 Index

<--  Date Index  --> <--  Thread Index  -->

RE : [exoplatform] SOAP NullPointerException [SOLVED]


Hello List,

In case someone is interested, we found the cause of this behaviour. The stack trace sayed that getServiceDescription was not available. That was because, as soon as the WSRP Producer tries to discover the different services, he retrives the <description> tag from the deployment descriptors (web.xml and portlet.xml). We forgot to give this information, so the service could not be described.

 

Regards,

 

Alexandre

 

-----------------------

Alexandre Neubert

Edifixio

 

-----Message d'origine-----
De : Alexandre-Michael Neubert [mailto:alexandre-michael.neubert@xxxxxxxxxxxx]
Envoyé : mercredi 24 janvier 2007 19:08
À : exoplatform@xxxxxxxxxxxxx
Objet : [exoplatform] SOAP NullPointerException

 

Hello List,

I have a problem when I try to acces one of my portlets (let’s say P1) in WSRP mode. Once P1 is deployed I’m not able to create a producer any more.

I use portlet container 1.5 bundled with tomcat.

Here is my stack:

 

AxisFault

 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

 faultSubcode:

 faultString: java.lang.NullPointerException

 faultActor:

 faultNode:

 faultDetail:

        {http://xml.apache.org/axis/}hostname:joshua77

 

java.lang.NullPointerException

        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)

        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)

        at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1077)

        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)

        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:225)

        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)

        at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)

        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)

        at org.apache.axis.client.Call.invokeEngine(Call.java:2737)

        at org.apache.axis.client.Call.invoke(Call.java:2720)

        at org.apache.axis.client.Call.invoke(Call.java:2396)

        at org.apache.axis.client.Call.invoke(Call.java:2319)

        at org.apache.axis.client.Call.invoke(Call.java:1776)

        at org.exoplatform.services.wsrp.bind.WSRP_v1_ServiceDescription_Binding_SOAPStub.getServiceDescription(WSRP_v1_ServiceDescription_Binding_SOAPStub.jav

        at org.exoplatform.services.wsrp.consumer.impl.ProducerImpl.updateServiceDescription(ProducerImpl.java:171)

        at org.exoplatform.services.wsrp.consumer.impl.ProducerImpl.isRegistrationRequired(ProducerImpl.java:258)

        at org.exoplatform.portlets.wsrp.WSRPAdminPortlet.processAction(WSRPAdminPortlet.java:311)

        at org.exoplatform.services.portletcontainer.impl.aop.PortletMethodCommand.processAction(PortletMethodCommand.java:20)

        at org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.execute(BaseCommandUnit.java:27)

        at org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:26)

        at org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.processAction(BaseCommandUnit.java:35)

        at org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.execute(BaseCommandUnit.java:27)

        at org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:26)

        at org.exoplatform.services.portletcontainer.impl.aop.PortletCacheCommand.processAction(PortletCacheCommand.java:132)

        at org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.execute(BaseCommandUnit.java:27)

        at org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:26)

        at org.exoplatform.services.portletcontainer.impl.aop.PortletSecurityCommand.processAction(PortletSecurityCommand.java:39)

        at org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.execute(BaseCommandUnit.java:27)

        at org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:26)

        at org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.processAction(BaseCommandUnit.java:35)

        at org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.execute(BaseCommandUnit.java:27)

        at org.exoplatform.container.component.ExecutionContext.execute(ExecutionContext.java:20)

        at org.exoplatform.services.portletcontainer.impl.aop.PortletCommandChain.doProcessAction(PortletCommandChain.java:35)

        at org.exoplatform.services.portletcontainer.impl.PortletApplicationHandler.process(PortletApplicationHandler.java:224)

        at org.exoplatform.services.portletcontainer.impl.servlet.ServletWrapper.service(ServletWrapper.java:91)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)

        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)

        at org.exoplatform.services.portletcontainer.impl.PortletContainerDispatcher.dispatch(PortletContainerDispatcher.java:390)

        at org.exoplatform.services.portletcontainer.impl.PortletContainerDispatcher.process(PortletContainerDispatcher.java:329)

        at org.exoplatform.services.portletcontainer.impl.PortletContainerDispatcher.processAction(PortletContainerDispatcher.java:261)

        at org.exoplatform.services.portletcontainer.impl.PortletContainerServiceImpl.processAction(PortletContainerServiceImpl.java:116)

        at org.exoplatform.services.portletcontainer.test.filters.PortletFilter.doFilter(PortletFilter.java:215)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

        at java.lang.Thread.run(Thread.java:595)

rendering: wsrp/WSRPAdminPortlet: windowID: org.exoplatform.services.portletcontainer.test.filters.WindowID2@9a44d6

 

Fyi, if I try to access my portlet without wsrp, it works fine. It looks as if I could not access the WSDL any more, despite the fact that http://localhost:8080/wsrp/services works fine.

 

Here a trail: I had to add some custom jar files to %TOMCAT_HOME%\shared\lib directory. These jar files are:

·         client.jar

·         cos.jar

·         ejb-2_1-api.jar

·         jstl.jar

·         standard.jar

·         + some of my custom jar files

 

Could it come from there? I simply don’t know where I could search…

 

If I restart the portal without deploying P1, I can access it through WSRP perfectly.

 

Has anybody has such an exception?

 

Thanks,

 

Regards

 

Alexandre

 

-----------------------

Alexandre Neubert

Edifixio

 



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.