You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2012/05/07 21:36:48 UTC

[jira] [Commented] (AXIOM-421) Client stub creating empty node with values in request

    [ https://issues.apache.org/jira/browse/AXIOM-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269930#comment-13269930 ] 

Hudson commented on AXIOM-421:
------------------------------

Integrated in ws-axiom-trunk #944 (See [https://builds.apache.org/job/ws-axiom-trunk/944/])
    AXIOM-421: Fixed a bug in AbstractXMLStreamWriter#writeStartElement(String, String) and AbstractXMLStreamWriter#writeEmptyElement(String, String) that causes a permutation of the local name and the namespace URI. AbstractXMLStreamWriter is used by the StAX dialects for BEA's reference implementation and IBM's XLXP 1. Other StAX implementations are not affected.

A regression test for this issue will be provided by AXIOM-420. (Revision 1335168)

     Result = SUCCESS
veithen : 
Files : 
* /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/AbstractXMLStreamWriter.java

                
> Client stub creating empty node with values in request
> ------------------------------------------------------
>
>                 Key: AXIOM-421
>                 URL: https://issues.apache.org/jira/browse/AXIOM-421
>             Project: Axiom
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 1.2.11, 1.2.12
>         Environment: Windows 2003
>            Reporter: Ashish Mantri
>            Assignee: Andreas Veithen
>             Fix For: 1.2.14
>
>
> 1)	Generated client stub from WSDL using wsdl2java axis2. 
> 2)	Created request object and assigned values to it.
> 3)	Called client stub for particular operation with request object as input parameter.
> 4)	Getting below error.
> *** Error
> java.rmi.UnmarshalException: Failed to marshal error response: 'org.apache.axis2.AxisFault: org.apache.xmlbeans.XmlException: error: The content of elements must consist of well-formed character data or markup.' because exception ; nested exception is: 
>       java.io.NotSerializableException: org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultCodeImpl
>       at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
>       at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
>       at implementation.ServicesBean_wrenz2_EOImpl_1034_WLStub.retreiveProfile(Unknown Source)
>       at testclient.Search.main(SearchNM1.java:152)
> Caused by: java.io.NotSerializableException: org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultCodeImpl
>       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
>       at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>       at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
>       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>       at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:618)
>       at weblogic.rjvm.MsgAbbrevOutputStream.sendThrowable(MsgAbbrevOutputStream.java:471)
>       at weblogic.rmi.internal.BasicServerRef.handleThrowable(BasicServerRef.java:789)
>       at weblogic.rmi.internal.BasicServerRef.postInvoke(BasicServerRef.java:728)
>       at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:537)
>       at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
>       at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
>       at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
> After putting debug traces in client stub, I found that XML request is not getting formed correctly.
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns1:ProfileRequest xmlns:ns1="http://www.i.com/Services/">
> <Request xmlns="">
> <>1234</>
> <>asda</>
> </Request>
> <IdentifierInfo xmlns="">
> <>1232131</>
> </IdentifierInfo>
> </ns1:ProfileRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> Seems like Client stub is not generating proper request format,  how can we resolved this as Client stub is auto generated file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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