You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by nate roe <ph...@gmail.com> on 2008/08/12 00:32:05 UTC

Seemingly strange result switching from Axis2 1.3 to 1.4

I have a POJO service deployed on JBoss 4.05 under Axis2 v1.3.  I have
modified this service to instead use Axis2 v1.4.  I then regenerated
the client-side stub classes with Axis2 1.4's wsdl2java, using the new
(and slightly different) WSDL.

My client now has a parse error reading the response, but to my eye,
the response looks logical and appears to follow the WSDL.

In the WSDL, the response is defined as:

<xs:element name="getSampleNamesResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element maxOccurs="unbounded" minOccurs="0" name="return"
nillable="true" type="ax22:SampleNamesX"/>
		</xs:sequence>
	</xs:complexType>
</xs:element>


The response is an array of these elements:

<xs:complexType name="SampleNamesX">
	<xs:sequence>
		<xs:element minOccurs="0" name="nameList" nillable="true" type="xs:anyType"/>
		<xs:element minOccurs="0" name="typeId" nillable="true" type="xs:long"/>
		<xs:element minOccurs="0" name="typeName" nillable="true" type="xs:string"/>
	</xs:sequence>
</xs:complexType>


The SOAP response looks like this:

<ns:getSampleNamesResponse xmlns:ns="http://vegas.com"
        xmlns:ax21="http://vegas.com/xsd">
        <ns:return type="com.vegas.SampleNamesX">
                <ax21:nameList
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:nil="true">
                </ax21:nameList>
                <ax21:typeId>1138</ax21:typeId>
                <ax21:typeName>foo</ax21:typeName>
        </ns:return>
        <ns:return type="com.vegas.SampleNamesX">
                <ax21:nameList
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:nil="true">
                </ax21:nameList>
                <ax21:typeId>8311</ax21:typeId>
                <ax21:typeName>bar</ax21:typeName>
        </ns:return>
....
</ns:getSampleNamesResponse>


When the client receives this response, however, it throws this exception:

13:47:04,965 ERROR [STDERR] org.apache.axis2.AxisFault:
org.apache.axis2.databinding.ADBException: Unexpected subelement
typeId
13:47:04,965 ERROR [STDERR]         at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
13:47:04,965 ERROR [STDERR]         at
com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4832)
13:47:04,965 ERROR [STDERR]         at
com.vegas.stub.SampleServiceStub.getProductTypes(SampleServiceStub.java:1672)
13:47:04,965 ERROR [STDERR]         at
com.vegas.client.SampleClientUtil.getProductTypesStubCall(SampleClientUtil.java:488)
13:47:04,965 ERROR [STDERR]         at
com.vegas.client.SampleClientUtil.getProductTypes(SampleClientUtil.java:136)
13:47:04,965 ERROR [STDERR]         at
com.vegas.client.SampleClientUtil.getProductTypeList(SampleClientUtil.java:162)
13:47:04,965 ERROR [STDERR]         at
org.apache.jsp.SampleClient_jsp._jspService(SampleClient_jsp.java:85)
13:47:04,965 ERROR [STDERR]         at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
13:47:04,965 ERROR [STDERR]         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
13:47:04,965 ERROR [STDERR]         at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
13:47:04,965 ERROR [STDERR]         at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
13:47:04,965 ERROR [STDERR]         at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
13:47:04,965 ERROR [STDERR]         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
13:47:04,965 ERROR [STDERR]         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
13:47:04,965 ERROR [STDERR]         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
13:47:04,965 ERROR [STDERR]         at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
13:47:04,980 ERROR [STDERR]         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
13:47:04,980 ERROR [STDERR]         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
13:47:04,980 ERROR [STDERR]         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
13:47:04,980 ERROR [STDERR]         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
13:47:04,980 ERROR [STDERR]         at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
13:47:04,980 ERROR [STDERR]         at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
13:47:04,980 ERROR [STDERR]         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
13:47:04,980 ERROR [STDERR]         at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
13:47:04,980 ERROR [STDERR]         at
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
13:47:04,980 ERROR [STDERR]         at
org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:637)
13:47:04,980 ERROR [STDERR]         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
13:47:04,980 ERROR [STDERR]         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
13:47:04,980 ERROR [STDERR]         at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
13:47:04,980 ERROR [STDERR]         at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
13:47:04,980 ERROR [STDERR]         at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
13:47:04,980 ERROR [STDERR]         at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
13:47:04,980 ERROR [STDERR]         at java.lang.Thread.run(Thread.java:619)
13:47:04,980 ERROR [STDERR] Caused by: java.lang.Exception:
org.apache.axis2.databinding.ADBException: Unexpected subelement
typeId
13:47:04,980 ERROR [STDERR]         at
com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.java:609)
13:47:04,980 ERROR [STDERR]         at
com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4721)
13:47:04,980 ERROR [STDERR]         ... 31 more
13:47:04,980 ERROR [STDERR] Caused by:
org.apache.axis2.databinding.ADBException: Unexpected subelement
typeId
13:47:04,980 ERROR [STDERR]         at
com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.java:603)
13:47:04,980 ERROR [STDERR]         ... 32 more

