0 Replies Latest reply on Jun 21, 2016 2:02 AM by manzer.imam

    JBOSS 6.0 is not connecting to remote server via web service call

    manzer.imam

      Hi Team,

       

      I am very new to jboss server. Our application is having 2 modules, Financial and SNT modules which is deployed in same server JBOSS 6.0 and connecting one another via web service call. When It went for Serial Number check for product which is in SNT module then It is throwing the below error.

       

       

      [INFO] at [Thread-16 (HornetQ-client-global-threads-1011564716) 16-06-20 06:38:37,976] SntServiceFacadeBean.getSntCheckResultForSubmit - ############# SntServiceFacadeBean.java :::: getSntCheckResultForSubmit ########  before webservice calls-------

      [INFO] at [Thread-16 (HornetQ-client-global-threads-1011564716) 16-06-20 06:38:43,142] SntServiceFacadeBean.getSntCheckResultForSubmit - Retrying SNT web service to get check result. Retry count: 3

      [INFO] at [Thread-16 (HornetQ-client-global-threads-1011564716) 16-06-20 06:38:43,145] SntServiceFacadeBean.getSntCheckResultForSubmit - ############# SntServiceFacadeBean.java :::: getSntCheckResultForSubmit ########ModuleClassLoader for Module "deployment.30_FinancialClaims.ear.FinancialClaims.jar:main" from Service Module Loader

      [INFO] at [Thread-16 (HornetQ-client-global-threads-1011564716) 16-06-20 06:38:43,147] SntServiceFacadeBean.getSntCheckResultForSubmit - ############# SntServiceFacadeBean.java :::: getSntCheckResultForSubmit ########  before webservice calls-------

      [ERROR] at [Thread-16 (HornetQ-client-global-threads-1011564716) 16-06-20 06:38:43,338] SntServiceFacadeBean.getSntCheckResultForSubmit - Throwing RemoteException after 3 retries.

      AxisFault

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

      faultSubcode:

      faultString: java.lang.NullPointerException

      faultActor:

      faultNode:

      faultDetail:

              {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException

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

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

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

              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 org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

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

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

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

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

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

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

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

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

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

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

              at com.hp.eclaims.snt.webservice.client.SNTServiceBindingStub.submit(SNTServiceBindingStub.java:1181)

              at com.hp.eclaims.snt.webservice.client.SNTClient.submit(SNTClient.java:165)

              at com.hp.tiscon.eclaims.financial.service.integration.snt.SntServiceFacadeBean.getSntCheckResultForSubmit(SntServiceFacadeBean.java:174)

              at com.hp.tiscon.eclaims.financial.service.integration.snt.SntServiceFacadeBean.getSntCheckResultForSubmit(SntServiceFacadeBean.java:186)

              at com.hp.tiscon.eclaims.financial.service.integration.snt.SntServiceFacadeBean.getSntCheckResultForSubmit(SntServiceFacadeBean.java:186)

              at com.hp.tiscon.eclaims.financial.service.integration.snt.SntServiceFacadeBean.getSntCheckResultForSubmit(SntServiceFacadeBean.java:186)

              at com.hp.tiscon.eclaims.financial.service.integration.snt.SntServiceFacadeBean.submit(SntServiceFacadeBean.java:145)

              at com.hp.tiscon.eclaims.financial.service.integration.snt.SntServiceFacadeBean.submit(SntServiceFacadeBean.java:517)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:622)

              at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:200)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:188)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.interceptors.EjbExceptionTransformingInterceptorFactories$1.processInvocation(EjbExceptionTransformingInterceptorFactories.java:65)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

              {http://xml.apache.org/axis/}hostname:g1t8077g.austin.hpicorp.net

       

      java.lang.NullPointerException

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

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

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

              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 org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

      [ERROR] at [Thread-16 (HornetQ-client-global-threads-1011564716) 16-06-20 06:38:43,397] SntServiceFacadeBean.getSntCheckResultForSubmit - ***** Failed to call SNT web service. Throwing RemoteException for snClaimGroup: com.hp.eclaims.snt.webservice.client.types.SNClaimGroup@7b225622 *****

      [INFO] at [Thread-16 (HornetQ-client-global-threads-1011564716) 16-06-20 06:38:43,402] SntServiceFacadeBean.getSntCheckResultForSubmit - ***** Failed to call SNT web service. Impacted claim: F-ITREC5000019 CBN: 822031924 *****

      [INFO] at [Thread-16 (HornetQ-client-global-threads-1011564716) 16-06-20 06:38:43,405] SntServiceFacadeBean.submit - ############# SntServiceFacadeBean.java 00000000000000000000000000000 ########ModuleClassLoader for Module "deployment.30_FinancialClaims.ear.FinancialClaims.jar:main" from Service Module Loader

      [ERROR] at [Thread-16 (HornetQ-client-global-threads-1011564716) 16-06-20 06:38:43,409] SntServiceFacadeBean.submit - Failed to call SNT (URL = 'http://15.67.3.208:9080/Serial-Number-Tracking-ejb/SNTServiceBean') using the client module. The original error message was: java.lang.NullPointerException ... Breaking up throwing a SntServiceException

      [ERROR] at [Thread-16 (HornetQ-client-global-threads-1011564716) 16-06-20 06:38:43,422] SntServiceFacadeBean.submit - Detail: tried to send the following information: <SNClaimGroup sourceSystemId="FEC"><SNClaim claimId="F-ITREC5000019" cbn="822031924" ><SNClaimItem claimItemId="2ab1cd1" productNr="L4R41A" quantity="1" position="11" selloutDate="29.01.2016" ><SNSerialNumber originalSnId="0" serialNumber="MY5BB5900Z" position="0"  /></SNClaimItem></SNClaim></SNClaimGroup><SNNameValuePairs><SNNameValuePair name="CBN_MODE" value="run-up" /><SNNameValuePair name="OPERATION_MODE" value="OM_STORE_AND_CHECK" /><SNNameValuePair name="CALCULATE_STATISTICS" value="TRUE" /><SNNameValuePair name="STORE_ON_ERRORS" value="TRUE" /></SNNameValuePairs>

      [ERROR] at [Thread-16 (HornetQ-client-global-threads-1011564716) 16-06-20 06:38:43,438] RecatSinglePreclaimForkerBean.checkSerialNumbers - SntServiceException occured in checkSerialNumbers

      com.hp.tiscon.eclaims.financial.service.integration.snt.SntServiceException: communication problem (5): Failed to call SNT (URL = 'http://15.67.3.208:9080/Serial-Number-Tracking-ejb/SNTServiceBean') using the client module. The original error message was: java.lang.NullPointerException

              at com.hp.tiscon.eclaims.financial.service.integration.snt.SntServiceFacadeBean.submit(SntServiceFacadeBean.java:164)

              at com.hp.tiscon.eclaims.financial.service.integration.snt.SntServiceFacadeBean.submit(SntServiceFacadeBean.java:517)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:622)

              at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:200)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:188)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.interceptors.EjbExceptionTransformingInterceptorFactories$1.processInvocation(EjbExceptionTransformingInterceptorFactories.java:65)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)

              at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:221)

              at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

              at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42)

              at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

              at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125)

              at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)

              at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)

              at com.sun.proxy.$Proxy59.submit(Unknown Source)

              at com.hp.tiscon.eclaims.financial.businesslogic.claim.RecatBean.checkSerialNumbers(RecatBean.java:1792)

              at com.hp.tiscon.eclaims.financial.businesslogic.claim.RecatBean.submitUploadedGlobalClaims(RecatBean.java:2645)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:622)

              at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)

       

       

       

      Below the content of standalone.xml file

       

      <extensions>

              <extension module="org.jboss.as.remoting"/>

      </extensions>


      <remote connector-ref="remoting-connector" thread-pool-name="default"/>

       

      <subsystem xmlns="urn:jboss:domain:jmx:1.1">

                  <show-model value="true"/>

                  <remoting-connector use-management-endpoint="false"/>

      </subsystem>

       

      <subsystem xmlns="urn:jboss:domain:remoting:1.1">

                  <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>

      </subsystem>

       

      <authentication>

                              <login-module code="Remoting" flag="optional">

                                  <module-option name="password-stacking" value="useFirstPass"/>

                              </login-module>

      </authentication>

       

      <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

              <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>

              <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>

              <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>

              <socket-binding name="ajp" port="49000"/>

              <socket-binding name="http" port="8080"/>

              <socket-binding name="https" port="49010"/>

              <socket-binding name="jacorb" interface="unsecure" port="3528"/>

              <socket-binding name="jacorb-ssl" interface="unsecure" port="3529"/>

              <socket-binding name="jgroups-tcp" port="7600"/>

              <socket-binding name="jgroups-tcp-fd" port="57600"/>

              <socket-binding name="messaging" port="5445"/>

              <socket-binding name="messaging-group" port="0" multicast-address="${jboss.messaging.group.address:231.7.7.7}" multicast-port="${jboss.messaging.group.port:9876}"/>

              <socket-binding name="messaging-throughput" port="5456"/>

              <socket-binding name="osgi-http" interface="management" port="8091"/>

              <socket-binding name="remoting" port="4447"/>

              <socket-binding name="txn-recovery-environment" port="4712"/>

              <socket-binding name="txn-status-manager" port="4713"/>

              <outbound-socket-binding name="mail-smtp">

                  <remote-destination host="smtp1.hp.com" port="25"/>

              </outbound-socket-binding>

              <outbound-socket-binding name="other-cluster-node1">

                  <remote-destination host="g1t8077g.austin.hpicorp.net" port="6445"/>

              </outbound-socket-binding>

      </socket-binding-group>