Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.4
-
Fix Version/s: JRuby 1.5
-
Component/s: None
-
Labels:None
-
Environment:Web browser, github trunk, Mac OS 10.6, Java 6, Firefox 3.5 and Safari 4.0.3.
-
Number of attachments :
Description
JRUBY-3930 got me think about IRB applet got me thinking about "Try JRuby", a la _why's. But, alas, it doesn't seem to work on trunk. I get this in Java console:
MRJ Plugin for Mac OS X v1.0.1 [starting up Java Applet Security @ Fri Sep 04 20:45:13 CDT 2009] Fri Sep 04 20:45:14 CDT 2009 JEP creating applet org.jruby.JRubyApplet (file:/Users/asari/Development/src/jruby/lib/) <<< ProxyClassLoader: defined LiveConnectProxy class. >>> <<< Here're the permissions you've got: >>> <<< java.security.Permissions@dc0435 ( (java.io.FilePermission read) ) >>> java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) 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.ext.LateLoadingLibrary.load(LateLoadingLibrary.java:55) at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:597) at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:304) at org.jruby.runtime.load.LoadService.require(LoadService.java:315) at org.jruby.demo.TextAreaReadline.hookIntoRuntime(TextAreaReadline.java:271) at org.jruby.JRubyApplet$ConsoleFacade.attach(JRubyApplet.java:410) at org.jruby.JRubyApplet$2.run(JRubyApplet.java:228) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) at java.awt.EventQueue.dispatchEvent(EventQueue.java:633) at jep.MySimpleEventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) java.lang.RuntimeException: Error running script at org.jruby.JRubyApplet.init(JRubyApplet.java:239) at sun.applet.AppletPanel.run(AppletPanel.java:424) at jep.AppletFramePanel.run(Unknown Source) at java.lang.Thread.run(Thread.java:637) Caused by: org.jruby.exceptions.RaiseException: no such file to load -- irb at (unknown).new(<script>:1) at Kernel.require(<script>:1) at (unknown).(unknown)(:1)
I don't know enough about the security stuff to troubleshoot any further.
Activity
Vladimir Sizikov
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Thomas E Enebo [ enebo ] | Vladimir Sizikov [ vvs ] |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | JRuby 1.5 [ 15792 ] |
Charles Oliver Nutter
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Does the "test-security-manager" ant target work for you? A way to troubleshoot further would be to use the sample security policy in test/restricted.policy like so:
And see what blows up.