#180 new

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

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


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 ...

No comments found

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

People watching this ticket