[
https://issues.apache.org/jira/browse/AXIS2-4919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rock Sun updated AXIS2-4919:
----------------------------
Description:
I could not find the reason of NullPointerException.
java.lang.NullPointerException
at
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:141)
at
org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:183)
at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:139)
at
com.weichai.soa.SOA_EG_NUM_HIS_WSStub.<init>(SOA_EG_NUM_HIS_WSStub.java:115)
at
com.weichai.soa.SOA_EG_NUM_HIS_WSStub.<init>(SOA_EG_NUM_HIS_WSStub.java:139)
at
com.weichai.soa.SOA_EG_NUM_HIS_WSStub.<init>(SOA_EG_NUM_HIS_WSStub.java:131)
at hd.soa.util.EngineNumService.<init>(EngineNumService.java:20)
at hd.soa.util.AfterSalesService.unload(AfterSalesService.java:653)
at
hd.soa.util.AfterSalesService.searchMtnBookingBill(AfterSalesService.java:148)
at
hd.web.service.ServiceReportAction.loadServiceRequest(ServiceReportAction.java:1316)
at
hd.web.service.ServiceReportAction.doCreateReport(ServiceReportAction.java:134)
at sun.reflect.GeneratedMethodAccessor1300.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
at
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
at javax.faces.component.UICommand.broadcast(UICommand.java:387)
at
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:324)
at
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:299)
at
org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:256)
at
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:469)
at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at
com.dhcc.common.exception.TeleLifecycleImpl.execute(TeleLifecycleImpl.java:20)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
hd.web.servlet.filter.CheckLoginFilter.doFilter(CheckLoginFilter.java:60)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
com.dhcc.common.filter.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:59)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:801)
Here is the WSDL:
<definitions name="SOA_EG_NUM_HIS_WS"
targetNamespace="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl">
−
<types>
−
<schema
targetNamespace="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/types/"
elementFormDefault="qualified">
−
<element name="insertEgNumElement">
−
<complexType>
−
<sequence>
<element name="basictype" type="string" nillable="true"/>
<element name="itemnumber" type="string" nillable="true"/>
<element name="egnumwc" type="string" nillable="true"/>
<element name="egnumcus" type="string" nillable="true"/>
<element name="pdnumber" type="string" nillable="true"/>
<element name="productdate" type="dateTime" nillable="true" minOccurs="0"/>
<element name="notes" type="string" nillable="true"/>
<element name="lastupdatedate" type="dateTime" nillable="true" minOccurs="0"/>
<element name="lastupdatedby" type="string" nillable="true"/>
<element name="creationdate" type="dateTime" nillable="true" minOccurs="0"/>
<element name="createdby" type="string" nillable="true"/>
<element name="orgid" type="string" nillable="true"/>
</sequence>
</complexType>
</element>
−
<element name="insertEgNumResponseElement">
−
<complexType>
−
<sequence>
<element name="result" type="tns:SOA_EG_NUM_HIS_WSUser_insertEgNum_Out"
nillable="true"/>
</sequence>
</complexType>
</element>
−
<complexType name="SOA_EG_NUM_HIS_WSUser_insertEgNum_Out">
−
<sequence>
<element name="rtncodeOut" type="string" nillable="true"/>
<element name="rtnmsgOut" type="string" nillable="true"/>
</sequence>
</complexType>
−
<element name="removeEgNumElement">
−
<complexType>
−
<sequence>
<element name="egnumwc" type="string" nillable="true"/>
<element name="egnumcus" type="string" nillable="true"/>
<element name="pdnumber" type="string" nillable="true"/>
</sequence>
</complexType>
</element>
−
<element name="removeEgNumResponseElement">
−
<complexType>
−
<sequence>
<element name="result" type="tns:SOA_EG_NUM_HIS_WSUser_removeEgNum_Out"
nillable="true"/>
</sequence>
</complexType>
</element>
−
<complexType name="SOA_EG_NUM_HIS_WSUser_removeEgNum_Out">
−
<sequence>
<element name="rtncodeOut" type="string" nillable="true"/>
<element name="rtnmsgOut" type="string" nillable="true"/>
</sequence>
</complexType>
−
<element name="searchEgNumlistElement">
−
<complexType>
−
<sequence>
<element name="egnumwc" type="string" nillable="true"/>
<element name="egnumcus" type="string" nillable="true"/>
<element name="pdnumber" type="string" nillable="true"/>
<element name="rowfrom" type="string" nillable="true"/>
<element name="rowto" type="string" nillable="true"/>
</sequence>
</complexType>
</element>
−
<element name="searchEgNumlistResponseElement">
−
<complexType>
−
<sequence>
<element name="result" type="tns:SOA_EG_NUM_HIS_WSUser_searchEgNumlist_Out"
nillable="true"/>
</sequence>
</complexType>
</element>
−
<complexType name="SOA_EG_NUM_HIS_WSUser_searchEgNumlist_Out">
−
<sequence>
<element name="totalrowsOut" type="string" nillable="true"/>
<element name="egnumlistOut" type="tns:EgNumHisPkgEgnumrecUser" nillable="true"
minOccurs="0" maxOccurs="unbounded"/>
<element name="rtncodeOut" type="string" nillable="true"/>
<element name="rtnmsgOut" type="string" nillable="true"/>
</sequence>
</complexType>
−
<complexType name="EgNumHisPkgEgnumrecUser">
−
<complexContent>
−
<extension base="tns:EgNumHisPkgEgnumrecBase">
−
<sequence>
<element name="egnumwc" type="string" nillable="true"/>
<element name="egnumcus" type="string" nillable="true"/>
<element name="basictype" type="string" nillable="true"/>
<element name="lastupdatedate" type="dateTime" nillable="true" minOccurs="0"/>
<element name="lastupdatedby" type="string" nillable="true"/>
<element name="productdate" type="dateTime" nillable="true" minOccurs="0"/>
<element name="notes" type="string" nillable="true"/>
<element name="orgid" type="string" nillable="true"/>
<element name="pdnumber" type="string" nillable="true"/>
<element name="createdby" type="string" nillable="true"/>
<element name="itemnumber" type="string" nillable="true"/>
<element name="creationdate" type="dateTime" nillable="true" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
−
<complexType name="EgNumHisPkgEgnumrecBase">
<sequence/>
</complexType>
−
<element name="searchegnumCustowcElement">
−
<complexType>
−
<sequence>
<element name="egnumcus" type="string" nillable="true"/>
</sequence>
</complexType>
</element>
−
<element name="searchegnumCustowcResponseElement">
−
<complexType>
−
<sequence>
<element name="result" type="tns:SOA_EG_NUM_HIS_WSUser_searchegnumCustowc_Out"
nillable="true"/>
</sequence>
</complexType>
</element>
−
<complexType name="SOA_EG_NUM_HIS_WSUser_searchegnumCustowc_Out">
−
<sequence>
<element name="rtncodeOut" type="string" nillable="true"/>
<element name="egnumwcOut" type="string" nillable="true"/>
<element name="rtnmsgOut" type="string" nillable="true"/>
</sequence>
</complexType>
−
<element name="searchegnumWctocusElement">
−
<complexType>
−
<sequence>
<element name="egnumwc" type="string" nillable="true"/>
</sequence>
</complexType>
</element>
−
<element name="searchegnumWctocusResponseElement">
−
<complexType>
−
<sequence>
<element name="result" type="tns:SOA_EG_NUM_HIS_WSUser_searchegnumWctocus_Out"
nillable="true"/>
</sequence>
</complexType>
</element>
−
<complexType name="SOA_EG_NUM_HIS_WSUser_searchegnumWctocus_Out">
−
<sequence>
<element name="egnumcusOut" type="string" nillable="true"/>
<element name="rtncodeOut" type="string" nillable="true"/>
<element name="rtnmsgOut" type="string" nillable="true"/>
</sequence>
</complexType>
</schema>
</types>
−
<message name="SOA_EG_NUM_HIS_WS_insertEgNum">
<part name="parameters" element="tns0:insertEgNumElement"/>
</message>
−
<message name="SOA_EG_NUM_HIS_WS_insertEgNumResponse">
<part name="parameters" element="tns0:insertEgNumResponseElement"/>
</message>
−
<message name="SOA_EG_NUM_HIS_WS_removeEgNum">
<part name="parameters" element="tns0:removeEgNumElement"/>
</message>
−
<message name="SOA_EG_NUM_HIS_WS_removeEgNumResponse">
<part name="parameters" element="tns0:removeEgNumResponseElement"/>
</message>
−
<message name="SOA_EG_NUM_HIS_WS_searchEgNumlist">
<part name="parameters" element="tns0:searchEgNumlistElement"/>
</message>
−
<message name="SOA_EG_NUM_HIS_WS_searchEgNumlistResponse">
<part name="parameters" element="tns0:searchEgNumlistResponseElement"/>
</message>
−
<message name="SOA_EG_NUM_HIS_WS_searchegnumCustowc">
<part name="parameters" element="tns0:searchegnumCustowcElement"/>
</message>
−
<message name="SOA_EG_NUM_HIS_WS_searchegnumCustowcResponse">
<part name="parameters" element="tns0:searchegnumCustowcResponseElement"/>
</message>
−
<message name="SOA_EG_NUM_HIS_WS_searchegnumWctocus">
<part name="parameters" element="tns0:searchegnumWctocusElement"/>
</message>
−
<message name="SOA_EG_NUM_HIS_WS_searchegnumWctocusResponse">
<part name="parameters" element="tns0:searchegnumWctocusResponseElement"/>
</message>
−
<portType name="SOA_EG_NUM_HIS_WS">
−
<operation name="insertEgNum">
<input message="tns:SOA_EG_NUM_HIS_WS_insertEgNum"/>
<output message="tns:SOA_EG_NUM_HIS_WS_insertEgNumResponse"/>
</operation>
−
<operation name="removeEgNum">
<input message="tns:SOA_EG_NUM_HIS_WS_removeEgNum"/>
<output message="tns:SOA_EG_NUM_HIS_WS_removeEgNumResponse"/>
</operation>
−
<operation name="searchEgNumlist">
<input message="tns:SOA_EG_NUM_HIS_WS_searchEgNumlist"/>
<output message="tns:SOA_EG_NUM_HIS_WS_searchEgNumlistResponse"/>
</operation>
−
<operation name="searchegnumCustowc">
<input message="tns:SOA_EG_NUM_HIS_WS_searchegnumCustowc"/>
<output message="tns:SOA_EG_NUM_HIS_WS_searchegnumCustowcResponse"/>
</operation>
−
<operation name="searchegnumWctocus">
<input message="tns:SOA_EG_NUM_HIS_WS_searchegnumWctocus"/>
<output message="tns:SOA_EG_NUM_HIS_WS_searchegnumWctocusResponse"/>
</operation>
</portType>
−
<binding name="SOA_EG_NUM_HIS_WSSoapHttp" type="tns:SOA_EG_NUM_HIS_WS">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
−
<operation name="insertEgNum">
<soap:operation
soapAction="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/insertEgNum"/>
−
<input>
<soap:body use="literal"/>
</input>
−
<output>
<soap:body use="literal"/>
</output>
</operation>
−
<operation name="removeEgNum">
<soap:operation
soapAction="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/removeEgNum"/>
−
<input>
<soap:body use="literal"/>
</input>
−
<output>
<soap:body use="literal"/>
</output>
</operation>
−
<operation name="searchEgNumlist">
<soap:operation
soapAction="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/searchEgNumlist"/>
−
<input>
<soap:body use="literal"/>
</input>
−
<output>
<soap:body use="literal"/>
</output>
</operation>
−
<operation name="searchegnumCustowc">
<soap:operation
soapAction="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/searchegnumCustowc"/>
−
<input>
<soap:body use="literal"/>
</input>
−
<output>
<soap:body use="literal"/>
</output>
</operation>
−
<operation name="searchegnumWctocus">
<soap:operation
soapAction="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/searchegnumWctocus"/>
−
<input>
<soap:body use="literal"/>
</input>
−
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
−
<service name="SOA_EG_NUM_HIS_WS">
−
<port name="SOA_EG_NUM_HIS_WSSoapHttpPort"
binding="tns:SOA_EG_NUM_HIS_WSSoapHttp">
<soap:address
location="http://soa.weichai.com:7778/SOA-SOA_EG_NUM_HIS_WS-context-root/SOA_EG_NUM_HIS_WSSoapHttpPort"/>
</port>
</service>
</definitions>
was:
I could not find the reason of NullPointerException.
java.lang.NullPointerException
at
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:141)
at
org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:183)
at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:139)
at
com.weichai.soa.SOA_EG_NUM_HIS_WSStub.<init>(SOA_EG_NUM_HIS_WSStub.java:115)
at
com.weichai.soa.SOA_EG_NUM_HIS_WSStub.<init>(SOA_EG_NUM_HIS_WSStub.java:139)
at
com.weichai.soa.SOA_EG_NUM_HIS_WSStub.<init>(SOA_EG_NUM_HIS_WSStub.java:131)
at hd.soa.util.EngineNumService.<init>(EngineNumService.java:20)
at hd.soa.util.AfterSalesService.unload(AfterSalesService.java:653)
at
hd.soa.util.AfterSalesService.searchMtnBookingBill(AfterSalesService.java:148)
at
hd.web.service.ServiceReportAction.loadServiceRequest(ServiceReportAction.java:1316)
at
hd.web.service.ServiceReportAction.doCreateReport(ServiceReportAction.java:134)
at sun.reflect.GeneratedMethodAccessor1300.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
at
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
at javax.faces.component.UICommand.broadcast(UICommand.java:387)
at
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:324)
at
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:299)
at
org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:256)
at
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:469)
at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at
com.dhcc.common.exception.TeleLifecycleImpl.execute(TeleLifecycleImpl.java:20)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
hd.web.servlet.filter.CheckLoginFilter.doFilter(CheckLoginFilter.java:60)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
com.dhcc.common.filter.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:59)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:801)
> java.lang.NullPointerException when getServiceContext
> -----------------------------------------------------
>
> Key: AXIS2-4919
> URL: https://issues.apache.org/jira/browse/AXIS2-4919
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.5
> Environment: Tomcat 6.0
> Reporter: Rock Sun
>
> I could not find the reason of NullPointerException.
> java.lang.NullPointerException
> at
> org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:141)
> at
> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:183)
> at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:139)
> at
> com.weichai.soa.SOA_EG_NUM_HIS_WSStub.<init>(SOA_EG_NUM_HIS_WSStub.java:115)
> at
> com.weichai.soa.SOA_EG_NUM_HIS_WSStub.<init>(SOA_EG_NUM_HIS_WSStub.java:139)
> at
> com.weichai.soa.SOA_EG_NUM_HIS_WSStub.<init>(SOA_EG_NUM_HIS_WSStub.java:131)
> at hd.soa.util.EngineNumService.<init>(EngineNumService.java:20)
> at hd.soa.util.AfterSalesService.unload(AfterSalesService.java:653)
> at
> hd.soa.util.AfterSalesService.searchMtnBookingBill(AfterSalesService.java:148)
> at
> hd.web.service.ServiceReportAction.loadServiceRequest(ServiceReportAction.java:1316)
> at
> hd.web.service.ServiceReportAction.doCreateReport(ServiceReportAction.java:134)
> at sun.reflect.GeneratedMethodAccessor1300.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at com.sun.el.parser.AstValue.invoke(Unknown Source)
> at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
> at
> com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
> at
> javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
> at
> org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
> at javax.faces.component.UICommand.broadcast(UICommand.java:387)
> at
> org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:324)
> at
> org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:299)
> at
> org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:256)
> at
> org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:469)
> at
> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
> at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
> at
> com.dhcc.common.exception.TeleLifecycleImpl.execute(TeleLifecycleImpl.java:20)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
> at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
> at
> org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> hd.web.servlet.filter.CheckLoginFilter.doFilter(CheckLoginFilter.java:60)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> com.dhcc.common.filter.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:59)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
> at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
> at java.lang.Thread.run(Thread.java:801)
> Here is the WSDL:
> <definitions name="SOA_EG_NUM_HIS_WS"
> targetNamespace="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl">
> −
> <types>
> −
> <schema
> targetNamespace="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/types/"
> elementFormDefault="qualified">
> −
> <element name="insertEgNumElement">
> −
> <complexType>
> −
> <sequence>
> <element name="basictype" type="string" nillable="true"/>
> <element name="itemnumber" type="string" nillable="true"/>
> <element name="egnumwc" type="string" nillable="true"/>
> <element name="egnumcus" type="string" nillable="true"/>
> <element name="pdnumber" type="string" nillable="true"/>
> <element name="productdate" type="dateTime" nillable="true" minOccurs="0"/>
> <element name="notes" type="string" nillable="true"/>
> <element name="lastupdatedate" type="dateTime" nillable="true" minOccurs="0"/>
> <element name="lastupdatedby" type="string" nillable="true"/>
> <element name="creationdate" type="dateTime" nillable="true" minOccurs="0"/>
> <element name="createdby" type="string" nillable="true"/>
> <element name="orgid" type="string" nillable="true"/>
> </sequence>
> </complexType>
> </element>
> −
> <element name="insertEgNumResponseElement">
> −
> <complexType>
> −
> <sequence>
> <element name="result" type="tns:SOA_EG_NUM_HIS_WSUser_insertEgNum_Out"
> nillable="true"/>
> </sequence>
> </complexType>
> </element>
> −
> <complexType name="SOA_EG_NUM_HIS_WSUser_insertEgNum_Out">
> −
> <sequence>
> <element name="rtncodeOut" type="string" nillable="true"/>
> <element name="rtnmsgOut" type="string" nillable="true"/>
> </sequence>
> </complexType>
> −
> <element name="removeEgNumElement">
> −
> <complexType>
> −
> <sequence>
> <element name="egnumwc" type="string" nillable="true"/>
> <element name="egnumcus" type="string" nillable="true"/>
> <element name="pdnumber" type="string" nillable="true"/>
> </sequence>
> </complexType>
> </element>
> −
> <element name="removeEgNumResponseElement">
> −
> <complexType>
> −
> <sequence>
> <element name="result" type="tns:SOA_EG_NUM_HIS_WSUser_removeEgNum_Out"
> nillable="true"/>
> </sequence>
> </complexType>
> </element>
> −
> <complexType name="SOA_EG_NUM_HIS_WSUser_removeEgNum_Out">
> −
> <sequence>
> <element name="rtncodeOut" type="string" nillable="true"/>
> <element name="rtnmsgOut" type="string" nillable="true"/>
> </sequence>
> </complexType>
> −
> <element name="searchEgNumlistElement">
> −
> <complexType>
> −
> <sequence>
> <element name="egnumwc" type="string" nillable="true"/>
> <element name="egnumcus" type="string" nillable="true"/>
> <element name="pdnumber" type="string" nillable="true"/>
> <element name="rowfrom" type="string" nillable="true"/>
> <element name="rowto" type="string" nillable="true"/>
> </sequence>
> </complexType>
> </element>
> −
> <element name="searchEgNumlistResponseElement">
> −
> <complexType>
> −
> <sequence>
> <element name="result" type="tns:SOA_EG_NUM_HIS_WSUser_searchEgNumlist_Out"
> nillable="true"/>
> </sequence>
> </complexType>
> </element>
> −
> <complexType name="SOA_EG_NUM_HIS_WSUser_searchEgNumlist_Out">
> −
> <sequence>
> <element name="totalrowsOut" type="string" nillable="true"/>
> <element name="egnumlistOut" type="tns:EgNumHisPkgEgnumrecUser"
> nillable="true" minOccurs="0" maxOccurs="unbounded"/>
> <element name="rtncodeOut" type="string" nillable="true"/>
> <element name="rtnmsgOut" type="string" nillable="true"/>
> </sequence>
> </complexType>
> −
> <complexType name="EgNumHisPkgEgnumrecUser">
> −
> <complexContent>
> −
> <extension base="tns:EgNumHisPkgEgnumrecBase">
> −
> <sequence>
> <element name="egnumwc" type="string" nillable="true"/>
> <element name="egnumcus" type="string" nillable="true"/>
> <element name="basictype" type="string" nillable="true"/>
> <element name="lastupdatedate" type="dateTime" nillable="true" minOccurs="0"/>
> <element name="lastupdatedby" type="string" nillable="true"/>
> <element name="productdate" type="dateTime" nillable="true" minOccurs="0"/>
> <element name="notes" type="string" nillable="true"/>
> <element name="orgid" type="string" nillable="true"/>
> <element name="pdnumber" type="string" nillable="true"/>
> <element name="createdby" type="string" nillable="true"/>
> <element name="itemnumber" type="string" nillable="true"/>
> <element name="creationdate" type="dateTime" nillable="true" minOccurs="0"/>
> </sequence>
> </extension>
> </complexContent>
> </complexType>
> −
> <complexType name="EgNumHisPkgEgnumrecBase">
> <sequence/>
> </complexType>
> −
> <element name="searchegnumCustowcElement">
> −
> <complexType>
> −
> <sequence>
> <element name="egnumcus" type="string" nillable="true"/>
> </sequence>
> </complexType>
> </element>
> −
> <element name="searchegnumCustowcResponseElement">
> −
> <complexType>
> −
> <sequence>
> <element name="result"
> type="tns:SOA_EG_NUM_HIS_WSUser_searchegnumCustowc_Out" nillable="true"/>
> </sequence>
> </complexType>
> </element>
> −
> <complexType name="SOA_EG_NUM_HIS_WSUser_searchegnumCustowc_Out">
> −
> <sequence>
> <element name="rtncodeOut" type="string" nillable="true"/>
> <element name="egnumwcOut" type="string" nillable="true"/>
> <element name="rtnmsgOut" type="string" nillable="true"/>
> </sequence>
> </complexType>
> −
> <element name="searchegnumWctocusElement">
> −
> <complexType>
> −
> <sequence>
> <element name="egnumwc" type="string" nillable="true"/>
> </sequence>
> </complexType>
> </element>
> −
> <element name="searchegnumWctocusResponseElement">
> −
> <complexType>
> −
> <sequence>
> <element name="result"
> type="tns:SOA_EG_NUM_HIS_WSUser_searchegnumWctocus_Out" nillable="true"/>
> </sequence>
> </complexType>
> </element>
> −
> <complexType name="SOA_EG_NUM_HIS_WSUser_searchegnumWctocus_Out">
> −
> <sequence>
> <element name="egnumcusOut" type="string" nillable="true"/>
> <element name="rtncodeOut" type="string" nillable="true"/>
> <element name="rtnmsgOut" type="string" nillable="true"/>
> </sequence>
> </complexType>
> </schema>
> </types>
> −
> <message name="SOA_EG_NUM_HIS_WS_insertEgNum">
> <part name="parameters" element="tns0:insertEgNumElement"/>
> </message>
> −
> <message name="SOA_EG_NUM_HIS_WS_insertEgNumResponse">
> <part name="parameters" element="tns0:insertEgNumResponseElement"/>
> </message>
> −
> <message name="SOA_EG_NUM_HIS_WS_removeEgNum">
> <part name="parameters" element="tns0:removeEgNumElement"/>
> </message>
> −
> <message name="SOA_EG_NUM_HIS_WS_removeEgNumResponse">
> <part name="parameters" element="tns0:removeEgNumResponseElement"/>
> </message>
> −
> <message name="SOA_EG_NUM_HIS_WS_searchEgNumlist">
> <part name="parameters" element="tns0:searchEgNumlistElement"/>
> </message>
> −
> <message name="SOA_EG_NUM_HIS_WS_searchEgNumlistResponse">
> <part name="parameters" element="tns0:searchEgNumlistResponseElement"/>
> </message>
> −
> <message name="SOA_EG_NUM_HIS_WS_searchegnumCustowc">
> <part name="parameters" element="tns0:searchegnumCustowcElement"/>
> </message>
> −
> <message name="SOA_EG_NUM_HIS_WS_searchegnumCustowcResponse">
> <part name="parameters" element="tns0:searchegnumCustowcResponseElement"/>
> </message>
> −
> <message name="SOA_EG_NUM_HIS_WS_searchegnumWctocus">
> <part name="parameters" element="tns0:searchegnumWctocusElement"/>
> </message>
> −
> <message name="SOA_EG_NUM_HIS_WS_searchegnumWctocusResponse">
> <part name="parameters" element="tns0:searchegnumWctocusResponseElement"/>
> </message>
> −
> <portType name="SOA_EG_NUM_HIS_WS">
> −
> <operation name="insertEgNum">
> <input message="tns:SOA_EG_NUM_HIS_WS_insertEgNum"/>
> <output message="tns:SOA_EG_NUM_HIS_WS_insertEgNumResponse"/>
> </operation>
> −
> <operation name="removeEgNum">
> <input message="tns:SOA_EG_NUM_HIS_WS_removeEgNum"/>
> <output message="tns:SOA_EG_NUM_HIS_WS_removeEgNumResponse"/>
> </operation>
> −
> <operation name="searchEgNumlist">
> <input message="tns:SOA_EG_NUM_HIS_WS_searchEgNumlist"/>
> <output message="tns:SOA_EG_NUM_HIS_WS_searchEgNumlistResponse"/>
> </operation>
> −
> <operation name="searchegnumCustowc">
> <input message="tns:SOA_EG_NUM_HIS_WS_searchegnumCustowc"/>
> <output message="tns:SOA_EG_NUM_HIS_WS_searchegnumCustowcResponse"/>
> </operation>
> −
> <operation name="searchegnumWctocus">
> <input message="tns:SOA_EG_NUM_HIS_WS_searchegnumWctocus"/>
> <output message="tns:SOA_EG_NUM_HIS_WS_searchegnumWctocusResponse"/>
> </operation>
> </portType>
> −
> <binding name="SOA_EG_NUM_HIS_WSSoapHttp" type="tns:SOA_EG_NUM_HIS_WS">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> −
> <operation name="insertEgNum">
> <soap:operation
> soapAction="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/insertEgNum"/>
> −
> <input>
> <soap:body use="literal"/>
> </input>
> −
> <output>
> <soap:body use="literal"/>
> </output>
> </operation>
> −
> <operation name="removeEgNum">
> <soap:operation
> soapAction="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/removeEgNum"/>
> −
> <input>
> <soap:body use="literal"/>
> </input>
> −
> <output>
> <soap:body use="literal"/>
> </output>
> </operation>
> −
> <operation name="searchEgNumlist">
> <soap:operation
> soapAction="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/searchEgNumlist"/>
> −
> <input>
> <soap:body use="literal"/>
> </input>
> −
> <output>
> <soap:body use="literal"/>
> </output>
> </operation>
> −
> <operation name="searchegnumCustowc">
> <soap:operation
> soapAction="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/searchegnumCustowc"/>
> −
> <input>
> <soap:body use="literal"/>
> </input>
> −
> <output>
> <soap:body use="literal"/>
> </output>
> </operation>
> −
> <operation name="searchegnumWctocus">
> <soap:operation
> soapAction="http://com/weichai/soa/webservice/SOA_EG_NUM_HIS_WS.wsdl/searchegnumWctocus"/>
> −
> <input>
> <soap:body use="literal"/>
> </input>
> −
> <output>
> <soap:body use="literal"/>
> </output>
> </operation>
> </binding>
> −
> <service name="SOA_EG_NUM_HIS_WS">
> −
> <port name="SOA_EG_NUM_HIS_WSSoapHttpPort"
> binding="tns:SOA_EG_NUM_HIS_WSSoapHttp">
> <soap:address
> location="http://soa.weichai.com:7778/SOA-SOA_EG_NUM_HIS_WS-context-root/SOA_EG_NUM_HIS_WSSoapHttpPort"/>
> </port>
> </service>
> </definitions>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]