on 09-15-2010 10:40 AM
Dear Expert,
I got stuck by the JDBC receiver adapter with PI 7.11, the log is
'JDBC Message processing failed, due to Error processing request in sax parser: Error when executing statement for table/stored proc. 'null' (structure 'SYSTEM'): java.lang.IndexOutOfBoundsException: Index: 1, Size: 1'
explanation :
(1)SYSTEM is the first element in my XML sent to PI and I guarantee it has value, and there is no mapping with this field in the target table.
(2)I tested mapping and comminucation channel -> successfully
(3)db is oracle and the key field is mapped with value
Looking forward to your insight. Thanks very very much
Ray
Hi Ray,
There is some thing you need to check in the table in your database. If any field in your table it's should be null ,So at that time we should send the data to that field.
So kindly check the your table fileds and according to check the your data.
Thank you,
Sateesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Expert :
Thanks for your reply, but I still could not figure out what had happened, it is so desperate.......
Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'null' (structure 'BOOK'): java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
The Oracle DB table has many fields and I mapped the key and other fields which could not be null.
I tried to create a very simple example to test like this , but still it pops up the error like before,
you can see the error message just replaces the text 'SYSTEM' to 'BOOK'.
'null' (structure 'SYSTEM'): (yesterday) -> 'null' (structure 'BOOK'): (today). What could I do????
Thanks so much for your help
<?xml version="1.0" encoding="UTF-8" ?>
<MT_RM_TEST>
<BOOK>17-1627-15</BOOK>
<NAME>Ray</NAME>
</MT_RM_TEST>
-> the XML above is my simple test XML sent (book and name are mapped to the key field and other fields which could not be nulll)
Dear Ray,
This kind of exception "java.lang.IndexOutOfBoundsException: Index: 1, Size: 1" when Array of field lengh is more than that, This kind of expection is came.
For ex : If array of field length is A[10], If you pass the data more than that length, You can get the error.
So kindly check your array of length for filelds
Thank you
Sateesh
Hi Ray,
Yes Stefan is exactly Right,Sorry.
If you are calling the stored procedure in Receiver side, If you must follow the standard structure for Stored procedure.
Please find the below link.
http://help.sap.com/saphelp_nw04/helpdata/en/4d/8c103e05df2e4b95cbcc68fed61705/frameset.htm
Thank you,
Sateesh
Dear expert ,sorry for the bothering, I believe I am misunderstood......
I sent a message as you have seen above in my simple testcase, and this XML below is the
content after mapping.
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:MT_RM_BOOK xmlns:ns0="urn:com.ecc.rm">
<StatementName>
<dbTableName action="UPDATE_INSERT">
<table>BOOK</table>
<access>
<BOOK_NO>17-1627-15</BOOK_NO>
<BOOKID hasQuot="No">104410</BOOKID>
<AUTHOR>RAY</AUTHOR>
</access>
<key1>
<BOOK_NO>17-1627-15</BOOK_NO>
</key1>
</dbTableName>
</StatementName>
</ns0:MT_RM_BOOK>
I just don't know why it pops out such java exception .. Thanks very much.
Ray
Hi Ray,
I thought i found the issue,
Please add the attribute for "compareOperation" in your key field element,
compareOperation = EQ
map the constant value 'EQ' to compareOperation.
Key1 Element
--Book_NO Element
----compareOperation attribute
Thank you
Sateesh
Edited by: sateesh kumar .N on Sep 16, 2010 11:12 AM
Edited by: sateesh kumar .N on Sep 16, 2010 11:14 AM
rebuild the mapping from scratch
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ray,
In the above structure, instead of 'key1', just use 'key' word and try again.
-Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@ Supriya
In the above structure, instead of 'key1', just use 'key' word and try again.
How come it's gonna make a difference if you use "key1" instead of "key"? There is no difference. You can use whatever and it will still work.
Good that SAP declares - they are not responsible for the answers posted on SDN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.