You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David Merrilees <da...@fenc.org.uk> on 2004/08/20 16:09:46 UTC

xspaction error

I'm trying to use an xsp action to retrieve a value from a database and
setting it to a sitemap parameter.

The code appears to be correct. Any comments welcome.

----- Code Excerpt ----- 

<?xml version="1.0"?>
<xsp:page
	language="java"
	xmlns:action="http://apache.org/cocoon/action/1.0"
	xmlns:xsp="http://apache.org/xsp"
	xmlns:esql="http://apache.org/cocoon/SQL/v2"
	xmlns:xsp-request="http://apache.org/xsp/request/2.0">
	<root>
		<esql:connection>
			<esql:pool>web</esql:pool>
	
<esql:allow-multiple-results>yes</esql:allow-multiple-results>
			<esql:execute-query>
				<esql:call>exec sp_selectPrintOption
168</esql:call>
				<esql:results>
					<esql:row-results>
						<action:set-result
name="printOption">
							<action:param
name="value"><esql:get-string column="printOption"/></action:param>
						</action:set-result>
						<action:set-success/>
					</esql:row-results>
				</esql:results>
				<esql:no-results> 
					<action:set-failure/>
				</esql:no-results> 
				<esql:error-results>
					<action:set-failure/>
				</esql:error-results> 
			</esql:execute-query>
		</esql:connection>
	</root>
</xsp:page>


----- Code Excerpt ----- 


----- Error Message ----- 



An Error Occurred
Language Exception

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
xsp_action_xsp:
ERROR 1 (org\apache\cocoon\www\about\xsp_action_xsp.java):
...
this.actionResultMap.put("printOption", 
"" 



// start error (lines 442-442) "Syntax error on token ")", "+", "-",
"--", "++", "boolean", "void", "byte", "short", "int", "long", "char",
"float", "double", "(", "true", "false", "IntegerLiteral",
"LongLiteral", "FloatingPointLiteral", "DoubleLiteral",
"CharacterLiteral", "StringLiteral", "null", "~", "!", "super", "this",
"new", "Identifier" expected"
+ ); 

// end error

this.characters("\n\t\t\t\t\t\t"); 

this.objectModel.put(ServerPagesAction.ACTION_SUCCESS_OBJECT,
Boolean.TRUE); 

...
Line 442, column 0: Syntax error on token ")", "+", "-", "--", "++",
"boolean", "void", "byte", "short", "int", "long", "char", "float",
"double", "(", "true", "false", "IntegerLiteral", "LongLiteral",
"FloatingPointLiteral", "DoubleLiteral", "CharacterLiteral",
"StringLiteral", "null", "~", "!", "super", "this", "new", "Identifier"
expected

cause: org.apache.cocoon.components.language.LanguageException: Error
compiling xsp_action_xsp:
ERROR 1 (org\apache\cocoon\www\about\xsp_action_xsp.java):
...
this.actionResultMap.put("printOption", 
"" 



// start error (lines 442-442) "Syntax error on token ")", "+", "-",
"--", "++", "boolean", "void", "byte", "short", "int", "long", "char",
"float", "double", "(", "true", "false", "IntegerLiteral",
"LongLiteral", "FloatingPointLiteral", "DoubleLiteral",
"CharacterLiteral", "StringLiteral", "null", "~", "!", "super", "this",
"new", "Identifier" expected"
+ ); 

// end error

this.characters("\n\t\t\t\t\t\t"); 

this.objectModel.put(ServerPagesAction.ACTION_SUCCESS_OBJECT,
Boolean.TRUE); 

...
Line 442, column 0: Syntax error on token ")", "+", "-", "--", "++",
"boolean", "void", "byte", "short", "int", "long", "char", "float",
"double", "(", "true", "false", "IntegerLiteral", "LongLiteral",
"FloatingPointLiteral", "DoubleLiteral", "CharacterLiteral",
"StringLiteral", "null", "~", "!", "super", "this", "new", "Identifier"
expected


----- Error Message ----- 


This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. FENC, Hamlin Way, Hardwick Narrows, King's Lynn, UK, or see our website www.fenc.org.uk


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org