You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2009/06/17 16:20:07 UTC

[jira] Created: (CXF-2296) Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime

Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime
----------------------------------------------------------------------------

                 Key: CXF-2296
                 URL: https://issues.apache.org/jira/browse/CXF-2296
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.2.3, 2.3
            Reporter: Sergey Beryozkin
            Priority: Minor
             Fix For: 2.2.3, 2.3


17-Jun-2009 14:56:13 org.apache.cxf.aegis.type.XMLTypeCreator <clinit>
INFO: Parser doesn't support setSchema.  Not validating.
java.lang.UnsupportedOperationException: This parser does not support specificat
ion "null" version "null"
        at javax.xml.parsers.DocumentBuilderFactory.setSchema(DocumentBuilderFac
tory.java:489)
        at org.apache.cxf.aegis.type.XMLTypeCreator.<clinit>(XMLTypeCreator.java
:125)
        at org.apache.cxf.aegis.AegisContext.createRootTypeCreator(AegisContext.
java:119)
        at org.apache.cxf.aegis.AegisContext.createTypeCreator(AegisContext.java
:108)
        at org.apache.cxf.aegis.AegisContext.initialize(AegisContext.java:150)
        at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getClassContext(A
bstractAegisProvider.java:79)
        at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getAegisContext(A
bstractAegisProvider.java:66)
        at org.apache.cxf.jaxrs.provider.AegisElementProvider.writeTo(AegisEleme
ntProvider.java:69)

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


[jira] Commented: (CXF-2296) Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime

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

Benson Margulies commented on CXF-2296:
---------------------------------------

This situation means that, for some reason, the XML parser installed as the JAXP parser inside the OSGi environment refuses to set up schema validation. Does something less with the SPI for JAXP in the OSGi bundle?

> Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime
> ----------------------------------------------------------------------------
>
>                 Key: CXF-2296
>                 URL: https://issues.apache.org/jira/browse/CXF-2296
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.3, 2.3
>            Reporter: Sergey Beryozkin
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 2.2.3, 2.3
>
>
> 17-Jun-2009 14:56:13 org.apache.cxf.aegis.type.XMLTypeCreator <clinit>
> INFO: Parser doesn't support setSchema.  Not validating.
> java.lang.UnsupportedOperationException: This parser does not support specificat
> ion "null" version "null"
>         at javax.xml.parsers.DocumentBuilderFactory.setSchema(DocumentBuilderFac
> tory.java:489)
>         at org.apache.cxf.aegis.type.XMLTypeCreator.<clinit>(XMLTypeCreator.java
> :125)
>         at org.apache.cxf.aegis.AegisContext.createRootTypeCreator(AegisContext.
> java:119)
>         at org.apache.cxf.aegis.AegisContext.createTypeCreator(AegisContext.java
> :108)
>         at org.apache.cxf.aegis.AegisContext.initialize(AegisContext.java:150)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getClassContext(A
> bstractAegisProvider.java:79)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getAegisContext(A
> bstractAegisProvider.java:66)
>         at org.apache.cxf.jaxrs.provider.AegisElementProvider.writeTo(AegisEleme
> ntProvider.java:69)

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


[jira] Commented: (CXF-2296) Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722791#action_12722791 ] 

Sergey Beryozkin commented on CXF-2296:
---------------------------------------

Hi Benson

it appears it can only be reproduced in DOSGi though I think I saw this message even when running jaxrs tests

If you get a chance, try please dosgi/greeter_rest, can be run the same way as described in

http://cxf.apache.org/distributed-osgi-greeter-demo-walkthrough.html

if you decide to do it then I can post more info in how to debug

> Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime
> ----------------------------------------------------------------------------
>
>                 Key: CXF-2296
>                 URL: https://issues.apache.org/jira/browse/CXF-2296
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.3, 2.3
>            Reporter: Sergey Beryozkin
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 2.2.3, 2.3
>
>
> 17-Jun-2009 14:56:13 org.apache.cxf.aegis.type.XMLTypeCreator <clinit>
> INFO: Parser doesn't support setSchema.  Not validating.
> java.lang.UnsupportedOperationException: This parser does not support specificat
> ion "null" version "null"
>         at javax.xml.parsers.DocumentBuilderFactory.setSchema(DocumentBuilderFac
> tory.java:489)
>         at org.apache.cxf.aegis.type.XMLTypeCreator.<clinit>(XMLTypeCreator.java
> :125)
>         at org.apache.cxf.aegis.AegisContext.createRootTypeCreator(AegisContext.
> java:119)
>         at org.apache.cxf.aegis.AegisContext.createTypeCreator(AegisContext.java
> :108)
>         at org.apache.cxf.aegis.AegisContext.initialize(AegisContext.java:150)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getClassContext(A
> bstractAegisProvider.java:79)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getAegisContext(A
> bstractAegisProvider.java:66)
>         at org.apache.cxf.jaxrs.provider.AegisElementProvider.writeTo(AegisEleme
> ntProvider.java:69)

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


[jira] Commented: (CXF-2296) Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime

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

Benson Margulies commented on CXF-2296:
---------------------------------------

Sergey, could you please supply a repro for this?

> Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime
> ----------------------------------------------------------------------------
>
>                 Key: CXF-2296
>                 URL: https://issues.apache.org/jira/browse/CXF-2296
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.3, 2.3
>            Reporter: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 2.2.3, 2.3
>
>
> 17-Jun-2009 14:56:13 org.apache.cxf.aegis.type.XMLTypeCreator <clinit>
> INFO: Parser doesn't support setSchema.  Not validating.
> java.lang.UnsupportedOperationException: This parser does not support specificat
> ion "null" version "null"
>         at javax.xml.parsers.DocumentBuilderFactory.setSchema(DocumentBuilderFac
> tory.java:489)
>         at org.apache.cxf.aegis.type.XMLTypeCreator.<clinit>(XMLTypeCreator.java
> :125)
>         at org.apache.cxf.aegis.AegisContext.createRootTypeCreator(AegisContext.
> java:119)
>         at org.apache.cxf.aegis.AegisContext.createTypeCreator(AegisContext.java
> :108)
>         at org.apache.cxf.aegis.AegisContext.initialize(AegisContext.java:150)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getClassContext(A
> bstractAegisProvider.java:79)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getAegisContext(A
> bstractAegisProvider.java:66)
>         at org.apache.cxf.jaxrs.provider.AegisElementProvider.writeTo(AegisEleme
> ntProvider.java:69)

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


[jira] Resolved: (CXF-2296) Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime

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

Daniel Kulp resolved CXF-2296.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.6
         Assignee: Daniel Kulp  (was: Sergey Beryozkin)


This is definitely a parser bundle issue in the osgi container.   I added a couple checks and moved some of the exception handling around so if document builder creation fails, it fails right away but the schema creation stuff will just log an INFO and continue.   Nothing major.

> Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime
> ----------------------------------------------------------------------------
>
>                 Key: CXF-2296
>                 URL: https://issues.apache.org/jira/browse/CXF-2296
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.3, 2.3
>            Reporter: Sergey Beryozkin
>            Assignee: Daniel Kulp
>            Priority: Minor
>             Fix For: 2.2.6
>
>
> 17-Jun-2009 14:56:13 org.apache.cxf.aegis.type.XMLTypeCreator <clinit>
> INFO: Parser doesn't support setSchema.  Not validating.
> java.lang.UnsupportedOperationException: This parser does not support specificat
> ion "null" version "null"
>         at javax.xml.parsers.DocumentBuilderFactory.setSchema(DocumentBuilderFac
> tory.java:489)
>         at org.apache.cxf.aegis.type.XMLTypeCreator.<clinit>(XMLTypeCreator.java
> :125)
>         at org.apache.cxf.aegis.AegisContext.createRootTypeCreator(AegisContext.
> java:119)
>         at org.apache.cxf.aegis.AegisContext.createTypeCreator(AegisContext.java
> :108)
>         at org.apache.cxf.aegis.AegisContext.initialize(AegisContext.java:150)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getClassContext(A
> bstractAegisProvider.java:79)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getAegisContext(A
> bstractAegisProvider.java:66)
>         at org.apache.cxf.jaxrs.provider.AegisElementProvider.writeTo(AegisEleme
> ntProvider.java:69)

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


