Hello,
I am running a query on Hasta Schema
then change a fields value and submit the document back to Tamino
Not always but sometimes I get this exception while trying to commit and this crashes Database !!!
I need to restart the database after this.
Why does this happen?
Thanks Server…
Here is the code that causes exception
…
QueryContainer query = new QueryContainer(“Hasta”);
query.add(new QueryElement(“Kimlik/DogumYeri”, src, “=”));
query.add(new QueryElement(“@ino:id”, “3500”, “<”));
Cursor docCursor = ws.query(“qrySehir”+i, query);
int counter=0;
while (docCursor.hasNext()) {
BusinessDocument doc = (BusinessDocument)docCursor.next();
doc.read();
doc.modify();
doc.getRoot().getDescendant(“/Hasta/Kimlik/DogumYeri”).setValue(target);
System.out.println(counter++ + " : " + src + " → " + doc.getRoot().getDescendant(“/Hasta/Kimlik/DogumYeri”).getValue() + " ino :" + doc.getDocumentId());
doc.commit();
}
docCursor.close();
…
Here is the Exception
0 : İSTANBUL → İSTANBUL ino :/Hasta[@ino:id=‘3271’]
StoreException: id = 161 arg[0] = could not change to autocommit mode after rollback exception
Local transaction mode could not be released properly. Falling back to autocommit mode.
NestedException:NestedException:Retry after invoke failed.
NestedException:HTTP failure.
NestedException:HTTP invocation failure.
at com.softwareag.tamino.db.API.connection.TTransactionModeCoordinatorImpl.releaseLocalTransactionMode(TTransactionModeCoordinatorImpl.java:359)
at com.softwareag.tamino.db.API.connection.TTransactionModeCoordinatorImpl.useAutoCommitMode(TTransactionModeCoordinatorImpl.java:64)
at com.softwareag.tamino.db.API.connection.TConnectionImpl.useAutoCommitMode(TConnectionImpl.java:195)
at com.softwareag.xtools.xapplication.store.TaminoStore.rollbackTransaction(TaminoStore.java:476)
at com.softwareag.xtools.xapplication.store.TaminoStore.update(TaminoStore.java:1110)
at com.softwareag.xtools.xapplication.businessdocument.SingleBusinessDocument.updateDocument(SingleBusinessDocument.java:913)
at com.softwareag.xtools.xapplication.businessdocument.state.Modifiable.commit(Modifiable.java:73)
at com.softwareag.xtools.xapplication.businessdocument.SingleBusinessDocument.commit(SingleBusinessDocument.java:279)
at hitit.go.changer(go.java:101)
at hitit.go.main(go.java:71)
Process exited with exit code 0.
X-Application Version: 3.1.3, 3.1.2, 3.1.1
Tamino Version : 3.1.1
Platform : NT, Win2k, Solaris, …
WebContainer : Tomcat 3.3
JDK Version : 1.3.1
[This message was edited by Christian Freytag on 05 Sep 2002 at 13:31.]
#API-Management#webMethods#Tamino