Hello,
I tried to reproduce your problem:
- I generated an application with X-Application 3.1.3 for Tamino 3.
- I changed the Tamino URL and the collection within the web.xml of the generated application to access Tamino 4.
- I set up a request for an empty result set of XML documents and I got the following exception:
Exception: java.lang.ArithmeticException: / by zero
at com.softwareag.tamino.db.api.response.TXMLObjectFetchingIterator.fetchBlockWith(TXMLObjectFetchingIterator.java:279)
at com.softwareag.tamino.db.api.response.TXMLObjectFetchingIterator.reset(TXMLObjectFetchingIterator.java:235)
at com.softwareag.xtools.xapplication.store.TaminoElementIterator.reset(TaminoElementIterator.java:110)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentCursor.reset(BusinessDocumentCursor.java:237)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentPage.(BusinessDocumentPage.java:86)
at com.softwareag.xtools.xapplication.plugin.StandardWorkspacePlugin.queryDocuments(StandardWorkspacePlugin.java:362)
at java.lang.reflect.Method.invoke(Native Method)
at ...
Then, I updated my current X-Application 3.1.3 with the fix for JDOM beta 8 and used the Tamino API for Java of the Tamino 4.
The effect was that the problem was solved. The problem when inserting sub-nodes I could not reproduce.
Could you try out your application with the jar files I send you within the attached zip-File. If errors still occur, please send them via post to the community.
Hope, that solves your problem. If yes, I will provide a contribution for updating applications based X-Application 3.1.3 for Tamino 4.
Many thanks,
bye Christian.
updateForTamino4.zip (794 KB)
#webMethods#API-Management#Tamino