You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Matthew Bailey (JIRA)" <ji...@apache.org> on 2007/08/03 22:02:53 UTC

[jira] Commented: (AXIS2-3065) org.apache.xmlbeans.impl.values.XmlComplexContentImpl

    [ https://issues.apache.org/jira/browse/AXIS2-3065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517621 ] 

Matthew Bailey commented on AXIS2-3065:
---------------------------------------

The Axis2 Mailing List thread:

http://marc.info/?l=axis-user&m=118615737704248&w=2

> org.apache.xmlbeans.impl.values.XmlComplexContentImpl
> -----------------------------------------------------
>
>                 Key: AXIS2-3065
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3065
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen, databinding, Tools
>    Affects Versions: 1.3, 1.2, nightly
>         Environment: WinXP (SP2), Web Logic 8 (sp4)
>            Reporter: Matthew Bailey
>         Attachments: BaseTypes.xsd, IntegrationServices.wsdl, IntegrationTypes.xsd, service.zip
>
>
> To simplify I have retained the same directory structure as the samples and deployed the aar in the exploded Axis2 war.
> # Setup #
>      * Generate service (server) using WSDL2Java
> %AXIS2_HOME%/bin/WSDL2Java -uri resources/META-INF/IntegrationServices.wsdl -p samples.quickstart.service.xmlbeans -d xmlbeans -s -ss -sd -ssi -o build/service
>      * Build the project
>      * Copy %ProjectHome%\build\service\build\lib\IntegrationPortTypeImplService.aar to the axis2 exploded war service directory (%WebLogicAppDir%\axis2\WEB-INF\services)
>      * Copy %ProjectHome%\build\service\build\lib\XBeans-packaged.jar to %WebLogicAppDir%\axis2\WEB-INF\lib
> WSDL and generated binding code attached.
> The service code is nothing more than an output statement w/ the original throw exception statement left in there, just trying to get into the function. I was able to successfully implement the client/service using adb.
> # Testing #
>      * Create/Validate request using soapUI
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bean="http://strongauth.zionsbank.com/webservices/beans">
>    <soapenv:Header/>
>    <soapenv:Body>
>       <bean:ValidatePasswordRequest>
>          <!--Zero or more repetitions:-->
>          <credentials>
>             <type>CustomerUserId</type>
>             <value>user_id</value>
>          </credentials>
>          <credentials>
>             <type>CustomerPassword</type>
>             <value>password</value>
>          </credentials>
>       </bean:ValidatePasswordRequest>
>    </soapenv:Body>
> </soapenv:Envelope>
>      * Post to service, get response
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Body>
>       <soapenv:Fault>
>          <faultcode>soapenv:Client</faultcode>
>  
> <faultstring>org.apache.xmlbeans.impl.values.XmlComplexContentImpl</faul
> tstring>
>          <detail>
>             <Exception>org.apache.axis2.AxisFault:
> org.apache.xmlbeans.impl.values.XmlComplexContentImpl
>  at
> org.apache.axis2.AxisFault.makeFault(Ljava.lang.Throwable;)Lorg.apache.a
> xis2.AxisFault;(AxisFault.java:417)
>  at
> samples.quickstart.service.xmlbeans.IntegrationPortTypeImplServiceMessag
> eReceiverInOut.fromOM(Lorg.apache.axiom.om.OMElement;Ljava.lang.Class;Lj
> ava.util.Map;)Lorg.apache.xmlbeans.XmlObject;(IntegrationPortTypeImplSer
> viceMessageReceiverInOut.java:147)
>  at
> samples.quickstart.service.xmlbeans.IntegrationPortTypeImplServiceMessag
> eReceiverInOut.invokeBusinessLogic(Lorg.apache.axis2.context.MessageCont
> ext;Lorg.apache.axis2.context.MessageContext;)V(IntegrationPortTypeImplS
> erviceMessageReceiverInOut.java:42)
>  at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusine
> ssLogic(Lorg.apache.axis2.context.MessageContext;)V(AbstractInOutSyncMes
> sageReceiver.java:42)
>  at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(Lorg.apache.a
> xis2.context.MessageContext;)V(AbstractMessageReceiver.java:95)
>  at
> org.apache.axis2.engine.AxisEngine.receive(Lorg.apache.axis2.context.Mes
> sageContext;)Lorg.apache.axis2.engine.Handler$InvocationResponse;(AxisEn
> gine.java:145)
>  at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
> t(Lorg.apache.axis2.context.MessageContext;Ljava.io.InputStream;Ljava.io
> .OutputStream;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)Lor
> g.apache.axis2.engine.Handler$InvocationResponse;(HTTPTransportUtils.jav
> a:276)
>  at
> org.apache.axis2.transport.http.AxisServlet.doPost(Ljavax.servlet.http.H
> ttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(AxisServlet
> .java:119)
>  at
> javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRe
> quest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760)
>  at
> javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Lja
> vax.servlet.ServletResponse;)V(HttpServlet.java:853)
>  at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()L
> java.lang.Object;(ServletStubImpl.java:1006)
>  at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.S
> ervletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.
> FilterChainImpl;)V(ServletStubImpl.java:419)
>  at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.S
> ervletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315
> )
>  at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
> un()Ljava.lang.Object;(WebAppServletContext.java:6718)
>  at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.secur
> ity.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.
> Object;(AuthenticatedSubject.java:321)
>  at
> weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.i
> nternal.AuthenticatedSubject;Lweblogic.security.acl.internal.Authenticat
> edSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityMa
> nager.java:121)
>  at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.s
> ervlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletRes
> ponseImpl;)V(WebAppServletContext.java:3764)
>  at
> weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.Ex
> ecuteThread;)V(ServletRequestImpl.java:2644)
>  at
> weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V
> (ExecuteThread.java:219)
>  at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
>  at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown
> Source)
> Caused by: java.lang.ClassCastException:
> org.apache.xmlbeans.impl.values.XmlComplexContentImpl
>  at
> com.zionsbank.strongauth.webservices.beans.ValidatePasswordRequestDocume
> nt$Factory.parse(Ljavax.xml.stream.XMLStreamReader;Lorg.apache.xmlbeans.
> XmlOptions;)Lcom.zionsbank.strongauth.webservices.beans.ValidatePassword
> RequestDocument;(ValidatePasswordRequestDocument.java:86)
>  at
> samples.quickstart.service.xmlbeans.IntegrationPortTypeImplServiceMessag
> eReceiverInOut.fromOM(Lorg.apache.axiom.om.OMElement;Ljava.lang.Class;Lj
> ava.util.Map;)Lorg.apache.xmlbeans.XmlObject;(IntegrationPortTypeImplSer
> viceMessageReceiverInOut.java:123)
>  ... 19 more</Exception>
>          </detail>
>       </soapenv:Fault>
>    </soapenv:Body>
> </soapenv:Envelope>
> # Manually generating using XML Beans 2.3.0 scomp #
> As a side note: I did notice that when I was attempting to generate the XML Binding code manually (using scomp), there were some things that were not being generated, namely org.w3.www._2004._06.xmlmime.*, org.xmlsoap.schemas.soap.encoding.*, both source and resources. I attempted to merge the old resources w/ the new that I generated and replace the existing source files with the generated ones and was unsuccefull at getting this to work. Recieved a null pointer on the server side (Axis2 Servlet) and the returning soap message was an html page stating "Internal server error".
> # Server Exception
> <Aug 2, 2007 2:19:07 PM MDT> <Error> <HTTP> <BEA-101020> <[ServletContext(id=5987488,name=axis2,context-path=/axis2)] Servlet failed with Exception
> java.lang.NullPointerException
>  at org.apache.axis2.transport.http.AxisServlet.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(AxisServlet.java:170)
>  at javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760)
>  at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
>  at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1006)
>  at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)
>  at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315)
>  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6718)
>  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
>  at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:121)
>  at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3764)
>  at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2644)
>  at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
>  at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
>  at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
> # Soap Post Response (posted soap message same as above using soapUI)
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html>
>   <head>
>     
> <base href="http://localhost:7001/axis2/"/>
>     <title>Axis2 :: Internal server error</title>
>     <link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css"/>
>     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
>   </head>
>   <body>
>     <table width="100%">
>       <tr>
>         <td align="left"><img src="axis2-web/images/asf-logo.gif" alt=""/></td>
>         <td align="right"><img src="axis2-web/images/axis_l.jpg" alt=""/></td>
>       </tr>
>     </table>
>     <table width="100%">
>       <tr>
>         <td>
>           <h1>Internal server error</h1>
>           <br/>
>           <br/>
>           <br/>
>           <br/>
>         </td>
>       </tr>
>       <tr><td align="center"><a href="axis2-web/index.jsp">home</a></td></tr>
>     </table>
>     <hr/>
>     <table width="100%">
>       <tr><td>
>         <table width="950px">
>           <tr><td><hr size="1" noshade=""/></td></tr>
>           <tr>
>             <td align="center">Copyright &#169; 1999-2006, The Apache Software Foundation<br/>Licensed under the <a
>               href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</td>
>           </tr>
>         </table>
>       </td>
>         <td>&nbsp;</td>
>       </tr>
>     </table>
>   </body>
> </html>

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org