You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Łukasz Dywicki (JIRA)" <ji...@apache.org> on 2010/03/19 12:53:53 UTC

[jira] Created: (CAMEL-2562) Camel-rss don't work in OSGi

Camel-rss don't work in OSGi
----------------------------

                 Key: CAMEL-2562
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2562
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-rss
    Affects Versions: 2.2.0
         Environment: ServiceMix 4.x, FUSE 4.2.x
            Reporter: Łukasz Dywicki
            Assignee: Łukasz Dywicki


Rss polling endpoints can not be started in OSGi due NoClassDefError in ROME. Root cause of all problems are com.sun.syndication.io.impl.PropertiesLoader and Thread.currentThread().getContextClassLoader() usage in this class.
Patch provided in http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/ may break rome features like providing own Parsers/Generators/Converters using rome.properties file.

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


[jira] Updated: (CAMEL-2562) Camel-rss don't work in OSGi

Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Łukasz Dywicki updated CAMEL-2562:
----------------------------------

    Attachment: patch.patch

Patch to review.

> Camel-rss don't work in OSGi
> ----------------------------
>
>                 Key: CAMEL-2562
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2562
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-rss
>    Affects Versions: 2.2.0
>         Environment: ServiceMix 4.x, FUSE 4.2.x
>            Reporter: Łukasz Dywicki
>            Assignee: Łukasz Dywicki
>         Attachments: patch.patch
>
>
> Rss polling endpoints can not be started in OSGi due NoClassDefError in ROME. Root cause of all problems are com.sun.syndication.io.impl.PropertiesLoader and Thread.currentThread().getContextClassLoader() usage in this class.
> Patch provided in http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/ may break rome features like providing own Parsers/Generators/Converters using rome.properties file.

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


[jira] Assigned: (CAMEL-2562) Camel-rss don't work in OSGi

Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Łukasz Dywicki reassigned CAMEL-2562:
-------------------------------------

    Assignee: Gert Vanthienen  (was: Łukasz Dywicki)

Gert please review this simple patch. ROME team currently didn't say anything about issue submitted in last week.

> Camel-rss don't work in OSGi
> ----------------------------
>
>                 Key: CAMEL-2562
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2562
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-rss
>    Affects Versions: 2.2.0
>         Environment: ServiceMix 4.x, FUSE 4.2.x
>            Reporter: Łukasz Dywicki
>            Assignee: Gert Vanthienen
>         Attachments: patch.patch
>
>
> Rss polling endpoints can not be started in OSGi due NoClassDefError in ROME. Root cause of all problems are com.sun.syndication.io.impl.PropertiesLoader and Thread.currentThread().getContextClassLoader() usage in this class.
> Patch provided in http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/ may break rome features like providing own Parsers/Generators/Converters using rome.properties file.

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


[jira] Commented: (CAMEL-2562) Camel-rss don't work in OSGi

Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58414#action_58414 ] 

Łukasz Dywicki commented on CAMEL-2562:
---------------------------------------

I vote for second option. Putting another repository to Karaf with only one artifact is mistake. 

> Camel-rss don't work in OSGi
> ----------------------------
>
>                 Key: CAMEL-2562
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2562
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-rss
>    Affects Versions: 2.2.0
>         Environment: ServiceMix 4.x, FUSE 4.2.x
>            Reporter: Łukasz Dywicki
>            Assignee: Gert Vanthienen
>         Attachments: patch.patch
>
>
> Rss polling endpoints can not be started in OSGi due NoClassDefError in ROME. Root cause of all problems are com.sun.syndication.io.impl.PropertiesLoader and Thread.currentThread().getContextClassLoader() usage in this class.
> Patch provided in http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/ may break rome features like providing own Parsers/Generators/Converters using rome.properties file.

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


[jira] Commented: (CAMEL-2562) Camel-rss don't work in OSGi

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58388#action_58388 ] 

Willem Jiang commented on CAMEL-2562:
-------------------------------------

@Lukasz,
I don't think this patch is related to camel source repository.
Did I missing something?


> Camel-rss don't work in OSGi
> ----------------------------
>
>                 Key: CAMEL-2562
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2562
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-rss
>    Affects Versions: 2.2.0
>         Environment: ServiceMix 4.x, FUSE 4.2.x
>            Reporter: Łukasz Dywicki
>            Assignee: Gert Vanthienen
>         Attachments: patch.patch
>
>
> Rss polling endpoints can not be started in OSGi due NoClassDefError in ROME. Root cause of all problems are com.sun.syndication.io.impl.PropertiesLoader and Thread.currentThread().getContextClassLoader() usage in this class.
> Patch provided in http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/ may break rome features like providing own Parsers/Generators/Converters using rome.properties file.

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


[jira] Commented: (CAMEL-2562) Camel-rss don't work in OSGi

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58412#action_58412 ] 

