Thomas Dudziak wrote:


I can't tell why I can't access the values in PTrait_.  What I'm doing
seems consistent with one of the examples in QueryTest except for the
inheritance aspect.  Any suggestions?

The IllegalAccess error suggests that you're running in an environment
with a SecurityManager enabled that prevents your code from accessing
private fields, eg. an application server. You can either grant your
application that right (see the security manager documentation).
Or you can direct OJB to make the field accessible first before using
it by changing the used PersistentField implementation in
OJB.properties to PersistentFieldPrivilegedImpl.
Or - if the field in question has accessors - use bean access instead
by changing it to PersistentFieldIntrospectorImpl or to
PersistentFieldAutoProxyImpl (which uses bean access or direct
(privileged) access depending on what's available).

Tom


I'm not running in an Application Server. I'm running from the JVM directly from the command line. I changed to PersistentFieldPrivilegedImplNew and it still fails in the PersistentFieldDirectAccess class the same way.
So I'm still puzzled.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to