This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis - Server.userException  RSS feed

 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm having a bit of difficulty getting my web service working and I can't seem to work out what's wrong.
Basically, I have a method called addDesignContainers, but when called, I get the attached stack trace. If anyone has any ideas, they would be greatly appreciated as I'm in seriously unknown territory .
Cheers,
Steve
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultString: java.lang.reflect.InvocationTargetException
faultActor: null
faultDetail:
stackTrace: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultString: java.lang.reflect.InvocationTargetException
faultActor: null
faultDetail:
java.lang.reflect.InvocationTargetException
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:135)
at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:942)
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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:232)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at com.informavores.firefly.webservices.FireflyDesignSubmissionSoapStub.addDesignContainers(FireflyDesignSubmissionSoapStub.java:1040)
at com.informavores.firefly.webservices.ServiceData.submitDesign(ServiceData.java:653)
at com.informavores.firefly.designer.DesignerFrame$4.run(DesignerFrame.java:867)
at java.lang.Thread.run(Thread.java:536)
java.lang.reflect.InvocationTargetException
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:135)
at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:942)
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.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:232)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at com.informavores.firefly.webservices.FireflyDesignSubmissionSoapStub.addDesignContainers(FireflyDesignSubmissionSoapStub.java:1040)
at com.informavores.firefly.webservices.ServiceData.submitDesign(ServiceData.java:653)
at com.informavores.firefly.designer.DesignerFrame$4.run(DesignerFrame.java:867)
at java.lang.Thread.run(Thread.java:536)
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give us more meat about the method you call.
Is there any parameters . If yes, is is a bean or a simple type ? And any returned value ?
Are you in RPC ?
Maybe you could check the SOAP message sent using AXIS TCPMON.
The error could be due to a null parameter somewhere.
 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, this is the bit of code that's causing the problem:
ArrayOfDesignContainer designContainers = getDesignContainers(oDesign);
try
{
ws = new FireflyDesignSubmissionLocator().getFireflyDesignSubmissionSoap
(new URL(http://www.informavores.com/services/FireflyDesignSubmissionSoap"));
if (designContainers.getDesignContainer().length > 0)
{
sError = ws.addDesignContainers(sUsername, sPassword, designContainers);
}
The designContainers is an array of objects, the sUsername and sPassword variables are strings. The method call should return "Done" if everything is OK with the transmission, otherwise it should give the error that occurred (I don't know if this is good technique).
The service and client work fine if I run it locally. To run it at my service provider, I simply changed the above URL (from http://localhost:8080/server/services/FireflyDesignSubmissionSoap to the above).
I've checked the sUsername, sPassword and designContainers and none are null, though the tool you mentioned sounds interesting, I'll have a look.
If you've got any ideas, they are greatly appreciated. Thanks for your help so far.
Cheers,
Steve
 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Me again,
I've just noticed that if I call the:
http://www.informavores.com/services/FireflyDesignSubmissionSoap?WSDL
I get:
AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - ; nested exception is:
java.lang.NullPointerException
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
I still don't know what's going wrong as the system works fine on my local server. Could it be a configuration problem?
Cheers,
Steve
 
Sam Bom
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the Web Service up and running at http://www.informavores.com/services/FireflyDesignSubmissionSoap?WSDL
I tried the url...gives a blank page...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!