felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-5120) ScriptEngineManager not able to parse service file with comments at end of classname
Date Mon, 30 Nov 2015 06:22:10 GMT
Chetan Mehrotra created FELIX-5120:
--------------------------------------

             Summary: ScriptEngineManager not able to parse service file with comments at
end of classname
                 Key: FELIX-5120
                 URL: https://issues.apache.org/jira/browse/FELIX-5120
             Project: Felix
          Issue Type: Bug
          Components: Script Console Plugin
    Affects Versions: script-console-1.0.0
            Reporter: Chetan Mehrotra
            Assignee: Chetan Mehrotra
            Priority: Minor
             Fix For: script-console-1.0.2


A service file can also have a comment like below like

{noformat}
#script engines supported

com.sun.script.javascript.RhinoScriptEngineFactory #javascript
{noformat}

Such a service file is not parsed properly and following exception is thrown
{noformat}
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]
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message