Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

problem with document.write (TypeError: Cannot set property "0.0" of null to "115")

#180

Hello,

I encountered the following issue with rhino (version: 1.7R2) and
env.js (version: core-env.1.2.13):

If I execute a script calling document.write the following error occurs:
org.mozilla.javascript.EcmaError: TypeError: Cannot set property "0.0" of null to "115" (env.rhino.1.2.js#11923) (For more information see java stack trace below.)

Before I call document.write I set the location:
window.location = 'file:///aFile.html'; The error occurs even if the file is empty.
The error is not thrown if I don't tell env.js to load the needed html
before with javascript window.location.

The java stack trace is:

Exception in thread "main" org.mozilla.javascript.EcmaError: TypeError: Cannot set property "0.0" of null to "115" (env.rhino.1.2.js#11860)

at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660)
at org.mozilla.javascript.ScriptRuntime.typeError3(ScriptRuntime.java:3686)
at org.mozilla.javascript.ScriptRuntime.undefWriteError(ScriptRuntime.java:3708)
at org.mozilla.javascript.ScriptRuntime.setObjectIndex(ScriptRuntime.java:1571)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3081)
at script.jXi(env.rhino.1.2.js:11860)
at script.kXi(env.rhino.1.2.js:11861)
at script.aoi(env.rhino.1.2.js:11796)
at script(env.rhino.1.2.js:11804)
at script.A(C:\Users\bz\Desktop\test.js:44)
at script.stockwatcher(C:\Users\bz\Desktop\test.js:209)
at script(C:\Users\bz\Desktop\test.js:257)
at ...

Reported by Basdl · October 28th, 2010 @ 08:49 PM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.