You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Darius Cooper <da...@bigfoot.com> on 2002/04/04 02:13:40 UTC

Re: Client Parsing Exception

Matt:

You're right that the xmlns is causing the error. Here is the message I get
when I use that XML and try to parse it.

  "The value of the attribute "xmlns:" is invalid. Prefixed namespace
bindings may not be empty."

Regards,

- Darius



> From:     Matt MacDonald <ma...@mitre.org>
>
> I looking at the Response a little closer I see that the <stackTrace>
> element contains an invalid xmlns declaration. Does anybody know what
> could be causing the xmlns attribute in the stackTrace element to be
> failing?
>
> -matt
>
> Matt MacDonald wrote:
>
> > Hello,
> >
> > I am getting the following error reported back from the soap client
> > and have not found any information about this in the archives. Any
> > thoughts as to what could be causing this?
> >
> > (SOAP-ENV:Client): Parsing error, response was:
> > An invalid second ':' was found in the element type or attribute name.
> >
> > CALL:
> > <?xml version='1.0' encoding='UTF-8'?>
> > <SOAP-ENV:Envelope
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> > <SOAP-ENV:Body>
> > <ns1:getProjectName xmlns:ns1="urn:project-validator"
> > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> > <Paramater0 xsi:type="xsd:string">01AAV633</Paramater0>
> > <Paramater1 xsi:type="xsd:string">MP</Paramater1>
> > <Paramater2 xsi:type="xsd:string">2001</Paramater2>
> > </ns1:getProjectName>
> > </SOAP-ENV:Body>
> > </SOAP-ENV:Envelope>
> >
> >
> > RESPONSE:
> > <?xml version='1.0' encoding='UTF-8'?>
> > <SOAP-ENV:Envelope
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> > <SOAP-ENV:Body>
> > <SOAP-ENV:Fault>
> > <faultcode>SOAP-ENV:Server</faultcode>
> > <faultstring>Exception from service object: Invalid fiscal year and
> > project number combonation. 01AAV633 and fiscal year =
2001</faultstring>
> > <faultactor>/NASApp/pdc_soap/servlet/rpcrouter</faultactor>
> > <detail>
> > <stackTrace
> > xmlns:="">org.mitre.mii.project.validation.ProjectValidationException:
> > Invalid fiscal year and project number combonation. 01AAV633 and
> > fiscal year = 2001
> >    at java.lang.Throwable.fillInStackTrace(Native Method)
> >    at java.lang.Throwable.fillInStackTrace(Compiled Code)
> >    at java.lang.Throwable.&lt;init&gt;(Compiled Code)
> >    at java.lang.Exception.&lt;init&gt;(Compiled Code)
> >    at
> > org.mitre.mii.datacollector.ExceptionWrapper.&lt;init&gt;(Unknown
Source)
> >    at
> >
>
org.mitre.mii.project.validation.ProjectValidationException.&lt;init&gt;(Unk
> nown
> > Source)
> >    at
> >
>
org.mitre.mii.project.validation.ProjectValidatorImpl.queryProjectBean(Compi
> led
> > Code)
> >    at
> >
>
org.mitre.mii.project.validation.ProjectValidatorImpl.queryProjectBean(Compi
> led
> > Code)
> >    at
> >
>
org.mitre.mii.project.validation.ProjectValidatorImpl.getProjectName(Unknown
> > Source)
> >    at java.lang.reflect.Method.invoke(Native Method)
> >    at java.lang.reflect.Method.invoke(Compiled Code)
> >    at org.apache.soap.server.RPCRouter.invoke(Compiled Code)
> >    at
> >
org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129)
> >
> >    at org.apache.soap.server.http.RPCRouterServlet.doPost(Compiled Code)
> >    at javax.servlet.http.HttpServlet.service(Compiled Code)
> >    at javax.servlet.http.HttpServlet.service(Compiled Code)
> >    at
> > com.netscape.server.servlet.servletrunner.ServletInfo.service(Compiled
> > Code)
> >    at
> > com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
> > Code)
> >    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
> >    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
> >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> >    at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
> >    at java.lang.Thread.run(Compiled Code)
> > </stackTrace>
> > </detail>
> > </SOAP-ENV:Fault>
> > </SOAP-ENV:Body>
> > </SOAP-ENV:Envelope>
> >
>
>




Re: Client Parsing Exception

