You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Leo Bayer (JIRA)" <ji...@apache.org> on 2008/12/15 22:47:44 UTC

[jira] Created: (CXF-1948) Interface is not visible when CXF does not have visiblility to domain classes.

Interface is not visible when CXF does not have visiblility to domain classes.
------------------------------------------------------------------------------

                 Key: CXF-1948
                 URL: https://issues.apache.org/jira/browse/CXF-1948
             Project: CXF
          Issue Type: Bug
          Components: Aegis Databinding
    Affects Versions: 2.1.3
            Reporter: Leo Bayer


When CXF is deployed as a bundle in OSGi and interfaces are used for the types Aegis tries to create a proxy using it's own class loader.  Because the domain interfaces are not visible from that class loader an error occurs.

org.apache.cxf.interceptor.Fault: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.borland.alm.remote.domain.RepositoryTypeIfc is not visible from class loader
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:49)
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:34)
        <Snipped>
Caused by: org.apache.cxf.aegis.DatabindingException: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.borland.alm.remote.domain.RepositoryTypeIfc is not visible from class loader
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:170)
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:146)
	at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:47)
	... 19 more
Caused by: java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:99)
	... 22 more

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


[jira] Updated: (CXF-1948) Interface is not visible when CXF does not have visiblility to domain classes.

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

Leo Bayer updated CXF-1948:
---------------------------

    Description: 
When CXF is deployed as a bundle in OSGi and interfaces are used for the types Aegis tries to create a proxy using it's own class loader.  Because the domain interfaces are not visible from that class loader an error occurs.

org.apache.cxf.interceptor.Fault: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:49)
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:34)
        <Snipped>
Caused by: org.apache.cxf.aegis.DatabindingException: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.borland.alm.remote.domain.RepositoryTypeIfc is not visible from class loader
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:170)
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:146)
	at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:47)
	... 19 more
Caused by: java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:99)
	... 22 more

  was:
When CXF is deployed as a bundle in OSGi and interfaces are used for the types Aegis tries to create a proxy using it's own class loader.  Because the domain interfaces are not visible from that class loader an error occurs.

org.apache.cxf.interceptor.Fault: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.borland.alm.remote.domain.RepositoryTypeIfc is not visible from class loader
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:49)
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:34)
        <Snipped>
Caused by: org.apache.cxf.aegis.DatabindingException: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.borland.alm.remote.domain.RepositoryTypeIfc is not visible from class loader
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:170)
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:146)
	at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:47)
	... 19 more
Caused by: java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:99)
	... 22 more


> Interface is not visible when CXF does not have visiblility to domain classes.
> ------------------------------------------------------------------------------
>
>                 Key: CXF-1948
>                 URL: https://issues.apache.org/jira/browse/CXF-1948
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.3
>            Reporter: Leo Bayer
>         Attachments: BeanType.java.diff
>
>
> When CXF is deployed as a bundle in OSGi and interfaces are used for the types Aegis tries to create a proxy using it's own class loader.  Because the domain interfaces are not visible from that class loader an error occurs.
> org.apache.cxf.interceptor.Fault: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:49)
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:34)
>         <Snipped>
> Caused by: org.apache.cxf.aegis.DatabindingException: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.borland.alm.remote.domain.RepositoryTypeIfc is not visible from class loader
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:170)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:146)
> 	at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:47)
> 	... 19 more
> Caused by: java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
> 	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:99)
> 	... 22 more

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


[jira] Resolved: (CXF-1948) Interface is not visible when CXF does not have visiblility to domain classes.

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

Daniel Kulp resolved CXF-1948.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.4
         Assignee: Daniel Kulp

> Interface is not visible when CXF does not have visiblility to domain classes.
> ------------------------------------------------------------------------------
>
>                 Key: CXF-1948
>                 URL: https://issues.apache.org/jira/browse/CXF-1948
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.3
>            Reporter: Leo Bayer
>            Assignee: Daniel Kulp
>             Fix For: 2.1.4
>
>         Attachments: BeanType.java.diff
>
>
> When CXF is deployed as a bundle in OSGi and interfaces are used for the types Aegis tries to create a proxy using it's own class loader.  Because the domain interfaces are not visible from that class loader an error occurs.
> org.apache.cxf.interceptor.Fault: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:49)
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:34)
>         <Snipped>
> Caused by: org.apache.cxf.aegis.DatabindingException: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:170)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:146)
> 	at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:47)
> 	... 19 more
> Caused by: java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
> 	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:99)
> 	... 22 more

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


