Hello,
(jboss 4.0.2, wscompile generated doc/lit style WSDL from SEI)
This is not an jboss problem, more a wscompile problem, but maybe anyone of you
here has had the same problem...
I get an exception when my java client receives an exception from my server.
The message is the following:
| Caused by: deserialization error: unexpected XML reader state. expected:
END but
| found: START: message
| at
com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserial
| ize(LiteralObjectSerializerBase.java:128)
| at
com.something.client.PoiService_getPoi_Fault_SOAPSerializer.deseriali
| zeDetail(PoiService_getPoi_Fault_SOAPSerializer.java:54)
| at
com.sun.xml.rpc.encoding.SOAPFaultInfoSerializer.doDeserialize(SOAPFa
| ultInfoSerializer.java:134)
| at
com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSeria
| lizerBase.java:192)
| at
com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(Refe
| renceableSerializerImpl.java:155)
| at
com.something.client.PoiService_Stub._readBodyFaultElement(PoiService
| _Stub.java:809)
| at
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:208
|
The exception that is thrown is the following:
| public class BullenAPIException extends Exception
| {
| private ExceptionInformation ExceptionInfo;
|
| public BullenAPIException(ExceptionInformation info)
| {
| super(info.getShortDescription());
| this.ExceptionInfo= info;
| }
|
| public String getMessage() {
| return super.getMessage();
| }
|
| public ExceptionInformation getExceptionInfo() {
| return ExceptionInfo;
| }
|
| public void setExceptionInfo(ExceptionInformation exceptionInfo) {
| ExceptionInfo = exceptionInfo;
| }
| }
|
I have tried with and without the getMessage() { return super.getMessage() }
method since reading on the Sun JWSDP forums it feels as this has been a
problem (before).
The "ExceptionInfo" class is just an POJO class. Using wscompile (including the
-f:searchschema attribute) we get the following:
| <complexType name="BullenAPIException">
| <sequence>
| <element name="exceptionInfo" nillable="true"
type="tns:ExceptionInformation"/></sequence></complexType>
|
And the operation that was called upon:
| <operation name="getPoi">
| <input message="tns:PoiService_getPoi"/>
| <output message="tns:PoiService_getPoiResponse"/>
| <fault message="tns:BullenAPIException" name="BullenAPIException"/>
| </operation>
|
The soap response that came back on the wire looks like this:
| <?xml version="1.0" encoding="UTF-8"?>
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
| <soapenv:Body>
| <soapenv:Fault>
| <faultcode>soapenv:Client</faultcode>
| <faultstring>NotLoggedInException</faultstring>
| <detail>
| <ns1:DynafleetAPIException
xmlns:ns1="http://wirelesscar.com/dynafleet/api/types">
| <exceptionInfo>
| <description>User with session id = [apitest11118215995884] was
logged out</description>
| <errorCode>103</errorCode>
| <id>172.21.22.68_1118216045482_4</id>
|
<originalException>com.bullen.fleet.common.exceptions.NotLoggedInException</originalException>
| <originalMessage>User with session id = [apitest11118215995884] was
logged out</originalMessage>
| <shortDescription>NotLoggedInException</shortDescription>
| </exceptionInfo>
| <message>NotLoggedInException</message>
| </ns1:BullenAPIException>
| </detail>
| </soapenv:Fault>
| </soapenv:Body>
| </soapenv:Envelope>
|
The "message" part does not seam to be declared as a part of the
BullenAPIException in the WSDL which I thought should be there due to the
inheritance.
Can anyone see why I get this deserialization exception?
Best regards,
Georg
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880770#3880770
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880770
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user