-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Database inserted empty data with AIX JDK 5 beta Hibernate
PostPosted: Fri Nov 25, 2005 2:10 am 
Newbie

Joined: Fri Nov 25, 2005 1:56 am
Posts: 2
We have a problem when using AIX JDK 5 beta (IBM) on AIX. The server is running JBoss 4.0.2, Hibernate 3.1, DB2 8.2.2.

On entering data on the client, an empty data row is inserted to the database.

Updating the row subsequently does not update in the database but no error reported.

This problem does not occur in the Window environment using Sun JDK 5 with same configuration (JBoss etc) as AIX.

Any one encounters similiar problem ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 4:22 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
If the only difference between the two environments is the jdk/os , perhaps you will find a solutoin faster in a different forum.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 6:47 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Do you have log files with show_sql set to true ?

_________________
dont forget to rate !


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 30, 2005 12:47 am 
Newbie

Joined: Fri Nov 25, 2005 1:56 am
Posts: 2
In looking into the (java.lang.reflect) AnnotatedElement implementation class, Method.java, the Sun Window JDK version uses AnnotationParser to retrieve annotations and the results are correct.

In contrast, the IBM JDK 5 beta on AIX uses AnnotationHelper class which in turn uses other native classes to retrieve values. The Boolean values always retrieved as false, even it is not specified.

In my scenario, the Hibernation Class, AnnotationBinder.java, uses AnnotatedElement.getDeclaredAnnotations() and failed to get the correct value if it is of type boolean. It always return false. Because column Updatable and Insertable flags are false, the column tags are never inserted properly into the SQL in BasicEntityPerster.java (Hibernation Class), that causes a blank row inserted into the database.

Looks like a bug on JDK 5 beta.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.