You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sébastien (JIRA)" <ji...@apache.org> on 2010/09/24 09:48:33 UTC

[jira] Created: (CXF-3006) Upgrade to Xml Schema 1.4.6

Upgrade to Xml Schema 1.4.6
---------------------------

                 Key: CXF-3006
                 URL: https://issues.apache.org/jira/browse/CXF-3006
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.2.10, 2.2.6
            Reporter: Sébastien


When CXF is publishing web services, the following exception occurs:

{code}
Caused by: java.lang.NullPointerException
        at org.apache.ws.commons.schema.utils.NamespaceMap.getNamespaceURI(NamespaceMap.java:47)
        at org.apache.ws.commons.schema.SchemaBuilder.getRefQName(SchemaBuilder.java:587)
        at org.apache.ws.commons.schema.SchemaBuilder.getRefQName(SchemaBuilder.java:566)
        at org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1406)
{code}

If an XML prefix is used without being declared, that exception occurs. 

In the following sample, the prefix is "pel" and it's correctly declared: 

{code}
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pel="http://www.X.com/is/xml/core/model/thirdparty/personlight" 
xmlns:pol="http://www.X.com/is/xml/core/model/policy" xmlns:cov="http://www.X.com/is/xml/traditionallife/model/offer/coverage" 
xmlns:prd="http://www.X.com/is/xml/traditionallife/model/product" xmlns:ind="http://www.X.com/is/xml/core/model/indexation" 
targetNamespace="http://www.X.com/is/xml/traditionallife/model/policy" elementFormDefault="qualified">
{code}

Unfortunately, there is a space in one of the usage of "pel":
{code}
<xsd:element name="prospect" type=" pel:PersonLight" />
{code}

Removing the space before the prefix avoids to have the exception.


That bug is corrected in the newest version of Xml schema:
{code}
        <dependency>
            <groupId>org.apache.ws.commons.schema</groupId>
            <artifactId>XmlSchema</artifactId>
            <version>1.4.6</version>
        </dependency>
{code}


Path to the dependency:
[INFO] +- com.bsb.sf.integration:bsb-sf-cxf-core-integration:jar:ws-migration-1-SNAPSHOT:compile
[INFO] |  +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.2.6:compile
[INFO] |  |  +- org.apache.cxf:cxf-api:jar:2.2.6:compile
[INFO] |  |  |  +- org.apache.ws.commons.schema:XmlSchema:jar:1.4.5:compile

Note that XmlSchema 1.4.5 is still present in the latest release.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-3006) Upgrade to Xml Schema 1.4.6

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914412#action_12914412 ] 

Benson Margulies commented on CXF-3006:
---------------------------------------

The plan is to upgrade to 1.4.7 as soon as it finishes getting releases.

