Xerces 2.5 -- Exception

Hi there,

I just updated my Weblogic 8 application with Xerces 2.5 (need to have XML Schema support) and Tamino API for Java broke with the Exception:

Nested Exception (com.softwareag.tamino.db.API.invocation.TInvocationRetryHa
ndlerException, tag: $Name: JavaTaminoAPI_2_1_0_39 $) stacktrace:

Nested Exception (com.softwareag.tamino.db.API.invocation.TInvocationRequestNotW
ritableException, tag: $Name: JavaTaminoAPI_2_1_0_39 $) stacktrace:

Nested Exception (java.lang.NullPointerException, tag: $Name: JavaTaminoAPI_2_1_
0_39 $) stacktrace:

java.lang.NullPointerException
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeRawWithP
redefinedEntities(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.access$1600(U
nknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter$TTextNodeWrit
er.write(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNode(Unk
nown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNodeList
(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeChildNod
es(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.access$1200(U
nknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter$TElementNodeW
riter.write(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNode(Unk
nown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNodeList
(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeChildNod
es(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.access$1200(U
nknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter$TElementNodeW
riter.write(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNode(Unk
nown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNodeList
(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeChildNod
es(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.access$1200(U
nknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter$TElementNodeW
riter.write(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNode(Unk
nown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.write(Unknown
Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMAdapter.writeTo(Unkn
own Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMAdapter.writeTo(Unkn
own Source)
at com.softwareag.tamino.db.API.objectModel.TXMLObject.writeTo(Unknown S
ource)
at com.softwareag.tamino.db.API.io.TOutputStreamWriter.write(Unknown Sou
rce)
at com.softwareag.tamino.db.API.invocation.http.THTTPInvocationRequestWr
iter.write(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TInvocationRequestWriter$TCom
mandItemPairWriter.invokeRequestWriter(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TInvocationRequestWriter$TCom
mandItemPairWriter.write(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TInvocationRequestWriter.writ
e(Unknown Source)
at com.softwareag.tamino.db.API.invocation.http.THTTPInvocation.doInvoke
(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TAbstractInvocation.doTemplat
eInvoke(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TAbstractInvocation.invoke(Un
known Source)
at com.softwareag.tamino.db.API.invocation.TAbstractInvocation.invoke(Un
known Source)
at com.softwareag.tamino.db.API.accessor.TAbstractAccessor.invoke(Unknow
n Source)
at com.softwareag.tamino.db.API.accessor.TStreamAccessorImpl.process(Unk
nown Source)
at com.softwareag.tamino.db.API.accessor.TStreamAccessorImpl.update(Unkn
own Source)
at com.softwareag.tamino.db.API.accessor.TXMLObjectAccessorImpl.update(U
nknown Source)
at com.aker.database.tamino.taminoaccess.updateXML(taminoaccess.java:340
)
at com.aker.beans.userEJB.ejbStore(userEJB.java:194)


Any clues?

Thanks in advance,

– Juan

Sorry, we havn’t yet tested throughly with Xerces 2.5. Anybody out there has any clues about the difference between Xerces 2.5 and Xerces 2.3?

Interesting would also be if this only happens in a EJB server environment or also in a plain Java context.

Well, I rolled back to weblogic 7.0 SP3, now using xerces 2.2 and I am having the same error. This happens only during update operations on an XML document. Very strange. Exception below:

Nested Exception ( com.softwareag.tamino.db.API.invocation.TInvocationRetryHandlerException, tag: JavaTaminoAPI_4_1_4_42_1_1, java: 1.3.1_08, os: Windows 2000 5
.0 ) stacktrace:

Nested Exception ( com.softwareag.tamino.db.API.invocation.TInvocationRequestNotWritableException, tag: JavaTaminoAPI_4_1_4_42_1_1, java: 1.3.1_08, os: Windows
2000 5.0 ) stacktrace:

Nested Exception ( java.lang.NullPointerException, tag: JavaTaminoAPI_4_1_4_42_1_1, java: 1.3.1_08, os: Windows 2000 5.0 ) stacktrace:

java.lang.NullPointerException
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeRawWithPredefinedEntities(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.access$1600(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter$TTextNodeWriter.write(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNode(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNodeList(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeChildNodes(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.access$1200(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter$TElementNodeWriter.write(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNode(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNodeList(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeChildNodes(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.access$1200(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter$TElementNodeWriter.write(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNode(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNodeList(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeChildNodes(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.access$1200(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter$TElementNodeWriter.write(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.writeNode(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMWriter.write(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMAdapter.writeTo(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.dom.TDOMAdapter.writeTo(Unknown Source)
at com.softwareag.tamino.db.API.objectModel.TXMLObject.writeTo(Unknown Source)
at com.softwareag.tamino.db.API.io.TOutputStreamWriter.write(Unknown Source)
at com.softwareag.tamino.db.API.invocation.http.THTTPInvocationRequestWriter.write(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TInvocationRequestWriter$TCommandItemPairWriter.invokeRequestWriter(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TInvocationRequestWriter$TCommandItemPairWriter.write(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TInvocationRequestWriter.write(Unknown Source)
at com.softwareag.tamino.db.API.invocation.http.THTTPInvocation.doInvoke(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TAbstractInvocation.doTemplateInvoke(Unknown Source)
at com.softwareag.tamino.db.API.invocation.TAbstractInvocation.invoke(Unknown Source)
at com.softwareag.tamino.db.API.accessor.TAbstractAccessor.invoke(Unknown Source)
at com.softwareag.tamino.db.API.accessor.TStreamAccessorImpl.process(Unknown Source)
at com.softwareag.tamino.db.API.accessor.TStreamAccessorImpl.update(Unknown Source)
at com.softwareag.tamino.db.API.accessor.TXMLObjectAccessorImpl.update(Unknown Source)
at com.aker.database.tamino.taminoaccess.updateXML(taminoaccess.java:339)
at com.aker.beans.userEJB.ejbStore(userEJB.java:194)
at com.aker.beans.userEJB_2558r_Impl.ejbStore(userEJB_2558r_Impl.java:147)
at weblogic.ejb20.manager.DBManager.flushModified(DBManager.java:769)
at weblogic.ejb20.internal.TxManager$TxListener.flushModifiedKeys(TxManager.java:749)
at weblogic.ejb20.internal.TxManager.flushModifiedBeans(TxManager.java:329)
at weblogic.ejb20.manager.BaseEntityManager.flushModifiedBeans(BaseEntityManager.java:1644)
at weblogic.ejb20.manager.BeanManagedPersistenceManager.scalarFinder(BeanManagedPersistenceManager.java:71)
at weblogic.ejb20.manager.BaseEntityManager.scalarFinder(BaseEntityManager.java:881)
at weblogic.ejb20.manager.BaseEntityManager.remoteScalarFinder(BaseEntityManager.java:815)
at weblogic.ejb20.internal.EntityEJBHome.finder(EntityEJBHome.java:550)
at com.aker.beans.projectEJB_545lnr_HomeImpl.findLatestByUserID(projectEJB_545lnr_HomeImpl.java:206)
at com.aker.beans.webdispatcherEJB.loginUser(webdispatcherEJB.java:404)
at com.aker.beans.webdispatcherEJB_qu7z0l_EOImpl.loginUser(webdispatcherEJB_qu7z0l_EOImpl.java:802)
at jsp_servlet._jsp.__login._jspService(__login.java:128)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5528)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3155)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2519)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
<Aug 13, 2003 2:37:37 PM CDT> <010049> <EJB Exception in method: ejbFindLatestByUserID: weblogic.ejb20.InternalException: Error writing from flushM
odified
weblogic.ejb20.InternalException: Error writing from flushModified
at weblogic.ejb20.manager.BeanManagedPersistenceManager.scalarFinder(BeanManagedPersistenceManager.java:77)
at weblogic.ejb20.manager.BaseEntityManager.scalarFinder(BaseEntityManager.java:881)
at weblogic.ejb20.manager.BaseEntityManager.remoteScalarFinder(BaseEntityManager.java:815)
at weblogic.ejb20.internal.EntityEJBHome.finder(EntityEJBHome.java:550)
at com.aker.beans.projectEJB_545lnr_HomeImpl.findLatestByUserID(projectEJB_545lnr_HomeImpl.java:206)
at com.aker.beans.webdispatcherEJB.loginUser(webdispatcherEJB.java:404)
at com.aker.beans.webdispatcherEJB_qu7z0l_EOImpl.loginUser(webdispatcherEJB_qu7z0l_EOImpl.java:802)
at jsp_servlet._jsp.__login._jspService(__login.java:128)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5528)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3155)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2519)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)

Hi Juan,

after analysing the stacktrace, we believe that this might be a bug in the Tamino API for Java. If you have a maintenance contract, could you please communicate this problem to your Software AG Support contact, so that it gets tracked properly.

Thanks.

[This message was edited by Christian Gengenbach on 14 Aug 2003 at 11:52.]