powered by simpleCommunicator - 2.0.56     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Informix [игнор отключен] [закрыт для гостей] / create a UDR-procedure in java that will return multiple types data in IDS
1 сообщений из 1, страница 1 из 1
create a UDR-procedure in java that will return multiple types data in IDS
    #35827801
alx7
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
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(java.lang.Integer [] i, String [] s){
i[0]= new java.lang.Integer (5);
s[0]=”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 (java.lang.Integer [], 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?
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / Informix [игнор отключен] [закрыт для гостей] / create a UDR-procedure in java that will return multiple types data in IDS
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]