Advertisement

09.24.2007 at 02:29AM PDT, ID: 22847857
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

Oracle Java External Procedure Problem - ORA-29531: no method sayIt in class Hello

Asked by smartstream-stp in Oracle 10.x, Oracle Database, PL / SQL

Tags: , , ,

Oracle Java External Procedure Problem - ORA-29531: no method sayIt in class Hello

I used the following mechanism to test using a simple java class as an Oracle external procedure
Class:
public class Hello {
      public static String sayIt (String toWhom){
            return "Hello, " + toWhom + "!";
      }
}
...compile Hello.java, ftp to /app/zora03/releaseTLM2.0.0.2.8/bin (AIX box with Oracle 10g on it)

Load the java class into Oracle as a Java Class object type:
loadjava -user zora03_dbo/zora03_dbo@zora03 -force -resolve -verbose -synonym -grant public /app/zora03/releaseTLM2.0.0.2.8/bin/Hello.class

Create a pl/sql function wrapper for the Hello.sayIt method:
CREATE OR REPLACE FUNCTION hello_there (to_whom IN VARCHAR2)
   RETURN VARCHAR2
   AS LANGUAGE JAVA
   NAME 'Hello.sayIt(java.lang.String) return java.lang.String';
/

Test running the sayIt method:
BEGIN
   DBMS_OUTPUT.PUT_LINE(hello_there('world'));
END;
/

Error message returned:
ERROR at line 1:
ORA-29531: no method sayIt in class Hello
ORA-06512: at "ZORA03_DBO.HELLO_THERE", line 1
ORA-06512: at line 2

I have checked that Oracle believes the java class is OK by issuing the following:
select * from user_objects where object_type = 'JAVA CLASS';
And object Hello has a status of VALID

The zora03_dbo user has 'dba' privilege and is the owner of the Hello object...
Any help gratefully received!



Start Free Trial
[+][-]09.24.2007 at 04:29AM PDT, ID: 19947545

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Oracle 10.x, Oracle Database, PL / SQL
Tags: oracle, java, method, class
Sign Up Now!
Solution Provided By: schwertner
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.24.2007 at 04:43AM PDT, ID: 19947604

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2007 at 05:33AM PDT, ID: 19947815

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 03:35AM PDT, ID: 19954536

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 03:50AM PDT, ID: 19954587

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_1_20070628