on 04-06-2006 9:46 AM
Hi,
I get the following while sending a message using Java proxy to a SQL server using JDBC adapter :-
Name: ABC Password: SS Role: com.sap.aii.proxy.xiruntime.core.BaseProxyException: Error sending MS message. Exception: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Users' (structure 'Statement'): java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?ABC' AND password='SS'' at line 1 com.sap.aii.proxy.xiruntime.core.BaseProxyException: Error sending MS message. Exception: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Users' (structure 'Statement'): java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?ABC' AND password='SS'' at line 1
Can anybody help me in fixing this problem.
Thanks and Regards,
Jishi
Hi,
<i>server version for the right syntax to use near '?ABC' AND password=<b>'SS''</b> at line 1 com.sap.aii.proxy.xiruntime.core</i>
Looks like you have used wrong apostrophies in your syntax near the password value.
Regards,
Smitha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jishi,
Can you post us your destination datatype along with the content that is being passed to your JDBC adapter.
Are you passsing any specical characters as a part of your destination data type?
Also, the user id and password entered in your JDBC adapter are correct?
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhavesh,
The Destination Datatype:-
<?xml version="1.0" encoding="UTF-8"?>
<ns1:user_db_mt xmlns:ns1="http://Optijava/receiver">
<Statement>
<Users action="SQL_QUERY">
<access>SELECT * FROM Users WHERE Username=Soumya' AND Password='SS'</access>
<key><username>AA</username><password>BB</password>
</key></Users></Statement>
</ns1:user_db_mt>
Also in the JDBC adapter what is the value that i have to give in the <b>SQL Syntax parameters</b>
Escape symbol for apostrophe
Column Name Delimiter
I am using MySQL as the database.
Thanks,
Jishi
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.