Internal error and error 500

X-Application Version: 3.1.3
Tamino Version : 3.1.1
Platform : Win2k
WebContainer : Tomcat 3.3
JDK Version : 1.3.1

Dear developers

I tried to run Simple Examples For JSP Tags. They are sometimes good, but sometimes are bad due to error 500. The x-application and jsp is not stable at all for my system. I am just wondering why it sometimes can show up the pages, but sometimes can’t. Here is the following error messages I picked up randomly in two of internal error and error 500 - hello and create examples.
The other one is Search page under Property
( http://localhost:8080/xapp/property/Search.jsp )

Please help me out here, Thank you very much.

pp


1.

Error: 500
Location: /xapp/simple/Hello.jsp
Internal Servlet Error:

javax.servlet.ServletException: StoreException occurred.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
at Hello_2._jspService(Hello_2.java:324)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
Root cause:
XJspException:
Local transaction mode could not be established. Falling back to autocommit mode!
NestedException:NestedException:Retry after session mode update failed.
NestedException:Transaction mode cannot be updated. Problems parsing input stream.
NestedException:Transaction mode cannot be updated. Tamino failure.
NestedException:Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.connection.TTransactionModeCoordinatorImpl.useLocalTransactionMode(TTransactionModeCoordinatorImpl.java:130)
at com.softwareag.tamino.db.api.connection.TConnectionImpl.useLocalTransactionMode(TConnectionImpl.java:231)
at com.softwareag.xtools.xapplication.store.TaminoStore.startTransaction(TaminoStore.java:389)
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:740)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.read(BusinessDocumentWorkspace.java:295)
at com.softwareag.xtools.xapplication.plugin.StandardWorkspacePlugin.readDocument(StandardWorkspacePlugin.java:312)
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.softwareag.xtools.xapplication.plugin.Action.invoke(Action.java:180)
at com.softwareag.xtools.xapplication.plugin.Dispatcher.execute(Dispatcher.java:158)
at com.softwareag.xtools.xapplication.jsp.SessionContext.processWorkspaceAction(SessionContext.java:389)
at com.softwareag.xtools.xapplication.jsp.taglib.DirectCommandTag.processAction(DirectCommandTag.java:192)
at com.softwareag.xtools.xapplication.jsp.taglib.CommandTag.doAfterBodyCore(CommandTag.java:122)
at com.softwareag.xtools.xapplication.jsp.JspTag.doAfterBody(JspTag.java:188)
at Hello_2._jspService(Hello_2.java:186)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
Caused by: NestedException:Retry after session mode update failed.
NestedException:Transaction mode cannot be updated. Problems parsing input stream.
NestedException:Transaction mode cannot be updated. Tamino failure.
NestedException:Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.accessor.TGenericAccessorImpl.execute(TGenericAccessorImpl.java:66)
at com.softwareag.tamino.db.api.accessor.TGenericAccessorImpl.execute(TGenericAccessorImpl.java:96)
at com.softwareag.tamino.db.api.connection.TTransactionModeCoordinatorImpl.useLocalTransactionMode(TTransactionModeCoordinatorImpl.java:113)
… 27 more
Caused by: Retry after session mode update failed.
NestedException:Transaction mode cannot be updated. Problems parsing input stream.
NestedException:Transaction mode cannot be updated. Tamino failure.
NestedException:Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.invocation.TAbstractInvocation.retryAfterSessionModeUpdate(TAbstractInvocation.java:491)
at com.softwareag.tamino.db.api.invocation.TAbstractInvocation.doTemplateInvoke(TAbstractInvocation.java:381)
at com.softwareag.tamino.db.api.invocation.TAbstractInvocation.invoke(TAbstractInvocation.java:176)
at com.softwareag.tamino.db.api.accessor.TGenericAccessorImpl.execute(TGenericAccessorImpl.java:56)
… 29 more
Caused by: Transaction mode cannot be updated. Problems parsing input stream.
NestedException:Transaction mode cannot be updated. Tamino failure.
NestedException:Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.connection.TTransactionMode.update(TTransactionMode.java:89)
at com.softwareag.tamino.db.api.connection.TTransactionModeCoordinatorImpl.updateModeFrom(TTransactionModeCoordinatorImpl.java:298)
at com.softwareag.tamino.db.api.invocation.TAbstractInvocation.doTemplateInvoke(TAbstractInvocation.java:371)
… 31 more
Caused by: Transaction mode cannot be updated. Tamino failure.
NestedException:Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.connection.TTransactionMode.update(TTransactionMode.java:87)
… 33 more
Caused by: Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.connection.TTransactionMode.obtainTaminoFailure(TTransactionMode.java:224)
at com.softwareag.tamino.db.api.connection.TTransactionMode.update(TTransactionMode.java:86)
… 33 more


2.

Error: 500
Location: /xapp/simple/Display.jsp
Internal Servlet Error:

javax.servlet.ServletException: StoreException occurred.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
at Display_2._jspService(Display_2.java:756)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
Root cause:
XJspException:
Local transaction mode could not be established. Falling back to autocommit mode!
NestedException:NestedException:Retry after session mode update failed.
NestedException:Transaction mode cannot be updated. Problems parsing input stream.
NestedException:Transaction mode cannot be updated. Tamino failure.
NestedException:Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.connection.TTransactionModeCoordinatorImpl.useLocalTransactionMode(TTransactionModeCoordinatorImpl.java:130)
at com.softwareag.tamino.db.api.connection.TConnectionImpl.useLocalTransactionMode(TConnectionImpl.java:231)
at com.softwareag.xtools.xapplication.store.TaminoStore.startTransaction(TaminoStore.java:389)
at com.softwareag.xtools.xapplication.store.TaminoStore.read(TaminoStore.java:740)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.read(BusinessDocumentWorkspace.java:295)
at com.softwareag.xtools.xapplication.plugin.StandardWorkspacePlugin.readDocument(StandardWorkspacePlugin.java:312)
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.softwareag.xtools.xapplication.plugin.Action.invoke(Action.java:180)
at com.softwareag.xtools.xapplication.plugin.Dispatcher.execute(Dispatcher.java:158)
at com.softwareag.xtools.xapplication.jsp.SessionContext.processWorkspaceAction(SessionContext.java:389)
at com.softwareag.xtools.xapplication.jsp.taglib.DirectCommandTag.processAction(DirectCommandTag.java:192)
at com.softwareag.xtools.xapplication.jsp.taglib.CommandTag.doAfterBodyCore(CommandTag.java:122)
at com.softwareag.xtools.xapplication.jsp.JspTag.doAfterBody(JspTag.java:188)
at Display_2._jspService(Display_2.java:186)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
Caused by: NestedException:Retry after session mode update failed.
NestedException:Transaction mode cannot be updated. Problems parsing input stream.
NestedException:Transaction mode cannot be updated. Tamino failure.
NestedException:Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.accessor.TGenericAccessorImpl.execute(TGenericAccessorImpl.java:66)
at com.softwareag.tamino.db.api.accessor.TGenericAccessorImpl.execute(TGenericAccessorImpl.java:96)
at com.softwareag.tamino.db.api.connection.TTransactionModeCoordinatorImpl.useLocalTransactionMode(TTransactionModeCoordinatorImpl.java:113)
… 27 more
Caused by: Retry after session mode update failed.
NestedException:Transaction mode cannot be updated. Problems parsing input stream.
NestedException:Transaction mode cannot be updated. Tamino failure.
NestedException:Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.invocation.TAbstractInvocation.retryAfterSessionModeUpdate(TAbstractInvocation.java:491)
at com.softwareag.tamino.db.api.invocation.TAbstractInvocation.doTemplateInvoke(TAbstractInvocation.java:381)
at com.softwareag.tamino.db.api.invocation.TAbstractInvocation.invoke(TAbstractInvocation.java:176)
at com.softwareag.tamino.db.api.accessor.TGenericAccessorImpl.execute(TGenericAccessorImpl.java:56)
… 29 more
Caused by: Transaction mode cannot be updated. Problems parsing input stream.
NestedException:Transaction mode cannot be updated. Tamino failure.
NestedException:Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.connection.TTransactionMode.update(TTransactionMode.java:89)
at com.softwareag.tamino.db.api.connection.TTransactionModeCoordinatorImpl.updateModeFrom(TTransactionModeCoordinatorImpl.java:298)
at com.softwareag.tamino.db.api.invocation.TAbstractInvocation.doTemplateInvoke(TAbstractInvocation.java:371)
… 31 more
Caused by: Transaction mode cannot be updated. Tamino failure.
NestedException:Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.connection.TTransactionMode.update(TTransactionMode.java:87)
… 33 more
Caused by: Tamino access failure (?: ?, ? )
at com.softwareag.tamino.db.api.connection.TTransactionMode.obtainTaminoFailure(TTransactionMode.java:224)
at com.softwareag.tamino.db.api.connection.TTransactionMode.update(TTransactionMode.java:86)
… 33 more



