[ https://issues.apache.org/jira/browse/AXIS2-5944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16727056#comment-16727056 ]
Andreas Veithen commented on AXIS2-5944: ---------------------------------------- The line where the {{NullPointerException}} is thrown is: {code:java} ClusteringAgent clusteringAgent = cc.getAxisConfiguration().getClusteringAgent(); {code} {{cc}} is the {{ConfigurationContext}} and there is a null check right before, so the only possible reason is that the {{AxisConfiguration}} is null. That would happen after calling {{terminate}} on the {{ConfigurationContext}}. So probably there is a bug in your application where you use a stub or {{ServiceClient}} after destroying the {{ConfigurationContext}}. > NullPointer Exception on AbstractContext.needPropertyDifferences > ---------------------------------------------------------------- > > Key: AXIS2-5944 > URL: https://issues.apache.org/jira/browse/AXIS2-5944 > Project: Axis2 > Issue Type: Bug > Affects Versions: 1.6.2 > Reporter: Santosh Raman > Priority: Critical > > In Production, we are seeing NullPointer exception being thrown randomly when > calling an Axis2 webservice. > From the stack trace it looks like it happens when the axis2 client is > trying to process the response. > The webservice calls an ESB layer and the ESB layer calls the external > interface.The ESB layer is just a pass through. > The stack trace is > Caused by: java.lang.NullPointerException > at > org.apache.axis2.context.AbstractContext.needPropertyDifferences(AbstractContext.java:239) > at > org.apache.axis2.context.AbstractContext.setProperty(AbstractContext.java:202) > at > org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:270) > at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194) > at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) > at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) > at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) > at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555) > at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531) > at > curam.custom.webservices.edrs.impl.NFWSElectronicDQRecipientService.onlineQueryByID(NFWSElectronicDQRecipientService.java:175) > at > curam.custom.webservices.edrs.impl.NFElectronicDQUtil.invokeOnlineQueryByID(NFElectronicDQUtil.java:452) > at > curam.custom.nfprogramintegrity.disqualification.facade.impl.NFEPIDisqualification.getElectornicDQDetailsListBySsn(NFEPIDisqualification.java:555) > at > curam.custom.nfprogramintegrity.disqualification.facade.impl.NFEPIDisqualification.getDQSearchRecordsFromEDRS(NFEPIDisqualification.java:491) > at sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) > at java.lang.reflect.Method.invoke(Method.java:508) > at curam.util.internal.CuramSessionBean.invoke(CuramSessionBean.java:297) > > Thanks > Santosh > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org