[jira] Updated: (CXF-1948) Interface is not visible when CXF does not have visiblility to domain classes.

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

Leo Bayer updated CXF-1948:
---------------------------

    Attachment: BeanType.java.diff

Patch that uses the target interface's classloader to create the proxy.

( Patches org.apache.cxf.aegis.type.basic.BeanType )

> Interface is not visible when CXF does not have visiblility to domain classes.
> ------------------------------------------------------------------------------
>
>                 Key: CXF-1948
>                 URL: https://issues.apache.org/jira/browse/CXF-1948
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.3
>            Reporter: Leo Bayer
>         Attachments: BeanType.java.diff
>
>
> When CXF is deployed as a bundle in OSGi and interfaces are used for the types Aegis tries to create a proxy using it's own class loader.  Because the domain interfaces are not visible from that class loader an error occurs.
> org.apache.cxf.interceptor.Fault: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.borland.alm.remote.domain.RepositoryTypeIfc is not visible from class loader
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:49)
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:34)
>         <Snipped>
> Caused by: org.apache.cxf.aegis.DatabindingException: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.borland.alm.remote.domain.RepositoryTypeIfc is not visible from class loader
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:170)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:146)
> 	at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:47)
> 	... 19 more
> Caused by: java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
> 	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:99)
> 	... 22 more

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


[jira] Commented: (CXF-1948) Interface is not visible when CXF does not have visiblility to domain classes.

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

Benson Margulies commented on CXF-1948:
---------------------------------------

It would be really helpful if you could add in a test case that we can check in, as I don't have a way to regress this as things are. If you can't, I'll look for help from the people doing OSGI around CXF.

> Interface is not visible when CXF does not have visiblility to domain classes.
> ------------------------------------------------------------------------------
>
>                 Key: CXF-1948
>                 URL: https://issues.apache.org/jira/browse/CXF-1948
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.3
>            Reporter: Leo Bayer
>         Attachments: BeanType.java.diff
>
>
> When CXF is deployed as a bundle in OSGi and interfaces are used for the types Aegis tries to create a proxy using it's own class loader.  Because the domain interfaces are not visible from that class loader an error occurs.
> org.apache.cxf.interceptor.Fault: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:49)
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:34)
>         <Snipped>
> Caused by: org.apache.cxf.aegis.DatabindingException: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:170)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:146)
> 	at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:47)
> 	... 19 more
> Caused by: java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
> 	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:99)
> 	... 22 more

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


[jira] Updated: (CXF-1948) Interface is not visible when CXF does not have visiblility to domain classes.

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

Leo Bayer updated CXF-1948:
---------------------------

    Description: 
When CXF is deployed as a bundle in OSGi and interfaces are used for the types Aegis tries to create a proxy using it's own class loader.  Because the domain interfaces are not visible from that class loader an error occurs.

org.apache.cxf.interceptor.Fault: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:49)
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:34)
        <Snipped>
Caused by: org.apache.cxf.aegis.DatabindingException: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:170)
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:146)
	at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:47)
	... 19 more
Caused by: java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:99)
	... 22 more

  was:
When CXF is deployed as a bundle in OSGi and interfaces are used for the types Aegis tries to create a proxy using it's own class loader.  Because the domain interfaces are not visible from that class loader an error occurs.

org.apache.cxf.interceptor.Fault: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:49)
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:34)
        <Snipped>
Caused by: org.apache.cxf.aegis.DatabindingException: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.borland.alm.remote.domain.RepositoryTypeIfc is not visible from class loader
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:170)
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:146)
	at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:47)
	... 19 more
Caused by: java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:99)
	... 22 more


> Interface is not visible when CXF does not have visiblility to domain classes.
> ------------------------------------------------------------------------------
>
>                 Key: CXF-1948
>                 URL: https://issues.apache.org/jira/browse/CXF-1948
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1.3
>            Reporter: Leo Bayer
>         Attachments: BeanType.java.diff
>
>
> When CXF is deployed as a bundle in OSGi and interfaces are used for the types Aegis tries to create a proxy using it's own class loader.  Because the domain interfaces are not visible from that class loader an error occurs.
> org.apache.cxf.interceptor.Fault: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:49)
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:34)
>         <Snipped>
> Caused by: org.apache.cxf.aegis.DatabindingException: Illegal argument. interface com.example.IDomainThing is not visible from class loader. Nested exception is java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:170)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:146)
> 	at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:47)
> 	... 19 more
> Caused by: java.lang.IllegalArgumentException: interface com.example.IDomainThing is not visible from class loader
> 	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
> 	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:99)
> 	... 22 more

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