Thread: [tcljava-user] Assertion failed: tsdPtr->initialized
Brought to you by:
mdejong
From: Chongkai J. <cho...@gm...> - 2008-03-20 14:23:25
|
Hi there, I'm trying to incorporate snmp4j into tcl by tcl blend. I wrote a Java class and used Tcl blend commands to access it in Tcl, but I got the following failures, Assertion failed: tsdPtr->initialized, file c:/TclBlendSrc/tcljava/src/native/javaCmd.c, line 359 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Anyone could tell me what could have gone wrong? Is it possibly related to thread safety? snmp4j sends a request and waits for response, but I'm not sure if it does that in another thread. Thanks. |
From: Mrinal K. <mr...@gm...> - 2008-03-20 16:29:18
|
Hi i had faced similar problems with this.TCL blend is using java JDK 1.2(check in this folder) you will have to use the same jdk and jre for writing your own codes Hope this helps. Regards, Mrinal On Thu, Mar 20, 2008 at 10:23 AM, Chongkai Jiang <cho...@gm...> wrote: > Hi there, > > I'm trying to incorporate snmp4j into tcl by tcl blend. I wrote a Java > class and used Tcl blend commands to access it in Tcl, but I got the > following failures, > > Assertion failed: tsdPtr->initialized, file > c:/TclBlendSrc/tcljava/src/native/javaCmd.c, line 359 > > This application has requested the Runtime to terminate it in an unusual > way. > Please contact the application's support team for more information. > > Anyone could tell me what could have gone wrong? Is it possibly related to > thread safety? snmp4j sends a request and waits for response, but I'm not > sure if it does that in another thread. > > Thanks. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > |
From: Mo D. <mo...@mo...> - 2008-03-20 17:49:54
|
Chongkai Jiang wrote: > Hi there, > > I'm trying to incorporate snmp4j into tcl by tcl blend. I wrote a Java > class and used Tcl blend commands to access it in Tcl, but I got the > following failures, > > Assertion failed: tsdPtr->initialized, file > c:/TclBlendSrc/tcljava/src/native/javaCmd.c, line 359 > > This application has requested the Runtime to terminate it in an > unusual way. > Please contact the application's support team for more information. > > Anyone could tell me what could have gone wrong? Is it possibly > related to thread safety? snmp4j sends a request and waits for > response, but I'm not sure if it does that in another thread. It means that TclBlend was not initialized properly, but that should not happen. What exactly did you do? How did you start the application? Did you build from source, if so does running 'make test' work after a build? Can you run a simple Tcl Blend example on your system? Mo |
From: Tom J. <to...@rm...> - 2008-03-24 00:11:28
|
Hi, Has anyone produced a set of replacement procs so that scripts written in Tcl 8.4 can run under Jacl? I wrote a quick replacement for lsearch to add in the -all and -inline options, but then I found that I needed [file normalize]. Otherwise, are there a list of workarounds for this situation? Thanks, tom jackson |
From: Mo D. <mo...@mo...> - 2008-03-24 06:10:36
|
Tom Jackson wrote: > Hi, > > Has anyone produced a set of replacement procs so that scripts written in Tcl > 8.4 can run under Jacl? > > I wrote a quick replacement for lsearch to add in the -all and -inline > options, but then I found that I needed [file normalize]. > > Otherwise, are there a list of workarounds for this situation? > Compatibility needs to be implemented with changes to the Java code of the Tcl commands in Jacl. Mo |
From: Tom J. <to...@rm...> - 2008-03-24 16:14:06
|
On Monday 24 March 2008 00:10, Mo DeJong wrote: > Tom Jackson wrote: > > Hi, > > > > Has anyone produced a set of replacement procs so that scripts written in > > Tcl 8.4 can run under Jacl? > > > > I wrote a quick replacement for lsearch to add in the -all and -inline > > options, but then I found that I needed [file normalize]. > > > > Otherwise, are there a list of workarounds for this situation? > > Compatibility needs to be implemented with changes to the Java code of > the Tcl commands in Jacl. Obviously it would be more efficient code, but it would force the changes on everyone, and you couldn't selectively upgrade. What I'm interested in is starting jaclsh and then source a compatibility file, then start my application. I've done this for lsearch. So new question: how is file path normalization handled in jacl? tom jackson |