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

javascript language not resolving

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.10.0
    • 2.12.3, 2.13.0
    • camel-script, osgi
    • JBoss Fuse 6.0.0, windows

    • Moderate

    Description

      .when().javascript("3 > 1 + 1") causes bundle not to be loaded, with the following error:

      ERROR | BluePrinntContainerImpl | Bundle my-service is waiting for dependencies
      [(&(language=js)(objectClass=org.apache.camel.spi.LanguageResolver))]

      It seems that the javascript language is not registered correctly.

      Adding a custom Activator to register languages found by all ScriptEngineFactory's, and registering Rhino engine as "js" instead of "ECMAScript" seems to solve the problem.

      This problem is in 2.10.0. I have no idea if it has been fixed in other versions.

      Can someone please check .javascript() functionality in 2.11? Since if it has indeed been fixed in future versions, then this bug can be closed

      Workaround posted here:

      http://stackoverflow.com/questions/20997276/jboss-fuse-apache-camel-wont-resolve-language-js-javascript-for-bundle

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            vikingsteve Steve Murphy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: