We’re using new API (3.*) for Tamino 2.3.1.4 and it was working ok until number of doc’s increases about 2500 then simple query
database.query(tquery) gives an error:
database.query(tquery,20)
----------------------------------------------
response = database.query(tquery);
----------------------------------------------
Blad:
----------------------------------------------
Nested Exception
(com.softwareag.tamino.db.API.response.TResponseBuildException)
stacktrace:
Nested Exception
(com.softwareag.tamino.db.API.response.TStreamInterpretException)
stacktrace:
Nested Exception
(com.softwareag.tamino.db.API.common.TPreconditionViolation) stacktrace:
com.softwareag.tamino.db.API.common.TPreconditionViolation: TXMLObject
adapter class does not provide appropiate constructor
at
com.softwareag.tamino.db.API.common.TContractVerifier.precondition(TContract
Verifier.java:31)
at
com.softwareag.tamino.db.API.objectModel.TXMLObjectFactory.newXMLObject(TXML
ObjectFactory.java:117)
at
com.softwareag.tamino.db.API.objectModel.TXMLObject.newInstance(TXMLObject.j
ava:92)
at
com.softwareag.tamino.db.API.response.dom.TDOMInputStreamInterpreter.setResp
onseQueryContent(TDOMInputStreamInterpreter.java:255)
at
com.softwareag.tamino.db.API.response.dom.TDOMInputStreamInterpreter.doInter
pret(TDOMInputStreamInterpreter.java:91)
at
com.softwareag.tamino.db.API.response.TInputStreamInterpreter.interpret(TInp
utStreamInterpreter.java:55)
at
com.softwareag.tamino.db.API.response.TResponseBuilderImpl.doBuild(TResponse
BuilderImpl.java:81)
at
com.softwareag.tamino.db.API.response.TResponseBuilderImpl.buildForXML(TResp
onseBuilderImpl.java:60)
at
com.softwareag.tamino.db.API.accessor.TXMLObjectAccessorImpl.query(TXMLObjec
tAccessorImpl.java:265)
at polsoft.dimon.utils.db.DBReader.queryWykaz(DBReader.java:32)
at polsoft.dimon.utils.db.DBInterface.query(DBInterface.java:137)
at
polsoft.dimon.servlets.ExportOver10K.doPost(ExportOver10K.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
After changing it to database.query(tquery,20) everything works fine.
How to solve this problem ???