Posted by Matt MacDonald <ma...@mitre.org>.
I found this the other day sorry for not getting back earlier. So like 
almost every other Java based problem it was a classpath issue. Another 
developer was working on the same machine and stuck an Oracle parser 
implementation in the /lib/ext directory that I wasn't aware of. I 
Removed the parser and the problem went away.

-matt

Darius Cooper wrote:

>Matt:
>
>Here is what I could figure out with some tracing....
>
>The incorrect xmlns is being written out in the
>org.apache.soap.util.xml.DOM2Writer class.
>The stackTrace is contained in an object of type org.w3cdom.Element. This is
>place in a Vector called detailEntries inside org.apache.soap.Fault.
>The method org.apache.soap.Fault.marshall() pops the entry from the Vector
>and passes it down for output (and it finally ends up at the method
>org.apache.soap.util.xml.DOM2Writer.print).
>
>One would expect the methods node.getPrefix() and node.getNamespaceURI() for
>the Element to return null, but they seem to be returning an empty string in
>your case.
>
>That's as far as I got. On my machine, I have two classes:
>    com.ibm.xml.dom.ElementImpl
>    org.apache.xerces.dom.ElementImpl
>
>I cannot see the source code for either, nor for their parent classes, so
>I'm not sure if their are some differences. However, I'd ask: are you sure
>that you're using the correct set of classes (i.e. in the right order)? i.e.
>using the xerces classes, not any other that you may have, like the IBM
>ones?
>
>Regards,
>
>- Darius
>
>
>
>
>
>>Matt:
>>
>>You're right that the xmlns is causing the error. Here is the message I
>>
>get
>
>>when I use that XML and try to parse it.
>>
>>  "The value of the attribute "xmlns:" is invalid. Prefixed namespace
>>bindings may not be empty."
>>
>>Regards,
>>
>>- Darius
>>
>>
>>
>>>From:     Matt MacDonald <ma...@mitre.org>
>>>
>>>I looking at the Response a little closer I see that the <stackTrace>
>>>element contains an invalid xmlns declaration. Does anybody know what
>>>could be causing the xmlns attribute in the stackTrace element to be
>>>failing?
>>>
>>>-matt
>>>
>>>Matt MacDonald wrote:
>>>
>>>>Hello,
>>>>
>>>>I am getting the following error reported back from the soap client
>>>>and have not found any information about this in the archives. Any
>>>>thoughts as to what could be causing this?
>>>>
>>>>(SOAP-ENV:Client): Parsing error, response was:
>>>>An invalid second ':' was found in the element type or attribute name.
>>>>
>>>>CALL:
>>>><?xml version='1.0' encoding='UTF-8'?>
>>>><SOAP-ENV:Envelope
>>>>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>>>>xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
>>>>xmlns:xsd="http://www.w3.org/1999/XMLSchema">
>>>><SOAP-ENV:Body>
>>>><ns1:getProjectName xmlns:ns1="urn:project-validator"
>>>>SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>>>><Paramater0 xsi:type="xsd:string">01AAV633</Paramater0>
>>>><Paramater1 xsi:type="xsd:string">MP</Paramater1>
>>>><Paramater2 xsi:type="xsd:string">2001</Paramater2>
>>>></ns1:getProjectName>
>>>></SOAP-ENV:Body>
>>>></SOAP-ENV:Envelope>
>>>>
>>>>
>>>>RESPONSE:
>>>><?xml version='1.0' encoding='UTF-8'?>
>>>><SOAP-ENV:Envelope
>>>>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>>>>xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
>>>>xmlns:xsd="http://www.w3.org/1999/XMLSchema">
>>>><SOAP-ENV:Body>
>>>><SOAP-ENV:Fault>
>>>><faultcode>SOAP-ENV:Server</faultcode>
>>>><faultstring>Exception from service object: Invalid fiscal year and
>>>>project number combonation. 01AAV633 and fiscal year =
>>>>
>>2001</faultstring>
>>
>>>><faultactor>/NASApp/pdc_soap/servlet/rpcrouter</faultactor>
>>>><detail>
>>>><stackTrace
>>>>xmlns:="">org.mitre.mii.project.validation.ProjectValidationException:
>>>>Invalid fiscal year and project number combonation. 01AAV633 and
>>>>fiscal year = 2001
>>>>   at java.lang.Throwable.fillInStackTrace(Native Method)
>>>>   at java.lang.Throwable.fillInStackTrace(Compiled Code)
>>>>   at java.lang.Throwable.&lt;init&gt;(Compiled Code)
>>>>   at java.lang.Exception.&lt;init&gt;(Compiled Code)
>>>>   at
>>>>org.mitre.mii.datacollector.ExceptionWrapper.&lt;init&gt;(Unknown
>>>>
>>Source)
>>
>>>>   at
>>>>
>org.mitre.mii.project.validation.ProjectValidationException.&lt;init&gt;(Unk
>
>>>nown
>>>
>>>>Source)
>>>>   at
>>>>
>org.mitre.mii.project.validation.ProjectValidatorImpl.queryProjectBean(Compi
>
>>>led
>>>
>>>>Code)
>>>>   at
>>>>
>org.mitre.mii.project.validation.ProjectValidatorImpl.queryProjectBean(Compi
>
>>>led
>>>
>>>>Code)
>>>>   at
>>>>
>org.mitre.mii.project.validation.ProjectValidatorImpl.getProjectName(Unknown
>
>>>>Source)
>>>>   at java.lang.reflect.Method.invoke(Native Method)
>>>>   at java.lang.reflect.Method.invoke(Compiled Code)
>>>>   at org.apache.soap.server.RPCRouter.invoke(Compiled Code)
>>>>   at
>>>>
>>org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129)
>>
>>>>   at org.apache.soap.server.http.RPCRouterServlet.doPost(Compiled
>>>>
>Code)
>
>>>>   at javax.servlet.http.HttpServlet.service(Compiled Code)
>>>>   at javax.servlet.http.HttpServlet.service(Compiled Code)
>>>>   at
>>>>com.netscape.server.servlet.servletrunner.ServletInfo.service(Compiled
>>>>Code)
>>>>   at
>>>>
>com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
>
>>>>Code)
>>>>   at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
>>>>   at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
>>>>   at com.kivasoft.thread.ThreadBasic.run(Native Method)
>>>>   at com.kivasoft.thread.ThreadBasic.run(Native Method)
>>>>   at com.kivasoft.thread.ThreadBasic.run(Native Method)
>>>>   at com.kivasoft.thread.ThreadBasic.run(Native Method)
>>>>   at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
>>>>   at java.lang.Thread.run(Compiled Code)
>>>></stackTrace>
>>>></detail>
>>>></SOAP-ENV:Fault>
>>>></SOAP-ENV:Body>
>>>></SOAP-ENV:Envelope>
>>>>
>>>
>>
>>
>>
>
>


Re: Client Parsing Exception

Posted by Matt MacDonald <ma...@mitre.org>.
I found this the other day sorry for not getting back earlier. So like 
almost every other Java based problem it was a classpath issue. Another 
developer was working on the same machine and stuck an Oracle parser 
implementation in the /lib/ext directory that I wasn't aware of. I 
Removed the parser and the problem went away.

-matt

Darius Cooper wrote:

>Matt:
>
>Here is what I could figure out with some tracing....
>
>The incorrect xmlns is being written out in the
>org.apache.soap.util.xml.DOM2Writer class.
>The stackTrace is contained in an object of type org.w3cdom.Element. This is
>place in a Vector called detailEntries inside org.apache.soap.Fault.
>The method org.apache.soap.Fault.marshall() pops the entry from the Vector
>and passes it down for output (and it finally ends up at the method
>org.apache.soap.util.xml.DOM2Writer.print).
>
>One would expect the methods node.getPrefix() and node.getNamespaceURI() for
>the Element to return null, but they seem to be returning an empty string in
>your case.
>
>That's as far as I got. On my machine, I have two classes:
>    com.ibm.xml.dom.ElementImpl
>    org.apache.xerces.dom.ElementImpl
>
>I cannot see the source code for either, nor for their parent classes, so
>I'm not sure if their are some differences. However, I'd ask: are you sure
>that you're using the correct set of classes (i.e. in the right order)? i.e.
>using the xerces classes, not any other that you may have, like the IBM
>ones?
>
>Regards,
>
>- Darius
>
>
>
>
>
>>Matt:
>>
>>You're right that the xmlns is causing the error. Here is the message I
>>
>get
>
>>when I use that XML and try to parse it.
>>
>>  "The value of the attribute "xmlns:" is invalid. Prefixed namespace
>>bindings may not be empty."
>>
>>Regards,
>>
>>- Darius
>>
>>
>>
>>>From:     Matt MacDonald <ma...@mitre.org>
>>>
>>>I looking at the Response a little closer I see that the <stackTrace>
>>>element contains an invalid xmlns declaration. Does anybody know what
>>>could be causing the xmlns attribute in the stackTrace element to be
>>>failing?
>>>
>>>-matt
>>>
>>>Matt MacDonald wrote:
>>>
>>>>Hello,
>>>>
>>>>I am getting the following error reported back from the soap client
>>>>and have not found any information about this in the archives. Any
>>>>thoughts as to what could be causing this?
>>>>
>>>>(SOAP-ENV:Client): Parsing error, response was:
>>>>An invalid second ':' was found in the element type or attribute name.
>>>>
>>>>CALL:
>>>><?xml version='1.0' encoding='UTF-8'?>
>>>><SOAP-ENV:Envelope
>>>>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>>>>xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
>>>>xmlns:xsd="http://www.w3.org/1999/XMLSchema">
>>>><SOAP-ENV:Body>
>>>><ns1:getProjectName xmlns:ns1="urn:project-validator"
>>>>SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>>>><Paramater0 xsi:type="xsd:string">01AAV633</Paramater0>
>>>><Paramater1 xsi:type="xsd:string">MP</Paramater1>
>>>><Paramater2 xsi:type="xsd:string">2001</Paramater2>
>>>></ns1:getProjectName>
>>>></SOAP-ENV:Body>
>>>></SOAP-ENV:Envelope>
>>>>
>>>>
>>>>RESPONSE:
>>>><?xml version='1.0' encoding='UTF-8'?>
>>>><SOAP-ENV:Envelope
>>>>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>>>>xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
>>>>xmlns:xsd="http://www.w3.org/1999/XMLSchema">
>>>><SOAP-ENV:Body>
>>>><SOAP-ENV:Fault>
>>>><faultcode>SOAP-ENV:Server</faultcode>
>>>><faultstring>Exception from service object: Invalid fiscal year and
>>>>project number combonation. 01AAV633 and fiscal year =
>>>>
>>2001</faultstring>
>>
>>>><faultactor>/NASApp/pdc_soap/servlet/rpcrouter</faultactor>
>>>><detail>
>>>><stackTrace
>>>>xmlns:="">org.mitre.mii.project.validation.ProjectValidationException:
>>>>Invalid fiscal year and project number combonation. 01AAV633 and
>>>>fiscal year = 2001
>>>>   at java.lang.Throwable.fillInStackTrace(Native Method)
>>>>   at java.lang.Throwable.fillInStackTrace(Compiled Code)
>>>>   at java.lang.Throwable.&lt;init&gt;(Compiled Code)
>>>>   at java.lang.Exception.&lt;init&gt;(Compiled Code)
>>>>   at
>>>>org.mitre.mii.datacollector.ExceptionWrapper.&lt;init&gt;(Unknown
>>>>
>>Source)
>>
>>>>   at
>>>>
>org.mitre.mii.project.validation.ProjectValidationException.&lt;init&gt;(Unk
>
>>>nown
>>>
>>>>Source)
>>>>   at
>>>>
>org.mitre.mii.project.validation.ProjectValidatorImpl.queryProjectBean(Compi
>
>>>led
>>>
>>>>Code)
>>>>   at
>>>>
>org.mitre.mii.project.validation.ProjectValidatorImpl.queryProjectBean(Compi
>
>>>led
>>>
>>>>Code)
>>>>   at
>>>>
>org.mitre.mii.project.validation.ProjectValidatorImpl.getProjectName(Unknown
>
>>>>Source)
>>>>   at java.lang.reflect.Method.invoke(Native Method)
>>>>   at java.lang.reflect.Method.invoke(Compiled Code)
>>>>   at org.apache.soap.server.RPCRouter.invoke(Compiled Code)
>>>>   at
>>>>
>>org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129)
>>
>>>>   at org.apache.soap.server.http.RPCRouterServlet.doPost(Compiled
>>>>
>Code)
>
>>>>   at javax.servlet.http.HttpServlet.service(Compiled Code)
>>>>   at javax.servlet.http.HttpServlet.service(Compiled Code)
>>>>   at
>>>>com.netscape.server.servlet.servletrunner.ServletInfo.service(Compiled
>>>>Code)
>>>>   at
>>>>
>com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
>
>>>>Code)
>>>>   at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
>>>>   at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
>>>>   at com.kivasoft.thread.ThreadBasic.run(Native Method)
>>>>   at com.kivasoft.thread.ThreadBasic.run(Native Method)
>>>>   at com.kivasoft.thread.ThreadBasic.run(Native Method)
>>>>   at com.kivasoft.thread.ThreadBasic.run(Native Method)
>>>>   at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
>>>>   at java.lang.Thread.run(Compiled Code)
>>>></stackTrace>
>>>></detail>
>>>></SOAP-ENV:Fault>
>>>></SOAP-ENV:Body>
>>>></SOAP-ENV:Envelope>
>>>>
>>>
>>
>>
>>
>
>


Data Compression

Posted by Mohssin Assaban <mo...@OurMaroc.com>.
Hi All,

I have some performance problems because of the big size of data that is
being transferred over HTTP

I was thinking about this problem and I tough my can be this a solution

Compressing the SOAP request from the client before sending it to the
server, the server must first decompress the request, handle it, compress it
again and than send it back to the client. Finally the client must
decompress the data and do what he wants to do.

I think this will reduce the traffic, which also means better performance.

Does anyone know how to implement some type of compression for SOAP or have
some example to do this?  Or some other suggestion?

Thanks in advance.

Mohssin



Data Compression

Posted by Mohssin Assaban <mo...@OurMaroc.com>.
Hi All,

I have some performance problems because of the big size of data that is
being transferred over HTTP

I was thinking about this problem and I tough my can be this a solution

Compressing the SOAP request from the client before sending it to the
server, the server must first decompress the request, handle it, compress it
again and than send it back to the client. Finally the client must
decompress the data and do what he wants to do.

I think this will reduce the traffic, which also means better performance.

Does anyone know how to implement some type of compression for SOAP or have
some example to do this?  Or some other suggestion?

Thanks in advance.

Mohssin



Re: Client Parsing Exception

Posted by Darius Cooper <da...@bigfoot.com>.
Matt:

Here is what I could figure out with some tracing....

The incorrect xmlns is being written out in the
org.apache.soap.util.xml.DOM2Writer class.
The stackTrace is contained in an object of type org.w3cdom.Element. This is
place in a Vector called detailEntries inside org.apache.soap.Fault.
The method org.apache.soap.Fault.marshall() pops the entry from the Vector
and passes it down for output (and it finally ends up at the method
org.apache.soap.util.xml.DOM2Writer.print).

One would expect the methods node.getPrefix() and node.getNamespaceURI() for
the Element to return null, but they seem to be returning an empty string in
your case.

That's as far as I got. On my machine, I have two classes:
    com.ibm.xml.dom.ElementImpl
    org.apache.xerces.dom.ElementImpl

I cannot see the source code for either, nor for their parent classes, so
I'm not sure if their are some differences. However, I'd ask: are you sure
that you're using the correct set of classes (i.e. in the right order)? i.e.
using the xerces classes, not any other that you may have, like the IBM
ones?

Regards,

- Darius





> Matt:
>
> You're right that the xmlns is causing the error. Here is the message I
get
> when I use that XML and try to parse it.
>
>   "The value of the attribute "xmlns:" is invalid. Prefixed namespace
> bindings may not be empty."
>
> Regards,
>
> - Darius
>
>
>
> > From:     Matt MacDonald <ma...@mitre.org>
> >
> > I looking at the Response a little closer I see that the <stackTrace>
> > element contains an invalid xmlns declaration. Does anybody know what
> > could be causing the xmlns attribute in the stackTrace element to be
> > failing?
> >
> > -matt
> >
> > Matt MacDonald wrote:
> >
> > > Hello,
> > >
> > > I am getting the following error reported back from the soap client
> > > and have not found any information about this in the archives. Any
> > > thoughts as to what could be causing this?
> > >
> > > (SOAP-ENV:Client): Parsing error, response was:
> > > An invalid second ':' was found in the element type or attribute name.
> > >
> > > CALL:
> > > <?xml version='1.0' encoding='UTF-8'?>
> > > <SOAP-ENV:Envelope
> > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> > > <SOAP-ENV:Body>
> > > <ns1:getProjectName xmlns:ns1="urn:project-validator"
> > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> > > <Paramater0 xsi:type="xsd:string">01AAV633</Paramater0>
> > > <Paramater1 xsi:type="xsd:string">MP</Paramater1>
> > > <Paramater2 xsi:type="xsd:string">2001</Paramater2>
> > > </ns1:getProjectName>
> > > </SOAP-ENV:Body>
> > > </SOAP-ENV:Envelope>
> > >
> > >
> > > RESPONSE:
> > > <?xml version='1.0' encoding='UTF-8'?>
> > > <SOAP-ENV:Envelope
> > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> > > <SOAP-ENV:Body>
> > > <SOAP-ENV:Fault>
> > > <faultcode>SOAP-ENV:Server</faultcode>
> > > <faultstring>Exception from service object: Invalid fiscal year and
> > > project number combonation. 01AAV633 and fiscal year =
> 2001</faultstring>
> > > <faultactor>/NASApp/pdc_soap/servlet/rpcrouter</faultactor>
> > > <detail>
> > > <stackTrace
> > > xmlns:="">org.mitre.mii.project.validation.ProjectValidationException:
> > > Invalid fiscal year and project number combonation. 01AAV633 and
> > > fiscal year = 2001
> > >    at java.lang.Throwable.fillInStackTrace(Native Method)
> > >    at java.lang.Throwable.fillInStackTrace(Compiled Code)
> > >    at java.lang.Throwable.&lt;init&gt;(Compiled Code)
> > >    at java.lang.Exception.&lt;init&gt;(Compiled Code)
> > >    at
> > > org.mitre.mii.datacollector.ExceptionWrapper.&lt;init&gt;(Unknown
> Source)
> > >    at
> > >
> >
>
org.mitre.mii.project.validation.ProjectValidationException.&lt;init&gt;(Unk
> > nown
> > > Source)
> > >    at
> > >
> >
>
org.mitre.mii.project.validation.ProjectValidatorImpl.queryProjectBean(Compi
> > led
> > > Code)
> > >    at
> > >
> >
>
org.mitre.mii.project.validation.ProjectValidatorImpl.queryProjectBean(Compi
> > led
> > > Code)
> > >    at
> > >
> >
>
org.mitre.mii.project.validation.ProjectValidatorImpl.getProjectName(Unknown
> > > Source)
> > >    at java.lang.reflect.Method.invoke(Native Method)
> > >    at java.lang.reflect.Method.invoke(Compiled Code)
> > >    at org.apache.soap.server.RPCRouter.invoke(Compiled Code)
> > >    at
> > >
> org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129)
> > >
> > >    at org.apache.soap.server.http.RPCRouterServlet.doPost(Compiled
Code)
> > >    at javax.servlet.http.HttpServlet.service(Compiled Code)
> > >    at javax.servlet.http.HttpServlet.service(Compiled Code)
> > >    at
> > > com.netscape.server.servlet.servletrunner.ServletInfo.service(Compiled
> > > Code)
> > >    at
> > >
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
> > > Code)
> > >    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
> > >    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
> > >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> > >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> > >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> > >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> > >    at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
> > >    at java.lang.Thread.run(Compiled Code)
> > > </stackTrace>
> > > </detail>
> > > </SOAP-ENV:Fault>
> > > </SOAP-ENV:Body>
> > > </SOAP-ENV:Envelope>
> > >
> >
> >
>
>
>
>



