You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "John Pfeifer IV (JIRA)" <ji...@apache.org> on 2009/07/14 21:51:14 UTC
[jira] Updated: (CXF-2340) Unmarshalling Error: UndeclaredPrefix:
Cannot resolve 'ns0:Xxx' as a QName: the prefix 'ns0' is not declared
[ https://issues.apache.org/jira/browse/CXF-2340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Pfeifer IV updated CXF-2340:
---------------------------------
Attachment: cxf-test.tar
Run mvn clean install jetty:run
Then using SOAPUI or another client, take the request from README.txt and send it to the service at URL
http://localhost:8080/cxf-test/SedansService
> Unmarshalling Error: UndeclaredPrefix: Cannot resolve 'ns0:Xxx' as a QName: the prefix 'ns0' is not declared
> -------------------------------------------------------------------------------------------------------------
>
> Key: CXF-2340
> URL: https://issues.apache.org/jira/browse/CXF-2340
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.2
> Reporter: John Pfeifer IV
> Attachments: cxf-test.tar
>
>
> Please see the following thread from Nabble outlining the issue. I have sample code that can be used to test the scenario.
> http://www.nabble.com/Unmarshalling-Error%3A-UndeclaredPrefix%3A-Cannot-resolve-%27ns0%3AXxx%27-as-a-QName%3A-the-prefix-%27ns0%27-is-not-declared-to17918441.html#a24462568
> Basically, when specifying an xsi:type for an element that extends and Abstract Type, CXF throws the following error
> [org.xml.sax.SAXParseException: UndeclaredPrefix: Cannot resolve 'ser:getSedans' as a QName: the prefix 'ser' is not declared.]
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:396)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:335)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:312)
> at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:607)
> ... 29 more
> Caused by: org.xml.sax.SAXParseException: UndeclaredPrefix: Cannot resolve 'ser:getSedans' as a QName: the prefix 'ser' is not declared.
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410)
> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165)
> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.getAndCheckXsiType(XMLSchemaValidator.java:2435)
> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1922)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.