Rhino shell crashes with NullPointerException

Bug #705339 reported by Simi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rhino (Debian)
Fix Released
Undecided
Unassigned
rhino (Ubuntu)
New
Undecided
Unassigned

Bug Description

~$ java -jar /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar
Rhino 1.7 release 2 2010 01 20
Exception in thread "main" java.lang.NullPointerException
 at sun.org.mozilla.javascript.Kit.classOrNull(Kit.java:92)
 at sun.org.mozilla.javascript.tools.shell.ShellLine.getStream(ShellLine.java:65)
 at sun.org.mozilla.javascript.tools.shell.Global.getIn(Global.java:829)
 at sun.org.mozilla.javascript.tools.shell.Main.processSource(Main.java:385)
 at sun.org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:196)
 at sun.org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:117)
 at sun.org.mozilla.javascript.Context.call(Context.java:515)
 at sun.org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
 at sun.org.mozilla.javascript.tools.shell.Main.exec(Main.java:179)
 at sun.org.mozilla.javascript.tools.shell.Main.main(Main.java:157)

I suppose it's same error like:
http://stackoverflow.com/questions/1942922/error-when-running-rhino/1943349#1943349
https://bugzilla.mozilla.org/show_bug.cgi?id=495785

My system:
~$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.2) (6b20-1.9.2-0ubuntu1~10.04.1)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

~$ lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04

Revision history for this message
JanBrinkmann (jbrinkmann) wrote :

Assigning to package "rhino" since it's a rhino bug

affects: openjdk-6 (Ubuntu) → rhino (Ubuntu)
Revision history for this message
Damien Raude-Morvan (drazzib) wrote :

This fix is in rhino 1.7R3~pre-2 in Debian

Changed in rhino (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.