Using the Eclipse debugger, I've confirmed that this exception occurs
for the element named "typeId" whose value is "1138" -- that is, the
first occurrence the parser encounters.

Any ideas what this might mean?  I'm mystified.

Thanks,
Nate Roe

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Seemingly strange result switching from Axis2 1.3 to 1.4

Posted by Martin Gainty <mg...@hotmail.com>.
Nate-

[WARN] Type {http://data.test.vegas.com/xsd}SampleNamesX missing!

where is the http://data.test.vegas.com/xsd
?
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 


> From: nate.roe@vegas.com
> To: axis-user@ws.apache.org
> Date: Thu, 14 Aug 2008 15:43:49 -0700
> Subject: RE: Seemingly strange result switching from Axis2 1.3 to 1.4
> 
> 
> As I investigated this problem I noticed that my service was using a List<T> for nameList.  Changing this code to an array instead fixed the problem.
> 
> Thanks for your suggestions.
> 
> - Nate
> 
> -----Original Message-----
> From: Kraus, David [mailto:dkraus@MicroStrategy.com]
> Sent: Tuesday, August 12, 2008 2:35 PM
> To: axis-user@ws.apache.org
> Subject: RE: Seemingly strange result switching from Axis2 1.3 to 1.4
> 
> Just a wild guess but:
> 
> The error "Unexpected subelement typeId" would lead me to want to
> investigate the handling of nil with "anyType" fields. It looks like the
> deserializer hit the typeId data, maybe while processing the previous
> nameList ("anyType") field. Try substituting another specific type for
> nameList.
> 
> -----Original Message-----
> From: nate roe [mailto:phlake@gmail.com]
> Sent: Tuesday, August 12, 2008 2:11 PM
> To: axis-user@ws.apache.org
> Subject: Re: Seemingly strange result switching from Axis2 1.3 to 1.4
> 
> Unfortunately, I can't easily provide all of this information.  I
> understand if I've provided too little for a complete picture, but I'm
> hoping for an avenue of inquiry... I'm not sure where to look or how
> to diagnose the problem.
> 
> On Mon, Aug 11, 2008 at 11:38 PM, Amila Suriarachchi
> <am...@gmail.com> wrote:
> > Can you send your full wsdl, request and response messages?
> >
> > thanks,
> > Amila.
> >
> > On Tue, Aug 12, 2008 at 4:02 AM, nate roe <ph...@gmail.com> wrote:
> >>
> >> I have a POJO service deployed on JBoss 4.05 under Axis2 v1.3.  I
> have
> >> modified this service to instead use Axis2 v1.4.  I then regenerated
> >> the client-side stub classes with Axis2 1.4's wsdl2java, using the
> new
> >> (and slightly different) WSDL.
> >>
> >> My client now has a parse error reading the response, but to my eye,
> >> the response looks logical and appears to follow the WSDL.
> >>
> >> In the WSDL, the response is defined as:
> >>
> >> <xs:element name="getSampleNamesResponse">
> >>        <xs:complexType>
> >>                <xs:sequence>
> >>                        <xs:element maxOccurs="unbounded"
> minOccurs="0"
> >> name="return"
> >> nillable="true" type="ax22:SampleNamesX"/>
> >>                </xs:sequence>
> >>        </xs:complexType>
> >> </xs:element>
> >>
> >>
> >> The response is an array of these elements:
> >>
> >> <xs:complexType name="SampleNamesX">
> >>        <xs:sequence>
> >>                <xs:element minOccurs="0" name="nameList"
> nillable="true"
> >> type="xs:anyType"/>
> >>                <xs:element minOccurs="0" name="typeId"
> nillable="true"
> >> type="xs:long"/>
> >>                <xs:element minOccurs="0" name="typeName"
> nillable="true"
> >> type="xs:string"/>
> >>        </xs:sequence>
> >> </xs:complexType>
> >>
> >>
> >> The SOAP response looks like this:
> >>
> >> <ns:getSampleNamesResponse xmlns:ns="http://vegas.com"
> >>        xmlns:ax21="http://vegas.com/xsd">
> >>        <ns:return type="com.vegas.SampleNamesX">
> >>                <ax21:nameList
> >>
> >>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>                        xsi:nil="true">
> >>                </ax21:nameList>
> >>                <ax21:typeId>1138</ax21:typeId>
> >>                <ax21:typeName>foo</ax21:typeName>
> >>        </ns:return>
> >>        <ns:return type="com.vegas.SampleNamesX">
> >>                <ax21:nameList
> >>
> >>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>                        xsi:nil="true">
> >>                </ax21:nameList>
> >>                <ax21:typeId>8311</ax21:typeId>
> >>                <ax21:typeName>bar</ax21:typeName>
> >>        </ns:return>
> >> ....
> >> </ns:getSampleNamesResponse>
> >>
> >>
> >> When the client receives this response, however, it throws this
> exception:
> >>
> >> 13:47:04,965 ERROR [STDERR] org.apache.axis2.AxisFault:
> >> org.apache.axis2.databinding.ADBException: Unexpected subelement
> >> typeId
> >> 13:47:04,965 ERROR [STDERR]         at
> >> org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> >> 13:47:04,965 ERROR [STDERR]         at
> >> com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4832)
> >> 13:47:04,965 ERROR [STDERR]         at
> >>
> >>
> com.vegas.stub.SampleServiceStub.getProductTypes(SampleServiceStub.java:
> 1672)
> >> 13:47:04,965 ERROR [STDERR]         at
> >>
> >>
> com.vegas.client.SampleClientUtil.getProductTypesStubCall(SampleClientUt
> il.java:488)
> >> 13:47:04,965 ERROR [STDERR]         at
> >>
> >>
> com.vegas.client.SampleClientUtil.getProductTypes(SampleClientUtil.java:
> 136)
> >> 13:47:04,965 ERROR [STDERR]         at
> >>
> >>
> com.vegas.client.SampleClientUtil.getProductTypeList(SampleClientUtil.ja
> va:162)
> >> 13:47:04,965 ERROR [STDERR]         at
> >> org.apache.jsp.SampleClient_jsp._jspService(SampleClient_jsp.java:85)
> >> 13:47:04,965 ERROR [STDERR]         at
> >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> >> 13:47:04,965 ERROR [STDERR]         at
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> >> 13:47:04,965 ERROR [STDERR]         at
> >>
> >>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:334)
> >> 13:47:04,965 ERROR [STDERR]         at
> >>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> >> 13:47:04,965 ERROR [STDERR]         at
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >> 13:47:04,965 ERROR [STDERR]         at
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> >> 13:47:04,965 ERROR [STDERR]         at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:252)
> >> 13:47:04,965 ERROR [STDERR]         at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
> >> 13:47:04,965 ERROR [STDERR]         at
> >>
> >>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
> r.java:96)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:213)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:178)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
> sociationValve.java:175)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
> ava:74)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnecti
> onValve.java:156)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingl
> eSignOn.java:637)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:107)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
> 48)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
> 9)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
> essConnection(Http11BaseProtocol.java:664)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
> .java:527)
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorker
> Thread.java:112)
> >> 13:47:04,980 ERROR [STDERR]         at
> >> java.lang.Thread.run(Thread.java:619)
> >> 13:47:04,980 ERROR [STDERR] Caused by: java.lang.Exception:
> >> org.apache.axis2.databinding.ADBException: Unexpected subelement
> >> typeId
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.ja
> va:609)
> >> 13:47:04,980 ERROR [STDERR]         at
> >> com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4721)
> >> 13:47:04,980 ERROR [STDERR]         ... 31 more
> >> 13:47:04,980 ERROR [STDERR] Caused by:
> >> org.apache.axis2.databinding.ADBException: Unexpected subelement
> >> typeId
> >> 13:47:04,980 ERROR [STDERR]         at
> >>
> >>
> com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.ja
> va:603)
> >> 13:47:04,980 ERROR [STDERR]         ... 32 more
> >>
> >> Using the Eclipse debugger, I've confirmed that this exception occurs
> >> for the element named "typeId" whose value is "1138" -- that is, the
> >> first occurrence the parser encounters.
> >>
> >> Any ideas what this might mean?  I'm mystified.
> >>
> >> Thanks,
> >> Nate Roe
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >
> >
> >
> > --
> > Amila Suriarachchi,
> > WSO2 Inc.
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 

_________________________________________________________________
Get Windows Live and get whatever you need, wherever you are.  Start here.
http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home_082008

RE: Seemingly strange result switching from Axis2 1.3 to 1.4

Posted by Nate Roe <na...@vegas.com>.
As I investigated this problem I noticed that my service was using a List<T> for nameList.  Changing this code to an array instead fixed the problem.

Thanks for your suggestions.

- Nate

-----Original Message-----
From: Kraus, David [mailto:dkraus@MicroStrategy.com]
Sent: Tuesday, August 12, 2008 2:35 PM
To: axis-user@ws.apache.org
Subject: RE: Seemingly strange result switching from Axis2 1.3 to 1.4

Just a wild guess but:

The error "Unexpected subelement typeId" would lead me to want to
investigate the handling of nil with "anyType" fields. It looks like the
deserializer hit the typeId data, maybe while processing the previous
nameList ("anyType") field. Try substituting another specific type for
nameList.

-----Original Message-----
From: nate roe [mailto:phlake@gmail.com]
Sent: Tuesday, August 12, 2008 2:11 PM
To: axis-user@ws.apache.org
Subject: Re: Seemingly strange result switching from Axis2 1.3 to 1.4

Unfortunately, I can't easily provide all of this information.  I
understand if I've provided too little for a complete picture, but I'm
hoping for an avenue of inquiry... I'm not sure where to look or how
to diagnose the problem.

