Pagesize Problem(Error)

X-Application Version: 3.1.2
Tamino Version : 3.1.1.4
Platform : Win2k
WebContainer : Tomcat 4.0.3
JDK Version : 1.3.1

I’ve defined a quite complex schema in Tamino, inserted a test document, created the JSP-Files with generate.cmd, started X-Application and pushed on search. Then the follwong error was displayed:
!Error!
An error occurred in the application program. Please report the following problem to your webmaster.
Error message: 999: Application Error! Please contact the X-Application-Team.
Help message: Please send a copy of the stack trace and of the error page to the development team in order to solve this problem immediately.
Exception Type: ApplicationException
Stacktrace:


ApplicationException: 999: Application Error! Please contact the X-Application-Team.
com.softwareag.xtools.xapplication.common.PreconditionViolation
pagesize parameter ‘ps’ must be greater than 0, but was -1
at com.softwareag.xtools.xapplication.businessdocument.Page.setPageCapacity(Page.java:90)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentPage.setPageCapacity(BusinessDocumentPage.java:171)
at com.softwareag.xtools.xapplication.jsp.taglib.BrowseTag.doStartTagCore(BrowseTag.java:121)
at com.softwareag.xtools.xapplication.jsp.JspTag.doStartTag(JspTag.java:120)
at org.apache.jsp.list$jsp._jspService(list$jsp.java:238)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:484)

I solved it with the defining the attribute pagesize=“5” in the list.jsp:
<bdm:browse pagesize=“5”>

Why that, is the generation of the JSP wrong ir what?

What version of X-Application do you use? I checked the stack trace for version 3.1.2 but the line numbers make no sense.

Is it possible to send us your schema to reproduce the problem?

Michael

Software AG Germany, Darmstadt

Sorry, I’ve created my own version, because of the problem with pagesize in the past. I created the new property ‘pagesize’.

Sorry, I’ve created my own version, because of the problem with pagesize in the past. I created the new property ‘pagesize’.