From synapse-dev-return-5330-apmail-ws-synapse-dev-archive=ws.apache.org@ws.apache.org Tue Dec 18 06:23:15 2007 Return-Path: Delivered-To: apmail-ws-synapse-dev-archive@www.apache.org Received: (qmail 2390 invoked from network); 18 Dec 2007 06:23:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2007 06:23:15 -0000 Received: (qmail 30531 invoked by uid 500); 18 Dec 2007 06:23:04 -0000 Delivered-To: apmail-ws-synapse-dev-archive@ws.apache.org Received: (qmail 30494 invoked by uid 500); 18 Dec 2007 06:23:04 -0000 Mailing-List: contact synapse-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: synapse-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list synapse-dev@ws.apache.org Received: (qmail 30483 invoked by uid 99); 18 Dec 2007 06:23:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2007 22:23:04 -0800 X-ASF-Spam-Status: No, hits=-98.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2007 06:22:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1C70A714276 for ; Mon, 17 Dec 2007 22:22:43 -0800 (PST) Message-ID: <11475802.1197958963105.JavaMail.jira@brutus> Date: Mon, 17 Dec 2007 22:22:43 -0800 (PST) From: "Evanthika Amarasiri (JIRA)" To: synapse-dev@ws.apache.org Subject: [jira] Created: (SYNAPSE-197) Integer variables are expected to be defined as INT inside the xquery mediators MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Integer variables are expected to be defined as INT inside the xquery mediators ------------------------------------------------------------------------------- Key: SYNAPSE-197 URL: https://issues.apache.org/jira/browse/SYNAPSE-197 Project: Synapse Issue Type: Bug Components: Core Affects Versions: 1.1 Environment: Ubuntu7.04, JDK1.5.0_12 Reporter: Evanthika Amarasiri Fix For: 1.1.1-QA-B1 Created the following sequence and sent a request to a service which adds up two integer values. When the variable type is defined as "INTEGER", I received an exception saying that the type specified is unsupported. See below for the exception. When INTEGER was replaced by INT, the configuration was successful.
Exception thrown ============== 2007-12-18 11:42:27,572 [10.100.1.97-testc-ubuntu] [HttpServerWorker-10] DEBUG XQueryMediator Start : XQuery mediator 2007-12-18 11:42:27,572 [10.100.1.97-testc-ubuntu] [HttpServerWorker-10] DEBUG XQueryMediator Performing XQuery using query resource with key : xquery-key-req-add 2007-12-18 11:42:27,576 [10.100.1.97-testc-ubuntu] [HttpServerWorker-10] DEBUG XQueryMediator Creating a connection from the XQDataSource 2007-12-18 11:42:27,577 [10.100.1.97-testc-ubuntu] [HttpServerWorker-10] DEBUG XQueryMediator Picked up the xquery source declare namespace m0="http://calc.math.com"; declare namespace xs="http://www.w3.org/2001/XMLSchema"; declare variable $x as xs:integer external; declare variable $y as xs:integer external; {$x+$x*10} {$y+$y*10} from the key xquery-key-req-add 2007-12-18 11:42:27,577 [10.100.1.97-testc-ubuntu] [HttpServerWorker-10] DEBUG XQueryMediator Prepare an expression for the query 2007-12-18 11:42:27,596 [10.100.1.97-testc-ubuntu] [HttpServerWorker-10] DEBUG XQueryMediator Binding external variables to the DynamicContext 2007-12-18 11:42:27,597 [10.100.1.97-testc-ubuntu] [HttpServerWorker-10] DEBUG XQueryMediator Binding a variable to the DynamicContext with a name : x and a value : org.apache.axiom.om.impl.llom.OMTextImpl@1c12050 2007-12-18 11:42:27,598 [10.100.1.97-testc-ubuntu] [HttpServerWorker-10] ERROR XQueryMediator Unsupported type for the binding type14 in the variable name x 2007-12-18 11:42:27,604 [10.100.1.97-testc-ubuntu] [HttpServerWorker-10] ERROR XQueryMediator Unable to execute the query declare namespace m0="http://calc.math.com"; declare namespace xs="http://www.w3.org/2001/XMLSchema"; declare variable $x as xs:integer external; declare variable $y as xs:integer external; {$x+$x*10} {$y+$y*10} org.apache.synapse.SynapseException: Unsupported type for the binding type14 in the variable name x at org.apache.synapse.mediators.xquery.XQueryMediator.handleException(XQueryMediator.java:561) at org.apache.synapse.mediators.xquery.XQueryMediator.bindVariable(XQueryMediator.java:514) at org.apache.synapse.mediators.xquery.XQueryMediator.performQuery(XQueryMediator.java:245) at org.apache.synapse.mediators.xquery.XQueryMediator.mediate(XQueryMediator.java:134) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60) at org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:60) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:122) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:171) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:122) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:154) at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:89) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:219) at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:183) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org For additional commands, e-mail: synapse-dev-help@ws.apache.org