I have a peculiar problem:
I insert documents into Tamino through the
TStreamAccessor insert method.
The code resides in a Tomcat web application.
After inserting some 200 documents and restarting
Tomacat, the following error message appears:
com.softwareag.common.instrumentation.contract.ViolatedPrecondition: Violated Precondition:
TXMLObject adapter class does not provide appropiate constructor
This applies to
System: WIndows NT
I have one more information:
If the Exception is caught and the request is
repeated, the operation is completed successfully.
I will use this solution in the application and hope for the best…
This PreconditionViolation can only arise when you try to instantiate a TXMLObject from an Object (Java class) that is not supported by the API with:
TXMLObject.newInstance( Object object )
Could you please send the relevant code fragment of you application?
[This message was edited by Stefan Liebig on 24 Jan 2003 at 09:39.]
The error always occur on the same spot within a loop:
TResponse resp = null;
resp = oAccessor.query(TQuery.newInstance(docType+"/@LastMod"));
It have the impression that it only occurs for one docType. The one with the most instances
I just found the exaplanation to the notorious
It happens when the jvm runs out of memory.
Strange, isn’t it?