On Mon, Aug 11, 2008 at 11:38 PM, Amila Suriarachchi
<am...@gmail.com> wrote:
> Can you send your full wsdl, request and response messages?
>
> thanks,
> Amila.
>
> On Tue, Aug 12, 2008 at 4:02 AM, nate roe <ph...@gmail.com> wrote:
>>
>> I have a POJO service deployed on JBoss 4.05 under Axis2 v1.3.  I
have
>> modified this service to instead use Axis2 v1.4.  I then regenerated
>> the client-side stub classes with Axis2 1.4's wsdl2java, using the
new
>> (and slightly different) WSDL.
>>
>> My client now has a parse error reading the response, but to my eye,
>> the response looks logical and appears to follow the WSDL.
>>
>> In the WSDL, the response is defined as:
>>
>> <xs:element name="getSampleNamesResponse">
>>        <xs:complexType>
>>                <xs:sequence>
>>                        <xs:element maxOccurs="unbounded"
minOccurs="0"
>> name="return"
>> nillable="true" type="ax22:SampleNamesX"/>
>>                </xs:sequence>
>>        </xs:complexType>
>> </xs:element>
>>
>>
>> The response is an array of these elements:
>>
>> <xs:complexType name="SampleNamesX">
>>        <xs:sequence>
>>                <xs:element minOccurs="0" name="nameList"
nillable="true"
>> type="xs:anyType"/>
>>                <xs:element minOccurs="0" name="typeId"
nillable="true"
>> type="xs:long"/>
>>                <xs:element minOccurs="0" name="typeName"
nillable="true"
>> type="xs:string"/>
>>        </xs:sequence>
>> </xs:complexType>
>>
>>
>> The SOAP response looks like this:
>>
>> <ns:getSampleNamesResponse xmlns:ns="http://vegas.com"
>>        xmlns:ax21="http://vegas.com/xsd">
>>        <ns:return type="com.vegas.SampleNamesX">
>>                <ax21:nameList
>>
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>                        xsi:nil="true">
>>                </ax21:nameList>
>>                <ax21:typeId>1138</ax21:typeId>
>>                <ax21:typeName>foo</ax21:typeName>
>>        </ns:return>
>>        <ns:return type="com.vegas.SampleNamesX">
>>                <ax21:nameList
>>
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>                        xsi:nil="true">
>>                </ax21:nameList>
>>                <ax21:typeId>8311</ax21:typeId>
>>                <ax21:typeName>bar</ax21:typeName>
>>        </ns:return>
>> ....
>> </ns:getSampleNamesResponse>
>>
>>
>> When the client receives this response, however, it throws this
exception:
>>
>> 13:47:04,965 ERROR [STDERR] org.apache.axis2.AxisFault:
>> org.apache.axis2.databinding.ADBException: Unexpected subelement
>> typeId
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>> 13:47:04,965 ERROR [STDERR]         at
>> com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4832)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
com.vegas.stub.SampleServiceStub.getProductTypes(SampleServiceStub.java:
1672)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
com.vegas.client.SampleClientUtil.getProductTypesStubCall(SampleClientUt
il.java:488)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
com.vegas.client.SampleClientUtil.getProductTypes(SampleClientUtil.java:
136)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
com.vegas.client.SampleClientUtil.getProductTypeList(SampleClientUtil.ja
va:162)
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.jsp.SampleClient_jsp._jspService(SampleClient_jsp.java:85)
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>> 13:47:04,965 ERROR [STDERR]         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:334)
>> 13:47:04,965 ERROR [STDERR]         at
>>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>> 13:47:04,965 ERROR [STDERR]         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:175)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:74)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnecti
onValve.java:156)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingl
eSignOn.java:637)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
>> 13:47:04,980 ERROR [STDERR]         at
>>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:664)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorker
Thread.java:112)
>> 13:47:04,980 ERROR [STDERR]         at
>> java.lang.Thread.run(Thread.java:619)
>> 13:47:04,980 ERROR [STDERR] Caused by: java.lang.Exception:
>> org.apache.axis2.databinding.ADBException: Unexpected subelement
>> typeId
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.ja
va:609)
>> 13:47:04,980 ERROR [STDERR]         at
>> com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4721)
>> 13:47:04,980 ERROR [STDERR]         ... 31 more
>> 13:47:04,980 ERROR [STDERR] Caused by:
>> org.apache.axis2.databinding.ADBException: Unexpected subelement
>> typeId
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.ja
va:603)
>> 13:47:04,980 ERROR [STDERR]         ... 32 more
>>
>> Using the Eclipse debugger, I've confirmed that this exception occurs
>> for the element named "typeId" whose value is "1138" -- that is, the
>> first occurrence the parser encounters.
>>
>> Any ideas what this might mean?  I'm mystified.
>>
>> Thanks,
>> Nate Roe
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Seemingly strange result switching from Axis2 1.3 to 1.4

