rdy1437
asked on
Axis error " org.xml.sax.SAXException: Invalid element in Invalid element in"
Hi,
I'm getting error when my code get the soap response. The error is
...
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Invalid element in xml.wsdl.TargetType - Type
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.S AXExceptio n: Invalid element in xml.wsdl.TargetType - Type
at org.apache.axis.encoding.s er.BeanDes erializer. onStartChi ld(BeanDes erializer. java:258)
at org.apache.axis.encoding.D eserializa tionContex t.startEle ment(Deser ialization Context.ja va:1035)
at org.apache.axis.message.SA X2EventRec order.repl ay(SAX2Eve ntRecorder .java:165)
at org.apache.axis.message.Me ssageEleme nt.publish ToHandler( MessageEle ment.java: 1141)
at org.apache.axis.encoding.D eserialize rImpl.star tElement(D eserialize rImpl.java :369)
at org.apache.axis.encoding.D eserializa tionContex t.startEle ment(Deser ialization Context.ja va:1048)
at org.apache.axis.message.SA X2EventRec order.repl ay(SAX2Eve ntRecorder .java:165)
at org.apache.axis.message.Me ssageEleme nt.publish ToHandler( MessageEle ment.java: 1141)
at org.apache.axis.message.RP CElement.d eserialize (RPCElemen t.java:236 )
at org.apache.axis.message.RP CElement.g etParams(R PCElement. java:384)
at org.apache.axis.client.Cal l.invoke(C all.java:2 448)
at org.apache.axis.client.Cal l.invoke(C all.java:2 347)
at org.apache.axis.client.Cal l.invoke(C all.java:1 804)
at XStubSoapStub.listIntercep tions(XStu bSoapStub. java:361)
at QueryCommand.execute(Query Command.ja va:102)
at BaseTarget.execute(BaseTar get.java:3 0)
at XTarget.execute(XTarget.ja va:34)
at XMsgHandler.run(XMsgHandle r.java:50)
at java.lang.Thread.run(Threa d.java:595 )
{http://xml.apache.org/axis/}hostname:st-louis
......
Here is my procedure:
- I have a WSDL and I used WSDL2java (,options -a -u) of Axis1.4 to generate java classes. Then I did a sample service impl (dummy) out from generated interface code. While changes done in any generated classes.
- I deployed my sample service impl using Axis instant deploy, that's by, removing the packge declrtn, renaming the file into .jws and put it inside [tomcat]\webapps\testWS\
- i tested the sample service by accessing the url in browser.
- I create a sample client and access my sample service
- And the error dislayed.
-I already checked it in the web but no direct answers.
Add. Questions:
> Is my way of deployment affected the soap response? if no, why my soap request seem no multiRef while in response has lots of it.?
> Or there is somthing wrong in the generated code or in my procedure.?
I'm getting error when my code get the soap response. The error is
...
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Invalid element in xml.wsdl.TargetType - Type
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.S
at org.apache.axis.encoding.s
at org.apache.axis.encoding.D
at org.apache.axis.message.SA
at org.apache.axis.message.Me
at org.apache.axis.encoding.D
at org.apache.axis.encoding.D
at org.apache.axis.message.SA
at org.apache.axis.message.Me
at org.apache.axis.message.RP
at org.apache.axis.message.RP
at org.apache.axis.client.Cal
at org.apache.axis.client.Cal
at org.apache.axis.client.Cal
at XStubSoapStub.listIntercep
at QueryCommand.execute(Query
at BaseTarget.execute(BaseTar
at XTarget.execute(XTarget.ja
at XMsgHandler.run(XMsgHandle
at java.lang.Thread.run(Threa
{http://xml.apache.org/axis/}hostname:st-louis
......
Here is my procedure:
- I have a WSDL and I used WSDL2java (,options -a -u) of Axis1.4 to generate java classes. Then I did a sample service impl (dummy) out from generated interface code. While changes done in any generated classes.
- I deployed my sample service impl using Axis instant deploy, that's by, removing the packge declrtn, renaming the file into .jws and put it inside [tomcat]\webapps\testWS\
- i tested the sample service by accessing the url in browser.
- I create a sample client and access my sample service
- And the error dislayed.
-I already checked it in the web but no direct answers.
Add. Questions:
> Is my way of deployment affected the soap response? if no, why my soap request seem no multiRef while in response has lots of it.?
> Or there is somthing wrong in the generated code or in my procedure.?
ASKER
I already found a solution. I need to redeploy the web service. The problem is that the server is referencing to the wrong jws.
If you make changes to it, you need to re-deploy on the server so that the server can host the new one.
I think my comment can be accepted with a C grade because it explains the reason why that has to be done to solve the problem.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
To the administrator, kindly delete this topic please? thanks
So my recommendation was not considered?
ASKER
Hi modguy, the problem with this topic is that there are part on the stacktrace that pertains to our client and they don't want it to be published on the internet. would it be possible to kindly delete this post?
Thanks in advance
Thanks in advance
Don't worry there is hardly anything there in this Q which pertains to your client information - no source code, etc - just a stack trace which is not much. Half the class names there belong to Axis
ASKER
NO, it has, the package name and my client demanded this topic to be deleted.
If there's no way that this topic be deleted, would it be possible then to just edit the topic?
If there's no way that this topic be deleted, would it be possible then to just edit the topic?
It can be deleted - it can be edited too.
Ask a question here: https://www.experts-exchange.com/Community_Support/Community_Advisor/ and ask to edit your question and delete the client's name if this is a problem.
The accepted solution has no explination...can someone provide detailed suggestions for how to resolve an issue with these types of exceptions...
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Invalid element in PSG.ariba.server.fpdsng.bu siness.awa rd.VendorS ocioEconom icIndicato rsType - isAlaskanNativeOwnedCorpor ationOrFir m
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Invalid element in PSG.ariba.server.fpdsng.bu siness.awa rd.VendorS ocioEconom icIndicato rsType - isAlaskanNativeOwnedCorpor ationOrFir m
at org.apache.axis.encoding.s er.BeanDes erializer. onStartChi ld(BeanDes erializer. java:260)
at org.apache.axis.encoding.D eserializa tionContex tImpl.star tElement(D eserializa tionContex tImpl.java :963)
at org.apache.axis.message.SA X2EventRec order.repl ay(SAX2Eve ntRecorder .java:198)
at org.apache.axis.message.Me ssageEleme nt.publish ToHandler( MessageEle ment.java: 722)
at org.apache.axis.message.RP CElement.d eserialize (RPCElemen t.java:233 )
at org.apache.axis.message.RP CElement.g etParams(R PCElement. java:347)
at org.apache.axis.client.Cal l.invoke(C all.java:2 272)
at org.apache.axis.client.Cal l.invoke(C all.java:2 171)
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Invalid element in PSG.ariba.server.fpdsng.bu
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Invalid element in PSG.ariba.server.fpdsng.bu
at org.apache.axis.encoding.s
at org.apache.axis.encoding.D
at org.apache.axis.message.SA
at org.apache.axis.message.Me
at org.apache.axis.message.RP
at org.apache.axis.message.RP
at org.apache.axis.client.Cal
at org.apache.axis.client.Cal
Ask your own questions in your own thread.
What was the result of doing that?