Thread: [tcljava-user] Fwd: RE: [TDK-BETA] Error when Using TclDev Kit 4.0 debugger with Tclblend.
Brought to you by:
mdejong
From: Patrick F. <pfi...@oz...> - 2007-03-23 13:38:16
|
Anyone know why this would happen? Patrick Using TclDev kit 4..02 Beta debugger with TclBlend 1.4 as interpreter on Windows XP. Error occurs when variable is used as command. This problem does not occur on Komodo 4.0 or RamDebugger. set ConnectionI [ java::call DriverManager getConnection $url ] putsLog "transaction isolation level is [ $ConnectionI getTransactionIsolation ]" $ConnectionI resolves to "java0x2" Error msg. invalid command name "java0x2" while executing "$ConnectionI getTransactionIsolation" The JACL syntax is valid and runs correctly from the command line. Is this valid debugger behavior? NB: The error only occurs when stepping through the code using PF6. Run to end with PF5 is fine. The same problem occurs with Dev Kit 3.2. TEST **** Put the following code snippet in a script and step through it. package require java set jstring [java::new String "Hello World"] # Convert the Java string to a Tcl string set tstring [$jstring toString] invalid command name "java0x2" while executing "$jstring toString" You can grab TclBlend from here: www.patrickfinnegan.com/ |
From: Tom P. <tpo...@ny...> - 2007-03-23 14:16:46
|
On Fri, Mar 23, 2007 at 01:38:01PM +0000, Patrick Finnegan wrote: > Error occurs when variable is used as command. This problem does not occur > on Komodo 4.0 or RamDebugger. > > set ConnectionI [ java::call DriverManager getConnection $url ] > > putsLog "transaction isolation level is [ $ConnectionI > getTransactionIsolation ]" > > $ConnectionI resolves to "java0x2" > > Error msg. > > invalid command name "java0x2" > while executing > "$ConnectionI getTransactionIsolation" > I don't have TDK so I can't confirm, but it appears to me that the reflected Connection object is being garbage collected, possibly due to going out of scope while be run by the debugger. Try using: java::autolock 1 or wrap your connection with: java::lock [ set ConnectionI [ java::call DriverManager getConnection $url ] ] -- Tom Poindexter tpo...@ny... |
From: Imran S. <isa...@gm...> - 2007-03-23 15:46:29
|
hi i from where i got the diffserv and intserv model kindly guide me in this regard thanks On 3/23/07, Tom Poindexter <tpo...@ny...> wrote: > > On Fri, Mar 23, 2007 at 01:38:01PM +0000, Patrick Finnegan wrote: > > > Error occurs when variable is used as command. This problem does not > occur > > on Komodo 4.0 or RamDebugger. > > > > set ConnectionI [ java::call DriverManager getConnection $url ] > > > > putsLog "transaction isolation level is [ $ConnectionI > > getTransactionIsolation ]" > > > > $ConnectionI resolves to "java0x2" > > > > Error msg. > > > > invalid command name "java0x2" > > while executing > > "$ConnectionI getTransactionIsolation" > > > > I don't have TDK so I can't confirm, but it appears to > me that the reflected Connection object is being > garbage collected, possibly due to going out of > scope while be run by the debugger. > > Try using: > java::autolock 1 > > or wrap your connection with: > java::lock [ set ConnectionI [ java::call DriverManager getConnection > $url ] ] > > > -- > Tom Poindexter > tpo...@ny... > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > -- With Regards: Imran ------ |
From: Patrick F. <pfi...@oz...> - 2007-04-06 13:51:59
|
On Friday 23 March 2007 14:16, Tom Poindexter wrote: You are correct. The garbage collection is causing the problem. Thanks for your help. Patrick. > On Fri, Mar 23, 2007 at 01:38:01PM +0000, Patrick Finnegan wrote: > > Error occurs when variable is used as command. This problem does not > > occur on Komodo 4.0 or RamDebugger. > > > > set ConnectionI [ java::call DriverManager getConnection $url ] > > > > putsLog "transaction isolation level is [ $ConnectionI > > getTransactionIsolation ]" > > > > $ConnectionI resolves to "java0x2" > > > > Error msg. > > > > invalid command name "java0x2" > > while executing > > "$ConnectionI getTransactionIsolation" > > I don't have TDK so I can't confirm, but it appears to > me that the reflected Connection object is being > garbage collected, possibly due to going out of > scope while be run by the debugger. > > Try using: > java::autolock 1 > > or wrap your connection with: > java::lock [ set ConnectionI [ java::call DriverManager getConnection > $url ] ] |