You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andreas Neuenschwander <an...@andi.ch> on 2001/04/27 15:59:35 UTC
[C2] ESQL Logicsheet error
Hi,
I get the following error when I try use the esql logicsheet in C2:
try {
_esql_query.prepared_statement.setInt(1,
this.characters("\n\t\t\t\t\t\t\t\t\t\t\t");
^
(((EsqlQuery)
_esql_queries.elementAt(
_esql_queries.size() -
1)).resultset.getInt("id"))
this.characters("\n\t\t\t\t\t\t\t\t\t\t"););
} catch (SQLException _esql_exception_N78) {
throw new RuntimeException("Error setting parameter on
statement: "+
org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.apache.cocoon.ResourceNotFoundException: Language
Exception:org.apache.cocoon.ProcessingException: Language
Exception:org.apache.cocoon.components.language.LanguageException: Error
compiling review_xml:
Line 0, column 0:
/tmp/JettyContext61481.tmp/org/apache/cocoon/www/_/www/tv2/xml/movie/review_
xml.java:592: ')' expected.
this.characters("\n\t\t\t\t\t\t\t\t\t\t ");
---
this.characters("\n\t\t\t\t\t\t\t\t\t\t\t");
^
There is a ';' in the method call instead a ','
---
If I use the esql tags like this (with tabs and linefeeds between the tags)
The ESQL logicsheets returns the error.
<esql:query>
SELECT .... FROM ...
WHERE ... =
<esql:parameter type="int">
<esql:get-int ancestor="1" column="id"/>
</esql:parameter>
</esql:query>
Like this it works fine: (no tabs or linefeeds between the tags)
<esql:query>
SELECT .... FROM ...
WHERE ... =
<esql:parameter type="int"><esql:get-int ancestor="1"
column="id"/></esql:parameter>
</esql:query>
It seems there is a general problem with the xsl:template
'get-nested-string', this
error affects not only the esql logicsheets.
I use the C2a5 checked out this morning.
andi
---------------------------------------------------------------------
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>