Hello,
I checked the code of the class ‘TaminoStoreV4’ and your stacktrace.
There is the method ‘lockDocument’. The task of this method is to set a lock a document by sending a request for this document. To implement the lock a xquery is send. Since the output is not relevant, the TStream is ignored. I am sure, that this causes your problem.
Currently, I cannot access the CVS to get the version 4.1.4 of the file TaminoStoreV4.java. Therefore, I please to change the code as described and to compile the jar file:
(1) Please replace the code of the method ‘lockDocument’ of the source file
…\src\com\softwareag\xtools\xapplication\store\TaminoStoreV4.java
public void lockDocument(Element root, NodeLocation nodeLocation) throws StoreException {
if (root == null) {
throw new PreconditionViolation("root element 'root' must not be null");
}
if (!inTransaction()) {
throw new PreconditionViolation("lock must be invoked within transaction");
}
if (nodeLocation.getId() == null) {
throw new PreconditionViolation("ino id of the root element must be defined");
}
// String collectionName = getRegisteredDoctypeCollection(root.getName());
String collectionName = nodeLocation.getCollection();
TStreamAccessor accessor = connection.newStreamAccessor(TAccessLocation.newInstance(collectionName));
TInputStream is = null;
try {
String lockQuery = assembleLockQuery(root, nodeLocation);
is = accessor.xquery(TXQuery.newInstance(lockQuery));
} catch (TAccessorException e) {
throw new StoreException("could not lock document by query " + getIdQuery(root.getName(), nodeLocation), e);
} finally {
try {
if (is != null) {
is.close();
}
} catch (IOException e) {
throw new StoreException("could not close input stream for query " + getIdQuery(root.getName(), nodeLocation), e);
}
}
}
(2) compile a new jar file
(2 a) open a console
(2 b) change to your X-Application installation directory
(2 c) invoke “build quick”
(3) copy the new jar file …\lib\debug\xapplication.jar into the WEB-INF\lib directory of your application.
I hope this solves your error.
Bye,
Christian.
#webMethods#API-Management#Tamino