Reflection with Java and Oracle 10g  
Author Message
fourmi





PostPosted: 2006-4-21 20:06:00 Top

java-programmer, Reflection with Java and Oracle 10g Hi everyone,

We have change oracle 8i to oracle 10g, now we have problems with the
reflection in JAVA.
I've got an IllegalAccessException:


Object value;
value = infoResultSetAndData.getResultSetMethodGet().invoke(rs, new
Object[] {new Integer(infoResultSetAndData.getResultSetIndice())});


thanks for suggestions,


fourmi

 
Roedy Green





PostPosted: 2006-4-22 3:34:00 Top

java-programmer >> Reflection with Java and Oracle 10g On 21 Apr 2006 05:05:35 -0700, "fourmi" <email***@***.com>
wrote, quoted or indirectly quoted someone who said :

>IllegalAccessException

Thrown when an application tries to load in a class, but the currently
executing method does not have access to the definition of the
specified class, because the class is not public and in another
package.

Perhaps the package name is no longer correct.
Perhaps the method is no longer public, and you have to use some
replacement.


--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
fourmi





PostPosted: 2006-4-24 15:13:00 Top

java-programmer >> Reflection with Java and Oracle 10g The method "invoke" is public. I've only change oracle server.

Fourmi

 
 
Adam Maass





PostPosted: 2006-4-27 10:33:00 Top

java-programmer >> Reflection with Java and Oracle 10g
"fourmi" <email***@***.com> wrote:
> The method "invoke" is public. I've only change oracle server.
>

I think that Roedy meant that the reflected method that is gotten by your
call 'infoResultSetAndData.getResultSetMethodGet()' might no longer be
public in the 10g driver. Or a package name used internal to that method
might no longer be correct.

-- Adam Maass