×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

create a UDR-procedure in java that will return multiple types data in

create a UDR-procedure in java that will return multiple types data in

create a UDR-procedure in java that will return multiple types data in

(OP)
We installed:

IBM Informix Dynamic Server Version 10.00.UC6
JDBC – 3.00
J2SE 1.4.2

On operational system Red Hat Enterprise Linux AS release 4 (Nahant) 2.6.9-5.EL

We create a UDR-procedure in java that will return multiple types data in IDS.

We realized java file. We compiled and created the jar.

class test {
  public static int two_return(int i, String s){
    i=5;
    s="OK";
    return 0;
  }
}

Then we installed the jar:

EXECUTE PROCEDURE install_jar ("file:$INFORMIXDIR/extend/krakatoa/Test_j.jar", "Test_j", 0);

Created function for IDS:

CREATE FUNCTION test_return (OUT a integer, OUT s char(5)) returns int external name 'Test_jar:test.two_return (int, java.lang.String)' language java;

ALTER FUNCTION test_return (ADD HANDLESNULLS);

tried call function:

SELECT a, s FROM systable WHERE tabid=1 AND test_return (a#integer, s#char(5))=0;

result of execution select above, error appears:

Error (-937): Cannot find class for type().

LOG:
Installing jar test.informix.Test_j...
ADDING TO JARMAP: test.informix.Test_j + informix.jvp.dbapplet.impl.JVPClassLoader@5797b5ce
   PARAM is not NULL


Questions:
Why appears the error and how to achieve the above-named task?

RE: create a UDR-procedure in java that will return multiple types data in

Did you ever find a solution to this?  I am experiencing a similar problem. I can install my jar and create the udr but when I execute I get that same error:
SQL Error (-937): Cannot find class for type (java.lang.String).

I would appreciate any assistance you could give.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close