Context.exit without Context.enter

206 views
Skip to first unread message

jan

unread,
Mar 20, 2009, 2:16:52 PM3/20/09
to Helma
Hello,

I'm trying to install helma on ubuntu (hardy). I have the same error
that was reported earlier by Philip. The machine I do this on is a
virtual server with 256Mb guaranteed memory. Locally on my windows
development pc everything runs fine and it certainly does not take so
much memory. Does anyone have a clue how I can find out what's going
wrong?

Starting Helma in directory /home/jan/helma-1.6.3
Starting HTTP server on port 8080
Starting Helma 1.6.3 (November 25 2008) on Java 1.6.0_0
Exception in thread "manage-1" java.lang.IllegalStateException:
Calling Context.exit without previous Context.enter
at org.mozilla.javascript.Context.exit(Context.java:468)
at org.mozilla.javascript.Context.exit(Context.java:460)
at helma.scripting.rhino.RhinoEngine.exitContext
(RhinoEngine.java:218)
at helma.framework.core.RequestEvaluator.run
(RequestEvaluator.java:633)
at java.lang.Thread.run(Thread.java:636)

jan

unread,
Mar 20, 2009, 3:07:45 PM3/20/09
to Helma
hmmm... well, perhaps i could start by looking in the log files ;-)
How could I forget that?
I see an other error there.

I hope somebody can help explaining this error?

regards, Jan.

[2009/03/20 18:09:52] [INFO] [manage-init] Using session manager class
helma.framework.core.SessionManager
[2009/03/20 18:09:52] [INFO] [Thread-1] Starting engine 1 for manage
[2009/03/20 18:09:52] [ERROR] [manage-1] internal:onStart
java.lang.NoSuchMethodError:
org.mozilla.javascript.ContextFactory.enterContext()Lorg/mozilla/javas
cript/Context;
java.lang.NoSuchMethodError:
org.mozilla.javascript.ContextFactory.enterContext()Lorg/mozilla/
javascript/Context;
at helma.scripting.rhino.RhinoCore.initialize(RhinoCore.java:
134)
at helma.scripting.rhino.RhinoEngine.initRhinoCore
(RhinoEngine.java:149)
at helma.scripting.rhino.RhinoEngine.init(RhinoEngine.java:88)
at helma.framework.core.RequestEvaluator.initScriptingEngine
(RequestEvaluator.java:104)
at helma.framework.core.RequestEvaluator.run
(RequestEvaluator.java:180)
at java.lang.Thread.run(Thread.java:636)

Jan Tuitman

unread,
Mar 20, 2009, 3:45:43 PM3/20/09
to Helma
Okay, I found a workaround. https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/255149 - removing rhino.jar symlink makes things work...

By the way, I really like Helma!

Jan.

Hannes Wallnoefer

unread,
Mar 20, 2009, 4:25:36 PM3/20/09
to he...@googlegroups.com
Hi Jan,

I guess you stumbled over this Ubuntu OpenJDK bug:

https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/255149

In short, Helma always uses the system-installed rhino, and Helma 1.6
doesn't like this because it expects a patched Helma (Helma 1.7
wouldn't have that problem, but still...).

You can fix this problem by removing the rhino.jar symlink in
/usr/lib/jvm/java-6-openjdk/jre/lib as described here:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/255149/comments/3
or you could simply use the Sun JDK.

This bug is really a pain, unfortunately OpenJDK is such a monster to patch...

Hannes

2009/3/20 jan <jan.t...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages