Rhett Sutphin created JRUBY-6436:
------------------------------------

             Summary: OSGiScriptingContainer dumps a trace to standard error 
when seemingly functioning properly
                 Key: JRUBY-6436
                 URL: https://jira.codehaus.org/browse/JRUBY-6436
             Project: JRuby
          Issue Type: Bug
          Components: Embedding
    Affects Versions: JRuby 1.6.6
         Environment: Apache Felix 3.0.9
            Reporter: Rhett Sutphin
            Priority: Minor


OSGiScriptingContainer will the stacktrace below to standard error during 
initialization if JRuby is bundled in a JAR. In my testing, the trace does not 
indicate a problem -- the scripting container seems to work fine. Since 
JRuby-in-a-JAR seems like it would a common case, particularly in an OSGi 
environment, I suggest that this trace is more confusing than useful.

The trace:

java.io.IOException: Unable to find the /META-INF/jruby.home folder in the 
bundle 'org.jruby.jruby'
        at 
org.jruby.embed.osgi.utils.OSGiFileLocator.getFileInBundle(OSGiFileLocator.java:75)
        at 
org.jruby.embed.osgi.utils.OSGiFileLocator.getFileInBundle(OSGiFileLocator.java:64)
        at 
org.jruby.embed.osgi.utils.OSGiFileLocator.getJRubyHomeFolder(OSGiFileLocator.java:56)
        at 
org.jruby.embed.osgi.OSGiScriptingContainer.<init>(OSGiScriptingContainer.java:92)
        at 
edu.northwestern.bioinformatics.ctmssuite.authorization.ruby.internal.RubySuiteAuthorizationSourceManager.buildNewSource(RubySuiteAuthorizationSourceManager.java:36)
        at 
edu.northwestern.bioinformatics.ctmssuite.authorization.ruby.internal.RubySuiteAuthorizationSourceManager.updateSourceScript(RubySuiteAuthorizationSourceManager.java:29)
        at 
edu.northwestern.bioinformatics.ctmssuite.authorization.ruby.internal.RubySuiteAuthorizationSourceManager.<init>(RubySuiteAuthorizationSourceManager.java:23)
        at 
edu.northwestern.bioinformatics.ctmssuite.authorization.ruby.internal.RubySuiteAuthorizationSourceFactory.updated(RubySuiteAuthorizationSourceFactory.java:37)
        at 
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1567)
        at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104)
        at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.IllegalArgumentException: URI scheme is not "file"
        at java.io.File.<init>(File.java:366)
        at 
org.jruby.embed.osgi.utils.OSGiFileLocator.getFileInBundle(OSGiFileLocator.java:70)
        ... 10 more


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to