[
https://issues.apache.org/jira/browse/AXIS2-3259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533690
]
Etienne commented on AXIS2-3259:
--------------------------------
Ok, I see my error... i did let the soap envelope in the test file which is
wrong.
So, i'm not able to reproduce the issue with your test program.
Here is the full exception from my application:
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement contentType
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
com.instranet.services.knowledgebase.KnowledgeBaseServiceStub.fromOM(KnowledgeBaseServiceStub.java:5805)
at
com.instranet.services.knowledgebase.KnowledgeBaseServiceStub.viewBinaryFiles(KnowledgeBaseServiceStub.java:1462)
at
com.instranet.services.clientlib.axis2_13.kb.Axis2KBService.viewBinaryFile(Axis2KBService.java:457)
at
com.instranet.services.clientlib.axis2_13.Axis2Wrapper.viewBinaryFile(Axis2Wrapper.java:93)
at
com.instranet.services.clientlib.InstraClientLib.viewBinaryFile(InstraClientLib.java:212)
at
org.apache.jsp.binaryfilerenderer_jsp._jspService(binaryfilerenderer_jsp.java:77)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
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:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:675)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException:
Unexpected subelement contentType
at
com.instranet.services.knowledgebase.ArrayOfBinaryFile$Factory.parse(ArrayOfBinaryFile.java:567)
at
com.instranet.services.knowledgebase.ViewBinaryFilesResponse$Factory.parse(ViewBinaryFilesResponse.java:405)
at
com.instranet.services.knowledgebase.KnowledgeBaseServiceStub.fromOM(KnowledgeBaseServiceStub.java:5752)
... 26 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement
contentType
at
com.instranet.services.knowledgebase.ArrayOfBinaryFile$Factory.parse(ArrayOfBinaryFile.java:563)
... 28 more
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
The fact is that with two responses that differs only in the values, not in the
xml structure, one is succesfuly parsed and the other one not (the latest
attached).
I'm attaching the capture of TCP seesion (with CommView), the first one that is
OK, the second that leads to the exception above.
> ADBException: Unexpected subelement contentType
> -----------------------------------------------
>
> Key: AXIS2-3259
> URL: https://issues.apache.org/jira/browse/AXIS2-3259
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.3
> Environment: WSDL2java generated client
> Reporter: Etienne
> Attachments: knowledgebase.tar, KnowledgeBaseService.wsdl,
> request.xml, response.xml, soapbody.xml
>
>
> With axis2 I have an issue with a complex type containing a
> base64Binary element:
> <xsd:complexType name="BinaryFile">
> <xsd:sequence>
> <xsd:element minOccurs="0" name="content" nillable="true"
> type="xsd:base64Binary"/>
> <xsd:element minOccurs="0" name="contentType" nillable="true"
> type="xsd:string"/>
> <xsd:element minOccurs="0" name="id" type="xsd:int"/>
> <xsd:element minOccurs="0" name="name" nillable="true" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> When the client fails with the following exception;
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> Unexpected subelement contentType
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> at com.foo.MyServiceStub.fromOM(KnowledgeBaseServiceStub.java:5805)
> When switching the server to use MTOM (only possible for testing), the issue
> disappear.
> Here is the discussion on axis-user:
> http://marc.info/?t=119142622400004&r=1&w=4
> Please see attached wsdl, request and response.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]