Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: Unexpected database connector using CRE2.0 and Oracle SP

$
0
0

I have the same problem with crjava-runtime_12.2.216

 

This is my stored procedure:

 

CREATE OR REPLACE PROCEDURE TEST_PROC (    c_resultset IN OUT SYS_REFCURSOR  )
AS
BEGIN  OPEN c_resultset FOR SELECT 'hallo' MESSAGE FROM DUAL;
END;
/

 

In Crystal Report Designer, the stored procedure works correctly.

 

However with CR4J I'm getting the "Unexpected Connector Error", in my log files I see the Oracle Error ORA-01008: not all variables bound

 

Crystal Reports invokes java.sql.Statement.execute(String) with "{CALL "REPORT"."TEST_PROC"(?)}" as argument.

Because no PreparedStatement or CallableStatement is used, the placeholder does not get replaced.

Thus, the error ORA-01008 is correct.

 

I am using Oracle 11gR2, and the jdbc drivers for 11.2.0.4 (ojdbc6.jar and orai18n.jar).

 

This issue should be fixed in CR4J SP2 (see answers).

 

Is there any solution to get this working?

 

Thanks in advance,

rgrill


Viewing all articles
Browse latest Browse all 9269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>