Domsample error
I am attepting to run the domsample procedure. I'm getting the following error:
SQL> execute domsample('c:\temp','family.xml','error.log');
begin domsample('c:\temp','family.xml','error.log'); end;
ERRORE alla riga 1:
ORA-20100: Error occurred while parsing: Invalid argument
ORA-06512: a "OMDBA.XMLPARSER", line 22
ORA-06512: a "OMDBA.XMLPARSER", line 69
ORA-06512: a "OMDBA.DOMSAMPLE", line 80
ORA-06512: a line 1
We are running on NT so I changed the domsample procedure '\' instead of '/'.
Help me. Any ideas??
null
Would you give the xml file you would like to parse? Do you have external DTD in your XML
file?
null
Similar Messages
-
Error during XML Parser Sample building.
I tried to build your sample for XML Parser for C++ v.2 for Solaris.
I had some errors :
c++ -o DOMSample -I../include DOMSample.cpp -L../lib -lxml8 -lcore8 -lnls8 -lcore8 -lnls8 -lcore8 -lnsl -lsocket
Undefined first referenced
symbol in file
Node::getFirstChild void) /var/tmp/ccxhDPf2.o
Node::getValue(void) /var/tmp/ccxhDPf2.o
Node::hasChildNodes(void) /var/tmp/ccxhDPf2.o
Node::getChildNode(unsigned int) /var/tmp/ccxhDPf2.o
Node::getName(void) /var/tmp/ccxhDPf2.o
Node::numChildNodes(void) /var/tmp/ccxhDPf2.o
Node::getType(void) /var/tmp/ccxhDPf2.o
ld: fatal: Symbol referencing errors. No output written to DOMSample
collect2: ld returned 1 exit status
make: *** [DOMSample] Error 1
I use Solaris version 2.7 and c++ (gcc)version 2.95.
I tried with the -G compilation option.(for comptability with other compilers.
It compiled but the executable doesnot run.
Please, could you give the right compilation options.
nullI think url in XML is creating problem here.
<FileLocator
url="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=PubMed&term=23-95-0[ECNO]+OR+"~"[MH]">MEDLINE</FileLocator>
Is there any way to parse this XML using <fx:XML/> ??
Thanks. -
Problem to compile sample code with C++ Parser on Unix
I just downloaded C++ parser and tried to compile the sample source code, but I got
the following error:
g++ -o DOMSample -I../include DOMSample.cpp -L../lib/xml8 -L../lib/core8 -L../lib/nls8 -L../lib/xmlc8 -L../lib/nsl -L../lib/socket
Undefined first referenced
symbol in file
Node::getFirstChild(void) /var/tmp/ccarlA8y.o
Node::getValue(void) /var/tmp/ccarlA8y.o
XMLParser::xmlterm(void) /var/tmp/ccarlA8y.o
XMLParser::getDocumentElement(void) /var/tmp/ccarlA8y.o
xmlinit__9XMLParserPUcPFPvPCUcUi_vPvP8xmlsaxcbT3T1 /var/tmp/ccarlA8y.o
Node::hasChildNodes(void) /var/tmp/ccarlA8y.o
Node::getChildNode(unsigned int) /var/tmp/ccarlA8y.o
Node::getName(void) /var/tmp/ccarlA8y.o
Node::numChildNodes(void) /var/tmp/ccarlA8y.o
XMLParser::xmlparse(unsigned char *, unsigned char *, unsigned int)/var/tmp/ccarlA8y.o
Node::getType(void) /var/tmp/ccarlA8y.o
ld: fatal: Symbol referencing errors. No output written to DOMSample
collect2: ld returned 1 exit status
make: *** [DOMSample] Error 1
Please help me out. Thanks,
nullI have the similar problem when I tried to compile sample code with C++ parser on WinNT4. I am using Micrsoft Visual Studio V6.0. I added the include file and lib file in the path.
Here are the error messages:
Linking...
FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall XMLParser::xmlterm(void)" (?xmlterm@XMLParser@@QAEXXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall DocumentType::getEntities(void)" (?getEntities@DocumentType@@QAEPAVNamedNodeMap@@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NamedNodeMap::item(unsigned int)" (?item@NamedNodeMap@@QAEPAVNode@@I@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall NamedNodeMap::getLength(void)" (?getLength@NamedNodeMap@@QAEIXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall DocumentType::getNotations(void)" (?getNotations@DocumentType@@QAEPAVNamedNodeMap@@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class DocumentType * __thiscall XMLParser::getDocType(void)" (?getDocType@XMLParser@@QAEPAVDocumentType@@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall XMLParser::xmlparse(unsigned char *,unsigned char *,unsigned int)" (?xmlparse@XMLParser@@QAEIPAE0I@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall XMLParser::xmlclean(void)" (?xmlclean@XMLParser@@QAEXXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::replaceData(unsigned long,unsigned long,unsigned char *)" (?replaceData@CharacterData@@QAEXKKPAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::deleteData(unsigned long,unsigned long)" (?deleteData@CharacterData@@QAEXKK@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::insertData(unsigned long,unsigned char *)" (?insertData@CharacterData@@QAEXKPAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::appendData(unsigned char *)" (?appendData@CharacterData@@QAEXPAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall CharacterData::substringData(unsigned long,unsigned long)" (?substringData@CharacterData@@QAEPAEKK@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall CharacterData::getLength(void)" (?getLength@CharacterData@@QAEIXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::setData(unsigned char *)" (?setData@CharacterData@@QAEXPAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall CharacterData::getData(void)" (?getData@CharacterData@@QAEPAEXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Text::splitText(unsigned long)" (?splitText@Text@@QAEPAVNode@@K@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::cloneNode(int)" (?cloneNode@Node@@QAEPAV1@H@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NamedNodeMap::removeNamedItem(unsigned char *)" (?removeNamedItem@NamedNodeMap@@QAEPAVNode@@PAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall NamedNodeMap::setNamedItem(class Node *,class Node * *)" (?setNamedItem@NamedNodeMap@@QAEHPAVNode@@PAPAV2@@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall Node::getAttributes(void)" (?getAttributes@Node@@QAEPAVNamedNodeMap@@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::removeAttributeNode(class Attr *)" (?removeAttributeNode@Element@@QAEPAVAttr@@PAV2@@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::setAttribute(unsigned char *,unsigned char *)" (?setAttribute@Element@@QAEPAVAttr@@PAE0@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Element::removeAttribute(unsigned char *)" (?removeAttribute@Element@@QAEXPAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::getAttributeNode(unsigned char *)" (?getAttributeNode@Element@@QAEPAVAttr@@PAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Attr::setValue(unsigned char *)" (?setValue@Attr@@QAEXPAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Element::setAttributeNode(class Attr *,class Attr * *)" (?setAttributeNode@Element@@QAEHPAVAttr@@PAPAV2@@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Document::createAttribute(unsigned char *,unsigned char *)" (?createAttribute@Document@@QAEPAVAttr@@PAE0@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class DocumentFragment * __thiscall Document::createDocumentFragment(void)" (?createDocumentFragment@Document@@QAEPAVDocumentFragment@@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Element::normalize(void)" (?normalize@Element@@QAEXXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::removeChild(void)" (?removeChild@Node@@QAEPAV1@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::replaceChild(class Node *)" (?replaceChild@Node@@QAEPAV1@PAV1@@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall Node::getOwnerDocument(void)" (?getOwnerDocument@Node@@QAEPAVDocument@@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getParentNode(void)" (?getParentNode@Node@@QAEPAV1@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NodeList::item(unsigned int)" (?item@NodeList@@QAEPAVNode@@I@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall NodeList::getLength(void)" (?getLength@NodeList@@QAEIXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class NodeList * __thiscall Document::getElementsByTagName(class Element *,unsigned char *)" (?getElementsByTagName@Document@@QAEPAVNodeList@@PAVElement@@PAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Node::setValue(unsigned char *)" (?setValue@Node@@QAEXPAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getPreviousSibling(void)" (?getPreviousSibling@Node@@QAEPAV1@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getLastChild(void)" (?getLastChild@Node@@QAEPAV1@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getNextSibling(void)" (?getNextSibling@Node@@QAEPAV1@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getFirstChild(void)" (?getFirstChild@Node@@QAEPAV1@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::insertBefore(class Node *,class Node *)" (?insertBefore@Node@@QAEPAV1@PAV1@0@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class EntityReference * __thiscall Document::createEntityReference(unsigned char *)" (?createEntityReference@Document@@QAEPAVEntityReference@@PAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class CDATASection * __thiscall Document::createCDATASection(unsigned char *)" (?createCDATASection@Document@@QAEPAVCDATASection@@PAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class ProcessingInstruction * __thiscall Document::createProcessingInstruction(unsigned char *,unsigned char *)" (?createProcessingInstruction@Document@@QAEPAVProcessingInstruction@@PA
E0@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Comment * __thiscall Document::createComment(unsigned char *)" (?createComment@Document@@QAEPAVComment@@PAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Text * __thiscall Document::createTextNode(unsigned char *)" (?createTextNode@Document@@QAEPAVText@@PAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Element * __thiscall XMLParser::getDocumentElement(void)" (?getDocumentElement@XMLParser@@QAEPAVElement@@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::appendChild(class Node *)" (?appendChild@Node@@QAEPAV1@PAV1@@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Element * __thiscall Document::createElement(unsigned char *)" (?createElement@Document@@QAEPAVElement@@PAE@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall XMLParser::getDocument(void)" (?getDocument@XMLParser@@QAEPAVDocument@@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall XMLParser::createDocument(void)" (?createDocument@XMLParser@@QAEPAVDocument@@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall XMLParser::xmlinit(unsigned char *,void (__cdecl*)(void *,unsigned char const *,unsigned int),void *,struct xmlsaxcb *,void *,unsigned char *)" (?xmlinit@XMLPar
ser@@QAEIPAEP6AXPAXPBEI@Z1PAUxmlsaxcb@@10@Z)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall Node::numChildNodes(void)" (?numChildNodes@Node@@QAEIXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: class NodeList * __thiscall Node::getChildNodes(void)" (?getChildNodes@Node@@QAEPAVNodeList@@XZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Node::hasChildNodes(void)" (?hasChildNodes@Node@@QAEHXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Attr::getValue(void)" (?getValue@Attr@@QAEPAEXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Attr::getSpecified(void)" (?getSpecified@Attr@@QAEHXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Attr::getName(void)" (?getName@Attr@@QAEPAEXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Node::getValue(void)" (?getValue@Node@@QAEPAEXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Node::getName(void)" (?getName@Node@@QAEPAEXZ)
FullDOM.obj : error LNK2001: unresolved external symbol "public: short __thiscall Node::getType(void)" (?getType@Node@@QAEFXZ)
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/orafulldom.exe : fatal error LNK1120: 64 unresolved externals
Error executing link.exe.
orafulldom.exe - 65 error(s), 0 warning(s)
null -
XDK for PL/SQL sample errors
Hi,
I'm trying to run the domsample file and am getting the following errors. Can anyone tell me why? This is an Oracle 8i db Release 8.1.7.0.0
SQL> execute domsample('C:\XML\xdk\demo\plsql\parser', 'family.xml', 'errors.txt');
BEGIN domsample('C:\XML\xdk\demo\plsql\parser', 'family.xml', 'errors.txt'); END;
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.SecurityException: relative pathnames are not
allowed(C:\XML\xdk\demo\plsql\parser)
ORA-06512: at "SYS.XMLPARSERCOVER", line 0
ORA-06512: at "SYS.XMLPARSER", line 154
ORA-06512: at "NSWEBDEVE.DOMSAMPLE", line 77
ORA-06512: at line 1
Thanks,
NatalieSounds 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 -
Error while executing Sample XML Procedures..
Hi,
I was trying to execute DOMSAMPLE procedure from Oracle XML Developers guide to parse a xml file.
domsample('C:\xml','family.xml','family.err');
I am getting the following error message.
ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException: relative pathnames are not allowed(C:\xml)
ORA-06512: at "SYS.XMLPARSERCOVER", line 0
ORA-06512: at "SYS.XMLPARSER", line 144
I have javauserpriv, javasyspriv roles.
I am using Oracle 8.1.7.
Please suggest me the solution.
Thanks,
V.J.Are you running the database on Windows NT/2000? => try "c:/xml". If you are running the database on UNIX => "c:..." is not allowed, try something like "/tmp"
null -
Java Parser 2 DOMSample not working properly
Hi
I downloaded the parser (v2) and am running the DOMSample.java
with the sample file empl.xml as the input. The program
successfully finds the tree and writes out the nodes correctly,
but it never finds the node values (I made sure that there is a
call to getNodeValue()). For example, The following
XML file:
<?xml version = "1.0"?>
<!DOCTYPE parent [
<!ELEMENT parent (child)>
<!ELEMENT child (#PCDATA)>
]>
<parent>
<child>Murthy</child>
</parent>
The getNodeValue() always returns null, even though the <child>
tag has a value.
What am I missing?
Thanks in advance
Murthy.
nullYou have to get the TEXT children of an element and then use the
getNodeValue() method on the text nodes.
Oracle XML Team
James Lee (guest) wrote:
: How do u do that? when i tried to pass it into a text node, the
: runtime error says that there is a classcastexception.
: James
: Oracle XML Team wrote:
: : As per the W3C DOM spec, getNodeValue() of an element is
: always
: : null. You need to pass it the text node to get the actual
text.
: : Oracle XML Team
: : http://technet.oracle.com
: : Oracle Technology Network
: : Murthy Jarugumilli (guest) wrote:
: : : Hi
: : : I downloaded the parser (v2) and am running the
: DOMSample.java
: : : with the sample file empl.xml as the input. The program
: : : successfully finds the tree and writes out the nodes
: : correctly,
: : : but it never finds the node values (I made sure that there
: is
: : a
: : : call to getNodeValue()). For example, The following
: : : XML file:
: : : <?xml version = "1.0"?>
: : : <!DOCTYPE parent [
: : : <!ELEMENT parent (child)>
: : : <!ELEMENT child (#PCDATA)>
: : : ]>
: : : <parent>
: : : <child>Murthy</child>
: : : </parent>
: : : The getNodeValue() always returns null, even though the
: : <child>
: : : tag has a value.
: : : What am I missing?
: : : Thanks in advance
: : : Murthy.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null -
XML PL/SQL Parser Demo Error ORA-29516
I'm trying to get the XML Plsql demo to work on the following
system:
Sun Solaris 8
Oracle 8.1.7.0.0 64 bit
using the $ORACLE_HOME/xdk/plsql/demo files
I created an oracle user "xmldba" , granted javauserpriv to
xmldba, granted javasyspriv to xmldba. I have run
$ORACLE_HOME/xdk/plsql/parser/bin/load.sql. Then I try the
demo -
oracle8$ sqlplus xmldba/xmldba
SQL*Plus: Release 8.1.7.0.0 - Production on Fri Nov 16 11:07:44
2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - 64bit Production
With the Partitioning option
JServer Release 8.1.7.0.0 - 64bit Production
SQL> @domsample
Procedure created.
No errors.
SQL> execute domsample
('/home/oracle8/app/oracle/product/8.1.7/xdk/plsql/demo','family.
xml','errors.txt');
BEGIN domsample
('/home/oracle8/app/oracle/product/8.1.7/xdk/plsql/demo','family.
xml','errors.txt'); END;
ERROR at line 1:
ORA-29516: Aurora assertion failure: Assertion failure at
joncomp.c:127
jtc_active_clint_init_ncomp_slots(oracle/xml/parser/v2/DTD, 0)
returned 0
ORA-06512: at "XMLDBA.XMLPARSERCOVER", line 0
ORA-06512: at "XMLDBA.XMLPARSER", line 57
ORA-06512: at "XMLDBA.DOMSAMPLE", line 72
ORA-06512: at line 1
Anyone have any ideas on what I might be missing or what could
cause the problem?
Thanks,
RheaThese errors were due to not running initjvm etc. I have resolved all the jvm sqlj related problems now .
I am still seeing resolver errors . Opened a new thread for those errors.
Please respond on those
Thanks
null -
XML Parser Error in SQL*Plus
I'm getting this error when I try to run the DOMSample:
SQL> exec domsample('d:\utlfiledir', 'family.xml', 'errs.out' )
BEGIN domsample('d:\utlfiledir', 'family.xml', 'errs.out' ); END;
ERROR at line 1:
ORA-29540: class oracle/xml/parser/plsql/XMLParserCover does not exist
ORA-06512: at "SCOTT.XMLPARSERCOVER", line 0
ORA-06512: at "SCOTT.XMLPARSER", line 57
ORA-06512: at "SCOTT.DOMSAMPLE", line 72
ORA-06512: at line 1
I get the same thing with the xslsample. Any ideas?
Thanks,
Lewis
nullOk. I've narrowed this down some. The package XMLPARSERCOVER is invalid. I recompile it, and XMLPARSER is invalidated, I rocompile that, my dom and xsl sample procedures are invalidated. Allrighty, I recompile them. Using a select from user objects, I know that now everything is valid. I run my sample and it errors out with the first message again. Guess what, XMLPARSERCOVER is now invalid. Any ideas about this?
Thanks,
Lewis
null -
I get the error above when doing the following
import oracle.xml.parser.v2.DOMParser;
public class testXMLI do not know how do you pass the JDK compiler.Typos in the transcription process. I was more interested in showing my approach rather than precise code (apologies).
Actual code below - less 2 methods I have not changed.
Andrew
=======================
import java.net.URL;
import org.w3c.dom.Node;
import org.w3c.dom.Element;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import org.w3c.dom.NamedNodeMap;
//import oracle.xml.parser.v2.DOMParser;
//import oracle.xml.parser.v2.XMLDocument;
import java.io.*;
import org.xml.sax.*;
import org.apache.xerces.parsers.DOMParser;
public class DOMSample
static public void main(String[] argv)
try
if (argv.length != 1)
// Must pass in the name of the XML file.
System.err.println("Usage: java DOMSample <xml file>");
System.exit(1);
// Get an instance of the parser
DOMParser parser = new DOMParser();
// Oracle's Way - gives an error "Error opening external DTD"
// Set various parser options: validation on,
// warnings shown, error stream set to stderr.
// parser.setErrorStream(System.err);
// parser.setValidationMode(DOMParser.DTD_VALIDATION); <-- deprecated ??
// parser.showWarnings(true);
// Parse the document
// System.out.println("Parsing XML document and do DTD Validation...");
// System.err.println("Parser version " + parser.getReleaseVersion());
// parser.parse(DemoUtil.createURL(argv[0]));
// My way - using Xerces - works, using an input source with Oracle way also fails
File file = new File ("c:\\temp2\\javFilterDat.xml");
InputSource is = new InputSource( new FileReader(file));
is.setSystemId("file:/c:"+ System.getProperty("file.separator") +
"temp2");
parser.parse(is);
// Obtain the document.
Document doc = parser.getDocument();
// Print document elements
System.out.print("The elements are: ");
printElements(doc);
// Print document element attributes
System.out.println("The attributes of each element are: ");
printElementAttributes(doc);
catch (Exception e)
System.out.println(e.toString()); -
XMLParser for PL/SQL - Error
I am using XML parser for PL/SQL in oracle 8.1.7 DB.
When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below.
SQL> exec domsample('/u01/usr/oracle/sso','family.xml','errors.txt');
BEGIN domsample('/u01/usr/oracle/sso','family.xml','errors.txt'); END;
ERROR at line 1:
ORA-29540: class oracle/xml/parser/plsql/XMLParserCover does not exist
ORA-06512: at "PACKMGR.XMLPARSERCOVER", line 0
ORA-06512: at "PACKMGR.XMLPARSER", line 57
ORA-06512: at "PACKMGR.DOMSAMPLE", line 72
ORA-06512: at line 1
What need to be done to rectify the above problem.
when i do the following validation check
SQL> select substr(dbms_java.longname(object_name),1,30) as class, status
2 from all_objects
3 where object_type = 'JAVA CLASS'
4 and object_name = dbms_java.shortname('oracle/xml/parser/v2/DOMParser');
from all_objects
ERROR at line 2:
ORA-29540: class oracle/aurora/rdbms/DbmsJava does not exist
I get the above error. Pls. AdviceThis should be that you haven't load the xmlparserv2.jar into the DB schema. You can load the java libs using loadjava command
-
ORA-20100: Error occurred while parsing:Error opening external DTD ( Asap)
Hi I'm using domsample example. And I have written the program. The xml file at the starting has this string"<!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">", from which I'm getting error -"ORA-20100: Error occurred while parsing: Error opening external DTD".
I'm new to xml could you please help me to solve this problem. I assume this is related to DTD for which I need to set base path. But I'm not sure how to do it? I'm getting this xml file through CLOB which I'm able to parse until an extent. where in between got this error.
Here is my partial code:
l_doc_id := rec_xml_data.id;
l_xml_parser := xmlparser.newParser;
xmlparser.setValidationMode(l_xml_parser, FALSE);
xmlparser.parseCLOB(l_xml_parser,rec_xml_data.l_xml_data);--PARSING THE CLOB WHICH CONTAINS XML FILE
l_xml_doc := xmlparser.getDocument(l_xml_parser);
xmlparser.freeParser(l_xml_parser);
l_nodelist := xmldom.getElementsByTagName(l_xml_doc, '*');
l_length := xmldom.getLength(l_nodelist);
-- loop through elements
FOR l_rec_xml in 0..l_length-1
LOOP
l_node := xmldom.item(l_nodelist, l_rec_xml);
-- dbms_output.put(xmldom.getNodeName(n) || ' ');
-- get the text node associated with the element node
l_nodename:=xmldom.getNodeName(l_node);
l_node := xmldom.getFirstChild(l_node);
IF (xmldom.isNull(l_node) = false) THEN
IF xmldom.getNodeType(l_node) = xmldom.TEXT_NODE THEN
IF l_nodename = 'purchase-order-number' THEN
l_po_num:=NULL;
l_po_num:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Purchaser Order Num : '||l_po_num);
END IF;
from here onwards I get the string values
Now I don't know where to set the DTD basepath or baseurl. I need it asap.
Regards,
Naveen.The version which I'm working on is 10.2.0.4.
XML File---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">
<MobileInventoryResponse>
<message>
<message-header>
<message-id>16244182</message-id>
<transaction-name>ship-advice</transaction-name>
<partner-name>cbeyond</partner-name>
<source-url>http://www.brightpoint.com</source-url>
<create-timestamp>20080826150709</create-timestamp>
<response-request>1</response-request>
</message-header>
<ship-advice>
<header>
<customer-id>297859</customer-id>
<shipment-information>
<ship-first-name>RA_13Aug_1</ship-first-name>
<ship-last-name>MIND</ship-last-name>
<ship-address1>test</ship-address1>
<ship-city>test</ship-city>
<ship-state>VA</ship-state>
<ship-post-code>22102-4931</ship-post-code>
<ship-country-code>US</ship-country-code>
<ship-phone1>0040726335068</ship-phone1>
<ship-email>[email protected]</ship-email>
<ship-via>FX01</ship-via>
<ship-request-date>20080826</ship-request-date>
<ship-request-warehouse>CBY1</ship-request-warehouse>
</shipment-information>
<purchase-order-information>
<purchase-order-number>380928</purchase-order-number>
<account-description />
<purchase-order-amount>0.0</purchase-order-amount>
<currency-code>USD</currency-code>
</purchase-order-information>
<order-header>
<customer-order-number>0002759</customer-order-number>
<customer-order-date>20080826</customer-order-date>
<order-sub-total>19.0</order-sub-total>
<order-discount>0.0</order-discount>
<order-tax1>0.0</order-tax1>
<order-tax2>0.0</order-tax2>
<order-tax3>0.0</order-tax3>
<order-shipment-charge>18.0</order-shipment-charge>
<order-total-net>0.0</order-total-net>
<order-status>Completed</order-status>
<order-type />
<brightpoint-order-number>35028788</brightpoint-order-number>
<warehouse-id>CBY1</warehouse-id>
<ship-date>20080826</ship-date>
</order-header>
</header>
<detail>
<line-item>
<line-no>1</line-no>
<item-code>SKU1</item-code>
<universal-product-code>0</universal-product-code>
<ship-quantity>1.0</ship-quantity>
<unit-of-measure>EA</unit-of-measure>
<serial-list>
<serial-numbers>
<esn>TIMI000013</esn>
</serial-numbers>
</serial-list>
<line-status />
<base-price>0.0</base-price>
<line-discount>0.0</line-discount>
<line-tax1>0.0</line-tax1>
<line-tax2>0.0</line-tax2>
<line-tax3>0.0</line-tax3>
<bill-of-lading>929406733828</bill-of-lading>
<scac>FX01</scac>
</line-item>
</detail>
</ship-advice>
<transactionInfo>
<eventID>16244182</eventID>
</transactionInfo>
</message>
</MobileInventoryResponse>
XML FILE END--------------------
MY PROGRAM IS AS BELOW---
get_eai_data_prc( x_ret_code OUT NUMBER
,p_debug_flag IN VARCHAR2
IS
--Local Variables
l_xml_parser xmlparser.Parser;
l_xml_doc xmldom.DOMDocument;
l_xml_data CLOB;
l_nodelist xmldom.DOMNodeList;
l_length NUMBER := 0;
l_num_cnt NUMBER := 0;
l_node xmldom.DOMNode;
l_docelem DBMS_XMLDOM.DOMElement; -- XML DOM element.
l_nodeValue VARCHAR2(30); -- Text value of the node.
l_nodename VARCHAR2(100);
l_po_num VARCHAR2(150);
l_account_desc VARCHAR2(150);
l_cust_ord VARCHAR2(150);
l_ship_date VARCHAR2(150);
l_item_code VARCHAR2(150);
l_ship_qty VARCHAR2(150);
l_esn VARCHAR2(150);
l_cust_channel_type VARCHAR2(150);
l_cust_grp_acct VARCHAR2(150);
l_max_doc_id NUMBER;
l_doc_id NUMBER;
l_market_id VARCHAR2(150);
l_record_id VARCHAR2(30);
TYPE l_esn_table IS TABLE OF VARCHAR2(30)
INDEX BY BINARY_INTEGER;
l_data l_esn_table;
--CURSOR TO GET XML DATA FROM EAI
CURSOR cur_xml_data(p_doc_id VARCHAR2)
IS
SELECT id
,document l_xml_data
FROM tds_xml_store_temp
WHERE id >= id ;
BEGIN
FOR rec_xml_data IN cur_xml_data(l_max_doc_id)
LOOP
l_doc_id := rec_xml_data.id;
l_xml_parser := xmlparser.newParser;
xmlparser.setValidationMode(l_xml_parser, FALSE);
xmlparser.parseCLOB(l_xml_parser,rec_xml_data.l_xml_data);
l_xml_doc := xmlparser.getDocument(l_xml_parser);
xmlparser.freeParser(l_xml_parser);
l_nodelist := xmldom.getElementsByTagName(l_xml_doc, '*');
l_length := xmldom.getLength(l_nodelist);
-- loop through elements
FOR l_rec_xml in 0..l_length-1
LOOP
l_node := xmldom.item(l_nodelist, l_rec_xml);
-- dbms_output.put(xmldom.getNodeName(n));
-- get the text node associated with the element node
l_nodename:=xmldom.getNodeName(l_node);
l_node := xmldom.getFirstChild(l_node);
IF (xmldom.isNull(l_node) = false) THEN
IF xmldom.getNodeType(l_node) = xmldom.TEXT_NODE THEN
IF l_nodename = 'purchase-order-number' THEN
l_po_num:=NULL;
l_po_num:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Purchaser Order Num : '||l_po_num);
END IF;--purchase-order-number
IF l_nodename = 'account-description' THEN
l_account_desc :=NULL;
l_account_desc := xmldom.getNodeValue(l_node);
END IF;
IF l_nodename = 'customer-channel-type' THEN
l_cust_channel_type:=NULL;
l_cust_channel_type:= xmldom.getNodeValue(l_node);
END IF;
IF l_nodename = 'customer-group-account' THEN
l_cust_grp_acct := NULL;
l_cust_grp_acct := xmldom.getNodeValue(l_node);
END IF;
IF l_nodename = 'customer-order-number' THEN
l_cust_ord:=NULL;
l_cust_ord:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Customer Order NUm : '||l_cust_ord);
END IF;--customer-order-number
IF l_nodename = 'ship-date' THEN
l_ship_date:=NULL;
l_ship_date:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Ship Date : '||to_date(l_ship_date,'YYYY-mm-dd'));
END IF;--ship-date
IF l_nodename = 'item-code' THEN
l_item_code:=NULL;
l_item_code:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Item Code : '||l_item_code);
END IF;--item-code
IF l_nodename = 'esn' THEN
l_esn:=NULL;
l_num_cnt := l_num_cnt + 1;
l_esn:=xmldom.getNodeValue(l_node);
l_data(l_num_cnt) := l_esn;
-- dbms_output.put_line('Serial Num : '||l_esn);
END IF;--esn
IF l_nodename = 'market-id' THEN
l_market_id := NULL;
l_market_id := xmldom.getNodeValue(l_node);
END IF;
IF l_nodename = 'ship-quantity' THEN
l_ship_qty:=NULL;
l_ship_qty:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Ship Quantity : '||l_ship_qty);
END IF;--ship-quantity
END IF;--xmldom.TEXT_NODE
END IF;
END LOOP;--l_rec_xml
FOR j in l_data.first..l_data.last
LOOP
INSERT INTO cbey_shipment_int_stg( purchase_order_number
,account_description
,customer_order_number
,ship_date
,item_code
,ship_quantity
,esn
,customer_channel_type
,customer_group_account
,market_id
,eai_xml_doc_id
,record_status
,record_id
VALUES
( l_po_num
,l_account_desc
,l_cust_ord
,to_date(l_ship_date,'YYYY-mm-dd')
,l_item_code
,l_ship_qty
,l_data(j)
,l_cust_channel_type
,l_cust_grp_acct
,l_market_id
,l_max_doc_id
,'NEW'
,CBEY_RECORD_ID_SEQ_S.nextval
END LOOP;--j
UPDATE cbey_interface_run_log
SET request_id = l_conc_req_id
,lastrun_date = SYSDATE
,doc_id = rec_xml_data.id
WHERE program_id = 'SHIPMENT_INT'
AND doc_id =l_max_doc_id;
l_data.delete;
l_num_cnt :=0;
END LOOP; --rec_xml_data
COMMIT;
END of the Procedure--------------------------
Now if I load the xml file without the this :- <!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">
it works well. But it gives error when this particular thing is there.
Regards,
Naveen
Edited by: MAN on Oct 17, 2008 7:28 AM -
I'm learning xml. I downloaded the oracle xml parser file which
includes a sample called DOMSample.java. Whan I run the file I
get a list of errors stating that the getTagName() and
getAttributes()... are not found in the various classes. Why?
Help?
nullIt looks like you did not set your CLASSPATH correctly to
include xmlparser.jar. Please take a look at the readme again.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
Kimberly M. (guest) wrote:
: I'm learning xml. I downloaded the oracle xml parser file
which
: includes a sample called DOMSample.java. Whan I run the file
I
: get a list of errors stating that the getTagName() and
: getAttributes()... are not found in the various classes. Why?
: Help?
null -
Error java.lang.OutOfMemoryError using XML DOM parser
Hi everyone,
We are using Oracle 8.1.7 on Windows NT and trying to load XML into Oracle using the DOM API through PL/SQL. This is the method provided in the ORACLE_HOME\ora817\xdk\plsql\demo\domsample.sql which uses the XMLPARSER and XMLDOM PL/SQL packages.
Now this works fine with small files (not sure about the exact file size). But for big files, it gives an error,
ORA-29554: unhandled Java out of memory condition
ORA-29532: Java call terminated by uncaught Java exception: java.lang.OutOfMemoryError
We have increased the JAVA_POOL_SIZE from the default 20MB to 50MB. Not sure whether increasing this value will solve our problem and whether it is advisable to increase it to a higher value. Can anyone help, please ???
Thanks.Steve,
Thanks for the response. Now we are getting different error. In one of the questions earlier posted, someone (I think Jon) noted that following error (the one we are getting) can be resolved by using JDK 1.1.8, is there any specific JDK pre-req for XML Parser 0.9.8.6?
Is it possible, to enhance release notes for 0.9.8.6 to include
a) Tips mentioned in your mail (i.e. putting oracle xml parser 2.0.x before Apache/OJSP xmlparserv2.jar
b) Dependencies on specific version of JDK
Once again thanks for the responding to the mail and will appreciate a help to resolve this current error.
Thanks,
Shree
Actual error :
java.lang.IllegalArgumentException: sun.io.CharToB
yteUTF-8
at sun.io.CharToByteConverter.getConverterClass(Compiled Code)
at sun.io.CharToByteConverter.getConverter(Compiled Code)
at java.io.OutputStreamWriter.<init>(Compiled Code)
at org.apache.jserv.JServConnection.getWriter(Compiled Code)
at oracle.xml.xsql.XSQLServletPageRequest.setupWriter(Compiled Code)
at oracle.xml.xsql.XSQLServletPageRequest.setContentType(Compiled Code)
at oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code)
at oracle.xml.xsql.XSQLServlet.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.jserv.JServConnection.processRequest(Compiled Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
null -
Error in starting Adobe Bridge in Photoshop CS2
I've just installed Photoshop CS2, however upon opening Adobe Bridge this error message appears " The application has failed to start because libagluc28.dll was not found. Reinstalling to application may fix the problem"
I have reinstalled and click repair but to no avail
I followed Adobe Support Knowledgebase solution and run CMD and this appears:
c:Documents and Settings/Jesus M Ferraris>
then i entered the command
cacls c:\windows\installer /T /E /C /G administrators:F
but an error message appears - 'cacls' is not recognized as an internal or external command, operable program or bathc file
I also entered the next command
cacls "c:\documents and setting\all users" /Y /E /C /G administrators:F
still the same error as above appears, Please help, have I miss something or was my procedure correct...
P4, 512ram, WXP 80gHDVery useful.
Good Luck.
My
Si
tes -
Windows Vista: Ipod Error Message, no longer read by PCs
Hello,
I have a 5th generation black ipod video with 30GB of memory.
The other day I hooked it up to my laptop (Toshiba, 4 months old) that it's been functioning on with no problems whatsoever. This weird error message flashed twice about it not being able to sync because of some software problem.
Eversince then, the only thing I can charge my ipod on is the family treadmill in the basement (~_~) as no other computer in the house recognizes it. I can't even charge it through the wall sockets, either.
I have changed the ipod cord, still no luck. I've also reset the device about 3 or 4 times and uninstalled, restarted the laptop then reinstalled itunes. I would like to reset it back to factory settings but that's impossible as computers/laptops don't pick it up. I live very far from a Mac store...
What's a girl to do? I can't live without my Busta Rhymes and Wu-Tang Clan!
Any advice would be greatly appreciated! Thanks!you have to update Vista go to this site and up-date http://windowsupdate.microsoft.com
Maybe you are looking for
-
IMac crashing after 10.8.2 update
Since I updated to 10.8.2 on my iMac if I leave it on and it slees it is crashing while sleeping. It restarts and says when I login that the system had a error This is the logs from the last crash anyone have any ideas or have this problem? Mon Oct
-
Add cost center and G/L account to Service Master
Hi Gurus, I want to assign a cost center and a G/L account to a service in service master anyone knows if this is possible. Doing this the introduction of this data in the purchase order, p.e., is not necessary. Thanks LR
-
How at send a Word document as an email attachment from an ABAP program?
Hi all, i got request to develop background run program which check which staff is due CONFIRM and able to attach confirmation form (Microsoft Word file) to HR and CC staff manager as recipients. I try almost all relevant FM but still face problem be
-
Soft/Weak References: rule of thumbs?
After reading <a target="extern" href="http://java.sun.com/developer/technicalArticles/ALT/RefObj/index.html">Reference Objects and Garbage Collection</a> i browsed my code and replaced my listener containers with versions that store WeakReference ob
-
How do I set up skype to open when my mac powers up?
How do I set up skype to open when mac book air powers up?