permaculture playing cards*
The moose likes Tomcat and the fly likes Webservice request giving Faultcode : Server.User exception after deploying in Tomcat Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Webservice request giving Faultcode : Server.User exception after deploying in Tomcat Server" Watch "Webservice request giving Faultcode : Server.User exception after deploying in Tomcat Server" New topic
Author

Webservice request giving Faultcode : Server.User exception after deploying in Tomcat Server

Pattabi Raman
Greenhorn

Joined: Oct 15, 2008
Posts: 7
Hi,

I have written Webservice request program in Java which is HTTPS request. We are using wsdd file for encryption and decryption of Request and Response. The stand alone java program works fine and is able to get the response from Webservice. But when I deployed the war file in Tomcat server it was throwing below error in the log file. Please help me to resolve the issue asap.

07/11/2012 09:12:49:375 INFO - F1745CE9030223D1FA576CB0719F0AF1:/TestWS : channel:unknown | Start Web Service Client...
07/11/2012 09:12:49:593 INFO - F1745CE9030223D1FA576CB0719F0AF1:/TestWS : channel:unknown | getting port
07/11/2012 09:12:49:703 INFO - F1745CE9030223D1FA576CB0719F0AF1:/TestWS : channel:unknown | port1: com.vodafone.services.VFServices.DeviceManagementSoapBindingStub@21b42f
07/11/2012 09:12:49:703 INFO - F1745CE9030223D1FA576CB0719F0AF1:/TestWS : channel:unknown | sendMOSport:com.vodafone.services.VFServices.DeviceManagementSoapBindingStub@21b42f
07/11/2012 09:12:49:703 INFO - F1745CE9030223D1FA576CB0719F0AF1:/TestWS : channel:unknown | calling sendMOSetting:
07/11/2012 09:12:50:562 INFO - F1745CE9030223D1FA576CB0719F0AF1:/TestWS : channel:unknown | 07.11.2012 09:12:50.562 - Finished
07/11/2012 09:12:50:562 INFO - F1745CE9030223D1FA576CB0719F0AF1:/TestWS : channel:unknown | Total elapsed time is 1187
07/11/2012 09:12:50:562 INFO - F1745CE9030223D1FA576CB0719F0AF1:/TestWS : channel:unknown | Fault Code = Server.userException
07/11/2012 09:12:50:562 INFO - F1745CE9030223D1FA576CB0719F0AF1:/TestWS : channel:unknown | Fault String = java.lang.NullPointerException
07/11/2012 09:12:50:562 INFO - F1745CE9030223D1FA576CB0719F0AF1:/TestWS : channel:unknown | Fault Actor = null





Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

We need a stacktrace. You should have one in one of your logfiles unless there's an application that eats the NullPointerException without reporting it.


Customer surveys are for companies who didn't pay proper attention to begin with.
Pattabi Raman
Greenhorn

Joined: Oct 15, 2008
Posts: 7
Hi,

Attached my stack trace log file for your informatioin. its throwing so many errors..

