Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1443

Unable to resolve scripting languages in OSGi environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 2.0-M1, 1.6.1
    • osgi
    • None
    • Felix OSGi Platform [1.2.2]

    Description

      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)
      ...

      Attachments

        Activity

          People

            njiang Willem Jiang
            zzhou Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: