Mo,

The problem was mine. The collection object that held listeners was null 
(never initialized). That was the null pointer problem.

java::bind seems fine. I'm using it to do queries, etc. and it seems 
reasonable. I will be working over Jacl in the next couple of days as our 
team completes a prototype of a client-side architecture for building a new 
generation of applications. Jacl is really helping us pull this together.

I am running into another block... Now that I can do this -->

java::bind $l processLogin login

where

proc login {} {
...
}

When the event is fired from Java, it never returns from the method call on 
processLogin on the listener (the link to the tcl script).

Any suggestions on how I can trace down where my thread went? Can any 
thread fire the event into Tcl? (I remember reading through the source code 
and seeing something about the event system keeps track of the 
interpreter's primary thread...)

(Do I need to have a thread spinning on the interpreter?)

Randy

>Was it a bug in the tcljava code or your code? Could the java::bind
>command be improved in some way to avoid this type of problem in
>the future?
>
>Mo Dejong
>Cygnus Solutions
>
>On Thu, 9 Dec 1999, Randolph S. Kahle wrote:
>
> > Mo,
> >
> > Problem solved in very short order because of your help.
> >
> > Thank you *very* much for the prompt reply to my email.
> >
> > Regards,
> >
> > Randy Kahle
> >
> >
> >
> >
>
>----------------------------------------------------------------
>The TclJava mailing list is sponsored by Scriptics Corporation.
>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]'.

----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
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]'. 

Reply via email to