You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Zhou Zhi (JIRA)" <ji...@apache.org> on 2009/03/10 05:14:39 UTC
[jira] Created: (CAMEL-1443) Unable to resolve scripting languages
in OSGi environment
Unable to resolve scripting languages in OSGi environment
---------------------------------------------------------
Key: CAMEL-1443
URL: https://issues.apache.org/activemq/browse/CAMEL-1443
Project: Apache Camel
Issue Type: Bug
Components: camel-osgi
Affects Versions: 1.6.0
Environment: Felix OSGi Platform [1.2.2]
Reporter: Zhou Zhi
The OsgiLanguageResolver.java created since CAMEL-1221 does not resolve scripting languages by using the default resolver declared in camel-script. The DefaultLanguageResolver, however in the non-osgi context, handles it properly.
This leads to NullPointerException while launching a route in an OSGi container using a scripting language, e.g. javascript.
Exception in thread "SpringOsgiExtenderThread-2" java.lang.NullPointerException
at org.apache.camel.model.language.ExpressionType.createPredicate(ExpressionType.java:145)
at org.apache.camel.model.ExpressionNode.createFilterProcessor(ExpressionNode.java:95)
at org.apache.camel.model.WhenType.createProcessor(WhenType.java:57)
at org.apache.camel.model.ChoiceType.createProcessor(ChoiceType.java:73)
...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-1443) Unable to resolve scripting languages
in OSGi environment
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-1443:
-----------------------------------
Assignee: Willem Jiang
> Unable to resolve scripting languages in OSGi environment
> ---------------------------------------------------------
>
> Key: CAMEL-1443
> URL: https://issues.apache.org/activemq/browse/CAMEL-1443
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Environment: Felix OSGi Platform [1.2.2]
> Reporter: Zhou Zhi
> Assignee: Willem Jiang
>
> The OsgiLanguageResolver.java created since CAMEL-1221 does not resolve scripting languages by using the default resolver declared in camel-script. The DefaultLanguageResolver, however in the non-osgi context, handles it properly.
> This leads to NullPointerException while launching a route in an OSGi container using a scripting language, e.g. javascript.
> Exception in thread "SpringOsgiExtenderThread-2" java.lang.NullPointerException
> at org.apache.camel.model.language.ExpressionType.createPredicate(ExpressionType.java:145)
> at org.apache.camel.model.ExpressionNode.createFilterProcessor(ExpressionNode.java:95)
> at org.apache.camel.model.WhenType.createProcessor(WhenType.java:57)
> at org.apache.camel.model.ChoiceType.createProcessor(ChoiceType.java:73)
> ...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1443) Unable to resolve scripting languages
in OSGi environment
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-1443:
-------------------------------
Fix Version/s: (was: 2.0-M1)
2.0.0
> Unable to resolve scripting languages in OSGi environment
> ---------------------------------------------------------
>
> Key: CAMEL-1443
> URL: https://issues.apache.org/activemq/browse/CAMEL-1443
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Environment: Felix OSGi Platform [1.2.2]
> Reporter: Zhou Zhi
> Assignee: Willem Jiang
> Fix For: 2.0.0, 1.6.1
>
>
> The OsgiLanguageResolver.java created since CAMEL-1221 does not resolve scripting languages by using the default resolver declared in camel-script. The DefaultLanguageResolver, however in the non-osgi context, handles it properly.
> This leads to NullPointerException while launching a route in an OSGi container using a scripting language, e.g. javascript.
> Exception in thread "SpringOsgiExtenderThread-2" java.lang.NullPointerException
> at org.apache.camel.model.language.ExpressionType.createPredicate(ExpressionType.java:145)
> at org.apache.camel.model.ExpressionNode.createFilterProcessor(ExpressionNode.java:95)
> at org.apache.camel.model.WhenType.createProcessor(WhenType.java:57)
> at org.apache.camel.model.ChoiceType.createProcessor(ChoiceType.java:73)
> ...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1443) Unable to resolve scripting
languages in OSGi environment
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50381#action_50381 ]
Willem Jiang commented on CAMEL-1443:
-------------------------------------
Thanks for point it out.
I just checked the code, current OsgiLanguageResolver can't handle the LanguageResolver rightly and will did a quick fix for it.
Willem
> Unable to resolve scripting languages in OSGi environment
> ---------------------------------------------------------
>
> Key: CAMEL-1443
> URL: https://issues.apache.org/activemq/browse/CAMEL-1443
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Environment: Felix OSGi Platform [1.2.2]
> Reporter: Zhou Zhi
> Assignee: Willem Jiang
>
> The OsgiLanguageResolver.java created since CAMEL-1221 does not resolve scripting languages by using the default resolver declared in camel-script. The DefaultLanguageResolver, however in the non-osgi context, handles it properly.
> This leads to NullPointerException while launching a route in an OSGi container using a scripting language, e.g. javascript.
> Exception in thread "SpringOsgiExtenderThread-2" java.lang.NullPointerException
> at org.apache.camel.model.language.ExpressionType.createPredicate(ExpressionType.java:145)
> at org.apache.camel.model.ExpressionNode.createFilterProcessor(ExpressionNode.java:95)
> at org.apache.camel.model.WhenType.createProcessor(WhenType.java:57)
> at org.apache.camel.model.ChoiceType.createProcessor(ChoiceType.java:73)
> ...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1443) Unable to resolve scripting languages
in OSGi environment
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-1443.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.6.1
2.0-M1
trunk
http://svn.apache.org/viewvc?rev=752117&view=rev
http://svn.apache.org/viewvc?rev=752764&view=rev
http://svn.apache.org/viewvc?rev=752773&view=rev
1.x branch
http://svn.apache.org/viewvc?rev=752137&view=rev
http://svn.apache.org/viewvc?rev=752787&view=rev
> Unable to resolve scripting languages in OSGi environment
> ---------------------------------------------------------
>
> Key: CAMEL-1443
> URL: https://issues.apache.org/activemq/browse/CAMEL-1443
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Environment: Felix OSGi Platform [1.2.2]
> Reporter: Zhou Zhi
> Assignee: Willem Jiang
> Fix For: 2.0-M1, 1.6.1
>
>
> The OsgiLanguageResolver.java created since CAMEL-1221 does not resolve scripting languages by using the default resolver declared in camel-script. The DefaultLanguageResolver, however in the non-osgi context, handles it properly.
> This leads to NullPointerException while launching a route in an OSGi container using a scripting language, e.g. javascript.
> Exception in thread "SpringOsgiExtenderThread-2" java.lang.NullPointerException
> at org.apache.camel.model.language.ExpressionType.createPredicate(ExpressionType.java:145)
> at org.apache.camel.model.ExpressionNode.createFilterProcessor(ExpressionNode.java:95)
> at org.apache.camel.model.WhenType.createProcessor(WhenType.java:57)
> at org.apache.camel.model.ChoiceType.createProcessor(ChoiceType.java:73)
> ...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.