Posted by "Kraus, David" <dk...@MicroStrategy.com>.
Just a wild guess but:

The error "Unexpected subelement typeId" would lead me to want to
investigate the handling of nil with "anyType" fields. It looks like the
deserializer hit the typeId data, maybe while processing the previous
nameList ("anyType") field. Try substituting another specific type for
nameList. 

-----Original Message-----
From: nate roe [mailto:phlake@gmail.com] 
Sent: Tuesday, August 12, 2008 2:11 PM
To: axis-user@ws.apache.org
Subject: Re: Seemingly strange result switching from Axis2 1.3 to 1.4

Unfortunately, I can't easily provide all of this information.  I
understand if I've provided too little for a complete picture, but I'm
hoping for an avenue of inquiry... I'm not sure where to look or how
to diagnose the problem.

On Mon, Aug 11, 2008 at 11:38 PM, Amila Suriarachchi
<am...@gmail.com> wrote:
> Can you send your full wsdl, request and response messages?
>
> thanks,
> Amila.
>
> On Tue, Aug 12, 2008 at 4:02 AM, nate roe <ph...@gmail.com> wrote:
>>
>> I have a POJO service deployed on JBoss 4.05 under Axis2 v1.3.  I
have
>> modified this service to instead use Axis2 v1.4.  I then regenerated
>> the client-side stub classes with Axis2 1.4's wsdl2java, using the
new
>> (and slightly different) WSDL.
>>
>> My client now has a parse error reading the response, but to my eye,
>> the response looks logical and appears to follow the WSDL.
>>
>> In the WSDL, the response is defined as:
>>
>> <xs:element name="getSampleNamesResponse">
>>        <xs:complexType>
>>                <xs:sequence>
>>                        <xs:element maxOccurs="unbounded"
minOccurs="0"
>> name="return"
>> nillable="true" type="ax22:SampleNamesX"/>
>>                </xs:sequence>
>>        </xs:complexType>
>> </xs:element>
>>
>>
>> The response is an array of these elements:
>>
>> <xs:complexType name="SampleNamesX">
>>        <xs:sequence>
>>                <xs:element minOccurs="0" name="nameList"
nillable="true"
>> type="xs:anyType"/>
>>                <xs:element minOccurs="0" name="typeId"
nillable="true"
>> type="xs:long"/>
>>                <xs:element minOccurs="0" name="typeName"
nillable="true"
>> type="xs:string"/>
>>        </xs:sequence>
>> </xs:complexType>
>>
>>
>> The SOAP response looks like this:
>>
>> <ns:getSampleNamesResponse xmlns:ns="http://vegas.com"
>>        xmlns:ax21="http://vegas.com/xsd">
>>        <ns:return type="com.vegas.SampleNamesX">
>>                <ax21:nameList
>>
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>                        xsi:nil="true">
>>                </ax21:nameList>
>>                <ax21:typeId>1138</ax21:typeId>
>>                <ax21:typeName>foo</ax21:typeName>
>>        </ns:return>
>>        <ns:return type="com.vegas.SampleNamesX">
>>                <ax21:nameList
>>
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>                        xsi:nil="true">
>>                </ax21:nameList>
>>                <ax21:typeId>8311</ax21:typeId>
>>                <ax21:typeName>bar</ax21:typeName>
>>        </ns:return>
>> ....
>> </ns:getSampleNamesResponse>
>>
>>
>> When the client receives this response, however, it throws this
exception:
>>
>> 13:47:04,965 ERROR [STDERR] org.apache.axis2.AxisFault:
>> org.apache.axis2.databinding.ADBException: Unexpected subelement
>> typeId
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>> 13:47:04,965 ERROR [STDERR]         at
>> com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4832)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
com.vegas.stub.SampleServiceStub.getProductTypes(SampleServiceStub.java:
1672)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
com.vegas.client.SampleClientUtil.getProductTypesStubCall(SampleClientUt
il.java:488)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
com.vegas.client.SampleClientUtil.getProductTypes(SampleClientUtil.java:
136)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
com.vegas.client.SampleClientUtil.getProductTypeList(SampleClientUtil.ja
va:162)
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.jsp.SampleClient_jsp._jspService(SampleClient_jsp.java:85)
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>> 13:47:04,965 ERROR [STDERR]         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:334)
>> 13:47:04,965 ERROR [STDERR]         at
>>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>> 13:47:04,965 ERROR [STDERR]         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>>
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:175)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:74)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnecti
onValve.java:156)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingl
eSignOn.java:637)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
>> 13:47:04,980 ERROR [STDERR]         at
>>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:664)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorker
Thread.java:112)
>> 13:47:04,980 ERROR [STDERR]         at
>> java.lang.Thread.run(Thread.java:619)
>> 13:47:04,980 ERROR [STDERR] Caused by: java.lang.Exception:
>> org.apache.axis2.databinding.ADBException: Unexpected subelement
>> typeId
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.ja
va:609)
>> 13:47:04,980 ERROR [STDERR]         at
>> com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4721)
>> 13:47:04,980 ERROR [STDERR]         ... 31 more
>> 13:47:04,980 ERROR [STDERR] Caused by:
>> org.apache.axis2.databinding.ADBException: Unexpected subelement
>> typeId
>> 13:47:04,980 ERROR [STDERR]         at
>>
>>
com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.ja
va:603)
>> 13:47:04,980 ERROR [STDERR]         ... 32 more
>>
>> Using the Eclipse debugger, I've confirmed that this exception occurs
>> for the element named "typeId" whose value is "1138" -- that is, the
>> first occurrence the parser encounters.
>>
>> Any ideas what this might mean?  I'm mystified.
>>
>> Thanks,
>> Nate Roe
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Seemingly strange result switching from Axis2 1.3 to 1.4

Posted by nate roe <ph...@gmail.com>.
Unfortunately, I can't easily provide all of this information.  I
understand if I've provided too little for a complete picture, but I'm
hoping for an avenue of inquiry... I'm not sure where to look or how
to diagnose the problem.

On Mon, Aug 11, 2008 at 11:38 PM, Amila Suriarachchi
<am...@gmail.com> wrote:
> Can you send your full wsdl, request and response messages?
>
> thanks,
> Amila.
>
> On Tue, Aug 12, 2008 at 4:02 AM, nate roe <ph...@gmail.com> wrote:
>>
>> I have a POJO service deployed on JBoss 4.05 under Axis2 v1.3.  I have
>> modified this service to instead use Axis2 v1.4.  I then regenerated
>> the client-side stub classes with Axis2 1.4's wsdl2java, using the new
>> (and slightly different) WSDL.
>>
>> My client now has a parse error reading the response, but to my eye,
>> the response looks logical and appears to follow the WSDL.
>>
>> In the WSDL, the response is defined as:
>>
>> <xs:element name="getSampleNamesResponse">
>>        <xs:complexType>
>>                <xs:sequence>
>>                        <xs:element maxOccurs="unbounded" minOccurs="0"
>> name="return"
>> nillable="true" type="ax22:SampleNamesX"/>
>>                </xs:sequence>
>>        </xs:complexType>
>> </xs:element>
>>
>>
>> The response is an array of these elements:
>>
>> <xs:complexType name="SampleNamesX">
>>        <xs:sequence>
>>                <xs:element minOccurs="0" name="nameList" nillable="true"
>> type="xs:anyType"/>
>>                <xs:element minOccurs="0" name="typeId" nillable="true"
>> type="xs:long"/>
>>                <xs:element minOccurs="0" name="typeName" nillable="true"
>> type="xs:string"/>
>>        </xs:sequence>
>> </xs:complexType>
>>
>>
>> The SOAP response looks like this:
>>
>> <ns:getSampleNamesResponse xmlns:ns="http://vegas.com"
>>        xmlns:ax21="http://vegas.com/xsd">
>>        <ns:return type="com.vegas.SampleNamesX">
>>                <ax21:nameList
>>
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>                        xsi:nil="true">
>>                </ax21:nameList>
>>                <ax21:typeId>1138</ax21:typeId>
>>                <ax21:typeName>foo</ax21:typeName>
>>        </ns:return>
>>        <ns:return type="com.vegas.SampleNamesX">
>>                <ax21:nameList
>>
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>                        xsi:nil="true">
>>                </ax21:nameList>
>>                <ax21:typeId>8311</ax21:typeId>
>>                <ax21:typeName>bar</ax21:typeName>
>>        </ns:return>
>> ....
>> </ns:getSampleNamesResponse>
>>
>>
>> When the client receives this response, however, it throws this exception:
>>
>> 13:47:04,965 ERROR [STDERR] org.apache.axis2.AxisFault:
>> org.apache.axis2.databinding.ADBException: Unexpected subelement
>> typeId
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>> 13:47:04,965 ERROR [STDERR]         at
>> com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4832)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>> com.vegas.stub.SampleServiceStub.getProductTypes(SampleServiceStub.java:1672)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>> com.vegas.client.SampleClientUtil.getProductTypesStubCall(SampleClientUtil.java:488)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>> com.vegas.client.SampleClientUtil.getProductTypes(SampleClientUtil.java:136)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>> com.vegas.client.SampleClientUtil.getProductTypeList(SampleClientUtil.java:162)
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.jsp.SampleClient_jsp._jspService(SampleClient_jsp.java:85)
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>> 13:47:04,965 ERROR [STDERR]         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>> 13:47:04,965 ERROR [STDERR]         at
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>> 13:47:04,965 ERROR [STDERR]         at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> 13:47:04,965 ERROR [STDERR]         at
>>
>> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:637)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> 13:47:04,980 ERROR [STDERR]         at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
>> 13:47:04,980 ERROR [STDERR]         at
>> java.lang.Thread.run(Thread.java:619)
>> 13:47:04,980 ERROR [STDERR] Caused by: java.lang.Exception:
>> org.apache.axis2.databinding.ADBException: Unexpected subelement
>> typeId
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.java:609)
>> 13:47:04,980 ERROR [STDERR]         at
>> com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4721)
>> 13:47:04,980 ERROR [STDERR]         ... 31 more
>> 13:47:04,980 ERROR [STDERR] Caused by:
>> org.apache.axis2.databinding.ADBException: Unexpected subelement
>> typeId
>> 13:47:04,980 ERROR [STDERR]         at
>>
>> com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.java:603)
>> 13:47:04,980 ERROR [STDERR]         ... 32 more
>>
>> Using the Eclipse debugger, I've confirmed that this exception occurs
>> for the element named "typeId" whose value is "1138" -- that is, the
>> first occurrence the parser encounters.
>>
>> Any ideas what this might mean?  I'm mystified.
>>
>> Thanks,
>> Nate Roe
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Seemingly strange result switching from Axis2 1.3 to 1.4

Posted by Amila Suriarachchi <am...@gmail.com>.
Can you send your full wsdl, request and response messages?

thanks,
Amila.

On Tue, Aug 12, 2008 at 4:02 AM, nate roe <ph...@gmail.com> wrote:

> I have a POJO service deployed on JBoss 4.05 under Axis2 v1.3.  I have
> modified this service to instead use Axis2 v1.4.  I then regenerated
> the client-side stub classes with Axis2 1.4's wsdl2java, using the new
> (and slightly different) WSDL.
>
> My client now has a parse error reading the response, but to my eye,
> the response looks logical and appears to follow the WSDL.
>
> In the WSDL, the response is defined as:
>
> <xs:element name="getSampleNamesResponse">
>        <xs:complexType>
>                <xs:sequence>
>                        <xs:element maxOccurs="unbounded" minOccurs="0"
> name="return"
> nillable="true" type="ax22:SampleNamesX"/>
>                </xs:sequence>
>        </xs:complexType>
> </xs:element>
>
>
> The response is an array of these elements:
>
> <xs:complexType name="SampleNamesX">
>        <xs:sequence>
>                <xs:element minOccurs="0" name="nameList" nillable="true"
> type="xs:anyType"/>
>                <xs:element minOccurs="0" name="typeId" nillable="true"
> type="xs:long"/>
>                <xs:element minOccurs="0" name="typeName" nillable="true"
> type="xs:string"/>
>        </xs:sequence>
> </xs:complexType>
>
>
> The SOAP response looks like this:
>
> <ns:getSampleNamesResponse xmlns:ns="http://vegas.com"
>        xmlns:ax21="http://vegas.com/xsd">
>        <ns:return type="com.vegas.SampleNamesX">
>                <ax21:nameList
>                        xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
>                        xsi:nil="true">
>                </ax21:nameList>
>                <ax21:typeId>1138</ax21:typeId>
>                <ax21:typeName>foo</ax21:typeName>
>        </ns:return>
>        <ns:return type="com.vegas.SampleNamesX">
>                <ax21:nameList
>                        xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
>                        xsi:nil="true">
>                </ax21:nameList>
>                <ax21:typeId>8311</ax21:typeId>
>                <ax21:typeName>bar</ax21:typeName>
>        </ns:return>
> ....
> </ns:getSampleNamesResponse>
>
>
> When the client receives this response, however, it throws this exception:
>
> 13:47:04,965 ERROR [STDERR] org.apache.axis2.AxisFault:
> org.apache.axis2.databinding.ADBException: Unexpected subelement
> typeId
> 13:47:04,965 ERROR [STDERR]         at
> org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> 13:47:04,965 ERROR [STDERR]         at
> com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4832)
> 13:47:04,965 ERROR [STDERR]         at
>
> com.vegas.stub.SampleServiceStub.getProductTypes(SampleServiceStub.java:1672)
> 13:47:04,965 ERROR [STDERR]         at
>
> com.vegas.client.SampleClientUtil.getProductTypesStubCall(SampleClientUtil.java:488)
> 13:47:04,965 ERROR [STDERR]         at
>
> com.vegas.client.SampleClientUtil.getProductTypes(SampleClientUtil.java:136)
> 13:47:04,965 ERROR [STDERR]         at
>
> com.vegas.client.SampleClientUtil.getProductTypeList(SampleClientUtil.java:162)
> 13:47:04,965 ERROR [STDERR]         at
> org.apache.jsp.SampleClient_jsp._jspService(SampleClient_jsp.java:85)
> 13:47:04,965 ERROR [STDERR]         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> 13:47:04,965 ERROR [STDERR]         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 13:47:04,965 ERROR [STDERR]         at
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
> 13:47:04,965 ERROR [STDERR]         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> 13:47:04,965 ERROR [STDERR]         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> 13:47:04,965 ERROR [STDERR]         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 13:47:04,965 ERROR [STDERR]         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 13:47:04,965 ERROR [STDERR]         at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 13:47:04,965 ERROR [STDERR]         at
>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:637)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 13:47:04,980 ERROR [STDERR]         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 13:47:04,980 ERROR [STDERR]         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 13:47:04,980 ERROR [STDERR]         at
>
> org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
> 13:47:04,980 ERROR [STDERR]         at
> java.lang.Thread.run(Thread.java:619)
> 13:47:04,980 ERROR [STDERR] Caused by: java.lang.Exception:
> org.apache.axis2.databinding.ADBException: Unexpected subelement
> typeId
> 13:47:04,980 ERROR [STDERR]         at
>
> com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.java:609)
> 13:47:04,980 ERROR [STDERR]         at
> com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4721)
> 13:47:04,980 ERROR [STDERR]         ... 31 more
> 13:47:04,980 ERROR [STDERR] Caused by:
> org.apache.axis2.databinding.ADBException: Unexpected subelement
> typeId
> 13:47:04,980 ERROR [STDERR]         at
>
> com.vegas.getSampleNamesResponse$Factory.parse(getSampleNamesResponse.java:603)
> 13:47:04,980 ERROR [STDERR]         ... 32 more
>
> Using the Eclipse debugger, I've confirmed that this exception occurs
> for the element named "typeId" whose value is "1138" -- that is, the
> first occurrence the parser encounters.
>
> Any ideas what this might mean?  I'm mystified.
>
> Thanks,
> Nate Roe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.