Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / April 2006

Tip: Looking for answers? Try searching our database.

Reflection with Java and Oracle 10g

Thread view: 
fourmi - 21 Apr 2006 13:05 GMT
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 - 21 Apr 2006 20:34 GMT
>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.

Signature

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

fourmi - 24 Apr 2006 08:13 GMT
The method "invoke" is public. I've only change oracle server.

Fourmi
Adam Maass - 27 Apr 2006 03:32 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.