OracleXMLSave error
Hi.
I get an error when I try to insert a huge XML file (30MB) into Oracle DB using Oracle XML Utility for Java.
Here is a segment of my Java code :
OracleXMLSave save = new OracleXMLSave(conn, tableName);
url = new URL("file:///" + xmlFile.getAbsolutePath());
rowCount = save.insertXML(url);
save.close();
Here is error msg :
# An unexpected exception has been detected in native code outside the VM.
# Program counter=0x404b44a7
# Problematic Thread: prio=1 tid=0x804ede0 nid=0x66c5 runnable
# # An unexpected exception has been detected in native code outside the VM.# Program counter=0x404741a3
# Problematic Thread: prio=1078150424 tid=0x804ede0 nid=0x66c5 runnable
Aborted
I'm not sure if there is a limit of XML file size for doing this.
It works well when XML file size is smaller.(less than 10MB)
Please, let me know if you have any idea.
Thanks.
null
Thanks, Steve.
You're great.
I checked your book.
But, I was not able to match my case to your case.
Because, my huge XML file is just for one table.
For example, like this :
* My XML sample
<ROWSET>
<ROW>
<ID>...</ID>
<NAME>...</NAME>
(30~50 column tags here)
</ROW>
<ROW>
<ID>...</ID>
<NAME>...</NAME>
(30~50 column tags here)
</ROW>
Thousands of <ROW> tags here
</ROWSET>
I mean, one XML file is loaded into only one table.
So, your split-XML file techniq cannot be applied to my case.
But, I'd like to try this way :
- split the huge XML file(document) into two xml document with same format above.
- load each splitted-XML Doc.
Steve, could you give me some sample java code to do this?
My idea to split the huge XML file is to count the number of node with tag-name "ROW",
and the count is reached 500 or 1000 then make additional xml document...
And, as you know, the problem was that the XML file is too big to be loaded.
I tried this way also :
java -mx256m OracleXML ...
It solves "OutofMemory error", but it doesn't solve the OracleXMLSave problem.
It seems to me that the huge XML file is parsed well but cannot be inserted with
OracleXMLSave().
And, as you know also, when I try with the latest version of XSU(v9.x.x...), it got the conversion error.
Anyway, when can we get the new version of XSU without these errors?
Thank you very much, again.
null
Similar Messages
-
ORA-29534 in loadjava xsu111.jar
Help!
While trying to install the server side of the XSU ver 111 I get an 'ORA-29534: referenced object P79890.oracle/xml/sql/dml/OracleXMLSave could not be resolved' message. I've looked through the bulletin board messages and noted that most people have resolved this issue with a correct CLASSPATH. I've reviewed that and all my env vars and see no problems: I do note that all the failures stem from oracle/xml/sql/dml/OracleXMLSave wic in turn got the message
'ORA-29521: referenced name oracle/jdbc2/Clob could not be found' I found this in classes111.zip and have made sure it is in CLASSPATH and CLASSPATHJ. but to no avail
Whaqt else can i try? loadjava results below
Oracle V 8.1.6
Windows NT 4.0 SP5
JDK 1.1.8
jdbc 111
Thanks,
David Summers
--> load parser - succeeded-
D:\Downloads\OracleXSU111\lib>call loadjava -r -v -u p79890/pswd xmlparserv2.jar
initialization complete
loading : oracle/xml/parser/v2/XSLResultElement
creating : oracle/xml/parser/v2/XSLResultElement
<snip>
org/xml/sax/Locator is already resolved
---> failing loadjava
D:\Downloads\OracleXSU111\lib>call loadjava -r -v -g public -u p79890/pswd xsu111.jar
initialization complete
loading : oracle/xml/sql/query/OracleXMLQuery
creating : oracle/xml/sql/query/OracleXMLQuery
loading : oracle/xml/sql/query/OracleXMLStaticQuery$QueryCtx
creating : oracle/xml/sql/query/OracleXMLStaticQuery$QueryCtx
loading : oracle/xml/sql/dataset/OracleXMLDataSetExtJdbc
creating : oracle/xml/sql/dataset/OracleXMLDataSetExtJdbc
loading : oracle/xml/sql/dataset/OracleXMLDataSetGenJdbc
creating : oracle/xml/sql/dataset/OracleXMLDataSetGenJdbc
loading : oracle/xml/sql/core/OracleXMLTimer
creating : oracle/xml/sql/core/OracleXMLTimer
loading : oracle/xml/sql/dml/OracleXMLStaticSave
creating : oracle/xml/sql/dml/OracleXMLStaticSave
loading : oracle/xml/sql/name/OracleColumnName
creating : oracle/xml/sql/name/OracleColumnName
loading : oracle/xml/sql/query/OracleXMLStaticQuery
creating : oracle/xml/sql/query/OracleXMLStaticQuery
loading : oracle/xml/sql/OracleXMLSQLNoRowsException
creating : oracle/xml/sql/OracleXMLSQLNoRowsException
loading : oracle/xml/sql/core/OracleXMLUtil
creating : oracle/xml/sql/core/OracleXMLUtil
loading : oracle/xml/sql/core/OracleXMLConvert
creating : oracle/xml/sql/core/OracleXMLConvert
loading : oracle/xml/sql/dml/OracleXMLStaticSave$MutableInt
creating : oracle/xml/sql/dml/OracleXMLStaticSave$MutableInt
loading : oracle/xml/sql/core/OracleXMLTime
creating : oracle/xml/sql/core/OracleXMLTime
loading : oracle/xml/sql/name/OracleCollectionName
creating : oracle/xml/sql/name/OracleCollectionName
loading : oracle/xml/sql/XSUMesg
creating : oracle/xml/sql/XSUMesg
loading : oracle/xml/sql/query/OracleXMLStaticQuery$MutableInt
creating : oracle/xml/sql/query/OracleXMLStaticQuery$MutableInt
loading : oracle/xml/sql/dml/OracleXMLSave
creating : oracle/xml/sql/dml/OracleXMLSave
loading : oracle/xml/sql/dml/OracleXMLStaticSave$SaveCtx
creating : oracle/xml/sql/dml/OracleXMLStaticSave$SaveCtx
loading : OracleXML
creating : OracleXML
loading : oracle/xml/sql/docgen/OracleXMLDocGenDOM
creating : oracle/xml/sql/docgen/OracleXMLDocGenDOM
loading : oracle/xml/sql/docgen/OracleXMLDocGenLob
creating : oracle/xml/sql/docgen/OracleXMLDocGenLob
loading : oracle/xml/sql/OracleXMLSQLException
creating : oracle/xml/sql/OracleXMLSQLException
loading : oracle/xml/sql/name/OracleScalarName
creating : oracle/xml/sql/name/OracleScalarName
loading : oracle/xml/sql/docgen/OracleXMLDocGen
creating : oracle/xml/sql/docgen/OracleXMLDocGen
loading : oracle/xml/sql/name/OracleADTName
creating : oracle/xml/sql/name/OracleADTName
loading : oracle/xml/sql/dataset/OracleXMLDataSet
creating : oracle/xml/sql/dataset/OracleXMLDataSet
loading : oracle/xml/sql/name/OracleCursorName
creating : oracle/xml/sql/name/OracleCursorName
loading : oracle/xml/sql/docgen/OracleXMLDocGenString
creating : oracle/xml/sql/docgen/OracleXMLDocGenString
loading : OracleXMLStore
creating : OracleXM LStore
loading : oracle/xml/sql/mesg/XSUMessages.properties
creating : oracle/xml/sql/mesg/XSUMessages.properties
loading : META-INF/MANIFEST.MF
creating : META-INF/MANIFEST.MF
loading : XSU111_VERSION_1_2_1
creating : XSU111_VERSION_1_2_1
loading : XSU111_RDBMS_MAIN_SOLARIS_000620
creating : XSU111_RDBMS_MAIN_SOLARIS_000620
resolver :
resolving: oracle/xml/sql/dml/OracleXMLStaticSave
Errors in oracle/xml/sql/dml/OracleXMLStaticSave:
ORA-29534: referenced object P79890.oracle/xml/sql/dml/OracleXMLSave could n
ot be resolved
resolving: oracle/xml/sql/docgen/OracleXMLDocGenLob
oracle/xml/sql/name/OracleScalarName is already resolved
oracle/xml/sql/dataset/OracleXMLDataSetExtJdbc is already resolved
oracle/xml/sql/name/OracleADTName is already resolved
oracle/xml/sql/dataset/OracleXMLDataSetGenJdbc is already resolved
resolving: OracleXMLStore
Errors in OracleXMLStore:
ORA-29534: referenced object P79890.oracle/xml/sql/dml/OracleXMLSave could n
ot be resolved
oracle/xml/sql/core/OracleXMLTimer is already resolved
oracle/xml/sql/docgen/OracleXMLDocGenString is already resolved
oracle/xml/sql/docgen/OracleXMLDocGenDOM is already resolved
resolving: oracle/xml/sql/query/OracleXMLStaticQuery$QueryCtx
Errors in oracle/xml/sql/query/OracleXMLStaticQuery$QueryCtx:
ORA-29534: referenced object P79890.oracle/xml/sql/query/OracleXMLQuery coul
d not be resolved
resolving: oracle/xml/sql/query/OracleXMLStaticQuery
Errors in oracle/xml/sql/query/OracleXMLStaticQuery:
ORA-29534: referenced object P79890.oracle/xml/sql/query/OracleXMLQuery coul
d not be resolved
oracle/xml/sql/core/OracleXMLConvert is already resolved
resolving: oracle/xml/sql/query/OracleXMLQuery
Errors in oracle/xml/sql/query/OracleXMLQuery:
ORA-29534: referenced object P79890.oracle/xml/sql/dml/OracleXMLSave could n
ot be resolved
oracle/xml/sql/OracleXMLSQLNoRowsException is already resolved
resolving: OracleXML
Errors in OracleXML:
ORA-29534: referenced object P79890.oracle/xml/sql/dml/OracleXMLSave could n
ot be resolved
resolving: oracle/xml/sql/dml/OracleXMLStaticSave$MutableInt
Errors in oracle/xml/sql/dml/OracleXMLStaticSave$MutableInt:
ORA-29534: referenced object P79890.oracle/xml/sql/dml/OracleXMLStaticSave c
ould not be resolved
resolving: oracle/xml/sql/query/OracleXMLStaticQuery$MutableInt
Errors in oracle/xml/sql/query/OracleXMLStaticQuery$MutableInt:
ORA-29534: referenced object P79890.oracle/xml/sql/query/OracleXMLStaticQuer
y could not be resolved
oracle/xml/sql/name/OracleCollectionName is already resolved
resolving: oracle/xml/sql/dml/OracleXMLStaticSave$SaveCtx
Errors in oracle/xml/sql/dml/OracleXMLStaticSave$SaveCtx:
ORA-29534: referenced object P79890.oracle/xml/sql/dml/OracleXMLSave could n
ot be resolved
oracle/xml/sql/name/OracleCursorName is already resolved
oracle/xml/sql/dataset/OracleXMLDataSet is already resolved
oracle/xml/sql/docgen/OracleXMLDocGen is already resolved
oracle/xml/sql/core/OracleXMLTime is already resolved
resolving: oracle/xml/sql/core/OracleXMLUtil
Errors in oracle/xml/sql/core/OracleXMLUtil:
ORA-29534: referenced object P79890.oracle/xml/sql/dml/OracleXMLSave could n
ot be resolved
oracle/xml/sql/name/OracleColumnName is already resolved
resolving: oracle/xml/sql/dml/OracleXMLSave
Errors in oracle/xml/sql/dml/OracleXMLSave:
ORA-29521: referenced name oracle/jdbc2/Clob could not be found
oracle/xml/sql/XSUMesg is already resolved
oracle/xml/sql/OracleXMLSQLException is already resolved
loadjava: 11 errors
nullAre you able to run Java Stored Procedures succesfully in your system.
Log into SQL*Plus as SYS. Issue the following queries:
SQL> SELECT count(*) FROM obj$ WHERE type#=29 AND owner#=0;
COUNT(*)
8535
It should return >= 8000.
SQL> SELECT count(*) FROM obj$ WHERE type#=29 AND owner#=0 AND status != 1;
COUNT(*)
0
Let me know the results of the above and creating of Java SP's.
null -
Error: Unparseable date with OracleXMLSave
Hi,
Error:
oracle.xml.sql.OracleXMLSQLException: java.text.ParseException: Unparseable date: "03/18/2099"
int oracle.xml.sql.dml.OracleXMLSave.insertXML(org.w3c.dom.Document)
void b2b.RcvQueueListener.saveCsmToTso(oracle.xml.parser.v2.XMLDocument)
void b2b.RcvQueueListener.<init>()
void b2b.RcvQueueListener.main(java.lang.String[])
I've tried to save a row in the database with OracleXMLSave:
I use JDeveloper 3.1.1.2 with XDK 2.? and a local Oracle 8.1.6 unde NT.
// XML Doc:
<ROWSET>
<ROW NUM="1">
<CSM_NO>A29912</CSM_NO>
<CRE_DAY_CSM>03/18/2099</CRE_DAY_CSM>
<CSM_VOL_GRO_FRZ>59.89</CSM_VOL_GRO_FRZ>
</ROW>
</ROWSET>
// Set java enviroment:
Locale.setDefault(java.util.Locale.US);
// Save Data with XSU like:
OracleXMLSave sav =
new OracleXMLSave(cn.getConnection(), "consignment_t");
sav.insertXML(csmData);
Same Error when trying to...
(1) set date format for OracleXMLSave:
> sav.setDateFormat("DD/MM/YYYYY");
(2) set database parameter:
> nls_date_format='DD/MM/YYYY';
> nls_language='AMERICAN';
(3) set registry (winnt)
> nls_lang=AMERICAN_AMERICA.WEISO8859P1
Help would be appreciated.
Thanks in advance!
Matthias.setDateFormat() is expecting a format mask that is valid for the java.text.SimpleDateFormat object.
So, just do:
setDateFormat("d/M/yyyy");
null -
Java Error Message When Using an instance of OracleXMLSave
Hi,
I am trying to use the XDK XML-SQL utility to insert data from an xml file into a table.
I am using eclipse and imported the following jar files into the java build path from jdeveloper
xml.jar
xmlmesg.jar
xsu12.jar
When I try to run my test program I get the following error message:
java.lang.NoClassDefFoundError: oracle/xdb/XMLType
at this line in the program:
OracleXMLSave sav = new OracleXMLSave(conn, "EDG_EPC.EMP_PRACTICE");
What could I be doing wrong? Do I need to import more libraries. If so where are they located in jdev? Additionally, does the table need to be of XMLType??? I thought the XDK would work for inserting into regular tables.
Please help!!!!!
Thanksjava.lang.NoClassDefFoundError: oracle/xdb/XMLType
Add <Oracle10g>/RDBMS/jlib/xdb.jar to Classpath. -
Error in OracleXMLSave !!
I have this error while trying to insert a row in a table.
My 'document' is valid and also my connection
Tips?
Thks
Leonardo
oracle.xml.sql.OracleXMLSQLException: sun.jdbc.odbc.JdbcOdbcConnection
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1904)
at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1028)
at com.lulli.WebBeans.InsertBeanJDBC.InsertDOMoracle(InsertBeanJDBC.java
:84)
nullI'm experiencing the same problems with MS ACCESS 97 and IBM DB2.
I have also tried a 'select' before the 'insert' to be sure everything works,
here's the result
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<CODICE>1</CODICE>
<BRANCH>sdb vr</BRANCH>
<TIPO>o</TIPO>
</ROW>
<ROW num="2">
<CODICE>2</CODICE>
<BRANCH>sdb to</BRANCH>
<TIPO>0</TIPO>
</ROW>
</ROWSET>
record<?xml version="1.0"?><ROWSET><ROW num="3"><CODICE>44</CODICE><BRANCH>eccomi</BRANCH><TIPO>C</TIPO></ROW></ROWSET>
Bean COM.ibm.db2.jdbc.app.DB2Connection
Bean 0
Bean ERROR<ERROR>
COM.ibm.db2.jdbc.app.DB2Connection</ERROR>
Bean SQL ERROR<ERROR>
<MESSAGE>
COM.ibm.db2.jdbc.app.DB2Connection </MESSAGE>
</ERROR>
oracle.xml.sql.OracleXMLSQLException: COM.ibm.db2.jdbc.app.DB2Connection at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1904) at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1028) at InsertXMLData.doGet(InsertXMLData.java:75)
Thks in advance
Leonardo -
Error using OracleXMLSave.setXSLT(xslt, null)
Hi.
I'm running a standalone OC4J server. When I deploy my webservice, and I run it, I get this error message:
SOAP-ENV:Server - oracle/xdb/XMLType [java.lang.NoClassDefFoundError]
When I run this on a IAS10G server, then it runs OK.
I have deployed the xdb.jar file with the applications ear file.
And on the standalone I have also deployed it on the J2EE_HOME\lib\ catalog.
Anyone have an ide?
Regards
Rune HaavikHi.
I found out of this myself.
I needed to deploy the libraries to the java_home\lib\ext path.
rune -
XML SQL Utility error - SQLException Data size bigger than max size for this type
I am trying to insert an XML document the contains the text of new articles into the database and I am receiving this error on large documents. The process flow is as follows:
From a servlet:
1. Query the news server and retrieve an XML document containing the new story.
2. Apply an XSL style sheet to the XML document to transform it into an XML document that matches the news_article table into which the story will be inserted.
3. Call the insertXML method to store the transformed document in the table. The table contains a CLOB.
Here is a sample of the raw XML:
<?xml version="1.0" standalone="yes" ?>
- <body id="s13602">
- <![CDATA[
Feb. 15-MAR--
[B] BRIDGE UPDATE--LIVESTOCK: US hunger for beef must persist amid
placements
Feb 15--2238 GMT/1738 ET
TOP STORIES:
Bridge Survey: US hunger for beef must persist amid big placements
Chicago--Feb 15--The $70.00 price level for slaughter steers has been
considered an indication of good times in cattle country since last fall.
More to follow...
^^^^^^
]]>
</body>
Here is the XSL that is applied:
<?xml version="1.0" ?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" />
<xsl:template match="*|/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="text()|@*">
<xsl:value-of select="." />
</xsl:template>
<xsl:template match="body">
<ROWSET>
<ROW>
<ID />
<SECTION_ORDER>1</SECTION_ORDER>
<SUBTITLE />
<BODY_TEXT>
<xsl:value-of select="." />
</BODY_TEXT>
<STORY_ID>
<xsl:value-of select="@id" />
</STORY_ID>
</ROW>
</ROWSET>
</xsl:template>
</xsl:stylesheet>
The transformed XML looks like:
ROWSET>
<ROW>
<ID></ID>
<SECTION_ORDER>1</SECTION_ORDER>
<SUBTITLE></SUBTITLE>
<BODY_TEXT>
Feb. 15-MAR--
BRIDGE UPDATE--LIVESTOCK: US hunger for beef must persist amid
placements
Feb 15--2238 GMT/1738 ET
TOP STORIES:
Bridge Survey: US hunger for beef must persist amid big placements
Chicago--Feb 15--The $70.00 price level for slaughter steers has been
considered an indication of good times in cattle country since last fall.
More to follow...
^^^^^^</BODY_TEXT>
<STORY_ID>s13602</STORY_ID>
</ROW>
</ROWSET>
The table I am trying to insert into look like:
ID NOT NULL NUMBER(10)
SECTION_ORDER NOT NULL NUMBER(10)
SUBTITLE VARCHAR2(500)
BODY_TEXT CLOB
STORY_ID VARCHAR2(25)
The ID column is null in the XML document and set by a before-insert trigger.
The relevant Java code I am calling all this from looks like:
try
// Setup the output handler
res.setContentType("text/xml");
// Define the URLs for the input source and Stylesheet
URL xmlSource = new URL (xmlUrl);
URL xslSource = new URL (xslUrl);
// Open connection to XML and XSL Sources via URL
URLConnection xmlConnection = xmlSource.openConnection();
xmlConnection.connect();
InputStream xmlInput = xmlConnection.getInputStream();
URLConnection xslConnection = xslSource.openConnection();
xslConnection.connect();
InputStream xslInput = xslConnection.getInputStream();
// Create the parser
DOMParser parser = new DOMParser();
// Initial parser variables
parser.setPreserveWhitespace(true);
// Parse the XML file
parser.parse(xmlInput);
xml = parser.getDocument();
// Create and configure the XSL Stylesheet and XSL Processor
XSLStylesheet xsl = new XSLStylesheet(xslInput, xslSource);
XSLProcessor processor = new XSLProcessor();
processor.showWarnings(false);
processor.setErrorStream(System.out);
// Process the XML document using the stylesheet
XMLDocumentFragment result = processor.processXSL(xsl, xml );
// Create the output document to store results
output = new XMLDocument();
// Load the transformed document into the output document
output.appendChild(result);
Class.forName ("oracle.jdbc.driver.OracleDriver");
//init a JDBC connection
Connection conn =
DriverManager.getConnection("jdbc:oracle:oci8:@ZEUS", "emerge","emerge");
OracleXMLSave sav = new OracleXMLSave(conn, tabName);
int rowCount = sav.insertXML(output);
} catch (Exception err) {
Anyone have any ideas on what I am doing wrong. This works fine on short news articles, but not large ones.
Thanks!
nullSteven,
Thanks for you reply. I have verified that I am using the latest version of Oracle XSQL Servlet, version 0.9.8.6 as well as the OCI8 driver. In doing some additional research I found that I was using the JDBC drivers supplied with OAS 4.0.8 and not the Oracle 8.1.5 JDBC drivers. I have switched my classpath to point to the 8.1.5 drivers and I am now encountering the following error:
ORA-21301: not initialized in object mode
Is this something I need to do in my Servlet code, or should the XSQL Servlet handle that?
Thanks for any help that you can provide. -
XDK for PL/SQL install errors
Is this a problem ?
resolver :
Error while turning off verifier
ORA-29532: Java call terminated by uncaught Java exception:
java.security.AccessControlException: the Permis
sion (oracle.aurora.security.JServerPermission Verifier ) has
not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SYSTEM|PolicyTableProxy(SYSTEM))
I also get some of these ...
errors : oracle/xml/sql/dml/OracleXMLSave
ORA-29534: referenced object
SYSTEM.oracle/xml/sql/core/OracleXMLConvert could not be resolved
skipping : oracle/xml/sql/core/OracleXMLTime is already resolved
resolving: oracle/xml/sql/core/OracleXMLConvert
errors : oracle/xml/sql/core/OracleXMLConvert
ORA-29521: referenced name oracle/gss/util/XmlValidate could
not be found
resolving: oracle/xml/sql/OracleXMLSQLNoRowsException
errors : oracle/xml/sql/OracleXMLSQLNoRowsException
ORA-29534: referenced object
SYSTEM.oracle/xml/sql/OracleXMLSQLException could not be resolved
resolving: oracle/xml/sql/core/OracleXMLUtil
errors : oracle/xml/sql/core/OracleXMLUtil
ORA-29534: referenced object
SYSTEM.oracle/xml/sql/core/OracleXMLConvert could not be resolved
At the end, the final test shows ...
SQL> Rem Use these to test the results..
SQL> select dbms_xmlquery.getxml('select * from dual', 2) from
dual;
select dbms_xmlquery.getxml('select * from dual', 2) from dual
ERROR at line 1:
ORA-29541: class
SYSTEM.oracle/xml/sql/query/OracleXMLStaticQuery could not be
resolved
ORA-06512: at "SYSTEM.DBMS_XMLQUERY", line 20
ORA-06512: at "SYSTEM.DBMS_XMLQUERY", line 271
ORA-06512: at line 1
Can anyone please help. My load command was ...
./xdkload -u "system/manager" -s -noverify -dbver "817"
I'm trying to load version 9.0.2.0.0C into an 8.1.7 instance on
HP-UX 11. Before running the script, I had to set environment
variables INSTALL_ROOT, and LD_LIBRARY_PATH (we use
SHLIB_PATH). I haven't actually found any installation
instructions, so I've only got this far by poking around. Any
help is much appreciated.
SteveSounds like the same problem described in a number of posts
recently.
Re: Startup/Shutdown 9iAS on windows
http://forums.oracle.com/forums/message.jsp?id=550104
The problem is caused by unresolved classes in the XSU package
from the latest Beta, I hope someone from Oracle can take a look
at this.
Good luck!
Ola -
I am using JDeveloper 10.1.3 and get the following error when executing the web service proxy with my call to the web service( this web service is using class OracleXMLSave with method insertXML):
I have included the xdb.jar in my project properties libraries of the web service project and added a file group with xdb.jar to the properties of the webservices.deploy. What else needs to be done? This worked in JDeveloper 10.1.2.
THE ERROR after running proxy in log window:
java.rmi.ServerException:
start fault message:
caught exception while handling request: caught exception while handling request: oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: oracle.xdb.XMLType
Dependent class: dbdata2package.DBDataOperations
Loader: DBData2WSApp-DBData2Operations-WS.web.WebServices:0.0.0
Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBData2WSApp-DBData2Operations-WS/WebServices/WEB-INF/classes/
Configuration: WEB-INF/classes/ in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBData2WSApp-DBData2Operations-WS\WebServices\WEB-INF\classes
The missing class is available from the following locations:
1. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-webservice-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-webservice-WS\WebServices\WEB-INF\lib)
This code-source is available in loader DBDataWSApp-webservice-WS.web.WebServices:0.0.0.
2. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-DBDataOperations-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-DBDataOperations-WS\WebServices\WEB-INF\lib)
This code-source is available in loader DBDataWSApp-DBDataOperations-WS.web.WebServices:0.0.0.
:end fault message
at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:545)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:390)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
at dbdata2packageproxy.runtime.DBData2WSSoapHttp_Stub.insertData(DBData2WSSoapHttp_Stub.java:80)
at dbdata2package.DBData2WSSoapHttpPortClient.insertData(DBData2WSSoapHttpPortClient.java:54)
at dbdata2package.DBData2WSSoapHttpPortClient.main(DBData2WSSoapHttpPortClient.java:34)
Process exited with exit code 0.Hi,
actually you increment the index
pstmt.setString(++idx,inrecord.getCommentID());
which means you never have an index of 0 but always start with 1
Frank -
Feed :
<RESULT>
<EVENT_ID>3710</EVENT_ID>
<UPDATE_TIME>Oct 28 2000 11:30PM</UPDATE_TIME>
<SPORT_ID SPORT_NAME_LONG="Basketball" SPORT_NAME_MEDIUM="Basketball" SPORT_NAME_SHORT="NBL">4</SPORT_ID>
<COMPETITION_ID COMPETITION_NAME_LONG="Basketball NBL" COMPETITION_NAME_MEDIUM="NBL" COMPETITION_NAME_SHORT="NBL">14</COMPETITION_ID>
<GAME_DATE>2000-10-28</GAME_DATE>
<VENUE>Clipsal Powerhouse</VENUE>
<ROUND>Round 2</ROUND>
<ROUND_ORDER>2</ROUND_ORDER>
<PERIOD>Full Time</PERIOD>
<HOME_TEAM_ID TEAM_NAME_SHORT="Adelaide" TEAM_NAME_MEDIUM="Adelaide 36ers" TEAM_NAME_LONG="Adelaide 36ers">19</HOME_TEAM_ID>
<HOME_TEAM_SCORE>92</HOME_TEAM_SCORE>
<AWAY_TEAM_ID TEAM_NAME_SHORT="Sydney" TEAM_NAME_MEDIUM="Sydney Kings" TEAM_NAME_LONG="Sydney Kings">25</AWAY_TEAM_ID>
<AWAY_TEAM_SCORE>81</AWAY_TEAM_SCORE>
<FINISHED>Finished</FINISHED>
</RESULT>
Error :
Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: Exception 'java.text.ParseException:Unparseable date: "Oct 28 2000 11:30PM"' encountered during processing ROW element 0All prior XML row changes were rolled back. in the XML document.
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1962)
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1880)
at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1013)
at a.main(a.java:19)
I have update_time and game_day as date in the table. If I make this column as varchar2 then it works fine.
How can I solve this error.
nullThe date format must conform to Java's SimpleDateFormat. Please check http://java.sun.com/products//jdk/1.1/docs/api/java.text.SimpleDateFormat.html for details
-
OracleXMLSave - Insert into table with NOT NULL Columns
Im having trouble using OracleXMLSave (XSU12) to insert into a
table where columns are initialized on insert with system
derived values (see table script below) I get the following
error message.
Message: 'java.sql.SQLException: ORA-01400: cannot insert
NULL "TESTMEETING"."S_TERMID")
Im inserting this XML:
<ROWSET table="testmeeting">
<ROW>
<DESCRIPTION>TestMeeting</DESCRIPTION>
<STARTDATE>2001-10-22 00:00:00.0</STARTDATE>
<CATEGORYCODE>HR</CATEGORYCODE>
<STATUS>O</STATUS>
</ROW>
</ROWSET>
Table Script:
CREATE TABLE TESTMEETING (
S_TERMID VARCHAR2 (12) DEFAULT (USERENV('TERMINAL'))
NOT NULL,
S_RECORDCREATED DATE DEFAULT (SYSDATE) NOT NULL,
S_RECORDCREATOR NUMBER (4) DEFAULT (UID) NOT NULL,
DESCRIPTION VARCHAR2 (28),
CATEGORYCODE VARCHAR2 (2),
STARTDATE DATE,
STATUS VARCHAR2 (1))
If I remove these columns the insert works OK. Inserts also work
fine from sqlplus etc.
Apologies for the previous entry, itchy fingers.
Thanks for your helpHi.
try to insert data in column "TESTMEETING"."S_TERMID" by trigger.
Thanks.. -
Error with XSU: oracle.jdbc2.Clob
When I try to insert data I get the following error.
java.lang.NoClassDefFoundError: oracle.jdbc2.Clob
void samp10.main(java.lang.String[])
Exception in thread main.
I use classes112.zip with Oracle 8.1.7.
I have Included following libraries in JDeveloper: Oracle XML SQL Utility, Oracle XML Parser 2.0, JServer, Connection Manager and Oracle 8.1.6 JDBC.
The sourcecode of my .java file is:
/** Simple example on using Oracle XMLSQL API; this class inserts the data from a XML document into the database*/
import oracle.xml.sql.dml.*;
import java.sql.*;
import oracle.jdbc.driver.*;
import oracle.jdbc.*;
import java.net.*;
public class samp10
//========================================
// main() - public static void
public static void main(String args[]) throws SQLException
String tabName = "XMLTEST_TAB1"; // table into which to insert
String fileName = "sampdoc.xml"; // file name containing the xml doc
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
//initiate a JDBC connection
Connection conn =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:SJEFEN",
"scott","tiger");
OracleXMLSave sav = new OracleXMLSave(conn, tabName);
URL url = sav.createURL(fileName);
int rowCount = sav.insertXML(url);
System.out.println(" successfully inserted "+rowCount+
" rows into "+ tabName);
conn.close();
The source code for the XML Document is:
<?xml version="1.0"?>
<ROWSET>
<ROW num="1">
<EMPNO>7369</EMPNO>
<ENAME>SMITH</ENAME>
<JOB>CLERK</JOB>
</ROW>
<ROW num="2">
<EMPNO>7499</EMPNO>
<ENAME>ALLEN</ENAME>
<JOB>SALESMAN</JOB>
</ROW>
<ROW num="3">
<EMPNO>7521</EMPNO>
<ENAME>WARD</ENAME>
<JOB>SALESMAN</JOB>
</ROW>
</ROWSET>
I hope someone can help me!
nullThis occurs when you mismatch the xsu jar file with the classes1x.zip file (the jdbc driver).
xsu12.jar goes with classes12.zip
xsu111.jar goes with classes111.zip -
Error XSQL-017 Running XML Document Demo
Environment: Oracle 8.1.6 (NT 4.0)
XSQL 1.0.4.1
JDK 1.1.8
While running the XML Document Demo, I enter the Author, Title, Stylesheet and XML Document fields, and click the "Validate and Insert" button. Then I get the messages shown below. Any ideas? Thanks.
===== ===== Start Of Messages ===== =====
XSQL-017: Unexpected Error Occurred
java.lang.NoClassDefFoundError: java/sql/Clob
at
oracle.jdbc.driver.OracleStatement.get_clob_value(OracleStatement.java:4447)
at
oracle.jdbc.driver.OracleStatement.getCLOBValue(OracleStatement.java:3025)
at
oracle.jdbc.driver.OracleCallableStatement.getCLOB(OracleCallableStatement.java:439)
at
oracle.xml.sql.dml.OracleXMLSave.createTempCLOBFromString(Compiled
Code)
at
oracle.xml.sql.dml.OracleXMLSave.getLobVal(OracleXMLSave.java:765)
at
oracle.xml.sql.dml.OracleXMLSave.getObjectVal(OracleXMLSave.java:690)
at oracle.xml.sql.dml.OracleXMLSave.getStructVal(Compiled
Code)
at
oracle.xml.sql.dml.OracleXMLSave.setBindValue(OracleXMLSave.java:1206)
at oracle.xml.sql.dml.OracleXMLSave.saveNodeVal(Compiled
Code)
at
oracle.xml.sql.dml.OracleXMLSave.saveNode(OracleXMLSave.java:2146)
at oracle.xml.sql.dml.OracleXMLSave.saveNodes(Compiled
Code)
at
oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1954)
at
oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1060)
at
oracle.xml.xsql.actions.XSQLInsertRequestHandler.handleAction(XSQLInsertRequestHandler.java:126)
at oracle.xml.xsql.XSQLDocHandler.getDocument(Compiled
Code)
at oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code)
at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
at oracle.xml.xsql.XSQLServlet.doPost(XSQLServlet.java:81)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at oracle.lite.web.JupServlet.service(JupServlet.java:186)
at oracle.lite.web.MimeServletHandler.handle(Compiled Code)
at oracle.lite.web.JupApplication.service(Compiled Code)
at oracle.lite.web.JupHandler.handle(Compiled Code)
at oracle.lite.web.HTTPServer.process(Compiled Code)
at oracle.lite.web.HTTPServer.handleRequest(Compiled Code)
at oracle.lite.web.JupServer.handle(Compiled Code)
at oracle.lite.web.SocketListener.process(Compiled Code)
at oracle.lite.web.SocketListener$ReqHandler.run(Compiled
Code)
===== ===== End Of Messages ===== =====
nullUsing JDK 1.1.8 you must use the JDBC 1.x driver in classes111.zip and the companion version of the XML SQL Utility xsu111.jar.
You'll need to download these from OTN from http://otn.oracle.com/tech/xml and then replace them in your classpath for the classes12.zip and xsu12.jar that you're using. -
OWB 10.1.0.4 Runtime Assistant error
I have "Fatal exception occured.[...]" from Java Virtual Machine Launcher in 63% of complete instalation of OWB Runtime Repository. And Second error (immediatelly after first) "INS0022: A spawned program error [...]" from Spawned Program Error.
I have: Virtual Machine (on VMware Player) with Windows 2003 EE SP1 Release 2 with Oracle 10.2.0.2 and with OWB 10.1.0.4. And only this soft is on this Virtual Machine.
In the log (C:\Oracle\OWB10\owb\rtasst\log.txt) last line are below.
Can You help me?
Sincerelly,
Peter
oracle.wh.util.DebugUtility: =========== enter file: ../../rtasst/roles_object_rights.sql
oracle.wh.util.DebugUtility: Runtime Platform Property Load Beginning...
Wed Jun 21 13:18:10 BST 2006
oracle.wh.util.DebugUtility: After processing SPAWN Token
Wed Jun 21 13:18:10 BST 2006
oracle.wh.util.DebugUtility: This is the -token name = SPAWN; -token type = 4
Wed Jun 21 13:18:10 BST 2006
oracle.wh.util.DebugUtility: Before processing SPAWN Token
Wed Jun 21 13:18:10 BST 2006
oracle.wh.util.DebugUtility: After processing SPAWN Token
Wed Jun 21 13:18:10 BST 2006
oracle.wh.util.DebugUtility: This is the -token name = SPAWN; -token type = 4
Wed Jun 21 13:18:10 BST 2006
oracle.wh.util.DebugUtility: Before processing SPAWN Token
Wed Jun 21 13:18:10 BST 2006
oracle.wh.util.DebugUtility: [processSPAWN]: User = runtime_owner
Wed Jun 21 13:18:10 BST 2006
oracle.wh.util.DebugUtility: [processSPAWN]: wholeLine =..\..\..\jdk\jre\bin\javaw -classpath ../../../lib/transx.zip;../../../lib/xschema.jar;../../../oc4j/rdbms/jlib/xsu12.jar;../../../rdbms/jlib/xdb.jar;../../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.xml.transx.loader "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=%host)(PORT=%port))(CONNECT_DATA=(SERVICE_NAME=%serviceName)))" %user %password ../../rtasst/wb_rt_messages_en.xml
Wed Jun 21 13:18:10 BST 2006
oracle.wh.util.DebugUtility: after executing the output
Wed Jun 21 13:18:11 BST 2006
oracle.wh.util.DebugUtility: java.lang.NoClassDefFoundError: oracle/xml/sql/dml/OracleXMLSave
Wed Jun 21 13:18:11 BST 2006
oracle.wh.util.DebugUtility: at oracle.xml.transx.TransXImpl.load(TransXImpl.java:241)
Wed Jun 21 13:18:11 BST 2006
oracle.wh.util.DebugUtility: at oracle.xml.transx.loader.load(loader.java:157)
Wed Jun 21 13:35:05 BST 2006
oracle.wh.util.DebugUtility: Exception in thread "main"
Wed Jun 21 13:35:05 BST 2006
oracle.wh.util.DebugUtility: (Spawn Token) Error loading Java into DB:
Wed Jun 21 13:35:05 BST 2006
oracle.wh.util.DebugUtility: [processSPAWN]: A spawned program error. Exception = java.lang.Exception: java.io.BufferedInputStream@16752c9
Wed Jun 21 13:35:05 BST 2006
oracle.wh.util.DebugUtility: [processSPAWN]: Get the error, stop processing...
Wed Jun 21 13:36:12 BST 2006
oracle.wh.util.DebugUtility: Assistant operation is unsuccessful ...According to metalink:
"Cause:
The cause of the problem is the existence of public synonyms pointing to the java tables.
CREATE$JAVA$LOB$TABLE and/or JAVA$CLASS$MD5$TABLE
The presence of the Public synonyms prevents the Runtime Assistant from creating new tables. This can be verified from sqlplus, connected as the sys user:
SQL> select owner,synonym_name, table_name, table_owner
2 from dba_synonyms
3* where synonym_name like '%JAVA%TABLE';
Solution
To implement the solution, please execute the following steps as a sys user from sql*plus. If required, change the synonym names to match the names returned in the select statement:
. DROP PUBLIC SYNONYM CREATE$JAVA$LOB$TABLE;
2. DROP PUBLIC SYNONYM JAVA$CLASS$MD5$TABLE;
Once complete, start the Runntime Assistant and perform the installation. When the Assistant completes, verify the log file does not contain errors or exceptions."
Hope it works!
Marcos Spínola -
ERROR:Start of root element expected
hi,
Can any one tell me what this error was. I am getting this error when i try to update a table.
XML-0108: (Fatal Error) Start of root element expected.
oracle.xml.sql.OracleXMLSQLException: Start of root element expected.
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java, Compiled
Code)
at oracle.xml.sql.dml.OracleXMLSave.updateXML(OracleXMLSave.java, Compil
ed Code)
at samp3.main(samp3.java, Compiled Code)
Thanks in advance,
Joehi,
Can any one tell me what this error was. I am getting this error when i try to update a table.
XML-0108: (Fatal Error) Start of root element expected.
oracle.xml.sql.OracleXMLSQLException: Start of root element expected.
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java, Compiled
Code)
at oracle.xml.sql.dml.OracleXMLSave.updateXML(OracleXMLSave.java, Compil
ed Code)
at samp3.main(samp3.java, Compiled Code)
Thanks in advance,
Joe
Maybe you are looking for
-
Change item text in purchase order
Hi folks, I'm trying to change some item text in the purchase order through the BAPI_PO_CHANGE with the following test code: REPORT zprueba_bapi_po_change. DATA: itab_text LIKE TABLE OF bapiekpotx, wa_text LIKE bapiekpotx, itab_lines LIKE TAB
-
Running Windows Vista 32 bit
-
Lightroom 1.1 high cpu usage
When using LR 1.0, I had no problems with performance when the Write to XMP option was enabled. With LR 1.1, after a day or two of use, I noticed LR getting slower to refresh the grid view and to develop images. I notice that LR was consuming 40-60%
-
Exit code 7 on Dreamweaver CS5.5 install
Hi, I keep getting Exit code 7 during my dreamweaver CS5.5 install. A little information about my machine: - I have CS5 Master collection installed - I have Flash Pro 5.5, Air for Apple iOS and Flash builder 4.5 installed. - I HAD Flash Builder 4.6 p
-
Hi All, I have a small issue. I have 2 pages. On each of which i have 5-7 iviews. Issue is suppose end user want to rearrange the order of iviews according to his interest. Simple example could be i have 1) cash flow, 2) sales order, 3) Dead stock an