cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Sonney <ke...@webslingerz.com>
Subject Re: Strange error message
Date Fri, 18 Aug 2000 16:35:37 GMT
On Fri, 18 Aug 2000, Ricardo Rocha wrote:
> Too bad the stack trace doesn't include line numbers.

Tell me about it. If it did, I'd be in the code right now. 

> If possible, please, inline your XSP document as to be
> able to reproduce this asap.

Below. It's also being *VERY* machine specific. it works on an almost
duplicate Solaris 7 machine with one kernel version lower and JDK
1.2.1. The machine *WITH* the  error uses JDK 1.2.2 and the latest
Solaris/Sparc 7 Kernel (AFAIK, I don't control that machine).

We're downgrading the jdk to 1.2.1 and putting the machine into 32-bit
mode (it's currently 64-bit mode) to make it as similar to the working box
as we can.

If you need db_defs.xml, I'll send them to you *PRIVATELY*, as that's
fairly sensitive info. It refers to an Oracle DB, and client data...

<!-- Document to produce bad XSP error -->
<?xml version="1.0"?>
<?xml-stylesheet href="index.xsl" type="text/xsl"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY sql_params SYSTEM "admin/db_defs.xml">
]>

<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?cocoon-format type"text/html"?>

<xsp:page 
	language="java"
	xmlns:xsp="http://www.apache.org/1999/XSP/Core"
        xmlns:request="http://www.apache.org/1999/XSP/Request"
	xmlns:sql="http://www.apache.org/1999/SQL"
>

<page>
<sql:execute-query>
	&sql_params;
	<sql:max-rows>4</sql:max-rows>
	<sql:update-rows-attribute>updated</sql:update-rows-attribute>
	<sql:skip-rows>0</sql:skip-rows>
	<sql:doc-element>activities</sql:doc-element>
	<sql:row-element>activity</sql:row-element>
<!--
	<sql:query>SELECT b.category_name, a.activity_id, a.title, SUBSTR(a.description,1,200)
lead,a.description, a.modified_date,c.url,c.anchor FROM activity_table a,category_table b,
activity_link_table c WHERE a.category_id = b.category_id AND a.activity_id = c.activity_id(+)
ORDER BY a.modified_date  DESC</sql:query>
-->
	<sql:query>SELECT b.category_name, a.activity_id, a.title, SUBSTR( SUBSTR(a.description,1,200),1,INSTR(SUBSTR(a.description,1,200),'
',-1,1) ) lead,a.description, a.modified_date,c.url,c.anchor FROM activity_table a,category_table
b, activity_link_table c WHERE a.category_id = b.category_id AND a.activity_id = c.activity_id(+)
ORDER BY a.modified_date  DESC</sql:query>
</sql:execute-query>
<sql:execute-query>
	&sql_params;
	<sql:update-rows-attribute>updated</sql:update-rows-attribute>
	<sql:max-rows>3</sql:max-rows>
	<sql:skip-rows>0</sql:skip-rows>
	<sql:doc-element>news</sql:doc-element>
	<sql:row-element>story</sql:row-element>
	<sql:query>SELECT DISTINCT a.news_id, a.title, a.modified_date,TO_CHAR(a.modified_date,'dd-Mon-yyyy')
mod_date, a.expiration_date, b.media_id FROM news_table a, news_media_table b WHERE a.news_id
!= 0 AND a.display_flag=1 AND a.approval_flag=1 AND a.front_page_flag=1 AND a.news_id = b.news_id(+)
ORDER BY modified_date DESC</sql:query>
</sql:execute-query>
</page>
</xsp:page>
<!-- end bad doc -->

-- 
+-------------------------------------------+
| Kevin Sonney        kevin@webslingerZ.com |
| Systems Programmer    www.webslingerZ.com |
+-------------------------------------------+


Mime
View raw message