Hi,
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
<<<
HELP!
Cheers,
Hokan
This applies to
Tamino: 3.1.1.4
TaminoAPI4J: 3.1.2.4
System: WIndows NT
Hi again,
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…
Cheers,
Hokan
Hi Hokan,
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?
Stefan
[This message was edited by Stefan Liebig on 24 Jan 2003 at 09:39.]
Hi Stefan,
The error always occur on the same spot within a loop:
TResponse resp = null;
try {
resp = oAccessor.query(TQuery.newInstance(docType+“/@LastMod”));
…
It have the impression that it only occurs for one docType. The one with the most instances
(1000).
Cheers,
Hokan
Hi,
I just found the exaplanation to the notorious
com.softwareag.common.instrumentation.contract.ViolatedPrecondition problem:
It happens when the jvm runs out of memory.
Strange, isn’t it?
Cheers,
Hokan