X-Application Version: 3.1.3
Tamino Version : 3.1.1
Platform : NT
WebContainer : Tomcat 3.3
JDK Version : 1.3.1
Hi,
I used X-Application to generate JSP pages for a collection in a Tamino database. When I directly load the create.jsp page (http://localhost:4000/Resume/create.jsp), an error occurs like this:
!Error!
An error occurred in the application program. Please report the following problem to your webmaster.
Error message: internal error
Help message:
Exception id: 999
Exception Type: ApplicationException
Stacktrace:
XException: id = 999
java.lang.NullPointerException
at com.softwareag.xtools.xapplication.jsp.taglib.ElementActionTag.processAction(ElementActionTag.java:78)
at com.softwareag.xtools.xapplication.jsp.taglib.CommandTag.doAfterBodyCore(CommandTag.java:122)
at com.softwareag.xtools.xapplication.jsp.JspTag.doAfterBody(JspTag.java:188)
at create_15._jspService(create_15.java:549)
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:479)
---------------------------------------------
However, when I click the link “Create” at the left hand side of the search.jsp page, it works properly. And I can see that there is a random “code” generated on the URL just like this:
http://localhost:4000/Resume/create.jsp?:coded=2093344801
How can I solve the problem so that I can directly call the create.jsp page? Please help me. Thanks a lot.
Andy
Hello,
the link from the search page is responsible to create a new document. If you invoke the page directly, this document is not available.
You can add the following code to your create page
<xapp:if condition="notexist" select="/<your doctype>">
<xapp:directcommand type="create" schema="<your doctype>" />
</xapp:if>
Bye,
Christian.