On Mar 4, 12:41 am, [EMAIL PROTECTED] wrote:
> hi, when i run this javascript
>
> var temp = new String(APPL._user1);
> var temp3 = temp.split('^');
> APPL.job = temp3[0];
> APPL.run_date = temp3[1];
> var cycle = temp3[2];
> APPL.orgCycle = cycle;
>
> if (cycle != null){
>         // may need to normalize cycle
>         num1 = Number(cycle);
>         if (num1 > 0) {num1 = num1 -1;}
>         if (isNaN(cycle))
>                 cycle = cycle.toUpperCase();
>         else {  // must be numeric need to convert to alpha
>                 letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456";
>                 //cycle = letters.substr(num1,1);
>                 }
>
> }
>
> we get the following stacktrace
>
> org.mozilla.javascript.EvaluatorException: The undefined value has no
> properties.
>         at
> org.mozilla.javascript.DefaultErrorReporter.runtimeError(Unknown
> Source)
>         at org.mozilla.javascript.Context.reportRuntimeError(Unknown
> Source)
>         at org.mozilla.javascript.Context.reportRuntimeError(Unknown
> Source)
>         at org.mozilla.javascript.Context.reportRuntimeError0(Unknown
> Source)
>         at org.mozilla.javascript.Undefined.reportError(Unknown
> Source)
>         at org.mozilla.javascript.Undefined.getIds(Unknown Source)
>
> Reproducible: Always
>
> Please let me know if this is a known bug in RHINO JS V1.5 R3 or not?
> If yes can you please let me know the workaround apart from upgrading
> the JS
> Please reply ASAP as this is effecting my business a lot
> Thanks in advance

In the future, please post to the mozilla.dev.tech.js-engine.rhino
group.

There are too many uses of objects and functions that are not part of
Rhino in your example for me to have any idea what's going on in your
script. Most likely it is not a Rhino bug; I suggest you dig deeper,
perhaps using the Rhino debugger to understand where the problem in
your script is.

--N
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to