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 "Tom Gordon (JIRA)" <ax...@ws.apache.org> on 2004/11/21 15:38:25 UTC

[jira] Created: (AXIS-1678) Reports invalid qname part

Reports invalid qname part
--------------------------

         Key: AXIS-1678
         URL: http://nagoya.apache.org/jira/browse/AXIS-1678
     Project: Axis
        Type: Bug
  Components: Serialization/Deserialization  
    Versions: 1.0-rc1, 1.0-rc2    
 Environment: Axis 1.2RC2, J2SDK 1.4.2_06
    Reporter: Tom Gordon


When attempting to send/receive DOM 2 xml (e.g. building a SOAP message - header or body), the MessageElement fails to recognize the DOM type used, and attempts to create a QName with a null local name for an elemement's children nodes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1678) Reports invalid qname part

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1678?page=comments#action_55758 ]
     
Davanum Srinivas commented on AXIS-1678:
----------------------------------------

     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.144 sec
    [junit] Running test.outparams.PackageTests
    [junit] - Exception:
    [junit] org.xml.sax.SAXException: Bad types (class java.lang.String -> int)
    [junit] at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:282)
    [junit] at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1031)
    [junit] at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
    [junit] at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
    [junit] at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:347)
    [junit] at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)
    [junit] at org.apache.axis.client.Call.invoke(Call.java:2402)
    [junit] at org.apache.axis.client.Call.invoke(Call.java:2301)
    [junit] at test.outparams.TestOutParams.testOutputParams(TestOutParams.java:82)
    [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [junit] at java.lang.reflect.Method.invoke(Method.java:324)
    [junit] at junit.framework.TestCase.runTest(TestCase.java:154)
    [junit] at junit.framework.TestCase.runBare(TestCase.java:127)
    [junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
    [junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
    [junit] at junit.framework.TestResult.run(TestResult.java:109)
    [junit] at junit.framework.TestCase.run(TestCase.java:118)
    [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
    [junit] at junit.framework.TestSuite.run(TestSuite.java:203)
    [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
    [junit] at junit.framework.TestSuite.run(TestSuite.java:203)
    [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289)
    [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656)
    [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558)
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.053 sec

> Reports invalid qname part
> --------------------------
>
>          Key: AXIS-1678
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1678
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.0-rc1, 1.0-rc2
>  Environment: Axis 1.2RC2, J2SDK 1.4.2_06
>     Reporter: Tom Gordon
>  Attachments: MessageElement.diff
>
> When attempting to send/receive DOM 2 xml (e.g. building a SOAP message - header or body), the MessageElement fails to recognize the DOM type used, and attempts to create a QName with a null local name for an elemement's children nodes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1678) Reports invalid qname part

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1678?page=history ]
     
Davanum Srinivas resolved AXIS-1678:
------------------------------------

    Resolution: Fixed

Applied patch.

> Reports invalid qname part
> --------------------------
>
>          Key: AXIS-1678
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1678
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.0-rc1, 1.0-rc2
>  Environment: Axis 1.2RC2, J2SDK 1.4.2_06
>     Reporter: Tom Gordon
>  Attachments: MessageElement.diff
>
> When attempting to send/receive DOM 2 xml (e.g. building a SOAP message - header or body), the MessageElement fails to recognize the DOM type used, and attempts to create a QName with a null local name for an elemement's children nodes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1678) Reports invalid qname part

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1678?page=comments#action_55764 ]
     
Davanum Srinivas commented on AXIS-1678:
----------------------------------------

ignore my prev comment. it was for the wrong bug.

> Reports invalid qname part
> --------------------------
>
>          Key: AXIS-1678
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1678
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.0-rc1, 1.0-rc2
>  Environment: Axis 1.2RC2, J2SDK 1.4.2_06
>     Reporter: Tom Gordon
>  Attachments: MessageElement.diff
>
> When attempting to send/receive DOM 2 xml (e.g. building a SOAP message - header or body), the MessageElement fails to recognize the DOM type used, and attempts to create a QName with a null local name for an elemement's children nodes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1678) Reports invalid qname part

Posted by "Tom Gordon (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1678?page=history ]

Tom Gordon updated AXIS-1678:
-----------------------------

    Attachment: MessageElement.diff

I believe the problem is with the copyNode method in MessageElement.
 
In brief, I don't believe the MessageElement class' copyNode method is/was handling DOM 1/2 correctly - using getNodeValue() vs. getNodeName().  I tried to follow other implementations in the code as to checking for null, then assuming DOM 1/2.  Maybe there is a more elegant way, but this solves the problem.  I let recursion handle assigning the qname to the element versus trying to force set it using PrefixedQName.  The problem is/was with using PrefixedQName is/was the second argument to the method always using only one method to get local qname (so failed when it was the other type of DOM).

> Reports invalid qname part
> --------------------------
>
>          Key: AXIS-1678
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1678
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.0-rc1, 1.0-rc2
>  Environment: Axis 1.2RC2, J2SDK 1.4.2_06
>     Reporter: Tom Gordon
>  Attachments: MessageElement.diff
>
> When attempting to send/receive DOM 2 xml (e.g. building a SOAP message - header or body), the MessageElement fails to recognize the DOM type used, and attempts to create a QName with a null local name for an elemement's children nodes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira