On Wed, 7 Apr 1999, philippe boyer wrote:

> hi!
> 
> I don't know how I have done, but the shell jacl 1.1.1 has raise this
> funny exception:
> (I have sourced a scipt just before which has evaluated severals jacl java
> commands.
> this script has been sourced thousand of times before without any problem.
> 
> this exception has occured using jacl1.1.1/JDK1.2/NT)

I checked on this in the 1.1.1 version of Jacl and I just do not see how
this exception could have been generated.


    } finally {
      parse.release(); //let go of parser resources          <- line 1205
      releaseObjv(interp, objv); //let go of objv buffer
    }

The only way this line of code would generate a NullPointerException is if
the parse reference was set to null and that does not seem to happen. Well
I guess it could happen if the above call to parseCommand() raised an 
exception. Humm, I am going to make a note about this as a possible
problem but if you could provide a small test case that reproduced the
error I would feel a lot better about making a change there. The parser
code is really nasty stuff so changes in there should not be made unless
one is really sure it is "the right thing to do".

later
mo

 
> Exception in thread "main" java.lang.NullPointerException:
>         at tcl.lang.Parser.eval2(Parser.java:1205)
>         at tcl.lang.Procedure.cmdProc(Procedure.java:175)
>         at tcl.lang.Parser.evalObjv(Parser.java:740)
>         at tcl.lang.Parser.eval2(Parser.java:1138)
>         at tcl.lang.Parser.evalTokens(Parser.java:930)
>         at tcl.lang.Parser.eval2(Parser.java:1125)
>         at tcl.lang.Procedure.cmdProc(Procedure.java:175)
>         at tcl.lang.Parser.evalObjv(Parser.java:740)
>         at tcl.lang.Parser.eval2(Parser.java:1138)
>         at tcl.lang.Parser.evalTokens(Parser.java:930)
>         at tcl.lang.Parser.eval2(Parser.java:1125)
>         at tcl.lang.Procedure.cmdProc(Procedure.java:175)
>         at tcl.lang.Parser.evalObjv(Parser.java:740)
>         at tcl.lang.Parser.eval2(Parser.java:1138)
>         at tcl.lang.Parser.evalTokens(Parser.java:930)
>         at tcl.lang.Parser.eval2(Parser.java:1125)
>         at tcl.lang.Procedure.cmdProc(Procedure.java:175)
>         at tcl.lang.Parser.evalObjv(Parser.java:740)
>         at tcl.lang.Parser.eval2(Parser.java:1138)
>         at tcl.lang.Parser.evalTokens(Parser.java:930)
>         at tcl.lang.Parser.eval2(Parser.java:1125)
>         at tcl.lang.Procedure.cmdProc(Procedure.java:175)
>         at tcl.lang.Parser.evalObjv(Parser.java:740)
>         at tcl.lang.Parser.eval2(Parser.java:1138)
>         at tcl.lang.Parser.evalTokens(Parser.java:930)
>         at tcl.lang.Parser.eval2(Parser.java:1125)
>         at tcl.lang.Procedure.cmdProc(Procedure.java:175)
>         at tcl.lang.Parser.evalObjv(Parser.java:740)
>         at tcl.lang.Parser.eval2(Parser.java:1138)
>         at tcl.lang.Parser.evalTokens(Parser.java:930)
>         at tcl.lang.Parser.eval2(Parser.java:1125)
>         at tcl.lang.Procedure.cmdProc(Procedure.java:175)
>         at tcl.lang.Parser.evalObjv(Parser.java:740)
>         at tcl.lang.Parser.eval2(Parser.java:1138)
>         at tcl.lang.Parser.evalTokens(Parser.java:930)
> ect ...
> 
> philoux - france
> 
> ----------------------------------------------------------------
> The TclJava mailing list is sponsored by WebNet Technologies.
> To subscribe:    send mail to [EMAIL PROTECTED]  
>                  with the word SUBSCRIBE as the subject.
> To unsubscribe:  send mail to [EMAIL PROTECTED] 
>                  with the word UNSUBSCRIBE as the subject.
> To send to the list, send email to '[EMAIL PROTECTED]'. 
> A list archive is at: http://www.findmail.com/listsaver/tcldallas/
> 

----------------------------------------------------------------
The TclJava mailing list is sponsored by WebNet Technologies.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
A list archive is at: http://www.findmail.com/listsaver/tcldallas/

Reply via email to