Customizing X-Application Generated Pages

X-Application Version: 3.1.2
Tamino Version : 3.1.1.4
Platform : WinXP
WebContainer : Tomcat 3.3.1
JDK Version : 1.3.1

Hello
I created the property tutorial project and everything worked fine, but then I customized the code to work with my own schema and ran into some trouble.
I can search for a record, edit and store it but if I add/remove an element, similar to the property tutorial where contact people can be added or removed, I cannot store.
This is the error I get:

Error: 500
Location: /VisaInvoice/jsp/IRBview.jsp
Internal Servlet Error:

javax.servlet.ServletException: 217: StoreException occured when processing action “commit”.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
at jsp.IRBview_7._jspService(IRBview_7.java:1210)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)
Root cause:
MajorEnvironmentException: 217: StoreException occured when processing action “commit”.
com.softwareag.tamino.db.api.accessor.TUpdateException: ?Tamino access failure.7765INOXDE7765Facette ‘length’ was violated by a value during validation.Line 1, Column 57: datatype validation for attribute “Astand” of type xs:string failed: com.softwareag.tamino.db.api.accessor.TAccessFailureVerifier.newAccessFailureMessage(TAccessFailureVerifier.java:109)com.softwareag.tamino.db.api.accessor.TAccessFailureVerifier.verify(TAccessFailureVerifier.java:97)com.softwareag.tamino.db.api.accessor.TAccessFailureVerifier.verifyUpdateResponse(TAccessFailureVerifier.java:49)com.softwareag.tamino.db.api.accessor.TXMLObjectAccessorImpl.update(TXMLObjectAccessorImpl.java:152)com.softwareag.xtools.xapplication.store.TaminoStore.update(TaminoStore.java:1003)com.softwareag.xtools.xapplication.store.TaminoStore.update(TaminoStore.java:1094)com.softwareag.xtools.xapplication.businessdocument.SingleBusinessDocument.updateDocument(SingleBusinessDocument.java:828)com.softwareag.xtools.xapplication.businessdocument.state.Modifiable.quasiCommit(Modifiable.java:84)com.softwareag.xtools.xapplication.businessdocument.SingleBusinessDocument.commitAll(SingleBusinessDocument.java:1022)com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.commitAll(BusinessDocumentWorkspace.java:316)com.softwareag.xtools.xapplication.jsp.SessionContext.commitAll(SessionContext.java:459)com.softwareag.xtools.xapplication.jsp.taglib.ModuleTag.processDocumentAction(ModuleTag.java:549)com.softwareag.xtools.xapplication.jsp.taglib.ModuleTag.doStartTagCore(ModuleTag.java:116)com.softwareag.xtools.xapplication.jsp.JspTag.doStartTag(JspTag.java:120)jsp.IRBview_7._jspService(IRBview_7.java:120)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)javax.servlet.http.HttpServlet.service(HttpServlet.java)org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)org.apache.tomcat.core.Handler.invoke(Handler.java:322)org.apache.tomcat.core.Handler.service(Handler.java:235)org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)java.lang.Thread.run(Thread.java:484)
at com.softwareag.tamino.db.api.accessor.TAccessFailureVerifier.verifyUpdateResponse(TAccessFailureVerifier.java:51)
at com.softwareag.tamino.db.api.accessor.TXMLObjectAccessorImpl.update(TXMLObjectAccessorImpl.java:152)
at com.softwareag.xtools.xapplication.store.TaminoStore.update(TaminoStore.java:1003)
at com.softwareag.xtools.xapplication.store.TaminoStore.update(TaminoStore.java:1094)
at com.softwareag.xtools.xapplication.businessdocument.SingleBusinessDocument.updateDocument(SingleBusinessDocument.java:828)
at com.softwareag.xtools.xapplication.businessdocument.state.Modifiable.quasiCommit(Modifiable.java:84)
at com.softwareag.xtools.xapplication.businessdocument.SingleBusinessDocument.commitAll(SingleBusinessDocument.java:1022)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.commitAll(BusinessDocumentWorkspace.java:316)
at com.softwareag.xtools.xapplication.jsp.SessionContext.commitAll(SessionContext.java:459)
at com.softwareag.xtools.xapplication.jsp.taglib.ModuleTag.processDocumentAction(ModuleTag.java:549)
at com.softwareag.xtools.xapplication.jsp.taglib.ModuleTag.doStartTagCore(ModuleTag.java:116)
at com.softwareag.xtools.xapplication.jsp.JspTag.doStartTag(JspTag.java:120)
at jsp.IRBview_7._jspService(IRBview_7.java:120)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)



Any ideas ?? :confused:

Best regards

Geiri

Hello,

according to the error message Tamino does not accept your document due to a validation error:

‘length’ was violated by a value during validation.Line 1, Column 57: datatype validation for attribute “Astand” of type xs:string failed

Do you have an attribute ‘Astand’ ?

Did you define a restriction for the length of this attribute ?

Have a look at the schema of your data. Perhaps, you forgot to set the value of ‘Astand’ or used a value which was to long.

Bye,
Christian.

Thank you for your response.

I have one more problem to deal with, see error msg below. I sometimes get this error but the session should not have expired and I have not pressed the Back button. For example I searched for a record and removed an element, but when refreshing the page this error came:

Error: 500
Location: /visaInvoice/jsp/IRBview.jsp
Internal Servlet Error:

javax.servlet.ServletException: 002: Parameter no longer meaningful. Either session expired or you have pressed the Back button.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
at jsp.IRBview_7._jspService(IRBview_7.java:1210)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)
Root cause:
MinorEnvironmentException: 002: Parameter no longer meaningful. Either session expired or you have pressed the Back button.
com.softwareag.xtools.xapplication.jsp.NavigationException
null
at com.softwareag.xtools.xapplication.jsp.RequestContext.forRequest(RequestContext.java:249)
at com.softwareag.xtools.xapplication.jsp.JspTag.checkContext(JspTag.java:230)
at com.softwareag.xtools.xapplication.jsp.JspTag.doStartTag(JspTag.java:114)
at jsp.IRBview_7._jspService(IRBview_7.java:120)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)

Geiri

:slight_smile: I figured it out when I read
this.
Sorry for the inconvenience.
Best regards

Geiri