> Upgrade to Xml Schema 1.4.6
> ---------------------------
>
>                 Key: CXF-3006
>                 URL: https://issues.apache.org/jira/browse/CXF-3006
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.2.6, 2.2.10
>            Reporter: Sébastien
>
> When CXF is publishing web services, the following exception occurs:
> {code}
> Caused by: java.lang.NullPointerException
>         at org.apache.ws.commons.schema.utils.NamespaceMap.getNamespaceURI(NamespaceMap.java:47)
>         at org.apache.ws.commons.schema.SchemaBuilder.getRefQName(SchemaBuilder.java:587)
>         at org.apache.ws.commons.schema.SchemaBuilder.getRefQName(SchemaBuilder.java:566)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1406)
> {code}
> If an XML prefix is used without being declared, that exception occurs. 
> In the following sample, the prefix is "pel" and it's correctly declared: 
> {code}
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pel="http://www.X.com/is/xml/core/model/thirdparty/personlight" 
> xmlns:pol="http://www.X.com/is/xml/core/model/policy" xmlns:cov="http://www.X.com/is/xml/traditionallife/model/offer/coverage" 
> xmlns:prd="http://www.X.com/is/xml/traditionallife/model/product" xmlns:ind="http://www.X.com/is/xml/core/model/indexation" 
> targetNamespace="http://www.X.com/is/xml/traditionallife/model/policy" elementFormDefault="qualified">
> {code}
> Unfortunately, there is a space in one of the usage of "pel":
> {code}
> <xsd:element name="prospect" type=" pel:PersonLight" />
> {code}
> Removing the space before the prefix avoids to have the exception.
> That bug is corrected in the newest version of Xml schema:
> {code}
>         <dependency>
>             <groupId>org.apache.ws.commons.schema</groupId>
>             <artifactId>XmlSchema</artifactId>
>             <version>1.4.6</version>
>         </dependency>
> {code}
> Path to the dependency:
> [INFO] +- com.bsb.sf.integration:bsb-sf-cxf-core-integration:jar:ws-migration-1-SNAPSHOT:compile
> [INFO] |  +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.2.6:compile
> [INFO] |  |  +- org.apache.cxf:cxf-api:jar:2.2.6:compile
> [INFO] |  |  |  +- org.apache.ws.commons.schema:XmlSchema:jar:1.4.5:compile
> Note that XmlSchema 1.4.5 is still present in the latest release.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-3006) Upgrade to Xml Schema 1.4.6

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-3006.
------------------------------

         Assignee: Benson Margulies
    Fix Version/s: 2.3
                   2.2.11
       Resolution: Fixed


Upgrade to newly released 1.4.7

> Upgrade to Xml Schema 1.4.6
> ---------------------------
>
>                 Key: CXF-3006
>                 URL: https://issues.apache.org/jira/browse/CXF-3006
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.2.6, 2.2.10
>            Reporter: Sébastien
>            Assignee: Benson Margulies
>             Fix For: 2.3, 2.2.11
>
>
> When CXF is publishing web services, the following exception occurs:
> {code}
> Caused by: java.lang.NullPointerException
>         at org.apache.ws.commons.schema.utils.NamespaceMap.getNamespaceURI(NamespaceMap.java:47)
>         at org.apache.ws.commons.schema.SchemaBuilder.getRefQName(SchemaBuilder.java:587)
>         at org.apache.ws.commons.schema.SchemaBuilder.getRefQName(SchemaBuilder.java:566)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1406)
> {code}
> If an XML prefix is used without being declared, that exception occurs. 
> In the following sample, the prefix is "pel" and it's correctly declared: 
> {code}
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pel="http://www.X.com/is/xml/core/model/thirdparty/personlight" 
> xmlns:pol="http://www.X.com/is/xml/core/model/policy" xmlns:cov="http://www.X.com/is/xml/traditionallife/model/offer/coverage" 
> xmlns:prd="http://www.X.com/is/xml/traditionallife/model/product" xmlns:ind="http://www.X.com/is/xml/core/model/indexation" 
> targetNamespace="http://www.X.com/is/xml/traditionallife/model/policy" elementFormDefault="qualified">
> {code}
> Unfortunately, there is a space in one of the usage of "pel":
> {code}
> <xsd:element name="prospect" type=" pel:PersonLight" />
> {code}
> Removing the space before the prefix avoids to have the exception.
> That bug is corrected in the newest version of Xml schema:
> {code}
>         <dependency>
>             <groupId>org.apache.ws.commons.schema</groupId>
>             <artifactId>XmlSchema</artifactId>
>             <version>1.4.6</version>
>         </dependency>
> {code}
> Path to the dependency:
> [INFO] +- com.bsb.sf.integration:bsb-sf-cxf-core-integration:jar:ws-migration-1-SNAPSHOT:compile
> [INFO] |  +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.2.6:compile
> [INFO] |  |  +- org.apache.cxf:cxf-api:jar:2.2.6:compile
> [INFO] |  |  |  +- org.apache.ws.commons.schema:XmlSchema:jar:1.4.5:compile
> Note that XmlSchema 1.4.5 is still present in the latest release.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.