Use of jdbcPass to construct Oracle STRUCT Fails
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > Use of jdbcPass to construct Oracle STRUCT Fails




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Use of jdbcPass to construct Oracle STRUCT Fails  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-05 10:57 PM

We are migrating our application from Weblogic to Websphere and I am trying 
to use the wrapper classes in Websphere to perform some oracle-specific call
s.  When I try to use jdbcPass to construct an Oracle STRUCT, I get error :

Invocation of the <init> method on the oracle.sql.STRUCT class is not permit
ted via jdbcPass.


The code I use is:

STRUCT struct = (STRUCT) WSCallHelper.jdbcPass(STRUCT.class,  WSCallHelper.C
ONSTRUCTOR,
new Object[] {	descriptor, connection, values},
new Class[] {StructDescriptor.class,
Connection.class,
Object.class},
new int[]{WSCallHelper.IGNORE,
WSCallHelper.CONNECTION,
WSCallHelper.IGNORE});


I have tried this in WAS 5.1.1.6 as well as 6.0 and get the same error.  Can
 anyone point me in the right direction?

Note that same type of call for an ARRAY works fine using:

ARRAY array = (ARRAY) WSCallHelper.jdbcPass(ARRAY.class,
WSCallHelper.CONSTRUCTOR, new Object[] {
descriptor, connection, values},
new Class[] {ArrayDescriptor.class,
Connection.class, Object.class},
new int[]{WSCallHelper.IGNORE,
WSCallHelper.CONNECTION,
WSCallHelper.IGNORE});






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:58 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register