When I try to throw an Array of strings to oracle stored procedure as:
String arrStr[] ={\"val1\",\"val2\",\"val3\"};
ArrayDescriptor descriptor = ArrayDescripto
Probably your STR_ARRAY is defined in this way:
create or replace type STR_ARRAY is table of VARCHAR2(20);
As Tomas said the problem is encoding. My solution - use NVARCHAR2 instead.
create or replace type STR_ARRAY is table of NVARCHAR2(20);
In my case (see my comment above), it was caused by encoding problem, however - without any exception or debug information. Including orai18n.jar to the project libraries solved this... it is really sad, there is no exception or something that would indicate how to solve the problem
After hours I have founded the cause, the real problem is the NLS_CHARACTERSET of your database work with a encoding that is not supported by your client, to jdbc support others NLS_LANG is necessary add orai18n.jar in classpath. See your database settings with this sql:
SELECT * FROM NLS_DATABASE_PARAMETERS