ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcljava-user
tcljava-user
[tcljava-user] RE: java.lang.NullPointerException: Invalid interpreter.
by wiwo-tcljava other posts by this author
Jan 18 2006 6:55AM messages near this date
[tcljava-user] Re: tclblend init error on linux | [tcljava-user] TCL Error 'can't find package java'
When enabling debugging I get the following output:

TCLBLEND_DEBUG: JNI_CreateJavaVM
TCLBLEND_DEBUG: JavaInitEnv returning successfully
TCLBLEND_DEBUG: initializing jcache
TCLBLEND_DEBUG: JavaSetupJava returning successfully
TCLBLEND_DEBUG: Now to create Interp object
TCLBLEND_DEBUG: Checking Tcl_GetNameOfExecutable()
TCLBLEND_DEBUG: Executable name is already known
TCLBLEND_DEBUG: called JavaInitBlend
Exception in thread "main" java.lang.NullPointerException: Invalid 
interpreter.
        at tcl.lang.Interp.getCommand(Native Method)
        at tcl.lang.BlendExtension.init(BlendExtension.java:37)
TCLBLEND_DEBUG: Exception in init() method
TCLBLEND_DEBUG: JavaInitBlend returning
TCLBLEND_DEBUG: Tclblend_Init finished
TCLBLEND_DEBUG: JavaInitBlend returned TCL_ERROR
"package require java" failed with the following error
"XpUtils::iload -d /usr/local/lib/tcljava1.3.2 tclblend" failed:
 java.lang.NullPointerException: Invalid interpreter.
TCLBLEND_DEBUG: called FreeJavaCache
TCLBLEND_DEBUG: called DestroyJVM



The error is from the file javaCmd.c:

somewhere in 

     /*
     * Associate the interpreter data with the interp object.
     */

    Tcl_SetAssocData(interp, "java", JavaInterpDeleted,
      (ClientData)interpObj);

    /*
     * Initialize the BlendExtension.
     */

    blend = (*env)-> NewObject(env, jcache->BlendExtension, jcache->blendC);
    (*env)-> CallVoidMethod(env, blend, jcache->init, interpObj);
    if (exception = (*env)-> ExceptionOccurred(env)) {
      (*env)-> ExceptionDescribe(env);
      (*env)-> ExceptionClear(env);
      obj = Tcl_GetObjResult(interp);
      ToString(env, obj, exception);
      (*env)-> DeleteLocalRef(env, exception);

something goes wrong. Unfortunatly I do not understand the code well enough to 
further investigate. Has anyone a clue for me?

Thanks,

wiwo


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
tcljava-user mailing list
tcljava-user@[...].net
https://lists.sourceforge.net/lists/listinfo/tcljava-user

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved