on 04-01-2015 12:26 PM
Dear Sirs,
I have 1 interfaces from Proxy to JDBC having below problem, can anyone help ?
Could not execute statement for table/stored proc. "dbTableName" (structure "COMMIT") due to java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Best Regards,
CME.
Make sure that all the values that you are sending are not exceeding the length defined in actual database tables.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you open the message, you could see the content.
May be one of filed is exceeding the length than it is defined in the database tables.
Let'z say if you have a column under the table defined with length "10" for which you might be sending more than 10 char.
Just compare the payload with the lengths defined in the database tables.
Not in PI data type.
If you take below xml as an example, Make sure that Name, Address and Key-Field values are not exceeding the length defined in the target system database tables. (In the actual database where you are trying to execute this statement)
<root>
<stmt>
<Customers action="SQL_DML">
<access> UPDATE Customers SET CompanyName=’$NAME$’, Address=’$ADDRESS$' WHERE CustomerID='$KEYFIELD$’
</access>
<key>
<NAME>Company</NAME>
<ADDRESS>Street 3 </ADDRESS>
<KEYFIELD>CO</KEYFIELD>
</key>
</Customers>
</stmt>
</root>
Hi,
Here is my actual scenario (A) for Proxy to JDBC:
I have 2 DAE as below:
DAE1 run Windows2003 SAP XI 7.11 SP8 with Ora db 10.2.0.4 with SAP Kernel 7.11
DAE2 run Windows2008 SAP XI 7.11 SP11 with Ora db 10.2.0.4 with SAP Kernel 7.20
The scenario (A) ran in DAE1 since 2010 without any problem, but due to we need to retire this DAE1, so we install another DAE2 to replace DAE1. After we switch the scenario (A) from DAE1 to DAE2 we had this error as describe above.
Could not execute statement for table/stored proc. "dbTableName" (structure "COMMIT") due to java.lang.StringIndexOutOfBoundsException: String index out of range: -1
I believe the root cause is due to oracle driver in DAE, can someone tell me how to check and verify ?
Thanks in advance.
CME.
HI,
I dont think this is a driver problem, i think this is issues with the length of values in payload. Share the payload with the database team and tell them to update the particular table manuallly . Then if they are able to upload the values from PI payload then you can look this issues in different way.
Regards,
Manigandan
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.