[jira] Updated: (CXF-2296) Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime

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

Sergey Beryozkin updated CXF-2296:
----------------------------------

    Component/s: Aegis Databinding

> Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime
> ----------------------------------------------------------------------------
>
>                 Key: CXF-2296
>                 URL: https://issues.apache.org/jira/browse/CXF-2296
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.3, 2.3
>            Reporter: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 2.2.3, 2.3
>
>
> 17-Jun-2009 14:56:13 org.apache.cxf.aegis.type.XMLTypeCreator <clinit>
> INFO: Parser doesn't support setSchema.  Not validating.
> java.lang.UnsupportedOperationException: This parser does not support specificat
> ion "null" version "null"
>         at javax.xml.parsers.DocumentBuilderFactory.setSchema(DocumentBuilderFac
> tory.java:489)
>         at org.apache.cxf.aegis.type.XMLTypeCreator.<clinit>(XMLTypeCreator.java
> :125)
>         at org.apache.cxf.aegis.AegisContext.createRootTypeCreator(AegisContext.
> java:119)
>         at org.apache.cxf.aegis.AegisContext.createTypeCreator(AegisContext.java
> :108)
>         at org.apache.cxf.aegis.AegisContext.initialize(AegisContext.java:150)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getClassContext(A
> bstractAegisProvider.java:79)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getAegisContext(A
> bstractAegisProvider.java:66)
>         at org.apache.cxf.jaxrs.provider.AegisElementProvider.writeTo(AegisEleme
> ntProvider.java:69)

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


[jira] Assigned: (CXF-2296) Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime

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

Benson Margulies reassigned CXF-2296:
-------------------------------------

    Assignee: Sergey Beryozkin

Sergey, please send back with instructions on how to reproduce this.

> Aegis XMLTypeCreator causes a warning stack trace when used by JAXRS runtime
> ----------------------------------------------------------------------------
>
>                 Key: CXF-2296
>                 URL: https://issues.apache.org/jira/browse/CXF-2296
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.3, 2.3
>            Reporter: Sergey Beryozkin
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 2.2.3, 2.3
>
>
> 17-Jun-2009 14:56:13 org.apache.cxf.aegis.type.XMLTypeCreator <clinit>
> INFO: Parser doesn't support setSchema.  Not validating.
> java.lang.UnsupportedOperationException: This parser does not support specificat
> ion "null" version "null"
>         at javax.xml.parsers.DocumentBuilderFactory.setSchema(DocumentBuilderFac
> tory.java:489)
>         at org.apache.cxf.aegis.type.XMLTypeCreator.<clinit>(XMLTypeCreator.java
> :125)
>         at org.apache.cxf.aegis.AegisContext.createRootTypeCreator(AegisContext.
> java:119)
>         at org.apache.cxf.aegis.AegisContext.createTypeCreator(AegisContext.java
> :108)
>         at org.apache.cxf.aegis.AegisContext.initialize(AegisContext.java:150)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getClassContext(A
> bstractAegisProvider.java:79)
>         at org.apache.cxf.jaxrs.provider.AbstractAegisProvider.getAegisContext(A
> bstractAegisProvider.java:66)
>         at org.apache.cxf.jaxrs.provider.AegisElementProvider.writeTo(AegisEleme
> ntProvider.java:69)

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