security error running org.jruby.demo.IRBConsole in jruby-complete
-------------------------------------------------------------------
Key: JRUBY-4116
URL: http://jira.codehaus.org/browse/JRUBY-4116
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.4
Environment: jruby 1.4.0RC1 (ruby 1.8.7 patchlevel 174) (2009-10-19
6586) (Java HotSpot(TM) Client VM 1.5.0_20) [i386-java]
MacOS X 10.5.8
Reporter: Stephen Bannasch
running IRBConsole through webstart generates a security error
In the source:
{code}
cd samples/jnlp
ant
javaws jirb.jnlp
{code}
Results in this error:
(turn on tracing in java web start preferences to generate trace files)
file: ~/Library/Caches/java/log/javaws<nnnnnnnnn>/trace
{code}
java.security.AccessControlException: access denied
(java.lang.reflect.ReflectPermission suppressAccessChecks)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at
java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:107)
at org.jruby.ext.Readline$ReadlineHistory.<init>(Readline.java:89)
at org.jruby.ext.Readline.createReadline(Readline.java:137)
at org.jruby.ext.Readline$Service.load(Readline.java:78)
at
org.jruby.runtime.load.LoadService.reflectedLoad(LoadService.java:343)
at org.jruby.ext.LateLoadingLibrary.load(LateLoadingLibrary.java:49)
at
org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:631)
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:309)
at org.jruby.runtime.load.LoadService.require(LoadService.java:320)
at
org.jruby.demo.TextAreaReadline.hookIntoRuntime(TextAreaReadline.java:271)
at org.jruby.demo.IRBConsole.main(IRBConsole.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1509)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1447)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1258)
at com.sun.javaws.Launcher.run(Launcher.java:114)
at java.lang.Thread.run(Thread.java:613)
Exception in thread "Thread-4" <script>:1:in `require': no such file to load --
irb (LoadError)
from <script>:1
...internal jruby stack elided...
from Kernel.require(<script>:1)
from (unknown).(unknown)(:1)
{code}
Running the signed/trusted version works:
{code}
javaws signed-jirb.jnlp
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.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