Well, as you can see, something odd is happening, because the
exception message states that a public method is not accessible. What
sort of environment is this code running in -- is it an Applet, or in
some other kind of managed environment where reflection may be blocked
by security policy? 

Are you using Jess 6, or some older version? Early versions of Jess 4
had some problems with calling interface methods in non-public
classes.

Can you create and manipulate objects of other classes from Jess in
this same environment? If so, it'd be nice to see the class that's
giving the error so I can try to understand the problem.


I think =?iso-8859-1?q?Thomas=20Westergard?= wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> I use a class that implements another class. I get no
> problems instantiating the class from java and have
> never had. But I get the following trace from trying
> to definstance it from jess.  It looks to have to do
> with reflection. The class that I implement uses a lot
> of public methods defined in an interface so I cannot
> make them protected. 

> 
> java.lang.IllegalAccessException: Class jess.d7 can
> not access a member of class
> simbase.simnode.SimNodeImpl with modifiers "public"
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Science and Engineering PSEs        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to