-->
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.  [ 1 post ] 
Author Message
 Post subject: GenericJDBCException: could not retrieve GUID
PostPosted: Wed Jul 22, 2009 8:07 am 
Newbie

Joined: Wed Jul 22, 2009 5:29 am
Posts: 1
Hi at all,

I'm a newbie on this community I would like to thank everyone u'll read the post.
I have the following problem:
org.hibernate.exception.GenericJDBCException: could not retrieve GUID

The application should write on an oracle database. The table descriptor is the following:

<hibernate-mapping>
<class name="com.csc.sics.model.ServerError" table="SERVER_ERROR">
<id name="objectId" type="string">
<column name="OBJECT_ID" length="36" />
<generator class="org.hibernate.id.GUIDGenerator" />
</id>
<property name="message" type="string">
<column name="MESSAGE" />
</property>
<property name="messageType" type="string">
<column name="MESSAGE_TYPE" length="100"/>
</property>
<property name="errorText" type="string">
<column name="ERROR"/>
</property>
<property name="errorMessage" type="string">
<column name="ERROR_MESSAGE"/>
</property>
<property name="errorType" type="string">
<column name="ERROR_TYPE" length="100" />
</property>
<property name="succeeded" type="int">
<column name="SUCCEEDED" />
</property>
<property name="errorDate" type="timestamp">
<column name="ERRORDATE" />
</property>
</class>
</hibernate-mapping>

It automatically should get the ObjectId from the database function (sys_guid()) and then use it.
But without any reason sometimes it generates the error.
Anyone have already got a similar error? Anyone found a solution?

Regards.

Daniel


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

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.