Re: Client Parsing Exception

Posted by Darius Cooper <da...@bigfoot.com>.
Matt:

Here is what I could figure out with some tracing....

The incorrect xmlns is being written out in the
org.apache.soap.util.xml.DOM2Writer class.
The stackTrace is contained in an object of type org.w3cdom.Element. This is
place in a Vector called detailEntries inside org.apache.soap.Fault.
The method org.apache.soap.Fault.marshall() pops the entry from the Vector
and passes it down for output (and it finally ends up at the method
org.apache.soap.util.xml.DOM2Writer.print).

One would expect the methods node.getPrefix() and node.getNamespaceURI() for
the Element to return null, but they seem to be returning an empty string in
your case.

That's as far as I got. On my machine, I have two classes:
    com.ibm.xml.dom.ElementImpl
    org.apache.xerces.dom.ElementImpl

I cannot see the source code for either, nor for their parent classes, so
I'm not sure if their are some differences. However, I'd ask: are you sure
that you're using the correct set of classes (i.e. in the right order)? i.e.
using the xerces classes, not any other that you may have, like the IBM
ones?

Regards,

- Darius





> Matt:
>
> You're right that the xmlns is causing the error. Here is the message I
get
> when I use that XML and try to parse it.
>
>   "The value of the attribute "xmlns:" is invalid. Prefixed namespace
> bindings may not be empty."
>
> Regards,
>
> - Darius
>
>
>
> > From:     Matt MacDonald <ma...@mitre.org>
> >
> > I looking at the Response a little closer I see that the <stackTrace>
> > element contains an invalid xmlns declaration. Does anybody know what
> > could be causing the xmlns attribute in the stackTrace element to be
> > failing?
> >
> > -matt
> >
> > Matt MacDonald wrote:
> >
> > > Hello,
> > >
> > > I am getting the following error reported back from the soap client
> > > and have not found any information about this in the archives. Any
> > > thoughts as to what could be causing this?
> > >
> > > (SOAP-ENV:Client): Parsing error, response was:
> > > An invalid second ':' was found in the element type or attribute name.
> > >
> > > CALL:
> > > <?xml version='1.0' encoding='UTF-8'?>
> > > <SOAP-ENV:Envelope
> > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> > > <SOAP-ENV:Body>
> > > <ns1:getProjectName xmlns:ns1="urn:project-validator"
> > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> > > <Paramater0 xsi:type="xsd:string">01AAV633</Paramater0>
> > > <Paramater1 xsi:type="xsd:string">MP</Paramater1>
> > > <Paramater2 xsi:type="xsd:string">2001</Paramater2>
> > > </ns1:getProjectName>
> > > </SOAP-ENV:Body>
> > > </SOAP-ENV:Envelope>
> > >
> > >
> > > RESPONSE:
> > > <?xml version='1.0' encoding='UTF-8'?>
> > > <SOAP-ENV:Envelope
> > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> > > xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> > > <SOAP-ENV:Body>
> > > <SOAP-ENV:Fault>
> > > <faultcode>SOAP-ENV:Server</faultcode>
> > > <faultstring>Exception from service object: Invalid fiscal year and
> > > project number combonation. 01AAV633 and fiscal year =
> 2001</faultstring>
> > > <faultactor>/NASApp/pdc_soap/servlet/rpcrouter</faultactor>
> > > <detail>
> > > <stackTrace
> > > xmlns:="">org.mitre.mii.project.validation.ProjectValidationException:
> > > Invalid fiscal year and project number combonation. 01AAV633 and
> > > fiscal year = 2001
> > >    at java.lang.Throwable.fillInStackTrace(Native Method)
> > >    at java.lang.Throwable.fillInStackTrace(Compiled Code)
> > >    at java.lang.Throwable.&lt;init&gt;(Compiled Code)
> > >    at java.lang.Exception.&lt;init&gt;(Compiled Code)
> > >    at
> > > org.mitre.mii.datacollector.ExceptionWrapper.&lt;init&gt;(Unknown
> Source)
> > >    at
> > >
> >
>
org.mitre.mii.project.validation.ProjectValidationException.&lt;init&gt;(Unk
> > nown
> > > Source)
> > >    at
> > >
> >
>
org.mitre.mii.project.validation.ProjectValidatorImpl.queryProjectBean(Compi
> > led
> > > Code)
> > >    at
> > >
> >
>
org.mitre.mii.project.validation.ProjectValidatorImpl.queryProjectBean(Compi
> > led
> > > Code)
> > >    at
> > >
> >
>
org.mitre.mii.project.validation.ProjectValidatorImpl.getProjectName(Unknown
> > > Source)
> > >    at java.lang.reflect.Method.invoke(Native Method)
> > >    at java.lang.reflect.Method.invoke(Compiled Code)
> > >    at org.apache.soap.server.RPCRouter.invoke(Compiled Code)
> > >    at
> > >
> org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129)
> > >
> > >    at org.apache.soap.server.http.RPCRouterServlet.doPost(Compiled
Code)
> > >    at javax.servlet.http.HttpServlet.service(Compiled Code)
> > >    at javax.servlet.http.HttpServlet.service(Compiled Code)
> > >    at
> > > com.netscape.server.servlet.servletrunner.ServletInfo.service(Compiled
> > > Code)
> > >    at
> > >
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
> > > Code)
> > >    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
> > >    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
> > >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> > >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> > >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> > >    at com.kivasoft.thread.ThreadBasic.run(Native Method)
> > >    at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
> > >    at java.lang.Thread.run(Compiled Code)
> > > </stackTrace>
> > > </detail>
> > > </SOAP-ENV:Fault>
> > > </SOAP-ENV:Body>
> > > </SOAP-ENV:Envelope>
> > >
> >
> >
>
>
>
>