[Users] Problem with In-Message from BC-SQL
Dungnghe
hoangtuhl at yahoo.com
Wed Mar 16 10:54:57 CET 2011
Hallo,
i have a problem when trying test connection from Mysql database with petals using bc-sql.
I have installed bc-sql, sa-sql(+su-sql), sl-mysql, and also already configurated sl-mysql but when i try to test with an input message that come to message like that:
Code:
Operation 'select' must be in the namespace 'http://petals.ow2.org/components/sql/version-1'
java.lang.Exception: Operation 'select' must be in the namespace 'http://petals.ow2.org/components/sql/version-1' at org.ow2.petals.bc.sql.listener.JBIListener.validateExchange(JBIListener.java:214) at org.ow2.petals.bc.sql.listener.JBIListener.onJBIMessage(JBIListener.java:85) at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:626) at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:382) at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:242) at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:176) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
my input operation message is:
Code:
<execute xmlns="http://petals.ow2.org/components/sql/version-1">
<sql show-metadata="true">SELECT id FROM jos_components </sql>
</execute>
my jbi.xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--
JBI descriptor for the PEtALS' "petals-bc-sql" component (SQL).
Originally created for the version 1.0 of the component.
-->
<jbi:jbi version="1.0"
xmlns:interfaceNs="http://petals.ow2.org/components/sql/version-1"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5"
xmlns:serviceNs="http://petals.ow2.org/integration"
xmlns:sql="http://petals.ow2.org/components/sql/version-1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- Import a Service into PEtALS or Expose a PEtALS Service => use a BC. -->
<jbi:services binding-component="true">
<!-- Import a Service into PEtALS => provides a Service. -->
<jbi:provides
interface-name="interfaceNs:SQL"
service-name="serviceNs:HSQLTest"
endpoint-name="HSQLTestEndpoint">
<!-- CDK specific elements -->
<petalsCDK:wsdl>SQLService.wsdl</petalsCDK:wsdl>
<petalsCDK:message-properties>
<petalsCDK:message-property message="in" name="metadata">true</petalsCDK:message-property>
</petalsCDK:message-properties>
<!-- Component specific elements -->
<sql:url>jdbc:mysql://localhost:3306/congdong</sql:url>
<sql:user>root</sql:user>
<sql:password>sa</sql:password>
<sql:maxActive>8</sql:maxActive>
<sql:maxIdle>8</sql:maxIdle>
<sql:minIdle>0</sql:minIdle>
<sql:maxWait>-1</sql:maxWait>
<sql:timeBetweenEvictionRunsMillis>-1</sql:timeBetweenEvictionRunsMillis>
<sql:metadata>true</sql:metadata>
</jbi:provides>
</jbi:services>
</jbi:jbi>
that can be from a false input operation structure (namespace), but i don´t know how to fix this, can anyone help me?
-------------------- m2f --------------------
Subscribe/Unsubscribe emails notifications.
Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)
Read the topic online:
http://forum.petalslink.com/viewtopic.php?p=30692#30692
-------------------- m2f --------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/41a68c41/attachment.htm>
More information about the Users
mailing list