• Post Reply Bookmark Topic Watch Topic
  • New Topic

InstantiationException when using SQLData and OracleCallableStatement Struct Mapping  RSS feed

Niko Nigde
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot figure out an answer to the following problem. Hope somebody can help me. I am mapping JAVA class to a Struct as described here:

I have an Oracle Object:

and corresponding JAVA class:

my test method is the following:

No, the last step

in this procedure fails and although I have tried so many things in the last couple of days, I cannot get it to run! I get a "Exception in thread "main" java.sql.SQLException: Incosistent Java- ans SQL-Objecttypes: InstantiationException: com.gwb.db.objects.DK1"

If I replace getObject with getSTRUCT I see that the DB procedure works and returns values as expected. I cannnot figure out why a I unable to map a JAVA Object.

I would be very grateful for any help or tipps!
Thank you in advance
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!