Howto force Oracle XML parser not to expand entity references?
Hi,
Is it possible to force Oracle XML parser (Java) not to expand entity references, so that they appear in DOM tree as separated nodes after parsing XML?
Example:
for following XML
<tag>abcäxyz</tag>
I get:
Element: "tag"
|-Text: "abcdxyz"
but I would like to get:
Element: "tag"
|-Text: "abc"
|
|-EntityReference: "auml"
|
|-Text: "xyz"
I've already tried to use JAXP api (setExpandEntityReferences method in java.xml.parsers.DocumentBuilderFactory), but it doesn't seem to work.
I'm using parser from XDK Java v9.2.0.2.0 Production.
Thx,
James
This is requested code sample:
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setExpandEntityReferences(false);
System.out.println("isExpandEntityReferences = "+dbf.isExpandEntityReferences());
DocumentBuilder db = dbf.newDocumentBuilder();
Document d = db.parse("file://c:/test.xml");
Element e = d.getDocumentElement();
System.out.println("documentElement"+ e.getTagName() + " nodeType=" +e.getNodeType());
System.out.println("ChildNodes:");
NodeList nodeList = e.getChildNodes();
for(int i=0; i<nodeList.getLength();i++) {
System.out.println(i+" value=\""+nodeList.item(i).getNodeValue()+"\" nodeType="+nodeList.item(i).getNodeType());
Content of test.xml:
<!DOCTYPE test SYSTEM "test.dtd">
<test>abcäxyz</test>
Content of test.dtd:
<!ELEMENT test (#PCDATA)>
<!ENTITY auml "ä">
When you run it you will get the following output:
isExpandEntityReferences = true
documentElementtest nodeType=1
ChildNodes:
0 value="abcdxyz" nodeType=3
which means that EntityReference has been expanded.
As you can see in the output the isExpandEntityReferences method returns "true", even though I set it to false in code!
Does it mean that Oracle parser simple doesn't support this feature???
Thx,
James
Similar Messages
-
Hi All,
Can anyone tell me what could be the reason for the following parsing exception?
oracle.xml.parser.v2.XMLParseException: Missing entity 'nsim'.
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at org.xml.sax.SAXException.<init>(SAXException.java:45)
at org.xml.sax.SAXParseException.<init>(SAXParseException.java:116)
at oracle.xml.parser.v2.XMLParseException.<init>(XMLParseException.java:62)
at oracle.xml.parser.v2.XMLError.flushErrors(Compiled Code)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(Compiled Code)
at oracle.xml.parser.v2.XMLParser.parse(Compiled Code)
at com.elsevier.util.xml.XMLHelper.parse(Compiled Code)
at com.elsevier.util.xml.XMLHelper.parse(Compiled Code)
at com.elsevier.util.xml.XMLHelper.parse(Compiled Code)
at com.elsevier.cds.xml.XMLDocManagement.PublicationInformation(Compiled Code)
at com.elsevier.cds.promis.FetchPublicationXML.getPublicationXML(Compiled Code)
at com.elsevier.cds.promis.NewPromisData.processPublications(Compiled Code)
at com.elsevier.cds.promis.NewPromisData.<init>(NewPromisData.java:152)
at com.elsevier.cds.promis.NewPromisData.main(NewPromisData.java:451)
XML parse error in file com.elsevier.cds.promis:/PubID=623277
at line 382, character 40
Missing entity 'nsim'.
Thanks,
RaghuIs an Entity used in the xml document and not defined in the document?
-
Hi all,
When I am trying to call an external java function in XSLT it is throwing the following exception .
Exception in thread "main" oracle.xml.parser.v2.XPathException: Extension functi
on error: Method not found 'getValue'
at oracle.xml.parser.v2.XSLExtFunctions.getMethod(XSLExtFunctions.java:2
85)
at oracle.xml.parser.v2.XPathExtFunction.evaluateMethod(XPathExtFunction
.java:178)
at oracle.xml.parser.v2.XPathExtFunction.getValue(XPathExtFunction.java:
137)
at oracle.xml.parser.v2.XSLExprBase.getStringValue(XSLExprBase.java:369)
at oracle.xml.parser.v2.XSLValueOf.processAction(XSLValueOf.java:99)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:369)
at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.
java:176)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:369)
at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.
java:176)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:369)
at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:200)
at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplate
s.java:214)
at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplate
s.java:120)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:369)
at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:200)
at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:474)
at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:451)
at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:248)
at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:138)
at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:210)
at Transformer.main(Transformer.java:25)
My small code is of XSL is:
<xsl:stylesheet version = '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:XYZ="http://www.oracle.com/XSL/Transform/java/pack/XYZ">
<xsl:template match="PatientRecord">
<patientKey>
<LastName>
<xsl:value-of select="XYZ:getValue()"/>
</LastName>
<DOB>
<xsl:value-of select="DOB"/>
</DOB>
</patientKey>
</xsl:template>
</xsl:stylesheet>
My small code of java is :
package pack;
public class XYZ{
public String getValue(){
return "Hello World";
My small piece of XML is:
<PatientRecord>
<RecordType>P</RecordType>
<FirstName>JAVA</FirstName>
<LastName>DEVELOPER</LastName>
<SSN>737747777</SSN>
<DOB>19740310</DOB>
<DoctorID>20874</DoctorID>
<VisitReason>
Programming stress disorders
</VisitReason>
</PatientRecord>
I added the xmlparserv2.jar and xyz.jar file to classpath and XYZ.class file is in xyz.jar file .
Could any body help me if they have encounter or know the answer.
Thanks,
ReddyHi Vetsrini, Thank you for your response.
1. I checked the values in the xml and found no nulls. I see all 0 or non-zero numbers.
2. Following MetaLink Doc ID 362496.1, I find:
- PDF Producer: PDF file properties shows PDF Producer "Oracle XML Publisher 5.6.3"
- AD_BUGS SQL: The SQL results show that I have the 5.6.3 patch, but the SQL in the Doc only includes patch numbers up to 5.6.3. I'm not sure how I can find out the patch numbers of more recent patches, to see if i have those.
- File version of the MetaInfo.class: $Header MetaInfo.java 115.28 2006/08/17 01:24:59 bgkim noship $
What is the latest XDO patch? I can't find anything newer than what I have in MetaLink, but I probably am missing something... -
Compiler error "oracle.xml.parser.v2.XMLElement" not found in class com.oracle.demos......?
I am currently testing a simple sample application with a java code similar to the one shown at
the bottom of this post.
However during deployment/compilation the compiler gives an error:
Error(26,23): XMLElement not found in class com.oracle.demos.orderbooking.ApproveImpl
Additionally similar other errors appear:
Error(23,66): JAXBException not found in class com.oracle.demos.orderbooking.ObjectFactory
Error(51,58): UnmarshalException not found in class com.oracle.demos.orderbooking.ObjectFactory
Error(9,92): Element not found in interface com.oracle.demos.orderbooking.Approve
What's wrong?
It seems to me that I have to add some (more) *.jar files/libraries to the project?
Which *.jars and where should I add them in JDeveloper?
source code:
package com.oracle.demos.orderbooking;
public class ApproveImpl extends com.oracle.demos.orderbooking.ApproveTypeImpl implements com.oracle.demos.orderbooking.Approve
public ApproveImpl(oracle.xml.parser.v2.XMLElement node)
super(node);
}Hai James this the response I am getting can you please tell what should I write inside ora:getNodeValue() to get the value of node <genReturnText>
The drag and dropping the variable name is not working, I have to write the path manually but I dont know how.
<ns1:getRoutingAndFrameJumpersResponse xmlns:ns1="com.NetworkInstallations">
-<com.GetRoutingAndFrameJumpersOutput>
<destination>
SW
</destination>
<e2EData>
busProcOriginator
</e2EData>
<genReturnCode>
40777
</genReturnCode>
<genReturnText>
EMW_Get_Routing_And_FrameJumpers_Succeeded
</genReturnText>
<supplCode>
ISY002
</supplCode>
<supplText>
Transaction successfully completed.
</supplText>
<severityCode>
S
</severityCode>
<retriable>
false
</retriable>
</com.GetRoutingAndFrameJumpersOutput>
</ns1:getRoutingAndFrameJumpersResponse> -
I'm using the oracle.xml.parser.v2. The files (xml, xsl) are:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="king.xsl" ?>
<ROWSET>
<ROW>
<EMPNO>7839</EMPNO>
<ENAME>KING</ENAME>
</ROW>
</ROWSET>
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<INVITATION>
<TO>
<xsl:value-of select="ROWSET/ROW/ENAME"/>
<xsl:text> &; FAMILY </xsl:text>
</TO>
</INVITATION>
</xsl:template>
</xsl:stylesheet>
The error is: oracle.xml.parser.v2.XSLException: XSL-1009: Attribute 'xsl:version' not found in 'ROWSET'.
The files are well formed (tested with XML Spy 3.5). Can you see what's the problem? or is it a bug with the parser?
help,
Alberto
nullI encountered the same problem. When I change the order of the XML and XSL files, i am the same problem.
Perhaps it's the environment AIX 4.3.3, JDK IBM 1.2.2 with JIT disable (because when JIT is enable some other problems become)??
How can i resolve this bug ?
Thanks.
null -
ADM-75024 [oracle.xml.parser] [904 vs. 906]
Hi!,
After running in the following exception in a 904 appserv (oracle.xml.parser.v2.XMLDOMException: Implementation does not support the object requested) we decided to use the 906 parser frrom the xdk. But now we are having a big problem: now there will no application will have been deployed/undeployed/redeployed interupted by an ADM-75024 exception. When restoring the original 904 parser it does work. but this isn't usuable!
We tried following parameters, but it doesn't work:
JVM parameters:
-server -Djava.security.policy=/opt/oracle/oracleas/j2ee/app/config/java2.policy
-Djava.awt.headless=false -Xms256m -Xmx1024m
-Dhttp.proxySet=true -Dhttp.proxyHost=proxy -Dhttp.proxyPort=80
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
-Djavax.xml.parsers.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
but these parameters doesnt' have any influence because libraries will be loaded as follows:
1. system
2. container
3. application
We read many documents --> There exist following BUG numbers: 3565902, 4353119, 3654742, 3136577, 2591746, 3557552
3565902 is nearest; The effect is always the same but different conditions. The suggestions are different. But one thing can be seen: that exception only occurs within 904 oracle xml parser!! With 3565902 the 906 switch solution is preferred.
As seen under http://www.oracle.com/technology/tech/java/oc4j/904/collateral/OC4J-FAQ-904.html (25)
the switch is no supported. Under http://www.oracle.com/technology/tech/java/oc4j/1013/howtos/how-to-swapxmlparser/doc/readme.html the switching capabilites will be brougth with 10.1.3. But i can't use 10.1.3...however I need a solution for 904.
1st: Is there any workaround for the problem mentioned above (oracle.xml.parser.v2.XMLDOMException)
2nd: why the error while deployment/undeployment/redeployment occurs?
thanks, merci, grazie ..en avance
Andreas
ps: i can provide log files if needed. -
I am trying to output a customer list containing customer number and customer name using 11i ( 11.5.10 CU2) with latest XML publisher patches on.
How do I debug the following error in OPP log:
[UNEXPECTED] [72156:RT1088889] oracle.xml.parser.v2.XMLParseException: Expected ';'.
The XML ouput file is generated fine but get the following error in the log file.
| Starting concurrent program execution...
+-----------------------------
Spawned Process 13471
Executing request completion options...
------------- 1) PUBLISH -------------
Beginning post-processing of request 1088898 on node O11IDEV at 03-APR-2006 13:57:35.
Post-processing of request 1088898 failed at 03-APR-2006 13:57:37 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
------------- 2) PRINT -------------
Finished executing request completion options.
The OPP service log messge is :
[4/3/06 6:02:53 AM] [main] Starting GSF service with concurrent process id = 72156.
[4/3/06 6:02:53 AM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
[4/3/06 6:02:53 AM] [Thread-12] Service thread starting up.
[4/3/06 6:02:53 AM] [Thread-13] Service thread starting up.
[4/3/06 1:16:08 PM] [OPPServiceThread0] Post-processing request 1088889.
[4/3/06 1:16:08 PM] [72156:RT1088889] Executing post-processing actions for request 1088889.
[4/3/06 1:16:09 PM] [72156:RT1088889] Starting XML Publisher post-processing action.
[4/3/06 1:16:09 PM] [72156:RT1088889]
Template code: COCXDOTEST
Template app: COC
Language: en
Territory: US
Output type: PDF
[040306_011610131][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
[040306_011610132][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
[040306_011610133][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
[040306_011610134][][EXCEPTION] [DEBUG] [USER_ID]:[-1]
[040306_011610134][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
[040306_011610135][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[AMERICA]
[040306_011610135][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[-1]
[040306_011610136][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
[040306_011610136][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
[040306_011610137][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
[040306_011610138][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[040306_011610138][][EXCEPTION] [DEBUG] [RESP_ID]:[-1]
[040306_011610139][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
[040306_011610139][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
[040306_011610140][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
[040306_011610140][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
[040306_011610140][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
[040306_011610141][][EXCEPTION] [DEBUG] [LOGIN_ID]:[-1]
[040306_011610141][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RR]
[040306_011610142][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS_LIST=(ADDRESS
=(PROTOCOL=tcp)(HOST=O11IDEV.concentra.com)(PORT=9200)))(CONNECT_DATA=(SID=DEV1)))]
[040306_011610143][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
[040306_011610144][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[US7ASCII]
[040306_011610144][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
[040306_011610145][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
[040306_011610145][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
[040306_011610147][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
[040306_011610148][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
[040306_011610149][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[pa2.0 pa1.2 pa1.1 pa1.0]
[040306_011610149][][EXCEPTION] [DEBUG] [java.version]:[1.3.1.09]
[040306_011610150][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.X11GraphicsEnvironment]
[040306_011610150][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
[040306_011610151][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeBig]
[040306_011610151][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[oracle/app/dev1app/dev1appl/fnd/11.5.0/secure/o11idev_dev1.dbc]
[040306_011610152][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
[040306_011610153][][EXCEPTION] [DEBUG] [user.home]:[u02/app/dev1app]
[040306_011610153][][EXCEPTION] [DEBUG] [java.specification.version]:[1.3]
[040306_011610154][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
[040306_011610154][][EXCEPTION] [DEBUG] [user.dir]:[u02/app/dev1app/dev1appl/dev1csf/log/DEV1_o11idev]
[040306_011610155][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[var/tmp/]
[040306_011610155][][EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]:[true]
[040306_011610155][][EXCEPTION] [DEBUG] [java.ext.dirs]:[opt/java1.3/jre/lib/ext]
[040306_011610156][][EXCEPTION] [DEBUG] [dbcfile]:[oracle/app/dev1app/dev1appl/fnd/11.5.0/secure/o11idev_dev1.dbc]
[040306_011610156][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[040306_011610157][][EXCEPTION] [DEBUG] [java.awt.fonts]:[]
[040306_011610157][][EXCEPTION] [DEBUG] [java.class.version]:[47.0]
[040306_011610158][][EXCEPTION] [DEBUG] [OVERRIDE_DBC]:[true]
[040306_011610158][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[big]
[040306_011610159][][EXCEPTION] [DEBUG] [java.class.path]:[/opt/java1.3/lib/rt.jar:/opt/java1.3/lib/tools.jar:/opt/java1.3/jre/lib/rt.jar:/opt
/java1.3/jre/lib/i18n.jar:/oracle/app/dev1app/dev1comn/java/appsborg.zip:/oracle/app/dev1app/dev1ora/8.0.6.9/forms60/java:/oracle/app/dev1app/d
ev1comn/java]
[040306_011610160][][EXCEPTION] [DEBUG] [os.name]:[HP-UX]
[040306_011610160][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[/opt/java1.3/jre/lib/rt.jar:/opt/java1.3/jre/lib/i18n.jar:/opt/java1.3/jre/lib/
sunrsasign.jar:/opt/java1.3/jre/classes]
[040306_011610161][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://www.hp.com/go/Java]
[040306_011610161][][EXCEPTION] [DEBUG] [user.timezone]:[America/Chicago]
[040306_011610162][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Server VM]
[040306_011610163][][EXCEPTION] [DEBUG] [CACHEMODE]:[DISTRIBUTED]
[040306_011610164][][EXCEPTION] [DEBUG] [cpid]:[72156]
[040306_011610164][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
[040306_011610165][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Hewlett-Packard Company]
[040306_011610165][][EXCEPTION] [DEBUG] [user.language]:[en]
[040306_011610166][][EXCEPTION] [DEBUG] [java.library.path]:[/opt/java1.3/bin/../jre/lib/PA_RISC2.0/native_threads:/opt/java1.3/bin/../jre/lib
/PA_RISC2.0/server:/opt/java1.3/bin/../jre/lib/PA_RISC2.0:/oracle/app/dev1app/dev1ora/iAS_1.0.2/lib:/oracle/app/dev1app/dev1ora/8.0.6.9/network
/jre11/lib/PA_RISC/native_threads:/oracle/app/dev1app/dev1appl/cz/11.5.0/bin::/oracle/app/dev1app/dev1ora/8.0.6.9/lib:/usr/lib:/usr/lib]
[040306_011610167][][EXCEPTION] [DEBUG] [path.separator]:[:]
[040306_011610167][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
[040306_011610168][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.awt.motif.PSPrinterJob]
[040306_011610168][][EXCEPTION] [DEBUG] [file.separator]:[]
[040306_011610169][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.3.1.09-030418-12:59]
[040306_011610170][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
[040306_011610171][][EXCEPTION] [DEBUG] [java.vendor]:[Hewlett-Packard Co.]
[040306_011610172][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
[040306_011610172][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://www.hp.com/go/Java]
[040306_011610173][][EXCEPTION] [DEBUG] [logfile]:[oracle/app/dev1app/dev1appl/dev1csf/log/DEV1_o11idev/FNDOPP72156.txt]
040306_011610174][][EXCEPTION] [DEBUG] [os.arch]:[PA_RISC2.0]
[040306_011610174][][EXCEPTION] [DEBUG] [os.version]:[B.11.11]
[040306_011610174][][EXCEPTION] [DEBUG] [java.home]:[opt/java1.3/jre]
[040306_011610175][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
[040306_011610175][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[opt/java1.3/jre/lib/PA_RISC2.0]
[040306_011610176][][EXCEPTION] [DEBUG] [line.separator]:[
[040306_011610176][][EXCEPTION] [DEBUG] [file.encoding]:[8859_1]
[040306_011610177][][EXCEPTION] [DEBUG] [user.name]:[oradev]
[040306_011610177][][EXCEPTION] [DEBUG] [java.vm.version]:[1.3.1 1.3.1.09-_18_apr_2003_14_01 PA2.0]
[4/3/06 1:16:13 PM] [UNEXPECTED] [72156:RT1088889] oracle.xml.parser.v2.XMLParseException: Expected ';'.
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:205)
at oracle.xml.parser.v2.XMLReader.scanNameChars(XMLReader.java:1001)
at oracle.xml.parser.v2.XMLReader.scanQName(XMLReader.java:1677)
at oracle.xml.parser.v2.XMLReader.getEntity(XMLReader.java:1928)
at oracle.xml.parser.v2.NonValidatingParser.parseContentEntityRef(NonValidatingParser.java:1575)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1202)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:227)
at oracle.apps.xdo.common.xml.XSLTClassic.transform(XSLTClassic.java:172)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:160)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1015)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:968)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3555)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3614)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:229)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)I was able to correct the error. The data contained an '&' sign and that was causing the xml parser to fail with the above error. If the & is replaced by a different character other than & then this error does not occur.
Ashok -
Why the oracle XML parser "parses" the DTD comments?
Hi all,
I always use the header
<?xml version = '1.0' encoding='ISO-8859-1' ?>
to be able to use foreign characters in the XML documents.
The oracle xml parser handles this correctly.
My problem is, when I write comments inside the DTD, the
parser reports "Invalid UTF8 encoding".
Why the parser "parse" the comments? (protected by <!-- and -->)
How do I say that the DTD encoding is different from UTF, like
ISO-8859-1?
Example of a correct DTD and corresponding XML, reporting
problems, related to the 2nd comment in the DTD specification,
written with ISO-8859-1 characters.
The DTD:
<!-- valid.dtd -->
<!ELEMENT valid ( B, C ) >
<!-- valid represents the concept "Identificagco" -->
<!ELEMENT B (#PCDATA) >
<!ELEMENT C (#PCDATA) >
The XML:
<?xml version = '1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE valid SYSTEM 'valid.dtd'>
<valid>
<B>How are you, Conceigco</B>
<C>I'm fine, thank you.</C>
</valid>
The parser output:
[jgr@frontera test-dtd]$ java oracle.xml.parser.v2.oraxml -v
valid.xml
Error while parsing input sourcevalid.xml(Invalid UTF8 encoding.)
Thank you for any help.
Jorge Gustavo RochaI was wrong in saying that the attributes are not added to the element.My main aim is to add a array of elements to the root node.
Is there a efficient manner in adding the elements , rather than adding them individually with the help of appendChild method.
Thanks in advance.
null -
Hi All,
While accessing the JPDK provider URL that is integrated with PeopleSoft application, I am getting the following error
500 Internal Server Error
java.lang.NoClassDefFoundError at oracle.xml.parser.v2.NonValidatingParser.(NonValidatingParser.java:172) at oracle.xml.parser.v2.XMLParser.(XMLParser.java:174) at oracle.xml.parser.v2.DOMParser.(DOMParser.java:92) at oracle.portal.utils.xml.v2.XMLUtil.getParser(Unknown Source) at oracle.portal.utils.xml.v2.XMLUtil.parseDocument(Unknown Source) at oracle.portal.provider.v2.http.DefaultProviderLoader.parseRegistry(Unknown Source) at oracle.portal.provider.v2.http.DefaultProviderLoader.getProviderDefinition(Unknown Source) at oracle.portal.provider.v2.http.DefaultProviderLoader.validate(Unknown Source) at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.validate(Unknown Source) at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showTestPage(Unknown Source) at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source) at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at com.peoplesoft.pt.portlet.jpdk.provider.PSProviderFilter.doFilter(PSProviderFilter.java:78) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at com.peoplesoft.pt.portlet.logging.DynamicFilter.doFilter(DynamicFilter.java:83) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)
As our application uses AXIS to do WebServices, we have removed the default oracle xml shared library by using remove-inherited in orion-application.xml. In addition, we package our own xerces in our application ear file. It looks like PDK is looking for oracle xml parser resulting in the NoClassDefFoundError exception.
The above exception is thrown if I access the JDPK provider URL after accessing our application.
However, if I restart the OC4J and ccess the JPDK provider URL without accessing our application, I get the following error
500 Internal Server Error
oracle.classloader.util.AnnotatedLinkageError: class oracle.xml.parser.schema.XSDNode cannot access its superinterface oracle.xml.parser.schema.XSDComponent Invalid class: oracle.xml.parser.schema.XSDNode Loader: oracle.cache:10.1.3 Code-Source: /D:/Oracle/OAS101310/OracleAS_1/LIB/xschema.jar Configuration: (ignore manifest Class-Path) in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar Dependent class: oracle.xml.parser.v2.XMLNode Loader: PeopleSoft2.web.pspc:0.0.0 Code-Source: /D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/xmlparserv2.jar Configuration: WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib at oracle.classloader.PolicyClassLoader.findLocalClass (PolicyClassLoader.java:1462) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.SearchPolicy$FindLocal.getClass (SearchPolicy.java:167) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.SearchSequence.getClass (SearchSequence.java:119) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.SearchPolicy.loadClass (SearchPolicy.java:645) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.SearchPolicy$CheckSharedLibraries.getClass (SearchPolicy.java:396) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.SearchSequence.getClass (SearchSequence.java:119) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1674) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@26795951] at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06] at oracle.xml.parser.v2.XMLNode. (XMLNode.java:4123) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/xmlparserv2.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.xml.parser.v2.NonValidatingParser. (NonValidatingParser.java:172) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/xmlparserv2.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.xml.parser.v2.XMLParser. (XMLParser.java:174) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/xmlparserv2.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.xml.parser.v2.DOMParser. (DOMParser.java:92) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/xmlparserv2.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.portal.utils.xml.v2.XMLUtil.getParser (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/ptlshare.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.portal.utils.xml.v2.XMLUtil.parseDocument (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/ptlshare.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.portal.provider.v2.http.DefaultProviderLoader.parseRegistry (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.portal.provider.v2.http.DefaultProviderLoader.getProviderDefinition (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.portal.provider.v2.http.DefaultProviderLoader.validate (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.validate (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showTestPage (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown, by unknown] at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) [unknown, by unknown] at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) [unknown, by unknown] at java.lang.reflect.Method.invoke (Method.java:585) [unknown, by unknown] at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at oracle.webdb.provider.v2.adapter.SOAPServlet.service (Unknown source file) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/lib/pdkjava.jar (from WEB-INF/lib/ directory in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\lib), by PeopleSoft2.web.pspc:0.0.0] at javax.servlet.http.HttpServlet.service (HttpServlet.java:856) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/servlet.jar (from (ignore manifest Class-Path) in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by api:1.4.0] at com.evermind.server.http.ResourceFilterChain.doFilter (ResourceFilterChain.java:64) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.peoplesoft.pt.portlet.jpdk.provider.PSProviderFilter.doFilter (PSProviderFilter.java:78) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/classes/ (from WEB-INF/classes/ in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\classes), by PeopleSoft2.web.pspc:0.0.0] at com.evermind.server.http.EvermindFilterChain.doFilter (EvermindFilterChain.java:15) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.peoplesoft.pt.portlet.logging.DynamicFilter.doFilter (DynamicFilter.java:83) [D:/Oracle/OAS101310/OracleAS_1/j2ee/PeopleSoft2/applications/PeopleSoft2/pspc/WEB-INF/classes/ (from WEB-INF/classes/ in D:\Oracle\OAS101310\OracleAS_1\j2ee\PeopleSoft2\applications\PeopleSoft2\pspc\WEB-INF\classes), by PeopleSoft2.web.pspc:0.0.0] at com.evermind.server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:619) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:368) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.server.http.HttpRequestHandler.doProcessRequest (HttpRequestHandler.java:866) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:448) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:302) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:190) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run (ServerSocketReadHandler.java:260) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket (ServerSocketAcceptHandler.java:239) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at oracle.oc4j.network.ServerSocketAcceptHandler.access$700 (ServerSocketAcceptHandler.java:34) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run (ServerSocketAcceptHandler.java:880) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:303) [D:/Oracle/OAS101310/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from in META-INF/boot.xml in D:\Oracle\OAS101310\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3] at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap:1.5.0_06]On further test, If I let the default oracle xml parser be loaded, then I do not get the the exception.
I have removed the following lines from orion-application.xml
<imported-shared-libraries>
<remove-inherited name="oracle.xml"/>
</imported-shared-libraries>
Now, If I access the JPDK provider URL
http://ple-fjunod.peoplesoft.com:9820/pspc/providers/psprovider/ps/EMPLOYEE
I get the excepted page
Congratulations! You have successfully reached your Provider's Test Page.
Recognizing Portlets...
Recognizing component versions...
ptlshare.jar version: 10.1.3.2.0
pdkjava.jar version: 10.1.3.2.0
Can someone please tell me that if I remove the inherited default oracle XML parser using remove-inherited tag in orion-application.xml, how do I make the JPDK use my own packaged xerces XML parser.
Thanks -
Hi,
I have a bpel process which takes in a particular xml format and does some processing asynchronously. I am calling this bpel process from a web application which uses axis web service to call this application.
Everything works fine when the xml is small (around 10 to 15 kb). But once the xml gets huge(around 250 to 400 kb) error is thrown in bpel in the oracle.xml.parser.v2.XMLElement.readExternal() method. It seems like bpel is not able to reconstruct the object that it had written to some stream before. I learnt from some forum posts that this done for optimizing performance but I would like to know whether i have to tweak something here.
Particularly what does this "java.io.IOException: Error in reading Namespace associated with the node" mean. Below is the error log
10/01/05 20:40:51 java.io.IOException: Error in reading Namespace associated with the node
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLElement.readExternal(XMLElement.java:2954)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2842)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
10/01/05 20:40:51 at oracle.xml.parser.v2.XMLDocument.readExternal(XMLDocument.java:3394)
10/01/05 20:40:51 at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:345)
10/01/05 20:40:51 at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
10/01/05 20:40:51 at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
10/01/05 20:40:51 at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
10/01/05 20:40:51 at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
10/01/05 20:40:51 at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
10/01/05 20:40:51 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10/01/05 20:40:51 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10/01/05 20:40:51 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10/01/05 20:40:51 at java.lang.reflect.Method.invoke(Method.java:585)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
10/01/05 20:40:51 at java.security.AccessController.doPrivileged(Native Method)
10/01/05 20:40:51 at javax.security.auth.Subject.doAs(Subject.java:396)
10/01/05 20:40:51 at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
10/01/05 20:40:51 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
10/01/05 20:40:51 at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
10/01/05 20:40:51 at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
10/01/05 20:40:51 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
10/01/05 20:40:51 at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
10/01/05 20:40:51 at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
10/01/05 20:40:51 at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
10/01/05 20:40:51 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10/01/05 20:40:51 at java.lang.reflect.Method.invoke(Method.java:585)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
10/01/05 20:40:51 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
10/01/05 20:40:51 at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
10/01/05 20:40:51 at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
10/01/05 20:40:51 at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
10/01/05 20:40:51 at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
10/01/05 20:40:51 at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
10/01/05 20:40:51 at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
10/01/05 20:40:51 at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
10/01/05 20:40:51 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
10/01/05 20:40:51 at java.lang.Thread.run(Thread.java:595)
10/01/05 20:40:51 0 - ORABPEL-00000
Exception not handled by the Collaxa Cube system.
An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:355)
at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Exception: ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
Handled As: com.collaxa.cube.CubeException
10/01/05 20:40:51 1 - ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
<2010-01-05 20:40:51,381> <ERROR> <pmf_capability_domain.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "cube delivery": [com.collaxa.cube.CubeException: Exception not handled by the Collaxa Cube system.
An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:355)
at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Exception: ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
Handled As: com.collaxa.cube.CubeException
] -> [com.collaxa.cube.xml.dom.DOMException: Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
ORABPEL-00000
Exception not handled by the Collaxa Cube system.
An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-09222
Cannot deserialize DOM element.
Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:355)
at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Exception: ORABPEL-09222I finally found the root cause of the solution. We are using axis serialization/deserialization at the client end to call the bpel service which works well for small xml. But mysteriously for larger xmls the deserialization fails at the server end when the incoming xml is being used. So we used the regular oracle java api to call the web service. This solved the problem.
We could not find whether the problem lies with Oracle SOA suite 10.1.3.1 or Apache axis 2.0. But as of now these two seem to be incompatible for large xmls at the moment.
Any pointers are welcome! -
i am using toplink 10.1.3.0.0 with oracle app server 10.1.2.2, i am using change field optimistic locking and generating the project xml,
application runs great locally in the jdeveloper, but when it is deployed on app server getting following error
here are the headers from both my project.xml as well as session xml..
<?xml version="1.0" encoding="UTF-8"?>
<toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)" xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<opm:name>PROJ</opm:name>
<opm:class-mapping-descriptors>
<opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
<?xml version="1.0" encoding="UTF-8"?>
<toplink-sessions version="4.5" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<session xsi:type="server-session">
<name>PROJSession</name>
<event-listener-classes/>
<logging xsi:type="toplink-log">
<log-level>finer</log-level>
</logging>
<primary-project xsi:type="xml">PROJ.xml</primary-project>
<login xsi:type="database-login">
<platform-class>oracle.toplink.platform.database.oracle.OraclePlatform</platform-class>
<user-name></user-name>
any help/idea appreciated...
Exception [TOPLINK-9005] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.SessionLoaderException
Exception Description: An exception was thrown while loading the <project-xml> file [PROJ.xml].
Internal Exception: Exception [TOPLINK-25004] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.XMLMarshalException
Exception Description: An error occurred unmarshalling the document
Internal Exception: Exception [TOPLINK-27101] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.platform.xml.XMLPlatformException
Exception Description: An error occurred while parsing the document.
Internal Exception: oracle.xml.parser.v2.XMLParseException: xsi:type "toplink:changed-field-locking-policy" not resolved to a type definition
at oracle.toplink.exceptions.SessionLoaderException.failedToLoadProjectXml(SessionLoaderException.java:74)
at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.loadProjectConfig(TopLinkSessionsFactory.java:316)
at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.createSession(TopLinkSessionsFactory.java:241)
at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildServerSessionConfig(TopLinkSessionsFactory.java:215)
at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildSession(TopLinkSessionsFactory.java:168)
at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildTopLinkSessions(TopLinkSessionsFactory.java:124)
at oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:103)
at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:367)
at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:334)
at myProjectPackage.common.data.toplink.ToplinkDataManagerPeer.<init>(ToplinkDataManagerPeer.java:41)
at myProjectPackage.common.data.DataManagerFactory.getDataManagerInstance(DataManagerFactory.java:40)
at myProjectPackage.common.servlet.NYSDOTFilter.getDataManager(NYSDOTFilter.java:964)
at myProjectPackage.common.servlet.NYSDOTFilter.doFilter(NYSDOTFilter.java:144)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at myProjectPackage.caf.servlet.NYSDOTCAFFilter.doFilter(NYSDOTCAFFilter.java:90)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at myProjectPackage.common.servlet.NYSDOTLoginFilter.doFilter(NYSDOTLoginFilter.java:95)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:669)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:228)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:570)first thanks for your reply,
i already figured that out and deployed it using 10.1.3.1 jars
my question
1) if it is a bug , how come it works fine with jdeveloper (
i would appreciate if you could provide any info about it.
2) i dont want to sound sarcastic , but 10.1.3.1 has of optimistic locking and the recommended solution i found was to use descriptor.getQueryManager().setUpdateCallCacheSize(0);
looks like 10.1.3.1 fixed one bug and introduced other one which was working fine earlier...
is there any other way of fixing optimistic locking issue other than using the
descriptor.getQueryManager().setUpdateCallCacheSize(0);
where i can find the latest/greatest (up to date patched version of toplink)
thanks again for your help -
Hi All,
I am getting below error while creating STUB/Skeleton in Jdeveloper to call a web service from OAF Page But getting below error while trying to creating Stub/Skeleton to call weservice
ERROR:
oracle.xml.parser.v2.XMLParseException: Start Of root Element
Any suggestion on This
P.S: I am calling a third party web service so can not able to make changes in XML
Regards,
903096Possibility is that there is a problem in the XML that is being passed. Can you double check with the third party software? Also check if you can try it outside OA Framework first and then if its tested you can integrate with EBS.
-
Hello,
I am using Oracle SOA Suite 11.1.1.4.0 While executing the XQuery example bpel-108-UsingXQuery I am facing the following problem/error.
The Xquery in the example is:
xquery version "1.0";
declare namespace ns0 = "http://example.com/bpel/books";
declare namespace ns1 = "http://samples.otn.com/xquerysample";
declare variable $category as node() external;
declare variable $publisher as xs:string external;
<bookReport>
for $b in //ns0:BOOKS/ns0:ITEM
where data($b/ns0:PUBLISHER) = $publisher
order by string-length($b/TITLE) return
<book>
<author> { data($b/ns0:AUTHOR) } </author>
<title> { data($b/ns0:TITLE) } </title>
<price>{ data(doc("pricelist.xml")/ns1:pricelist/ns1:product[1]/ns1:price) }</price>
<publisher>{ $publisher }</publisher>
{ $category }
</book>
</bookReport>
The variable $publisher, declared in 'declare variable $publisher as xs:string external' shall have the value 'Associated Press' as this has been assigned in the BPEL but it has in fact the value 'oracle.xml.parser.v2.XMLElement@8b8e58'.
The variable $category has the correct value.
What is here wrong or is it a bug in 11.1.1.4.0 in the oracle.xml.parser.v2.XMLElement class.What a mess:
org.w3c.Element element = (org.w3c.Element) payload.get("payload");
private Document writeOraXMLtoDocument(org.w3c.Element payload) throws ParserConfigurationException, SAXException, IOException, TransformerException{
ByteArrayInputStream inputStream = new ByteArrayInputStream(writeXMLToStream(new DOMSource(payload)).toByteArray());
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder =factory.newDocumentBuilder();
return builder.parse(inputStream);
private ByteArrayOutputStream writeXMLToStream(Source source) throws TransformerException {
ByteArrayOutputStream out = new ByteArrayOutputStream();
// Prepare the output file
Result result = new StreamResult(out);
// Write the DOM document to the file
TransformerFactory x = TransformerFactory.newInstance();
Transformer xformer = x.newTransformer();
xformer.transform(source, result);
return out;
Note, that you have to use the oracle transformer located in the xmlparserv2.jar
if it is not your default transformer , you have to set it at least for the above code by System.setProperty("javax.xml.transform.TransformerFactory","..classname..."); -
Hi,
while trying to get a soapelement from xml file, i have the error : oracle.xml.parser.v2.XMLParseException: Start of root element expected
the code i m using is as follow :
public static SOAPMessage XMLDocToSOAP(String soapBodyAsString ) throws SAXException, IOException,
SOAPException,
ParserConfigurationException {
SOAPMessage message = null;
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
InputStream is = new ByteArrayInputStream(soapBodyAsString.getBytes());
Document doc = dbf.newDocumentBuilder().parse(is);
MessageFactory factory = MessageFactory.newInstance();
message = factory.createMessage();
message.saveChanges();
SOAPBodyElement element = message.getSOAPBody().addDocument(doc);
return message;
}Looks like the XML you are passing is not valid. Check that the XML complies the the definition.
Also can you post a XML that works and the one that fails.
cheers
James -
Oracle.xml.parser.v2.SAXParser error
I'm reposting this error that I recently received one more time before removing the XML transforms from my Java projects and doing them in .NET.
Code that was working fine suddenly getting a transform error using JDeveloper.
Get the following:
javax.servlet.ServletException: javax.xml.transform.TransformerConfigurationException: XML-22000: (Fatal Error) Error while parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast to oracle.xml.parser.v2.SAXParser).
at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:417)
Seems that
<!--
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<h1>Project Weekly Hours Worked</h1>
<table>
<c:import url="HoursWorked.xml" var="xmlHoursWorked" charEncoding="windows-1252"/>
<c:import url="./HoursWorked3.xsl" var="xslt" charEncoding="windows-1252"/>
<x:transform xml="${xmlHoursWorked}" xslt="${xslt}" />
</table>
-->
will not transform XML to HTML via XSL in JSP anymore.
If I run the XSL i get the HTML results I expected in an HTML test page.
So I know the XML and XSL is sound.
XSL and DOM parsing in Java/Oracle was a major pain in the ass in the first place and now this.
Well I've spent hours going through Oralce/Java documentation on XML, DOM and XSL transforms.
All that time spent and still so unstable. I don't think I was ever able to really get what I wanted
which was to transform my XML document to HTML, update via JSP and have the XML document
be updated and ready to view in a summary page. The XML document changes were never really
available unless I closed the app and restarted. So all in all a failure of capabilities compared to my
use of XML in .NET.
So........
Me thinks it will be a good idea to take out the transforms and have my JSP use a script to invoke a
method in a class that extracts it from a message. Just have PL/SQL interface with XML and do the
transform or serialize thing there.
I don't want to give up on XML but I'm tired of trying to jam a square peg into a round hole
with Java and JDeveloper.
BrianWe don't support file references ("cv1_0.dtd"). Only url type references
are supported, of the form:
@ <!DOCTYPE cv1 SYSTEM "http://www.oracle.com/public/cv1_0.dtd>
Note that the url should be accessible to the world without the need to authenticate.
you could put your dtd in the "public" area in your iFS system.
Thanks,
Sirisha
null
Maybe you are looking for
-
I just upgraded Flash Pro CC from 13.0.1.80 to 14.0.0.110. I can no longer run any .swf's The target is Player i13 or older, my computer has 16.
-
RSS Feeds that worked prior to SP2, now do not work
I am working with SharePoint 2010 Enterprise edition. We have several wiki pages with RSS feeds that have been working well for a while. Once we added the SP2 patch, the RSS feeds no longer work unless the page is checked out. Once checked out, yo
-
I just switched from flash 8 to flash 9 and am looking for tutorials to make a simple game where you move a character just so I can get a feel for the structure of a Flash 9 game. You can't put ActionScript into movie clips anymore. I heard you have
-
Editing Windows and Linux Registry from JNI
how do I manipulate(i.e. add or delete) a registry key in windows as well as linux registry, using JNI. Is there any other way to do it. I have been searching this from last one month. Please help me out as I have to answer my client.
-
Report Progress - Report Execution
Post Author: grim_notepad CA Forum: .NET Launguage: C#Crystal Reports: 11.5-----I am running Reports in a BackgroundWorker and i want to get the status of the report being executed. Is there a report progress return value much like the one for backgr