Willem Jiang commented on CAMEL-2562:
-------------------------------------

Hi Lukasz,

I'm afraid you need to create a JIRA in ServiceMix,which may ring the bell of Gert :)
The only thing that I think we can do in Camel is updating the features file for new ROME bundle. 

> Camel-rss don't work in OSGi
> ----------------------------
>
>                 Key: CAMEL-2562
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2562
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-rss
>    Affects Versions: 2.2.0
>         Environment: ServiceMix 4.x, FUSE 4.2.x
>            Reporter: Łukasz Dywicki
>            Assignee: Gert Vanthienen
>         Attachments: patch.patch
>
>
> Rss polling endpoints can not be started in OSGi due NoClassDefError in ROME. Root cause of all problems are com.sun.syndication.io.impl.PropertiesLoader and Thread.currentThread().getContextClassLoader() usage in this class.
> Patch provided in http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/ may break rome features like providing own Parsers/Generators/Converters using rome.properties file.

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


[jira] Commented: (CAMEL-2562) Camel-rss don't work in OSGi

Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58380#action_58380 ] 

Łukasz Dywicki commented on CAMEL-2562:
---------------------------------------

I checked this problem - ROME PluginManager try to use class loader from endpoint bundle. I added simple fallback condition to ROME - first of all ROME try to use bundle class loader to resolve plugin classes. If they will thow ClassNotFoundException PluginManager will use local class loader. All ROME features should work with this because patch does not have any impact to standard behaviour.

> Camel-rss don't work in OSGi
> ----------------------------
>
>                 Key: CAMEL-2562
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2562
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-rss
>    Affects Versions: 2.2.0
>         Environment: ServiceMix 4.x, FUSE 4.2.x
>            Reporter: Łukasz Dywicki
>            Assignee: Łukasz Dywicki
>         Attachments: patch.patch
>
>
> Rss polling endpoints can not be started in OSGi due NoClassDefError in ROME. Root cause of all problems are com.sun.syndication.io.impl.PropertiesLoader and Thread.currentThread().getContextClassLoader() usage in this class.
> Patch provided in http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/ may break rome features like providing own Parsers/Generators/Converters using rome.properties file.

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


[jira] Commented: (CAMEL-2562) Camel-rss don't work in OSGi

Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58395#action_58395 ] 

Łukasz Dywicki commented on CAMEL-2562:
---------------------------------------

Hello Willem,
You're right - this path is for ROME not for Camel. I subitted this here because ROME looks like death project (spam on developer mailing list, no activity on issue tracker). If patch will be accepted we can fix and move ROME codebase to servicemix bundles repository.

> Camel-rss don't work in OSGi
> ----------------------------
>
>                 Key: CAMEL-2562
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2562
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-rss
>    Affects Versions: 2.2.0
>         Environment: ServiceMix 4.x, FUSE 4.2.x
>            Reporter: Łukasz Dywicki
>            Assignee: Gert Vanthienen
>         Attachments: patch.patch
>
>
> Rss polling endpoints can not be started in OSGi due NoClassDefError in ROME. Root cause of all problems are com.sun.syndication.io.impl.PropertiesLoader and Thread.currentThread().getContextClassLoader() usage in this class.
> Patch provided in http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/ may break rome features like providing own Parsers/Generators/Converters using rome.properties file.

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


[jira] Commented: (CAMEL-2562) Camel-rss don't work in OSGi

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58413#action_58413 ] 

Gert Vanthienen commented on CAMEL-2562:
----------------------------------------

L.S.,

If the patch provided fixes the issue, it's OK for me.  We have two ways to get this included in Camel:
# use the version provided in repository.code-house.org which already includes the fix
# build a servicemix bundle for Rome which includes this fix

Personally, I would prefer option 2 because that will eventually get us a valid bundle for Rome in central repository.  If that's OK for everyone, I'll move the issue to the SMX4 project and build the bundle to update the Camel features.xml afterwards.  If we stick to scenario 1, all we need to do in Camel is use that bundle in our features.xml and we're done.

Regards,

Gert

> Camel-rss don't work in OSGi
> ----------------------------
>
>                 Key: CAMEL-2562
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2562
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-rss
>    Affects Versions: 2.2.0
>         Environment: ServiceMix 4.x, FUSE 4.2.x
>            Reporter: Łukasz Dywicki
>            Assignee: Gert Vanthienen
>         Attachments: patch.patch
>
>
> Rss polling endpoints can not be started in OSGi due NoClassDefError in ROME. Root cause of all problems are com.sun.syndication.io.impl.PropertiesLoader and Thread.currentThread().getContextClassLoader() usage in this class.
> Patch provided in http://repository.code-house.org/content/repositories/code-house.public.release/rome/rome/1.0-osgi/ may break rome features like providing own Parsers/Generators/Converters using rome.properties file.

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