oracle Array filled with null data in java

java, oracle, weblogic

Solution

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

Problem

When I try to throw an Array of strings to oracle stored procedure as: ``` String arrStr[] ={"val1","val2","val3"}; ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor("STR_ARRAY", connection ); oracle.sql.ARRAY oracleArray = new oracle.sql.ARRAY(descriptor, connection, arrStr); ``` `oracleArray` holds null data , oracleArray.datumArray = {???,???,???}

Original source