07/11/2012 15:47:55:347 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : SCESession bound to HttpSession C73108D1A9D9119233288D52089C2EE3
07/11/2012 15:47:55:349 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Browser Version 2.1.4, terminationURL enabled : true
07/11/2012 15:47:55:354 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Using SCESession C73108D1A9D9119233288D52089C2EE3:/TestWS servlet : Start
07/11/2012 15:47:55:401 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : ** Pushed Stack Frame [/TestWS]
07/11/2012 15:47:55:416 DEBUG - C73108D1A9D9119233288D52089C2EE3:/TestWS : Not able to save posted variable information [call_classification]
07/11/2012 15:47:55:416 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___sessionid to complex: session:sessionid as [sess233034]
07/11/2012 15:47:55:416 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___vpconverseondata to complex: session:vpconverseondata as []
07/11/2012 15:47:55:948 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : runtime_platform : Desktop
07/11/2012 15:47:55:948 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : runtime_asr : Desktop Microsoft Speech SAPI
07/11/2012 15:47:55:959 DEBUG - C73108D1A9D9119233288D52089C2EE3:/TestWS : Acquiring initial License
07/11/2012 15:47:55:960 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Acquiring Desktop runtime license
07/11/2012 15:47:55:960 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Runtime :true
07/11/2012 15:47:55:960 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : IC :true
07/11/2012 15:47:55:960 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : CTI :true
07/11/2012 15:47:55:973 DEBUG - C73108D1A9D9119233288D52089C2EE3:/TestWS : Grace Period timer cleared
07/11/2012 15:47:56:054 DEBUG - C73108D1A9D9119233288D52089C2EE3:/TestWS : License refresh timer started
07/11/2012 15:47:56:071 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Using SCESession C73108D1A9D9119233288D52089C2EE3:/TestWS servlet : CalLWs
07/11/2012 15:47:56:071 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___videonearfmtp to complex: session:videonearfmtp as [unknown]
07/11/2012 15:47:56:071 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___vprdnis to complex: session:vprdnis as [unknown]
07/11/2012 15:47:56:072 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :redirectinfo___uri to complex: redirectinfo:uri as []
07/11/2012 15:47:56:072 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :redirectinfo___presentationinfo to complex: redirectinfo:presentationinfo as [undefined]
07/11/2012 15:47:56:072 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___channel to complex: session:channel as [0]
07/11/2012 15:47:56:072 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___conversefirst to complex: session:conversefirst as [unknown]
07/11/2012 15:47:56:072 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :shareduui___value to complex: shareduui:value as [unknown]
07/11/2012 15:47:56:072 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___sessionlabel to complex: session:sessionlabel as [undefined]
07/11/2012 15:47:56:072 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :shareduui___id to complex: shareduui:id as [unknown]
07/11/2012 15:47:56:072 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :redirectinfo___reason to complex: redirectinfo:reason as [unknown]
07/11/2012 15:47:56:073 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___vpcalledextension to complex: session:vpcalledextension as [unknown]
07/11/2012 15:47:56:073 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___ani to complex: session:ani as [undefined]
07/11/2012 15:47:56:073 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___videoheight to complex: session:videoheight as [unknown]
07/11/2012 15:47:56:073 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___videocodec to complex: session:videocodec as [unknown]
07/11/2012 15:47:56:073 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___videofarfmtp to complex: session:videofarfmtp as [unknown]
07/11/2012 15:47:56:073 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___mediatype to complex: session:mediatype as [unknown]
07/11/2012 15:47:56:074 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___protocolname to complex: session:protocolname as [pots]
07/11/2012 15:47:56:074 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :redirectinfo___screeninginfo to complex: redirectinfo:screeninginfo as [undefined]
07/11/2012 15:47:56:074 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___ucid to complex: session:ucid as [undefined]
07/11/2012 15:47:56:074 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___conversesecond to complex: session:conversesecond as [unknown]
07/11/2012 15:47:56:074 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___videofps to complex: session:videofps as [unknown]
07/11/2012 15:47:56:074 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___vpcoveragereason to complex: session:vpcoveragereason as [unknown]
07/11/2012 15:47:56:074 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___videoformat to complex: session:videoformat as [unknown]
07/11/2012 15:47:56:074 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___videoenabled to complex: session:videoenabled as [unknown]
07/11/2012 15:47:56:075 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___sharedmode to complex: session:sharedmode as [shared]
07/11/2012 15:47:56:075 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___calltag to complex: session:calltag as [unknown]
07/11/2012 15:47:56:075 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___dnis to complex: session:dnis as [undefined]
07/11/2012 15:47:56:075 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :_sipcallid to simple: _sipcallid as [unknown]
07/11/2012 15:47:56:075 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___vpcoveragetype to complex: session:vpcoveragetype as [unknown]
07/11/2012 15:47:56:075 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___uui to complex: session:uui as [unknown]
07/11/2012 15:47:56:075 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___videobitrate to complex: session:videobitrate as [unknown]
07/11/2012 15:47:56:075 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___videowidth to complex: session:videowidth as [unknown]
07/11/2012 15:47:56:076 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___protocolversion to complex: session:protocolversion as [1]
07/11/2012 15:47:56:076 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Storing :session___aai to complex: session:aai as []
07/11/2012 15:47:56:083 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | *Reached servlet node*
Calling Web service:
07/11/2012 15:47:56:089 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | Call Web Service Operation...
07/11/2012 15:47:56:090 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | ***********************
07/11/2012 15:47:56:090 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | 07.11.2012 15:47:56.090 - Start
07/11/2012 15:47:56:090 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | sendMOS:
07/11/2012 15:47:56:090 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | ***********************
07/11/2012 15:47:56:090 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | wsdd path:vodafone-d2.wsdd
07/11/2012 15:47:56:091 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | Start Web Service Client...
07/11/2012 15:47:56:375 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | getting port
07/11/2012 15:47:56:511 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | port1: com.vodafone.services.VFServices.DeviceManagementSoapBindingStub@130d46b
07/11/2012 15:47:56:511 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | sendMOSport:com.vodafone.services.VFServices.DeviceManagementSoapBindingStub@130d46b
07/11/2012 15:47:56:511 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | calling sendMOSetting:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:now-ena-bac327.prd.de1.sp.vodafone.com

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 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.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.SOAPPart.getEnvelope(SOAPPart.java:1003)
at org.apache.axis.Message.getSOAPBody(Message.java:555)
at com.vodafone.skyw.wssecurity.DecryptionHandler.invoke(DecryptionHandler.java:27)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:190)
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.vodafone.services.VFServices.DeviceManagementSoapBindingStub.sendMOSetting(DeviceManagementSoapBindingStub.java:4281)
at flow.CallApi.sendMOS(CallApi.java:48)
at flow.CallApi.myWScall(CallApi.java:114)
at flow.CalLWs.servletImplementation(CalLWs.java:58)
at com.avaya.sce.runtime.BasicServlet.handleRequest(BasicServlet.java:99)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:78)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:266)
at com.avaya.sce.runtime.SCEServlet.doPost(SCEServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
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:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
07/11/2012 15:47:57:989 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | 07.11.2012 15:47:57.988 - Finished
07/11/2012 15:47:57:989 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | Total elapsed time is 1899
07/11/2012 15:47:57:989 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | Fault Code = Server.userException
07/11/2012 15:47:57:989 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | Fault String = java.lang.NullPointerException
07/11/2012 15:47:57:989 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | Fault Actor = null
07/11/2012 15:47:58:004 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Using SCESession C73108D1A9D9119233288D52089C2EE3:/TestWS servlet : untitledData1
07/11/2012 15:47:58:013 DEBUG - C73108D1A9D9119233288D52089C2EE3:/TestWS : session id:sess233034 | TestWS:untitledData1 | Testing | ddLastException:stacktrace :
07/11/2012 15:47:58:014 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Using SCESession C73108D1A9D9119233288D52089C2EE3:/TestWS servlet : untitledReturn1
07/11/2012 15:47:58:026 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Removing session from AvayaSessionTermination Servlet
07/11/2012 15:47:58:026 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Termination URL reply : <?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-us">
</vxml>

07/11/2012 15:47:58:028 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Setting Exit Timer 1000 milliseconds
07/11/2012 15:47:58:028 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Response already comitted, using saved http session
07/11/2012 15:47:58:148 DEBUG - [VOX] ICConnectorCommon.ChangeConnectionState: VOX() connection is now down
07/11/2012 15:47:58:151 DEBUG - [VOX] ICConnectorServer.WaitForConnection: Ready to accept VOX connection at port 3000
07/11/2012 15:47:59:029 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : Invalidating From Exit Timer
07/11/2012 15:47:59:031 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : HTTP Session lost removing SCESession C73108D1A9D9119233288D52089C2EE3
07/11/2012 15:47:59:032 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : SCESession Removed
07/11/2012 15:47:59:033 DEBUG - C73108D1A9D9119233288D52089C2EE3:/TestWS : Removing 1 session stack frames.
07/11/2012 15:47:59:033 INFO - C73108D1A9D9119233288D52089C2EE3:/TestWS : ** Popped Stack Frame [/TestWS]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

Rats! You've managed to annoy Apache Axis. Which version are you using?

Ideally, one would set a breakpoint and examine the data being processed at this point. Next best would be to activate SAX parser logging so that you could at least see the XML elements being processed.

The best I can deduce with what I can see here is that a SOAP Fault is being processed, but beyond that I know nothing.
Pattabi Raman
Greenhorn

Joined: Oct 15, 2008
Posts: 7
Hi,

I am using Tomcat-6.0.If I execute the stand alone JAVA program, I am able to integrate and get response from web service. But when I deployed in Tomcat as war file , its giving the above errors.

So much confused :-(
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

Actually, what I meant was what version of AXIS are you using? Your stack trace doesn't match up with my source code, so I need to find the source code that matches.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Webservice request giving Faultcode : Server.User exception after deploying in Tomcat Server
 
Similar Threads
Removing namespace prefixes from attributes
Copying Object (such as Button, Label, and personal Objects) ?
Report Query
Connection reset by peer: socket write error
Migration from tomcat 5.0 to 7.0.22