-->
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.  [ 3 posts ] 
Author Message
 Post subject: Update statement will be executet twice
PostPosted: Mon Aug 14, 2006 12:35 pm 
Newbie

Joined: Mon Aug 14, 2006 11:47 am
Posts: 8
Hello there,

We have a really suspect problem, on write access on the database server we got the exception was found under "stacktrace". the problem is: an updates tatement was executet twice, with the same timestamp. therfore we got the exception.

additional informations:
- our model has a lot of inheritance in use. collections are defined in superclasses and we use the "table per subclass"approach.

- our data object graph is cyclic

Hibernate version: 3.1.2, tested also with the other versions

Full stack trace of any exception that occurs:org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [ch.crb.crbnet.NodeContent#3]
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)


Name and version of the database you are using: MsSql Server version 2005


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 17, 2006 10:58 am 
Newbie

Joined: Mon Aug 14, 2006 11:47 am
Posts: 8
any tips ???


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 18, 2006 8:06 am 
Beginner
Beginner

Joined: Wed Aug 09, 2006 11:26 am
Posts: 20
I have ran into this problem but not with hibernate.
The problem was that the user double clicked on a button and the request was sent twice.

Just an idea, good luck!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.