ORa-29540
I am trying to set up JVM and getting errors
'ORa-29540 class oracle/aurora/server/tools/loadjava' does not exist.
db ver : 8.1.7 on Win 2000
Any ideas,
The error:
29540, 00000, "class %s does not exist"
// *Cause: Java method execution failed to find a class with the indicated name.
// *Action: Correct the name or add the missing Java class.The missing class name should have been in the original error message. What do you get when you query:
select object_name, owner
from all_objects
where object_type='JAVA CLASS' and
object_name = <class name from error message>John
Similar Messages
-
ORA-29540: class oracle/xml/sql/query/OracleXMLStaticQuery does not exist
I am getting below error when trying to generate xml. Browsing on google did not help me. I would appreciate if someone can provide the solution.
SQL> select dbms_xmlquery.getxml('select * from dual', 2) from dual;
ERROR:
ORA-29540: class oracle/xml/sql/query/OracleXMLStaticQuery does not exist
ORA-06512: at "SYS.DBMS_XMLQUERY", line 19
ORA-06512: at "SYS.DBMS_XMLQUERY", line 271
ORA-06512: at line 1Then it is probably not the case that you are affected by the issue described in Metalink document 185857.1, but if I were you I would check it anyway, since it might be the problem.
-
ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist
Hi ,
We are getting below error while executing webservice from PL/SQL block. Please help what would be wrong in below code. Thanks in advance.
ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist
ORA-06512: at "SYS.UTL_DBWS", line 318
ORA-06512: at "FUSION.ADD_NUMBERS", line 21
29540. 00000 - "class %s does not exist"
*Cause: Java method execution failed to find a class with the indicated name.
*Action: Correct the name or add the missing Java class.
PL/SQL Code
CREATE OR REPLACE FUNCTION add_numbers (username IN VARCHAR, password IN VARCHAR)
RETURN NUMBER
AS
l_service SYS.UTL_DBWS.service;
l_call SYS.UTL_DBWS.call;
l_wsdl_url VARCHAR2(32767);
l_namespace VARCHAR2(32767);
l_service_qname SYS.UTL_DBWS.qname;
l_port_qname SYS.UTL_DBWS.qname;
l_operation_qname SYS.UTL_DBWS.qname;
l_xmltype_in SYS.XMLTYPE;
l_xmltype_out SYS.XMLTYPE;
l_return NUMBER;
returnVal BOOLEAN;
boolean_type_qname sys.utl_dbws.QNAME;
string_type_qname sys.utl_dbws.QNAME;
BEGIN
sys.UTL_DBWS.SET_PROPERTY(l_call,'USERNAME','fusion');
sys.UTL_DBWS.SET_PROPERTY(l_call,'PASSWORD','fusion');
l_wsdl_url := 'http://adcdab06.us.oracle.com:10217/xmlpserver/services/PublicReportWSSService?wsdl';
l_namespace := 'http://xmlns.oracle.com/oxp/service/PublicReportService/';
l_service_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'PublicReportWSSServiceService');
l_port_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'PublicReportWSSService');
l_operation_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'validateLogin');
l_service := SYS.UTL_DBWS.create_service (URIFACTORY.getURI(l_wsdl_url),l_service_qname);
l_call := SYS.UTL_DBWS.create_call (l_service,l_port_qname,l_operation_qname);
sys.utl_dbws.set_target_endpoint_address(l_call, 'http://adcdab06.us.oracle.com:10217/xmlpserver/services/PublicReportWSSService');
boolean_type_qname :=sys.utl_dbws.to_qname ('http://www.w3.org/2001/XMLSchema', 'boolean');
string_type_qname :=sys.utl_dbws.to_qname ('http://www.w3.org/2001/XMLSchema', 'string');
sys.utl_dbws.add_parameter(l_call, 'BI_Admin', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(l_call, 'Welcome1', string_type_qname, 'ParameterMode.IN');
-- sys.utl_dbws.add_parameter (l_call,returnVal,boolean_type_qname,'ParameterMode.OUT');
sys.utl_dbws.set_return_type (l_call, string_type_qname);
-- utl_dbws.add_parameter(l_call_, 'ubiNum', string_type_qname, 'ParameterMode.IN');
--sys.utl_dbws.add_parameter(l_call, 'TEST', string_type_qname, 'ParameterMode.IN');
--l_xmltype_in := SYS.XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
--<validateLogin xmlns="' || l_namespace || '">
--<validateLoginInput>' || p_int_1 || '</validateLoginInput>
--</validateLogin>');
l_xmltype_out := SYS.UTL_DBWS.invoke(call_Handle => l_call, request => l_xmltype_in);
SYS.UTL_DBWS.release_call (call_handle => l_call);
SYS.UTL_DBWS.release_service (service_handle => l_service);
dbms_output.put_line('WS Executed successfully...');
-- l_return := l_xmltype_out.extract('//return/text()').getNumberVal();
RETURN 11;
END;
/Check if this helps:
ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist -
ORA-29540: class oracle/xquery/OXQServer does not exist
I'm running 10g and initially had a problem when running XMTABLE that the error :-
"identifier 'SYS.DBMS_XQUERYINT' must be declared"
came up when I tried to execute anything relating to XQUERY
One of our DBAs very kindly looked into this and found the script :-
"$ORACLE_HOME/rdbms/admin/initxqry.sql"
This was executed, but now I get the error :-
ORA-29540: class oracle/xquery/OXQServer does not exist
Does anyone know what I am still missing out?
Thanks in anticipation of any advice anyone can offerThanks mdrake, we seem to gradually be getting there.
One thing I've now come across is :-
oracle.jdbc.driver.OracleSQLException: ORA-06550: line 1, column 7:
PLS-00201: identifier 'DBMS_LOB' must be declared
O
This is a "demo" trigger that caused this problem :-
CREATE OR REPLACE TRIGGER xml_inbox_trigger AFTER INSERT ON xmlinbox
FOR EACH ROW
DECLARE
XMLRECORD XMLType;
BEGIN
XMLRECORD := :new.XMLDATA;
INSERT INTO all_children
(childname) VALUES
(extractvalue (XMLRECORD, '*/child/name'));
IF :new.xmlfilename like 'boys%' THEN
INSERT INTO boys
(childname) VALUES
(extractvalue (XMLRECORD, '*/child/name'));
END IF;
IF :new.xmlfilename like 'boys%' THEN
INSERT INTO boys_wishlist SELECT
childname , artno , description ,price FROM
XMLTABLE (
'*/child' passing XMLRECORD
columns
childname varchar2(25) path '/name'
, artno number path '/wishlist/artno'
, description varchar2(25) path '/wishlist/description'
, price varchar2(10) path '/wishlist/price'
END IF;
IF :new.xmlfilename like 'girls%' THEN
INSERT INTO girls
(childname) VALUES
(extractvalue (XMLRECORD, '*/child/name'));
END IF;
END;
Do you think the above error is caused by something wrong with the above code, or something else wrong with our installation??
Thank you so much for your continued assistance -
ORA-29540:class oracle/pub/runtime/dbws/DbwsProxy does not exist
Hi we are getting below error while calling UTl_DBWS package.
Database version 11.2.0.2
package definition
create or replace function xxpvn_ws_test
return varchar2
is
service_ sys.utl_dbws.SERVICE;
call_ sys.utl_dbws.CALL;
service_qname sys.utl_dbws.QNAME;
port_qname sys.utl_dbws.QNAME;
xoperation_qname sys.utl_dbws.QNAME;
xstring_type_qname sys.utl_dbws.QNAME;
response sys.xmltype;
request sys.xmltype;
begin
service_qname := sys.utl_dbws.to_qname(null, 'getJoke');
service_ := sys.utl_dbws.create_service(service_qname);
call_ := sys.utl_dbws.create_call(service_);
sys.utl_dbws.set_target_endpoint_address(call_, 'http://interpressfact.net/webservices/getjoke.asmx');
sys.utl_dbws.set_property( call_, 'SOAPACTION_USE', 'TRUE');
sys.utl_dbws.set_property( call_, 'SOAPACTION_URI', 'http://interpressfact.net/webservices/getJoke');
sys.utl_dbws.set_property( call_, 'OPERATION_STYLE', 'document');
request := sys.xmltype(
'<getJoke xmlns="http://interpressfact.net/webservices/">'
|| '<Category>Excuses-10</Category>'
|| '</getJoke>');
response :=sys. utl_dbws.invoke(call_, request);
return response.extract('//getJokeResult/child::text()',
'xmlns="http://interpressfact.net/webservices/"').getstringval();
end ;error message
SQL> select xxpvn_ws_test from dual;
select xxpvn_ws_test from dual
ERROR at line 1:
ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist
ORA-06512: at "SYS.UTL_DBWS", line 144
ORA-06512: at "SYS.XXPVN_WS_TEST", line 14
Thanks
JitendraThis error related to jave since its not installed in database user schema
Logout of sqlplus and run:
loadjava -u / -r -v -f -s -grant public -genmissing dbwsclientws.jar dbwsclientdb102.jar
Check this
https://kr.forums.oracle.com/forums/thread.jspa?threadID=2264325 -
ORA-29540 during full database export
Hi,
Anyone encounter this error ORA-29540 during full database export. Have check out the web site for solution. Have check that the init file compatible is set to 8.1.0, the public synonym dba_java is been removed. However after the above remedies, the problem still occured. My database version is 8.1.5. Please let me know if there is other solution to this problem.
Thank You ...
regards,
lbsHi,
Thanks...Any idea how to check whether the installation for the initjvm.sql is successful. cos I just took over from the previous DBA and he too have no idea...
Thank You.. -
Fnd_web_sec.validate_login returns ORA-29540
Hi guys,
when i'am executing
select fnd_web_sec.validate_login('user123', 'pass123')
from dual;
with 'apps' DB user every thing works well and i get 'Y' as a result for the query.
now i have new DB user 'XX'
when i login using user 'XX and executing
select fnd_web_sec.validate_login('user123', 'pass123')
from dual;
i get 'N' as a result for the query.
so i run the following query
select fnd_message.get from dual;
and the message i got is :
Oracle error -29540: ORA-29540: class oracle/apps/fnd/security/WebSessionManagerProc does not exist has been detected in FND_WEB_SEC.VALIDATE_LOGIN(u,p).
obviously there is no problem with the class since it works with 'apps' user so i suspect
it's a privileges issue.
thx in advance for anyone who helps.Issue was solved by creating the following synonyms under the Required User :
create synonym fnd_languages for apps.fnd_languages;
create synonym fnd_user for apps.fnd_user;
create synonym fnd_application for apps.fnd_application;
create synonym fnd_lookup_types for apps.fnd_lookup_types;
create synonym fnd_product_groups for apps.fnd_product_groups;
create synonym fnd_web_sec for apps.fnd_web_sec;
CREATE SYNONYM FND_USER_PREFERENCES FOR APPS.FND_USER_PREFERENCES;
CREATE SYNONYM FND_USER_PREFERENCE FOR "APPLSYS"."FND_USER_PREFERENCES";
Best regards,
Ahmed Shokry -
DBMS_XMLSAVE - insert - propagateOrginalException - ORA 29540
The use of DBMS_XMLSave.propagateOriginalException causes my insert of an XML row to fail with the following error:
ORA-29540: class oracle/xml/sql/save/OracleXMLStaticSave does not exist
I would like to use the propagateOriginalException and getexceptioncontent procedures so that I can raise simple error messages like ORA-00001 unique constraint violated.
Here is the PL/SQL block:
declare
xml_ins_row1 VARCHAR2(32000) := '<ROWSET><ROW><REG_ID>54398</REG_ID><NAME>SOMEWHERE</NAME><ACTIVE>Y</ACTIVE></ROW></ROWSET>' ;
xml_ins_row2 VARCHAR2(32000) := '<ROWSET><ROW><REG_ID>54399</REG_ID><NAME>SOMEWHERE</NAME><ACTIVE>Y</ACTIVE></ROW></ROWSET>' ;
vn_rows BINARY_INTEGER := 0 ;
saveCtx DBMS_XMLSave.ctxType;
vi_err INTEGER := 0;
vc_msg VARCHAR2(4000) ;
begin
-- set up the save context...!
saveCtx := DBMS_XMLSave.newContext('REGIONS');
DBMS_XMLSave.setRowTag(saveCtx, 'ROW');
DBMS_XMLSave.clearKeyColumnList(saveCtx);
-- set propagate original exception to true to get the original exception..!
-- DBMS_XMLSave.propagateOriginalException(saveCtx, TRUE);
vn_rows := DBMS_XMLSave.insertXML(saveCtx, xml_ins_row1);
DBMS_XMLSave.closeContext(saveCtx) ;
EXCEPTION
WHEN OTHERS THEN
DBMS_XMLSave.getExceptionContent(saveCtx, vi_err, vc_msg);
DBMS_XMLSave.closeContext(saveCtx); -- you must close the context.
DBMS_OUTPUT.PUT_LINE('Error num: ' || TO_CHAR(vi_err)) ;
DBMS_OUTPUT.PUT_LINE('Error msg: ' || vc_msg) ;
end;
Here is the tabledef:
CREATE TABLE REGIONS ( REG_ID NUMBER (38) NOT NULL,
NAME VARCHAR2 (50) NOT NULL,
ACTIVE CHAR (1) DEFAULT 'Y' NOT NULL,
CONSTRAINT REG_ACTIV_001 CHECK (ACTIVE IN ('Y', 'N')) ,
CONSTRAINT REG_UK1 UNIQUE (NAME) USING INDEX ,
CONSTRAINT REG_PK PRIMARY KEY ( REG_ID ) USING INDEX )
Thanks in advance for you thoughts!
MarkIt seems to be related to an insert/update for the same context
having different columns with "values" in it.
I have 3 rows. For the AMT column the first row has 151.56,
the second row has 100.00, the third row has .00
The third row fails with this error :
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "MTRSTEST.KIM_RTL_XML_PKG", line 150
ORA-29532: Java call terminated by uncaught Java exception:
oracle.xml.sql.OracleXMLSQLException:
Invalid context handle specified.
ORA-06512: at "SYS.DBMS_XMLQUERY", line 170
ORA-06512: at "MTRSTEST.KIM_RTL_XML_PKG", line 193
ORA-29532: Java call terminated by uncaught Java exception:
oracle.xml.sql.OracleXMLSQLException:
Expected 'EOF'.
ORA-06512: at "MTRSTEST.KIM_TEST", line 197
ORA-06512: at line 1
If I change the third row to say 10.00, for example, it works
fine.
We had not been on xdk9 yet, I'm having them install xdk9 and
we'll see if the problem persists. -
Hi,
I tried to send email with stored procedure.
It run correctly just I connect with system/manager.
If I change user/password don't run my procedure and I see this error:
ERROR at line 1:
ORA-29540: class oracle/plsql/net/TCPConnection does not exist
ORA-06512: at "SYS.UTL_TCP", line 533
ORA-06512: at "SYS.UTL_TCP", line 199
ORA-06512: at "SYS.UTL_SMTP", line 99
ORA-06512: at "SYS.UTL_SMTP", line 121
ORA-06512: at "AFM.SPEDISCI_MAIL", line 17
ORA-06512: at line 1
is normal???
i run this scripts (as internal/oracle - sys/change_on_install - myuser/password):
@c:\oracle\ora81\rdbms\admin\initplsj.sql
@c:\oracle\ora81\j avavm\install\initjvm.sql
@c:\oracle\ora81\javavm\install\init_security.sql
thanks!!!
RaffaeleAccording to Tom Kyte, some of the installer scripts fail to load the needed jar file for TCP/IP support in PLSQL. It looks like that is your problem. To solve the problem:
cd plsql/jlib
loadjava -user sys/password plsql.jar -
Installing JVM - ORA-29540:
When I run the jvminst I get the following error:
"ORA-29540: class
oracle/aurora/rdbms/security/PolicyTableManager does not exist"
I have read what I can on what may cause this and have upped the
Java pool to 100MB and the shared pool to over 100MB and
restarted the database but still get this error. There is a
120MB free on the tablespace SYSTEM and this is driving me nuts!
Can anyone help me? I am running 8.1.6 on HP-UX V11.
Thanks,
RobertHi Robert,
Did you get this one resolved? I'm having a similar problem when running INITJVM.SQL on Oracle 8.1.7 on NT and would be interested in knowing the answer to the problem.
Darren. -
Send mail with pl/sql error ORA -29540
Hi everybody
I try to use a procedure to send emails. I've got the procedure here in this forum from Kiron Rao (thanks). When I execute this procedure I get this error message :
[1]: (Error): ORA-29540: class oracle/plsql/net/TCPConnection does not exist ORA-06512: at line 8
any idea ?
here is the script :
CREATE PROCEDURE MAILTEST
IS
conn UTL_SMTP.CONNECTION;
mailhost VARCHAR2(64) := 'mailhost.server.com';
abcd VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
mesg VARCHAR2(4000);
usrname VARCHAR2(30);
usraddr VARCHAR2(100);
subj VARCHAR2(100);
body_of_msg VARCHAR2(100);
recaddr VARCHAR2(100);
BEGIN
usrname:= 'Alain Smaili';
usraddr:= '[email protected]';
recaddr:= '[email protected]';
subj:= 'This is a PL/SQL Email Test';
body_of_msg := '<HTML><BODY><B><I>This is a PL/SQL Email Test from oradb1p</I></B></BODY></HTML>';
mesg:= 'Date: ' || TO_CHAR(SYSDATE, 'dd Mon yy hh24:mi:ss') || utl_tcp.crlf ||
'From: ' || usrname || ' <' || usraddr || '>' || utl_tcp.crlf ||
'Subject: ' || subj || utl_tcp.crlf ||
'Content-Type: text/html' || utl_tcp.crlf ||
'X-Priority: 1' || utl_tcp.crlf ||
'Return-Receipt-To: [email protected]' || utl_tcp.crlf;
mesg:= mesg || utl_tcp.crlf || body_of_msg;
conn:= utl_smtp.open_connection(mailhost, 25);
utl_smtp.helo(conn,mailhost);
utl_smtp.mail(conn, usraddr);
utl_smtp.rcpt(conn,recaddr);
utl_smtp.data(conn, mesg);
utl_smtp.quit(conn);
EXCEPTION
WHEN others THEN
RAISE;
END;Some of the class files are missing ? did U load plssql.jar files succesfully?
Cehck the asktom.oracle.com site for more detailed information regarding this error
Ashok -
Loadjava error: ORA-29540: class oracle/aurora/rdbms/DbmsJava does not exist
Hi,
I'm trying to create a simple Java stored procedure running 8.1.6. When using loadjava (c:\jdk1.2.2\bin\java -classpath .;d:\orant8i\lib\aurora_client.jar;d:\orant8i\javavm\lib\aurora.zip;d:\orant8i\sqlj\lib\translator.zip;d:\orant8i\jdbc\lib\classes111.zip oracle.aurora.server.tools.loadjava.LoadJavaMain -u system/manager -f -v Test.class), I get the above error. The problem: file DbmsJava exists in the included aurora.zip package. To verify this, I checked the zip file, and I successfully compiled a test program importing the class.
Any ideas?
Thanks,
BerndI also tried another approach to create a Java stored procedure, and got an error which I think has the same cause as above:
public class Test { public static void test() {System.out.println("Test");}}
create directory dir as 'C:\Test';
create java class using bfile(dir, 'Test.class');
create procedure test is language java name 'Test.test()';
call test();
ORA-29541: class CM.Test could not be resolved -
Running ".sh" file from a stored procedure
Hi,
I need to call a file.sh linux bat file whit arguments from a stored procedure.
How can I do?
Thanks in advance...Hi rajni,
I've tryed your solution but it doesn't work, for the same reason that yuo can see here:
Re: questions about dbms_scheduler.create_job (ORA-27371)
I've also tryed the solution of the "user534897", but it doesn't work too.
At execution time Oracle give me this error:
ORA-29540: class djv_osCommand does not exist
ORA-06512: at "CICCSV.DPK_OSCOMMAND", line 5
ORA-06512: at "CICCSV.DPK_OSCOMMAND", line 28
ORA-06512: at "CICCSV.DFN_mkdir", line 5
ORA-06512: at line 8
If you have any other idea or suggestion you're welcome. At the moment I've no solution for my problem.
Thanks in advance. -
OWB runtime user/owner installation error
While installing OWB 9i, the following error has come:
oracle.wh.util.DebugUtility: java.sql.SQLException: ORA-29540: class oracle/aurora/rdbms/security/PolicyTableManager does not exist
oracle.wh.util.DebugUtility: ORA-06512: at "SYS.DBMS_JAVA", line 0
oracle.wh.util.DebugUtility: ORA-06512: at line 2
Please suggest.Don't know if it's related to your problem, but we got that error on a complex query running on Oracle 9. The same query on Oracle 10 worked just fine.
Kind regards,
Corrado -
While executing java stored procedure i got an error
I have used this command to load java source into data base
loadjava -user ENCORA/ENCORA C:\framework\Packages\testdevelopement\HOST.java
but while executing i got an error.
SQL> create or replace function run_cmd(p_cmd in varchar2) return number
2 as
3 language java
4 name 'HOST.RunThis(java.lang.String[]) return integer';
5 /
Function created.
SQL> create or replace procedure RC(p_cmd in varchar2)
2 as
3 x number;
4 begin
5 x := run_cmd(p_cmd);
6 end;
7 /
Procedure created.
SQL> set serveroutput on size 1000000
SQL> exec dbms_java.set_output(1000000)
PL/SQL procedure successfully completed.
SQL> exec rc('/usr/bin/ps -ef');
BEGIN rc('/usr/bin/ps -ef'); END;
ERROR at line 1:
ORA-29540: class HOST does not exist
ORA-06512: at "ENCORA.RUN_CMD", line 0
ORA-06512: at "ENCORA.RC", line 5
ORA-06512: at line 1
can any one suggest me how can i resolve this problem?Hi Uday,
My guess is that there is a problem with your java stored procedure that is causing the "ExceptionInInitializer" error to be thrown. According to the javadoc:
is thrown to indicate that an exception occurred during
evaluation of a static initializer or
the initializer for a static variable
Since I didn't see any of your code in your post, I can't help you much more, I'm afraid. Perhaps if you would provide some more details, I may be able to help you some more. I think the following details would be helpful:
1. Complete error message and stack trace you are getting.
2. The section of your java code that you think is causing the problem.
3. Oracle database version you are using.
Good Luck,
Avi.
Maybe you are looking for
-
I have a USB Flash disk plugged into my AEBS network via a small hub. It shows up and I can use it without any problems, but it appears as NO NAME on my desktop. How can I change the name to something meaningful ? I have tried plugging it directly in
-
Support pact: report execution time
Hi all, we have got one report....that report is working perfectly fine in one of our system taking about 2 hrs run time but it taking about 13-14 hrs in our other box where we applied the Support Pack recently...so I was just wondering what may be t
-
Hi All, How to create opening balance for new company database for the FY 2008 where all the data are based on old database ? What are the steps to do that ? The following steps we have done: 1. Preparing A/R, A/P and FA opening balances. 2. Performe
-
EM Console after database screation
Hi All While creating database in Oracle 10g we unchecked the EM console option, can you post the steps to configure EM console after DB creation. Regards Hariharan.T
-
Trouble installing Vista 64 bit home premium
I am trying to use boot camp to install Vista 64 bit home premium. The disk is a full install. Boot camp works fine, but when I insert the windows disk and attempt to boot off of it, I am confronted with a screen that gives me two options with no nam