Forum Stats

  • 3,814,896 Users
  • 2,258,926 Discussions
  • 7,892,883 Comments

Discussions

Java Procedure in Database

Muhammad Rabie
Muhammad Rabie Member Posts: 48 Blue Ribbon
edited Jun 26, 2014 9:19AM in Forms

create or replace AND RESOLVE java class using bfile(temp,'jic.class');

SELECT object_name

, object_type

, status

FROM user_objects

where object_type like 'JAVA%';

OUTPUT

jic    JAVA CLASS    VALID

CREATE or replace FUNCTION cap(a number,b number, c number,d number) RETURN VARCHAR2 AS

LANGUAGE JAVA

NAME 'jic.image_cap(int,int,int,int) return java.lang.String';

SELECT CAP(101,101,10,10) FROM DUAL;

ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError

29532. 00000 -  "Java call terminated by uncaught Java exception: %s"

*Cause:    A Java exception or error was signaled and could not be

           resolved by the Java code.

*Action:   Modify Java code, if this behavior is not intended.

Tagged:

Answers

This discussion has been closed.