3.

!Error!
An error occurred in the application program. Please report the following problem to your webmaster.
Error message: internal error
Help message:
Exception Type: ApplicationException
Stacktrace:


XException: id = 999
java.lang.NullPointerException
at com.softwareag.tamino.db.api.invocation.http.THTTPInvocation.doInvoke(THTTPInvocation.java:109)
at com.softwareag.tamino.db.api.invocation.TInvocationRetryOnConnectionTimeoutHandler.retryAfterSessionModeUpdate(TInvocationRetryOnConnectionTimeoutHandler.java:71)
at com.softwareag.tamino.db.api.invocation.TAbstractInvocation.retryAfterSessionModeUpdate(TAbstractInvocation.java:485)
at com.softwareag.tamino.db.api.invocation.TAbstractInvocation.doTemplateInvoke(TAbstractInvocation.java:381)
at com.softwareag.tamino.db.api.invocation.TAbstractInvocation.invoke(TAbstractInvocation.java:176)
at com.softwareag.tamino.db.api.accessor.TGenericAccessorImpl.execute(TGenericAccessorImpl.java:56)
at com.softwareag.tamino.db.api.accessor.TGenericAccessorImpl.execute(TGenericAccessorImpl.java:96)
at com.softwareag.tamino.db.api.connection.TTransactionModeCoordinatorImpl.useLocalTransactionMode(TTransactionModeCoordinatorImpl.java:113)
at com.softwareag.tamino.db.api.connection.TConnectionImpl.useLocalTransactionMode(TConnectionImpl.java:231)
at com.softwareag.xtools.xapplication.store.TaminoStore.query(TaminoStore.java:555)
at com.softwareag.xtools.xapplication.store.TaminoStore.readTsd(TaminoStore.java:1352)
at com.softwareag.xtools.xapplication.store.TaminoStore.readTsd(TaminoStore.java:1320)
at com.softwareag.xtools.xapplication.businessdocument.Schema.read(Schema.java:153)
at com.softwareag.xtools.xapplication.businessdocument.SchemaCache.lookup(SchemaCache.java:70)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.create(BusinessDocumentWorkspace.java:253)
at com.softwareag.xtools.xapplication.plugin.StandardWorkspacePlugin.createDocument(StandardWorkspacePlugin.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.softwareag.xtools.xapplication.plugin.Action.invoke(Action.java:180)
at com.softwareag.xtools.xapplication.plugin.Dispatcher.execute(Dispatcher.java:158)
at com.softwareag.xtools.xapplication.jsp.SessionContext.processWorkspaceAction(SessionContext.java:389)
at com.softwareag.xtools.xapplication.jsp.taglib.ModuleTag.processDocumentAction(ModuleTag.java:503)
at com.softwareag.xtools.xapplication.jsp.taglib.ModuleTag.doStartTagCore(ModuleTag.java:117)
at com.softwareag.xtools.xapplication.jsp.JspTag.doStartTag(JspTag.java:142)
at InstanceDemoCreate_1._jspService(InstanceDemoCreate_1.java:161)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)



powered by Tamino X-Application

Hello,

all this error messages indicate a communication problems between the Tamino API for Java and the HTTP server of Tamino.

The stacktrace does not give any hint which kind of error occurs. To get a better understanding of your environment:

What is your configuration?

Runs Tamino / Tamino HTTP Server (e.g. Apache) / WebContainer (e.g. Tomcat) on the same machine ?

To analyse the communication problems, you could trace the data transfer between Java API and Tamino. How to do this, can be found under the topic

Protocolling the HTTP transfer between Tamino and X-Application

If your error is easily reproducable, I would propose to make protocol the data transfer and to post the resulting protocol file.

Thank you,
Christian.