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 1
Then 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.
Similar Messages
-
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/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 -
Root cause for class oracle/jpub/runtime/dbws/DbwsProxy does not exist
Hi,
I am trying to use UTL_DBWS to call a webservice, adn getting a error " ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist "
its going back and forth between me and operations , I aske them to load the package but still the script fails. Is there any way to confirm whether the package is loaded , like the below script
as sys:
select status from all_objects where
dbms_java.longname(object_name)='oracle/jpub/runtime/dbws/DbwsProxy';
Please help to find the root causePlease check if you have the grants on UTL_DBWS.
-
Class oracle.xml.sql.query.OracleXMLQuery not found in import
I tried to perform load java using a non-sys user :
loadjava -user user1/passwd -v -o -r Archive.java
but encountered the following error:
Errors in Archive:
ORA-29535: source requires recompilation
Archive:11: Class oracle.xml.sql.query.OracleXMLQuery not found in import.
Info: 1 errors
loadjava: 3 errors
But if I use sys user I don't have any error:
loadjava -user sys/manager -v -o -r Arachive.java
initialization complete
loading : Archive
creating : Archive
resolver :
resolving: Archive
Why is this so?
ANy security setup that I missed?
Thanks in advance.
Note:
my Archive.java file contains:
// Core Java Classes
import java.io.*;
import java.sql.*;
// Oracle Java classes
import oracle.jdbc.*;
import oracle.jdbc.driver.*;
import oracle.xml.sql.query.OracleXMLQuery;
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Azman Diron ([email protected]):
I tried to perform load java using a non-sys user :
loadjava -user user1/passwd -v -o -r Archive.java
but encountered the following error:
Errors in Archive:
ORA-29535: source requires recompilation
Archive:11: Class oracle.xml.sql.query.OracleXMLQuery not found in import.
Info: 1 errors
loadjava: 3 errors
But if I use sys user I don't have any error:
loadjava -user sys/manager -v -o -r Arachive.java
initialization complete
loading : Archive
creating : Archive
resolver :
resolving: Archive
Why is this so?
ANy security setup that I missed?
Thanks in advance.
Note:
my Archive.java file contains:
// Core Java Classes
import java.io.*;
import java.sql.*;
// Oracle Java classes
import oracle.jdbc.*;
import oracle.jdbc.driver.*;
import oracle.xml.sql.query.OracleXMLQuery;
<HR></BLOCKQUOTE>
Managed to solve this problem.
Drop all xml objects owned by sys and user1.
Reload xml objcets for user1 with -force option.
null -
Class oracle/jpub/runtime/dbws/DbwsProxy does not exists on 10g Rel2
I trying using UTL_DBWS with samle from url http://www.freelists.org/archives/oracle-l/03-2005/msg00670.html in 10g Rel2 but I take error: class oracle/jpub/runtime/dbws/DbwsProxy does not exists .What I do incorrect?
However, using web service in Oracle rdms very hard...May be exists simply example for dummies?Not really for dummies, but it may be a good way to get started:
Oracle Database Programming Using Java and Web Services, by Kuassi Mensah.
You have also the following resouces on OTN: Database Web Services.
-- Eric -
Oracle XSU: oracle.xml.sql.query.OracleXMLQuery is not recognized
Hi, there!
I've got a problem when tryed to use Oracle XSU (xml-sql utility to generate xml). My simple java application works fine using XSU. But when I created session stateless bean I've got an EJBException regarding this
line:
oracle.xml.sql.query.OracleXMLQuery qry = new oracle.xml.sql.query.OracleXMLQuery(conn, commandSQLStatement);
It doesn't recognize OracleXMLQuery class as I've got in dump. So my classpath includes original location of that utility and Oracle parser.
I really appreciate for any help.
Thanks.
strXML = qry.getXMLString();Patricia,
Did you go through the link
Re: XML SQL Utility
You have to put xsu12.jar in the lib directory of the jdev.
xsu12.jar is in the lib directory of the XDK installation.
You can download XDK from
http://www.oracle.com/technology/tech/xml/xdk/software/prod/xdk_java.html
Just download the XDK kit, get the xsu12.jar from the lib directory and put in the lib directory of the jdev.
-- Arvind -
Problem in importing oracle.xml.sql.query.*
When i am importing this
import oracle.xml.sql.query.*;
it is giving me error that
"package oracle.xml.sql.query.* does not exist".
What Should i install or set .[from XmlRpc-Java]
As a result, my XML
is contained in a String instead of an InputStream.
It is possible to convert a String to an InputStream using
StringBufferInputStream, but this class is deprecated in favor of
StringReader (as StringBufferInputStream does not properly convert
characters into bytes).
For the default HTTP transport, an InputStreamReader could be used to
wrap the InputStream before calling parse().
Ultimately, the InputStream is converted to an InputSource for use by
the SAX parser. InputSource will accept a Reader as well.
[from XmlRpc-Java]
There should be a way to go from "getXMLString()" to "parse(Reader)" also. In the meantime I'm stuck.
null -
Oracle/wh/runtime/server/Util does not exist - while creating runtime repos
While running OWB Runtime Assistant, at about 60% completed, getting an error.
Here is the last few lines from the log file:
oracle.wh.util.DebugUtility: [processSPAWN]: wholeLine =..\..\..\jdk\jre\bin\javaw -classpath ../../lib/int/rtpplatform.jar;../../lib/int/rtpcommon.jar;../../../jdbc/lib/ojdbc14.jar;../../../lib/xmlparserv2.jar;../../../sqlj/lib/runtime12.jar;../../../jdk/jre/lib/rt.jar oracle.wh.runtime.platform.service.install.ServiceInstaller %host %port %serviceName %user %password
Mon Feb 06 11:58:00 CST 2006
oracle.wh.util.DebugUtility: after executing the output
Mon Feb 06 11:58:00 CST 2006
oracle.wh.util.DebugUtility: Runtime Platform Property Load Beginning...
Mon Feb 06 11:58:00 CST 2006
oracle.wh.util.DebugUtility: java.sql.SQLException: ORA-29540: class oracle/wh/runtime/server/Util does not exist
Mon Feb 06 11:58:00 CST 2006
oracle.wh.util.DebugUtility: [processSPAWN]: A spawned program error. Exception = java.lang.Exception: Error : java.sql.SQLException: ORA-29540: class oracle/wh/runtime/server/Util does not exist
Mon Feb 06 11:58:00 CST 2006
oracle.wh.util.DebugUtility: [processSPAWN]: Get the error, stop processing...
Mon Feb 06 11:59:47 CST 2006
oracle.wh.util.DebugUtility: Assistant operation is unsuccessful ...
=========================================
The database version is 9.2.0.4 on XP
OWB version is 10.1.0.2 on the same XP host.
I'd prefer NOT to change (upgrade or degrade) the versions of db and owb, as the same version combination works just fine in production, and I'm trying to create the same environment on my local PC.
Thanks for your help.
vrI did that and my output is all good:
All PL/SQL packages and functions are valid
Platform properties have been loaded correctly
Platform location has been seeded correctly
NLS messages have been loaded correctly
The platform service is available
PL/SQL procedure successfully completed. -
Oracle XSU class oracle.xml.sql.dataset.OracleXMLDataSetExtJdbc bug
Hi,
The oracle class oracle.xml.sql.dataset.OracleXMLDataSetExtJdbc needlessly casts the java.sql.Connection it receives in its constructor to oracle.jdbc.driver.OracleConnection.
This will work fine in most circumstances, but throws a class cast exception when a proxified connection is used such that the connection is a wrapper rather than an instance of OracleConnection.
I believe there would be absolutely no need for the oracle class to cast the connection to its derived form.
Please correct this problem in the XSU as soon as possible.
Thanks in advance,
-- Dave CampbellYes, of course I have. If you carefully see my first post, you will notice that I get an
'ORA-00904: invalid column name' error when I - in purpose - use an invalid Query, which means that communication with Oracle DB is fine. The problem appears when my Query does return some results. It's really confusing me...
Any other ideas?
thanks!
-n-
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
Have you include JDBC lib in your classpath?<HR></BLOCKQUOTE>
null -
Oracle.xml.sql.query.OracleXMLQuery GetXML -withDTD
I'm trying to create a dtd for each table in my schema. I've created a java program that loops through the user_tables and I am then trying to create the DTD with oracle.xml.sql.query.OracleXMLQuery -withDTD. I am able to make it work using the XSU Command Line Utility, but I'm having a hard time trying to find out where the -withDTD flag goes inside my java program. Anyone know how to use the -withDTD option inside of a java program?
Thanks[from XmlRpc-Java]
As a result, my XML
is contained in a String instead of an InputStream.
It is possible to convert a String to an InputStream using
StringBufferInputStream, but this class is deprecated in favor of
StringReader (as StringBufferInputStream does not properly convert
characters into bytes).
For the default HTTP transport, an InputStreamReader could be used to
wrap the InputStream before calling parse().
Ultimately, the InputStream is converted to an InputSource for use by
the SAX parser. InputSource will accept a Reader as well.
[from XmlRpc-Java]
There should be a way to go from "getXMLString()" to "parse(Reader)" also. In the meantime I'm stuck.
null -
Oracle.xml.sql.query.OracleXMLQuery not found
Hi!
Sorry, but I got a project to continue and there is an import statement "import oracle.xml.sql.query.OracleXMLQuery;" and this gives me a compilation error...
What do I need to do, where do I find this class??? Any help?
//PatriciaPatricia,
Did you go through the link
Re: XML SQL Utility
You have to put xsu12.jar in the lib directory of the jdev.
xsu12.jar is in the lib directory of the XDK installation.
You can download XDK from
http://www.oracle.com/technology/tech/xml/xdk/software/prod/xdk_java.html
Just download the XDK kit, get the xsu12.jar from the lib directory and put in the lib directory of the jdev.
-- Arvind -
Oracle.xml.sql.query.OracleXMLQuery?
Anyone know where I can find a java doc or any method infomation on:
oracle.xml.sql.query.OracleXMLQuery
thanks,
chad.[from XmlRpc-Java]
As a result, my XML
is contained in a String instead of an InputStream.
It is possible to convert a String to an InputStream using
StringBufferInputStream, but this class is deprecated in favor of
StringReader (as StringBufferInputStream does not properly convert
characters into bytes).
For the default HTTP transport, an InputStreamReader could be used to
wrap the InputStream before calling parse().
Ultimately, the InputStream is converted to an InputSource for use by
the SAX parser. InputSource will accept a Reader as well.
[from XmlRpc-Java]
There should be a way to go from "getXMLString()" to "parse(Reader)" also. In the meantime I'm stuck.
null -
Where is the oracle.xml.sql.query package?
Hi,
I have downloaded the xmlparser_v2_0_2_9.zip. I hoped I have everything to compile the example for retrieving XML document with an sql query. However, the jar file is missing the entire package oracle.xml.sql.query which contains for instance the crucial class OracleXMLQuery. Does anyone know where I could get this package - is it part of another download that I have to do, or can I buy it anywhere? Thanks for your help.
KarelIt's part of the XML SQL Utility for Java, avialable for download from http://technet.oracle.com/tech/xml
-
Hello, all.
I get this error message:
java.lang.NoClassDefFoundError: oracle/xml/sql/query/OracleXMLQuery
at oracle.xml.xsql.actions.XSQLQueryHandler.handleAction(Compiled Code) ...
when trying to view an xsql page with the jswdk 1.0.1 web server. (I have no problems when using Web-to-go)
Classpath includes:
C:\jdk1.1.8\lib\classes.zip;
C:\xsql\lib\oraclexsql.jar;
C:\xsql\lib\xmlparserv2.jar;
C:\xsql\lib\xsu111.jar;
C:\xsql\lib\classes111.zip;
C:\xsql\lib;
What could be the problem?
Mateja
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
Only thing I can think of is that maybe your server classpath is getting too long. I recall one of the Java Web Server releases having a classpath length limit that caused strange errors like this because that .jar files you thought were on your classpath were getting their path names truncated so the Java VM cannot find the JAR's.
Try putting xsu111.jar earlier in the list of JAR's and/or try shortening the classpath (perhaps by using SUBST'd drive letters or softlinks on Unix to shorten the path names).<HR></BLOCKQUOTE>
Putting the xsu11.jar file towards the start of the path did not help.
I have rewriten the entire bat file that creates the CLASSPATH and starts the server and things now seem to work. There must have been some error in the original bat file, that I just couldn't see.
Anyway - I thank you for your help.
null
Maybe you are looking for
-
Renaming of node in Tree UI Element
Hi All I have populated the Tree Structure as shown below A A1 A2 A3 B B1 B11 B12 B13 B2 B3 C C1 C2 C21 C22 C23 C3 C4 Can you please let me know How to rename of nodes A,A1,B,B1,B11, and C21?? my requirement is once i
-
Mapping Multiple VLANs to Multiple SSIDs as one-one in WLC 5508 via H-REAP?
Hi All, Can anyone please show me how to map a SSID/WLAN ID to a local vlan of a LAP in WLC 5508 using H-REAP local switched? The reason of doing this is to separate Data subnet/traffic from Voice as currently all 7925 handsets using same SSID as PCs
-
Dear All, I have created a material with batch management & i have assigned a Class of type "023" in the classification view. When i open the same material again there is no class assigned to the material. this is happening to all materials..... plzz
-
HT201209 How do I get credit for money I already have to buy things?
We have over $10 on our store credit to buy things. Whenever we try to buy anything, it asks for our billing info for our credit card. We want to use money from our gift cards. How do we get to use that instead of a credit card which we do not want t
-
Selected page item has no data
1) After I create the new data model, and start the EP_LOAD_MAIN how can I see the sales history table in the colaborator workbench? I only see the hierarchy of levels ,and in the right of the page, I have the message "Selected page item has no data"