You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Brent L Johnson <br...@bjohnson.net> on 2001/10/16 21:39:37 UTC

Bug with Logicsheets

This is related to my previous thread about the parseInt() exceptions I've
been getting when I started calling another new logicsheet for generating a
header.  I have noticed one thing strange - it seems that I only get this
error for some total number of tags being transformed?  Is this a memory
problem?? (our production environment is a virtual freebsd server where I
have root access) Here is an example....
--------------------------------
XML Doc (index.xml):

<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?xml-logicsheet href="/common/header-new.xsl"/?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="/common/main.xsl" type="text/xsl"?>
<xsp:page language="java"
        xmlns:xsp="http://www.apache.org/1999/XSP/Core"
        xmlns:esql="http://apache.org/cocoon/SQL/v2"
        xmlns:header="http://www.reedyriverpress.com/header"
>
.....
    <header:display/>
.....
</xsp:page>

--------------------------------
LogicSheet (header-new.xsl):

  <xsl:template match="header:display">
    <table border="0">
    .....
    </table>
<map name="Map">
  <area alt="Home" coords="0,0,48,31" href="/index.xml" shape="rect"
title="Home" target="_top"/>
  <area alt="Current Issue" coords="49,0,105,31" href="/currentIssue.xml"
shape="rect" title="Current Issue" target="_top"/>
  <area alt="Standards" coords="106,0,178,31" href="/standards.xml"
shape="rect" title="Standards" target="_top"/>
  <area alt="Communication Tools and Forms" coords="180,0,283,31"
href="/communicationTools.xml" shape="rect" title="Communication T
ools and Forms" target="_top"/>
  <area alt="Project Library" coords="284,1,339,32"
href="/projectLibrary/index.xml" shape="rect" title="Project Library"
target="_t
op"/>
  <area alt="Templates and Downloads" coords="340,0,424,31"
href="/downloads.xml" shape="rect" title="Templates and Downloads" targe
t="_top"/>
  <area alt="Store" coords="425,0,467,31" href="/store/" shape="rect"
title="Store" target="_top"/>
  <area alt="Resource Center" coords="468,1,529,31" href="/resourceCenter/"
shape="rect" title="Resource Center" target="_top"/>
  <area alt="About Us" coords="529,0,596,31" href="/aboutUs.xml"
shape="rect" title="About Us" target="_top"/>
  <area shape="rect" coords="9,0,50,31" href="/help.xml" alt="Help"
title="Help" target="_top"/>
</map>
  </xsl:template>

-------------------------------

If I go in there and take out some tags (for example, take out 7 or 8 area
tags) - the page works just fine.  I put the tags in... I get this:

java.lang.NumberFormatException: at java.lang.Integer.parseInt(Integer.java,
Compiled Code) at java.lang.Integer.parseInt(Integer.java, Compiled Code) at
_usr._local._www._vhosts._htdocs._index2.populateDocument(_index2.java,
Compiled Code) at
org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java, Compiled
Code) at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java,
Compiled Code) at org.apache.cocoon.Engine.handle(Engine.java, Compiled
Code) at org.apache.cocoon.Cocoon.service(Cocoon.java, Compiled Code) at
javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java,
Compiled Code) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code) at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code) at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code) at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java, Compiled Code) at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code) at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code)

If anyone has any ideas I'd like to hear them.  I'm sort of stuck here -
I've got this code in production, but I'm afraid to make any development
modifications to it until I figure out what's causing this (other than
reverting changes back to having the header in a stylesheet - then it works
fine).

Thanks,

- Brent


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>