My first thought is that this is not a Tcl Blend problem. Try writing
a little Java program that just calls
Class.class.forName("bay.jets.circuits.CircuitEnet");

If that crashes then someting is wrong with your .class file.
Have you switched from JDK 1.1 to JDK 1.2 recently? That
might the cause of the problem. Could you also provide more
info about what platform you are running on and what verison
of the JDK you are using? You might also want to try running
the code in Jacl. I have found that the best way to debug Tcl
Blend problems is to run the same code in Jacl.

Mo DeJong
[EMAIL PROTECTED]
gimme multimedia group

On Fri, 19 Mar 1999, Sandeep Malhotra wrote:

> Hi,
> 
> I am trying to use TclBlend version 1.1.1 and 1.2.1.
> Earlier I was using version 1.1. In 1.1, things work
> good. I was upgrading to 1.1.1 or later. But, in newer
> versions, the same code (java and TCL) now produces
> this error, when trying to run:
> 
> java.lang.VerifyError: (class: bay/jets/circuits/CircuitEnet, method: deregister
> signature: (Lbay/jets/media/Enet;)V) Bad access to protected data
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Compiled Code)
>         at tcl.lang.TclClassLoader.loadClass(Compiled Code)
>         at java.lang.ClassLoader.loadClass(Compiled Code)
>         at tcl.lang.JavaInvoke.getClassByName(Compiled Code)
>         at tcl.lang.FuncSig.get(Compiled Code)
>         at tcl.lang.JavaInvoke.newInstance(Compiled Code)
>         at tcl.lang.JavaNewCmd.cmdProc(Compiled Code)
>         at tcl.lang.Interp.callCommand(Compiled Code)
> 
> 
> I don't see anything protected being accessed in the deregister method 
> of the class. Any help would be greatly appreciated.
> Part of the java code is as follows:
> 
> # CircuitEnet.java
> package bay.jets.circuits;
> public class CircuitEnet extends Circuit 
> {
>   .
>   private Hashtable  enets;
>   .
>   public void deregister (Enet enet)
>    {
>      enets.remove(enet.address);
>      enet.lowerLayer = null;
>    }
>    .
>    .
> }
> 
> 
> # Enet.java
> package bay.jets.media;
> public class Enet extends Layer 
> {
>   .
>   public final MacAddress address;  
>   .
> }
> 
> # Layer.java
> public class Layer 
> {
>   .
>   public Layer lowerLayer;
>   .
> }
> 
> 
> Thanks in advance.
> 
> Sandeep
> 
> ----------------------------------------------------------------
> 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