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 "Nick Gallardo (JIRA)" <ji...@apache.org> on 2006/07/19 23:49:13 UTC

[jira] Created: (AXIS2-912) JAXWS: Unable to serialize DOMSource blocks

JAXWS: Unable to serialize DOMSource blocks
-------------------------------------------

                 Key: AXIS2-912
                 URL: http://issues.apache.org/jira/browse/AXIS2-912
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
            Reporter: Nick Gallardo


I've added some tests for additional datatypes to the BlockTests.  I added one for SAXSource, which works fine, and one for DOMSource which fails.  The failure occurs when we try to simulate how the Message object will get at the Block content.  The failure looks like this:

    <error message="java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName" type="org.apache.axiom.om.OMException">org.apache.axiom.om.OMException: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
	at org.apache.axiom.om.impl.llom.OMDocumentImpl.buildNext(OMDocumentImpl.java:183)
	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getFirstOMChild(OMDocumentImpl.java:255)
	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getChildren(OMDocumentImpl.java:231)
	at org.apache.axis2.jaxws.message.util.Reader2Writer.outputTo(Reader2Writer.java:58)
	at org.apache.axis2.jaxws.message.util.Reader2Writer.getAsString(Reader2Writer.java:74)
	at org.apache.axis2.jaxws.message.BlockTests.testDOMSourceOutflow(BlockTests.java:938)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
	at junit.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
	at javax.xml.namespace.QName.&lt;init&gt;(Unknown Source)
	at com.ctc.wstx.dom.DOMWrappingReader.constructQName(DOMWrappingReader.java:1284)
	at com.ctc.wstx.dom.DOMWrappingReader.getName(DOMWrappingReader.java:460)
	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:130)
	... 27 more
</error>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Assigned: (AXIS2-912) JAXWS: Unable to serialize DOMSource blocks

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-912?page=all ]

Rich Scheuerle reassigned AXIS2-912:
------------------------------------

    Assignee: Rich Scheuerle

> JAXWS: Unable to serialize DOMSource blocks
> -------------------------------------------
>
>                 Key: AXIS2-912
>                 URL: http://issues.apache.org/jira/browse/AXIS2-912
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Nick Gallardo
>         Assigned To: Rich Scheuerle
>         Attachments: patch.txt
>
>
> I've added some tests for additional datatypes to the BlockTests.  I added one for SAXSource, which works fine, and one for DOMSource which fails.  The failure occurs when we try to simulate how the Message object will get at the Block content.  The failure looks like this:
>     <error message="java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName" type="org.apache.axiom.om.OMException">org.apache.axiom.om.OMException: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.buildNext(OMDocumentImpl.java:183)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getFirstOMChild(OMDocumentImpl.java:255)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getChildren(OMDocumentImpl.java:231)
> 	at org.apache.axis2.jaxws.message.util.Reader2Writer.outputTo(Reader2Writer.java:58)
> 	at org.apache.axis2.jaxws.message.util.Reader2Writer.getAsString(Reader2Writer.java:74)
> 	at org.apache.axis2.jaxws.message.BlockTests.testDOMSourceOutflow(BlockTests.java:938)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
> Caused by: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
> 	at javax.xml.namespace.QName.&lt;init&gt;(Unknown Source)
> 	at com.ctc.wstx.dom.DOMWrappingReader.constructQName(DOMWrappingReader.java:1284)
> 	at com.ctc.wstx.dom.DOMWrappingReader.getName(DOMWrappingReader.java:460)
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:130)
> 	... 27 more
> </error>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (AXIS2-912) JAXWS: Unable to serialize DOMSource blocks

Posted by "Nick Gallardo (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-912?page=all ]

Nick Gallardo updated AXIS2-912:
--------------------------------

    Attachment: patch.txt

A patch containing the two new tests.

> JAXWS: Unable to serialize DOMSource blocks
> -------------------------------------------
>
>                 Key: AXIS2-912
>                 URL: http://issues.apache.org/jira/browse/AXIS2-912
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Nick Gallardo
>         Attachments: patch.txt
>
>
> I've added some tests for additional datatypes to the BlockTests.  I added one for SAXSource, which works fine, and one for DOMSource which fails.  The failure occurs when we try to simulate how the Message object will get at the Block content.  The failure looks like this:
>     <error message="java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName" type="org.apache.axiom.om.OMException">org.apache.axiom.om.OMException: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.buildNext(OMDocumentImpl.java:183)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getFirstOMChild(OMDocumentImpl.java:255)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getChildren(OMDocumentImpl.java:231)
> 	at org.apache.axis2.jaxws.message.util.Reader2Writer.outputTo(Reader2Writer.java:58)
> 	at org.apache.axis2.jaxws.message.util.Reader2Writer.getAsString(Reader2Writer.java:74)
> 	at org.apache.axis2.jaxws.message.BlockTests.testDOMSourceOutflow(BlockTests.java:938)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
> Caused by: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
> 	at javax.xml.namespace.QName.&lt;init&gt;(Unknown Source)
> 	at com.ctc.wstx.dom.DOMWrappingReader.constructQName(DOMWrappingReader.java:1284)
> 	at com.ctc.wstx.dom.DOMWrappingReader.getName(DOMWrappingReader.java:460)
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:130)
> 	... 27 more
> </error>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Resolved: (AXIS2-912) JAXWS: Unable to serialize DOMSource blocks

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-912?page=all ]

Rich Scheuerle resolved AXIS2-912.
----------------------------------

    Resolution: Fixed

> JAXWS: Unable to serialize DOMSource blocks
> -------------------------------------------
>
>                 Key: AXIS2-912
>                 URL: http://issues.apache.org/jira/browse/AXIS2-912
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Nick Gallardo
>         Assigned To: Rich Scheuerle
>         Attachments: patch.txt, patch2.txt
>
>
> I've added some tests for additional datatypes to the BlockTests.  I added one for SAXSource, which works fine, and one for DOMSource which fails.  The failure occurs when we try to simulate how the Message object will get at the Block content.  The failure looks like this:
>     <error message="java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName" type="org.apache.axiom.om.OMException">org.apache.axiom.om.OMException: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.buildNext(OMDocumentImpl.java:183)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getFirstOMChild(OMDocumentImpl.java:255)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getChildren(OMDocumentImpl.java:231)
> 	at org.apache.axis2.jaxws.message.util.Reader2Writer.outputTo(Reader2Writer.java:58)
> 	at org.apache.axis2.jaxws.message.util.Reader2Writer.getAsString(Reader2Writer.java:74)
> 	at org.apache.axis2.jaxws.message.BlockTests.testDOMSourceOutflow(BlockTests.java:938)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
> Caused by: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
> 	at javax.xml.namespace.QName.&lt;init&gt;(Unknown Source)
> 	at com.ctc.wstx.dom.DOMWrappingReader.constructQName(DOMWrappingReader.java:1284)
> 	at com.ctc.wstx.dom.DOMWrappingReader.getName(DOMWrappingReader.java:460)
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:130)
> 	... 27 more
> </error>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-912) JAXWS: Unable to serialize DOMSource blocks

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-912?page=comments#action_12422773 ] 
            
Rich Scheuerle commented on AXIS2-912:
--------------------------------------

I debugged this and the problem is not the code but the test itself.

The DOM that is created is not namespace aware.  I will add the fixed test(s) and some code in JAX-WS to automatically catch this condition prior to trying to build the OM.

scheu

> JAXWS: Unable to serialize DOMSource blocks
> -------------------------------------------
>
>                 Key: AXIS2-912
>                 URL: http://issues.apache.org/jira/browse/AXIS2-912
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Nick Gallardo
>         Assigned To: Rich Scheuerle
>         Attachments: patch.txt
>
>
> I've added some tests for additional datatypes to the BlockTests.  I added one for SAXSource, which works fine, and one for DOMSource which fails.  The failure occurs when we try to simulate how the Message object will get at the Block content.  The failure looks like this:
>     <error message="java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName" type="org.apache.axiom.om.OMException">org.apache.axiom.om.OMException: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.buildNext(OMDocumentImpl.java:183)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getFirstOMChild(OMDocumentImpl.java:255)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getChildren(OMDocumentImpl.java:231)
> 	at org.apache.axis2.jaxws.message.util.Reader2Writer.outputTo(Reader2Writer.java:58)
> 	at org.apache.axis2.jaxws.message.util.Reader2Writer.getAsString(Reader2Writer.java:74)
> 	at org.apache.axis2.jaxws.message.BlockTests.testDOMSourceOutflow(BlockTests.java:938)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
> Caused by: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
> 	at javax.xml.namespace.QName.&lt;init&gt;(Unknown Source)
> 	at com.ctc.wstx.dom.DOMWrappingReader.constructQName(DOMWrappingReader.java:1284)
> 	at com.ctc.wstx.dom.DOMWrappingReader.getName(DOMWrappingReader.java:460)
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:130)
> 	... 27 more
> </error>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (AXIS2-912) JAXWS: Unable to serialize DOMSource blocks

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-912?page=all ]

Rich Scheuerle updated AXIS2-912:
---------------------------------

    Attachment: patch2.txt

Here's the corrected test and code.

> JAXWS: Unable to serialize DOMSource blocks
> -------------------------------------------
>
>                 Key: AXIS2-912
>                 URL: http://issues.apache.org/jira/browse/AXIS2-912
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Nick Gallardo
>         Assigned To: Rich Scheuerle
>         Attachments: patch.txt, patch2.txt
>
>
> I've added some tests for additional datatypes to the BlockTests.  I added one for SAXSource, which works fine, and one for DOMSource which fails.  The failure occurs when we try to simulate how the Message object will get at the Block content.  The failure looks like this:
>     <error message="java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName" type="org.apache.axiom.om.OMException">org.apache.axiom.om.OMException: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.buildNext(OMDocumentImpl.java:183)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getFirstOMChild(OMDocumentImpl.java:255)
> 	at org.apache.axiom.om.impl.llom.OMDocumentImpl.getChildren(OMDocumentImpl.java:231)
> 	at org.apache.axis2.jaxws.message.util.Reader2Writer.outputTo(Reader2Writer.java:58)
> 	at org.apache.axis2.jaxws.message.util.Reader2Writer.getAsString(Reader2Writer.java:74)
> 	at org.apache.axis2.jaxws.message.BlockTests.testDOMSourceOutflow(BlockTests.java:938)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
> Caused by: java.lang.IllegalArgumentException: local part cannot be &quot;null&quot; when creating a QName
> 	at javax.xml.namespace.QName.&lt;init&gt;(Unknown Source)
> 	at com.ctc.wstx.dom.DOMWrappingReader.constructQName(DOMWrappingReader.java:1284)
> 	at com.ctc.wstx.dom.DOMWrappingReader.getName(DOMWrappingReader.java:460)
> 	at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:130)
> 	... 27 more
> </error>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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