Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

InstantiationException when using SQLData and OracleCallableStatement Struct Mapping

 
Niko Nigde
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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:
http://docs.oracle.com/cd/F49540_01/DOC/java.815/a64685/samapp4.htm

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