Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5120

ScriptEngineManager not able to parse service file with comments at end of classname

    XMLWordPrintableJSON

Details

    Description

      A service file can also have a comment like below like

      #script engines supported
      
      com.sun.script.javascript.RhinoScriptEngineFactory #javascript
      

      Such a service file is not parsed properly and following exception is thrown

      2015-11-30 11:23:58.375 ERROR 23215 --- [ixDispatchQueue] o.a.f.webconsole.plugins.scriptconsole   : Cannot register ScriptEngineFactory com.sun.script.javascript.RhinoScriptEngineFactory #javascript (java.lang.ClassNotFoundException: com.sun.script.javascript.RhinoScriptEngineFactory #javascript)
      
      java.lang.ClassNotFoundException: com.sun.script.javascript.RhinoScriptEngineFactory #javascript
              at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[na:1.7.0_55]
              at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[na:1.7.0_55]
              at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_55]
              at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[na:1.7.0_55]
              at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[na:1.7.0_55]
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[na:1.7.0_55]
              at org.apache.felix.connect.PojoSRBundle.loadClass(PojoSRBundle.java:451) ~[org.apache.felix.connect-0.1.0.jar:na]
              at org.apache.felix.webconsole.plugins.scriptconsole.internal.ScriptEngineManager.registerFactories(ScriptEngineManager.java:197) [org.apache.felix.webconsole.plugins.scriptconsole-1.0.0.jar:na]
              at org.apache.felix.webconsole.plugins.scriptconsole.internal.ScriptEngineManager.refreshScriptEngineManager(ScriptEngineManager.java:160) [org.apache.felix.webconsole.plugins.scriptconsole-1.0.0.jar:na]
              at org.apache.felix.webconsole.plugins.scriptconsole.internal.ScriptEngineManager.bundleChanged(ScriptEngineManager.java:111) [org.apache.felix.webconsole.plugins.scriptconsole-1.0.0.jar:na]
              at org.apache.felix.connect.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:821) [org.apache.felix.connect-0.1.0.jar:na]
              at org.apache.felix.connect.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:771) [org.apache.felix.connect-0.1.0.jar:na]
              at org.apache.felix.connect.felix.framework.util.EventDispatcher.run(EventDispatcher.java:993) [org.apache.felix.connect-0.1.0.jar:na]
              at org.apache.felix.connect.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:52) [org.apache.felix.connect-0.1.0.jar:na]
              at org.apache.felix.connect.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:94) [org.apache.felix.connect-0.1.0.jar:na]
              at java.lang.Thread.run(Thread.java:745) [na:1.7.0_55]
      

      Attachments

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: