XPathException
Hi,
I am getting a following exception while applying an xsl transformation to an xml document
oracle.xml.parser.v2.XPathException: Variable not defined: 'datafound'
What could be the reason and solution for this error?
The variable datafound is declared. The strange thing is that if I replace xml parser jar file with its older version, the same code just works fine.
Similar Messages
-
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... -
Hi,
I receive this error when I try to view xml from xml publisher template.
Anybody can help to shed me some lights what to check ? I'm newbie.
It does contain barcode font. I can view other xml template just fine ( other report )
and I can view barcode font just fine.
Only that I'm having error on this new template having barcode font and some query.
Not sure what's wrong here.
Thanks.
Font Dir: C:\Program Files\Oracle\XML Publisher\Template Builder\fonts
Run XDO Start
setLocale: en
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:580)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:378)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:197)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:178)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1507)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:913)
at RTF2PDF.runRTFto(RTF2PDF.java:535)
at RTF2PDF.runXDO(RTF2PDF.java:423)
at RTF2PDF.main(RTF2PDF.java:217)
Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'foreach_number'
at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1526)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:517)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
... 15 moreHi 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... -
XPathException: Extension function error: Method not found 'abs'
Hello,
I am using -XMLP 5.6.3 on EBS 11.5.10.2
In XML Publisher Admin, View Template page, I click "Preview". I get a report, but all it contains is a long stack trace containing the following messages:
java.lang.reflect.InvocationTargetException
Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'abs'
In my RTF, the offending code is
<?when:xdoxslt:abs(ACCOUNTED_CR)>xdoxslt:abs(ACCOUNTED_DR)?>It works fine on my pc where I have BI Publisher Desktop 10.1.3.4Hi 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... -
Oracle.xdo11g.xpath.XPathException: Variable not defined
Hello,
I got two pivot tables in the RTF Word PlugIn, when I take the second one out, the HTLM output shows fine, when I out the second one in, I get the error "oracle.xdo11g.xpath.XPathException: Variable not defined". I used the wizard to create the tables.
If I upload the layout and try to execute the report online, I get this error" oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException"
anyone an Idea how I can add two pivot tables to my template without causing xml errors?I got those two in a WORD table and as soon as I put the second one in the table (a word layout table by putting my pivot table in it) the error comes.
-
XSLProcessor.Process throws oracle.xml.xpath.XPathException:
I have a java application which is parsing an XMLDocument using XMLProcessor.process(xsl,doc);
It works for many XML messages, and their related XSL transformers, but throws this error regarding a dayTimeDuration() function.
I'm using XDK version 10g, Java release:xdk_linux_10.2.0.2.0_production
Other transformations without this function work fine. What am I doing wrong?
Any help is appreciated.
The Error is:
oracle.xml.xpath.XPathException: Parse Error in dayTimeDuration function.
The XML is:
<SPLIMCreatedUpdatedOrder Destination="RTS">
<HeaderData>
<TransactionCode>3001</TransactionCode>
</HeaderData>
<TaskData>
<FieldOrderNumber>TEST00001</FieldOrderNumber>
<OrderStatus>Unassigned</OrderStatus>
<DivisionName>Oregon</DivisionName>
<DistrictName>Albany District</DistrictName>
<CustomerName>Kathy Foote</CustomerName>
<CustomerAddress1>105 CORCORAN LN</CustomerAddress1>
<CustomerAddress2>Apt 101</CustomerAddress2>
<CustomerCityState>CENTRAL POINT, OR</CustomerCityState>
<CustomerZipCode>97502</CustomerZipCode>
<OrderType>CON</OrderType>
<TaskNumber>0</TaskNumber>
<TaskDuration>10</TaskDuration>
<TaskPriority>3</TaskPriority>
<TaskExternalPriority></TaskExternalPriority>
<Longitude>-122.923269</Longitude>
<Latitude>42.370841</Latitude>
<EnrouteDateTime></EnrouteDateTime>
<OnsiteDateTime></OnsiteDateTime>
<CompletionDateTime></CompletionDateTime>
<PrimaryOrderNumber></PrimaryOrderNumber>
<DatabaseAction>U</DatabaseAction>
<ServiceAreaName>Serviceman - OR - 11256</ServiceAreaName>
<DivisionCode>OR</DivisionCode>
<DistrictCode>11256</DistrictCode>
<ServiceAreaCode>SVC01</ServiceAreaCode>
<CompletionStatusCode>O</CompletionStatusCode>
<TrackingStatusCode>U</TrackingStatusCode>
</TaskData>
<SchedulingData>
<EarlyStartDateTime>2007-01-17T08:00:00</EarlyStartDateTime>
<DueOnDateTime>2007-01-31T17:00:00</DueOnDateTime>
<ApptStartDateTime></ApptStartDateTime>
<ApptFinishDateTime></ApptFinishDateTime>
<TimeZone></TimeZone>
</SchedulingData>
<AssignmentData>
<PreferredCrewName></PreferredCrewName>
<RequiredCrewName></RequiredCrewName>
<PrimaryFunction>Service</PrimaryFunction>
<SkillData></SkillData>
<CapabilityData></CapabilityData>
</AssignmentData>
</SPLIMCreatedUpdatedOrder>
The XSL is:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xdt="http://www.w3.org/2003/05/xpath-datatypes" xmlns:eg="local" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="SPLIMCreatedUpdatedOrder">
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns2="http://mwm.splwg.com/webservices/packets/"
xmlns:ns1="http://mwm.splwg.com/webservices/"
xmlns:ns3="http://mwm.splwg.com/webservices/methods/">
<xsl:variable name="databaseAction">
<xsl:value-of select="TaskData/DatabaseAction"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$databaseAction='A'">
<NEW_STOP>
<NEW_STOP_DATA>
<PLAN_STOP>
<IDENT>
<xsl:value-of select="TaskData/FieldOrderNumber"/>
</IDENT>
<STATUS>
<xsl:value-of select="TaskData/OrderStatus"/>
</STATUS>
<STARTED_DATE>
<xsl:value-of select="substring(TaskData/OnsiteDateTime,1,4)"/>
<xsl:value-of select="substring(TaskData/OnsiteDateTime,6,2)"/>
<xsl:value-of select="substring(TaskData/OnsiteDateTime,9,2)"/>
</STARTED_DATE>
<STARTED_TIME>
<xsl:value-of select="substring(TaskData/OnsiteDateTime,12,2)"/>
<xsl:value-of select="substring(TaskData/OnsiteDateTime,15,2)"/>
</STARTED_TIME>
<COMPLETION_DATE>
<xsl:value-of select="substring(TaskData/CompletionDateTime,1,4)"/>
<xsl:value-of select="substring(TaskData/CompletionDateTime,6,2)"/>
<xsl:value-of select="substring(TaskData/CompletionDateTime,9,2)"/>
</COMPLETION_DATE>
<COMPLETION_TIME>
<xsl:value-of select="substring(TaskData/CompletionDateTime,12,2)"/>
<xsl:value-of select="substring(TaskData/CompletionDateTime,15,2)"/>
</COMPLETION_TIME>
</PLAN_STOP>
<STOP>
<IDENT>
<xsl:value-of select="TaskData/FieldOrderNumber"/>
</IDENT>
<INITIAL_STATUS>FREE</INITIAL_STATUS>
<JOB_DELAY>
<xsl:value-of select="xs:int(TaskData/TaskDuration) * 60"/>
</JOB_DELAY>
<R_MUSTHAVE>
<xsl:for-each select="AssignmentData">
<xsl:for-each select="SkillData">
<xsl:value-of select="."/>,</xsl:for-each>
</xsl:for-each>
</R_MUSTHAVE>
<LATITUDE>
<xsl:value-of select="TaskData/Latitude"/>
</LATITUDE>
<LONGTITUDE>
<xsl:value-of select="TaskData/Latitude"/>
</LONGTITUDE>
<PRIMARY_STOP_ID>
<xsl:value-of select="TaskData/PrimaryOrderNumber"/>
</PRIMARY_STOP_ID>
<STREET_NO>
<xsl:value-of select="substring-before(TaskData/CustomerAddress1,' ')"/>
</STREET_NO>
<STREET>
<xsl:value-of select="substring-after(TaskData/CustomerAddress1,' ')"/>
</STREET>
<CITY>
<xsl:value-of select="substring-before(TaskData/CustomerCityState,',')"/>
</CITY>
<STATE>
<xsl:value-of select="substring-after(TaskData/CustomerCityState,',')"/>
</STATE>
<POSTCODE>
<xsl:value-of select="TaskData/CustomerZipCode"/>
</POSTCODE>
</STOP>
<STOP_TW>
<IDENT>
<xsl:value-of select="TaskData/FieldOrderNumber"/>
</IDENT>
<STOP>
<xsl:value-of select="TaskData/FieldOrderNumber"/>
</STOP>
<xsl:if test="string-length(SchedulingData/ApptStartDateTime) > 0">
<xsl:variable name="apptDuration">
<xsl:value-of select="xs:dayTimeDuration(xs:dateTime(SchedulingData/ApptFinishDateTime)-xs:dateTime(SchedulingData/ApptStartDateTime))"/>
</xsl:variable>
<START_DATE>
<xsl:value-of select="substring(SchedulingData/ApptStartDateTime,1,4)"/>
<xsl:value-of select="substring(SchedulingData/ApptStartDateTime,6,2)"/>
<xsl:value-of select="substring(SchedulingData/ApptStartDateTime,9,2)"/>
</START_DATE>
<START_TIME>
<xsl:value-of select="substring(SchedulingData/ApptStartDateTime,12,2)"/>
<xsl:value-of select="substring(SchedulingData/ApptStartDateTime,15,2)"/>
</START_TIME>
<xsl:variable name="iTotalHours">
<xsl:value-of select="xs:int(days-from-duration($apptDuration) * 24 + hours-from-duration($apptDuration))"/>
</xsl:variable>
<xsl:variable name="iMinutes">
<xsl:value-of select="xs:int(minutes-from-duration($apptDuration))"/>
</xsl:variable>
<DURATION>
<xsl:if test="not ($iTotalHours > 99)">0</xsl:if>
<xsl:if test="not ($iTotalHours > 9)">0</xsl:if>
<xsl:value-of select="xs:string($iTotalHours)"/>
<xsl:if test="not ($iMinutes > 60)">0</xsl:if>
<xsl:value-of select="xs:string($iMinutes) "/>
</DURATION>
</xsl:if>
<!---->
<xsl:if test="string-length(SchedulingData/ApptStartDateTime) = 0">
<xsl:variable name="apptDuration">
<xsl:value-of select="xs:dayTimeDuration(xs:dateTime(SchedulingData/DueOnDateTime) - xs:dateTime(SchedulingData/EarlyStartDateTime))"/>
</xsl:variable>
<START_DATE>
<xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,1,4)"/>
<xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,6,2)"/>
<xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,9,2)"/>
</START_DATE>
<START_TIME>
<xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,12,2)"/>
<xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,15,2)"/>
</START_TIME>
<xsl:variable name="iTotalHours">
<xsl:value-of select="xs:int(days-from-duration($apptDuration) * 24 + hours-from-duration($apptDuration))"/>
</xsl:variable>
<xsl:variable name="iMinutes">
<xsl:value-of select="xs:int(minutes-from-duration($apptDuration))"/>
</xsl:variable>
<DURATION>
<xsl:if test="not ($iTotalHours > 99)">0</xsl:if>
<xsl:if test="not ($iTotalHours > 9)">0</xsl:if>
<xsl:value-of select="xs:string($iTotalHours)"/>
<xsl:if test="not ($iMinutes > 60)">0</xsl:if>
<xsl:value-of select="xs:string($iMinutes) "/>
</DURATION>
</xsl:if>
</STOP_TW>
</NEW_STOP_DATA>
</NEW_STOP>
</xsl:when>
<xsl:when test="$databaseAction='U'">
<UPDATE_STOP>
<UPDATE_STOP_DATA>
<PLAN_STOP>
<IDENT>
<xsl:value-of select="TaskData/FieldOrderNumber"/>
</IDENT>
<STOP>
<xsl:value-of select="TaskData/FieldOrderNumber"/>
</STOP>
<STATUS>
<xsl:value-of select="TaskData/OrderStatus"/>
</STATUS>
<STARTED_DATE>
<xsl:value-of select="substring(TaskData/OnsiteDateTime,1,4)"/>
<xsl:value-of select="substring(TaskData/OnsiteDateTime,6,2)"/>
<xsl:value-of select="substring(TaskData/OnsiteDateTime,9,2)"/>
</STARTED_DATE>
<STARTED_TIME>
<xsl:value-of select="substring(TaskData/OnsiteDateTime,12,2)"/>
<xsl:value-of select="substring(TaskData/OnsiteDateTime,15,2)"/>
</STARTED_TIME>
<COMPLETION_DATE>
<xsl:value-of select="substring(TaskData/CompletionDateTime,1,4)"/>
<xsl:value-of select="substring(TaskData/CompletionDateTime,6,2)"/>
<xsl:value-of select="substring(TaskData/CompletionDateTime,9,2)"/>
</COMPLETION_DATE>
<COMPLETION_TIME>
<xsl:value-of select="substring(TaskData/CompletionDateTime,12,2)"/>
<xsl:value-of select="substring(TaskData/CompletionDateTime,15,2)"/>
</COMPLETION_TIME>
</PLAN_STOP>
<STOP>
<IDENT>
<xsl:value-of select="TaskData/FieldOrderNumber"/>
</IDENT>
<INITIAL_STATUS>FREE</INITIAL_STATUS>
<JOB_DELAY>
<xsl:value-of select="xs:int(TaskData/TaskDuration) * 60"/>
</JOB_DELAY>
<R_MUSTHAVE>
<xsl:for-each select="AssignmentData">
<xsl:for-each select="SkillData">
<xsl:value-of select="."/>,</xsl:for-each>
</xsl:for-each>
</R_MUSTHAVE>
<LATITUDE>
<xsl:value-of select="TaskData/Latitude"/>
</LATITUDE>
<LONGTITUDE>
<xsl:value-of select="TaskData/Latitude"/>
</LONGTITUDE>
<PRIMARY_STOP_ID>
<xsl:value-of select="TaskData/PrimaryOrderNumber"/>
</PRIMARY_STOP_ID>
<STREET_NO>
<xsl:value-of select="substring-before(TaskData/CustomerAddress1,' ')"/>
</STREET_NO>
<STREET>
<xsl:value-of select="substring-after(TaskData/CustomerAddress1,' ')"/>
</STREET>
<CITY>
<xsl:value-of select="substring-before(TaskData/CustomerCityState,',')"/>
</CITY>
<STATE>
<xsl:value-of select="substring-after(TaskData/CustomerCityState,',')"/>
</STATE>
<POSTCODE>
<xsl:value-of select="TaskData/CustomerZipCode"/>
</POSTCODE>
</STOP>
<STOP_TW>
<IDENT>
<xsl:value-of select="TaskData/FieldOrderNumber"/>
</IDENT>
<xsl:if test="string-length(SchedulingData/ApptStartDateTime) > 0">
<xsl:variable name="apptDuration">
<xsl:value-of select="xs:dayTimeDuration(xs:dateTime(SchedulingData/ApptFinishDateTime)-xs:dateTime(SchedulingData/ApptStartDateTime))"/>
</xsl:variable>
<START_DATE>
<xsl:value-of select="substring(SchedulingData/ApptStartDateTime,1,4)"/>
<xsl:value-of select="substring(SchedulingData/ApptStartDateTime,6,2)"/>
<xsl:value-of select="substring(SchedulingData/ApptStartDateTime,9,2)"/>
</START_DATE>
<START_TIME>
<xsl:value-of select="substring(SchedulingData/ApptStartDateTime,12,2)"/>
<xsl:value-of select="substring(SchedulingData/ApptStartDateTime,15,2)"/>
</START_TIME>
<DURATION>
<xsl:if test="not (xs:hours-from-duration($apptDuration) > 99)">0</xsl:if>
<xsl:if test="not (xs:hours-from-duration($apptDuration) > 9)">0</xsl:if>
<xsl:value-of select="xs:hours-from-duration($apptDuration)"/>
<xsl:if test="not (xs:minutes-from-duration($apptDuration) > 9)">0</xsl:if>
<xsl:value-of select="xs:minutes-from-duration($apptDuration)"/>
</DURATION>
</xsl:if>
<!---->
<xsl:if test="string-length(SchedulingData/ApptStartDateTime) = 0">
<xsl:variable name="apptDuration">
<xsl:value-of select="xs:dayTimeDuration(xs:dateTime(SchedulingData/DueOnDateTime) - xs:dateTime(SchedulingData/EarlyStartDateTime))"/>
</xsl:variable>
<START_DATE>
<xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,1,4)"/>
<xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,6,2)"/>
<xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,9,2)"/>
</START_DATE>
<START_TIME>
<xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,12,2)"/>
<xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,15,2)"/>
</START_TIME>
<xsl:variable name="iTotalHours">
<xsl:value-of select="xs:int(days-from-duration($apptDuration) * 24 + hours-from-duration($apptDuration))"/>
</xsl:variable>
<xsl:variable name="iMinutes">
<xsl:value-of select="xs:int(minutes-from-duration($apptDuration))"/>
</xsl:variable>
<DURATION>
<!-- Add leading zeros -->
<xsl:if test="not ($iTotalHours > 99)">0</xsl:if>
<xsl:if test="not ($iTotalHours > 9)">0</xsl:if>
<xsl:value-of select="xs:string($iTotalHours)"/>
<xsl:if test="not ($iMinutes > 60)">0</xsl:if>
<xsl:value-of select="xs:string($iMinutes) "/>
</DURATION>
</xsl:if>
</STOP_TW>
</UPDATE_STOP_DATA>
</UPDATE_STOP>
</xsl:when>
</xsl:choose>
</SOAP-ENV:Envelope>
</xsl:template>
</xsl:stylesheet>The code is appended:
public XMLElement TransformDoc(XMLDocument doc, String xslFile){
DOMParser parser;
XMLDocument xsldoc;
URL xslURL;
try {
// Parse xsl and xml documents
xsldoc = new XMLDocument();
parser = new DOMParser();
// Parse the XSL file
xslURL = createURL(xslFile);
parser.parse(xslURL);
xsldoc = parser.getDocument();
// Instantiate a stylesheet
XSLProcessor processor = new XSLProcessor();
processor.setBaseURL(xslURL);
XSLStylesheet xsl = processor.newXSLStylesheet(xsldoc);
// Display any warnings that may occur
processor.showWarnings(true);
processor.setErrorStream(System.err);
XMLDocumentFragment result = processor.processXSL(xsl, doc); -
Oracle.xml.parser.v2.XPathException: Extension functi
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: Class not found 'pack/XYZ'
at oracle.xml.parser.v2.XSLExtFunctions.getConstructor(XSLExtFunctions.j
ava:166)
at oracle.xml.parser.v2.XPathExtFunction.evaluateMethod(XPathExtFunction
.java:172)
at oracle.xml.parser.v2.XPathExtFunction.getValue(XPathExtFunction.java:
137)
at oracle.xml.parser.v2.XPathExtFunction.getValue(XPathExtFunction.java:
135)
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)
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,
ReddyThis occurs because of a bug in the IBM JVM's JIT compiler. You should file a bug with IBM to get this fixed, using your stylesheet as a testcase. Lots of people have hit this problem.
Disable your JIT compiler (or switch JVM's) and you won't have the error. -
Help with math / calculations in RTF templates
Greetings,
I know that there are math capabilities in the templates... I've seen the code samples in the Core Components guide.
What this doesn't tell you is WHERE these things would go in a template. And... that... is my question.
We are just starting to use BIP in conjunction with JDE EnterpriseOne (8.12, tool set 8.97.12). For our first attempt we're creating our template over a new report.
I have a template where I sum two different repeating values (through the normal BI Properties) and place these values in two separate cells in a table. I want to sum the two of these together for a "grand" total.
I've seen the "examples" but they really aren't very helpful. The xsfo, etc. for doing addition is fine, but WHAT are the values to add and WHERE does the code go?
If anyone has done something like this or has experience using the embedded code I would appreciate hearing from you.
Thanks in advanceI see what you are saying about the spaces... but it made no difference... still got the error.
The XML file is too large and convoluted to be pasted here.
With reqards to the following snippet:
COLA = <?sum(current-group()/COLA)?>
COLB = <?sum(current-group()/COLB)?>
Summ== <?sum(current-group()/COLA) + sum(current-group()/COLB)?>
Where does THIS code go?
Here is the error detail:
ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
Template: C:\Documents and Settings\jdenison\My Documents\BIP Templates\R5642001\R5642001_TEMPLsave.rtf
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Documents and Settings\jdenison\My Documents\BIP Templates\R5642001\R5642001_RICE0001_D081029_T144059683.xml
FOProcessor setLocale: en-us
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at RTF2PDF.runRTFto(RTF2PDF.java:629)
at RTF2PDF.runXDO(RTF2PDF.java:439)
at RTF2PDF.main(RTF2PDF.java:289)
Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'sum'
at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
... 15 more -
Dunning Letter Creation in XMLP running into Error
Hi All,
Although I'm trying to create a report from the seeded Dunning Letter concurrent program that is giving the intended XML files but when running the XML Report Publisher Concurrent program, the program is erroring out with the following error:
*****************************************Start of Log *************************************
XML Publisher: Version : 11.5.0 - Development
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XDOREPPB module: XML Report Publisher
Current system time is 11-AUG-2006 09:13:51
XML Report Publisher 5.0
Updating request description
Waiting for XML request
Retrieving XML request information
Preparing parameters
Process template
--XDOException
java.lang.reflect.InvocationTargetException: oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'set_xslt_locale'
at oracle.xdo.parser.v2.XSLExtFunctions.getMethod(XSLExtFunctions.java:285)
at oracle.xdo.parser.v2.XPathExtFunction.evaluateMethod(XPathExtFunction.java:267)
at oracle.xdo.parser.v2.XPathExtFunction.evaluate(XPathExtFunction.java:225)
at oracle.xdo.parser.v2.XSLVariable.getValue(XSLVariable.java:205)
at oracle.xdo.parser.v2.XSLStylesheet.processVariables(XSLStylesheet.java:638)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:503)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
at java.lang.reflect.Method.invoke(Native Method)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:580)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:378)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:197)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1497)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:913)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:1766)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:1277)
at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:807)
at oracle.apps.fnd.cp.request.Run.main(Run.java:148)
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
Finished executing request completion options.
Concurrent request completed
Current system time is 11-AUG-2006 09:13:59
**************************************End of Log *******************************************
As u can c from the error, it seems to indicate that I'm using the method 'set_xslt_locale' which evidently I'm not using in my Template. Does anyone 've any ideas as to why this error is been thrown out.
I even tried putting a template with just the text as 'This is a test Template' in the RTF Template. I still get the above errors.
Any potential workaround too greatly appreciated.
Thanks for ur time.One thing of note is that when I downloaded the template using XDOLOADER, the xml publisher seems to 've created a .xsl file that has reference to the method mentioned above. So although, I'm not referencing it, XMLPublisher created .xsl is referencing it n hence the error. Also, I do remember having read that 'set variable..' method refernced above is only available for a higher version of XMLP. I think I'm on 5.0.
So the question is do I've to upgrade to 5.5 or can I make do with 5.0 version? I would love to get around this problem without the upgrade.
Thanks -
Error while executing a custom java code from report in BI Publisher
Hi,
I have created a custom code added the jar in /opt/oracle/BI_Middleware/user_projects/domains/bifoundation_domain/lib and created a rtf template and added a code in that
<?namespace:bipext=http://www.oracle.com/XSL/Transform/java/com.test.bi.CustomFunctions?>
<?for-each:listOfNames?>
<?bipext:helloFunction(name)?>
<?end for-each?>
according to the blog
Vishal's blog: Using custom transformations in BI Publisher 10G
I am using BI Publisher 11g and weblogic . But I am getting the below error when running the report . Please help . Its urgent.
getting the below error from the BI Publisher desktop software
FOProcessor setLocale: en-us
oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException
at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1205)
at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:276)
at oracle.xdo.template.FOProcessor.createFO(FOProcessor.java:1973)
at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1117)
at RTF2PDF.runRTFto(RTF2PDF.java:659)
at RTF2PDF.runXDO(RTF2PDF.java:452)
at RTF2PDF.main(RTF2PDF.java:302)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:917)
at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:609)
at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:327)
at oracle.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:187)
at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1181)
... 6 more
Caused by: oracle.xdo11g.xpath.XPathException: Extension function error: Class not found 'com.test.bi.CustomFunctions'
at oracle.xdo11g.xslt.XSLStylesheet.flushErrors(XSLStylesheet.java:1850)
at oracle.xdo11g.xslt.XSLStylesheet.execute(XSLStylesheet.java:616)
at oracle.xdo11g.xslt.XSLStylesheet.execute(XSLStylesheet.java:551)
at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:341)
at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:189)
at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:226)
at oracle.xdo11g.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:122)
... 15 more
and below error from GUI
Error
The report cannot be rendered because of an error, please contact the administrator.
Error Detail
oracle.xdo.XDOException: oracle.xdo.XDOException: XSLT10gR1: Failed Secure Java Extensions check.
Please help
Thanks,
SahanaBI Publisher
-
Hi,
I want to set the file name in the File Adapter as part of an XSLT-Mapping.
The steps are as follows in the XSLT:
1. Set Filename to new filename in ASMA.
2. Check if Month = '1' on payload xml. .
If month = 1 , then copy record in xml, else next record.
But I get an error:
Execution of mapping "urn:rlp.de:budgeting/OM_FileIN_to_FileOUT_Budget_1" failed. Reason: MappingException: Mapping failed, TransformException: Transformer exception occurred when executing XSLT BudgetFileNameMap (urn:rlp.de:budgeting, -1, 24903e11-1bce-11df-97ba-ddab0a076144), javax.xml.transform.TransformerException: com.sap.engine.lib.xsl.xpath.XPathException: Illegal number of arguments or types of arguments in a call of function 'dyn:put'., XPathException: Illegal number of arguments or types of arguments in a call of function 'dyn:put'.
The XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:ns0="urn:rlp.de:test:budgeting"
xmlns:map="java:java.util.Map"
xmlns:dyn="java:com.sap.aii.mapping.api.DynamicConfiguration"
xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
<xsl:param name="inputparam"/>
<xsl:template match="/">
<!--change asma attributes -->
<xsl:variable name="dynamic-conf" select="map:get($inputparam, 'DynamicConfiguration')" />
<!-- create asma key for FileName configuration -->
<xsl:variable name="dynamic-key" select="key:create('http://sap.com/xi/XI/System/File', 'FileName')" />
<xsl:variable name="new-value" select="yourfilename.xml" />
<xsl:variable name="fileName" select="dyn:put($dynamic-conf, $dynamic-key, $new-value)" />
<MT_FileIn_Budget>
<xsl:copy-of select="/ns0:MT_FileIn_Budget/BudgetRecord[Monat=1]"/>
</MT_FileIn_Budget>
<!-- copy payload -->
<xsl:copy-of select="." />
</xsl:template>
</xsl:stylesheet>found it, was an error in the code:
wrong: <xsl:variable name="new-value" select="yourfilename.xml" />
right: <xsl:variable name="new-value" select=" 'yourfilename.xml' " />
double quote single quote in a row!
cheers
Holger -
COncurrent process fails with warning for OPP
Concurrent process generates xml output (version 5.6.2) .
When it tries to publish it , the log suggests checking out the OPP log.
The OPP log has a series of java entries for the request, including one of the type
Caused by: oracle.xdo.parser.v2.XPathException: Expected 'QNAME' instead of ''.
header of the OPP log says
Resolution History
18-OCT-06 20:36:05 GMT
Can you easily recover from, bypass or work around the problem? = NO
Does your system or application continue normally after the problem occurs? =
YES
Are the standard features of the system or application still available; is the
loss of service minor? = YES
### Informational Only:Warning Presented to Customer ###
You chose 'Other technical issues with this product' from the Type of Problem
list. This is a generic Service Request form which will require additional time
to be routed appropriately. You may be able to expedite the resolution of your
Service Request by doing the following: 1. Use your browser’s back button to
return to the Create a SR – Brief Description page. 2. Select an option from
the Type of Problem list that more closely describes the problem.
### Requested files:ACT(Note 183274.1),RDA (Note 175853.1). Files to be loaded.
None
### Detailed Problem Statement ###
Concurrent process for XML Publisher fails with warning. Cannot see Diagnostics
--> XML output completely. Only first page visible. Buttons and Menu items
disabled not allowing to view the whole XML file to troubleshoot for
correct/incorrect tags.
Attached are OPP Manager log file, Screen shot of 'Preview' output jjst before
submitting request. Also log file of failed concurrent request which contains
standard error " See OPP Service log file for more".
### Steps to Reproduce Problem ###
Registered a concurrent process with XML template , and running the process
from Receivables Manager responsibility.
Ran concurrent process for 1) Standard RAXINV report , with output method as
'XML'. 2) Customised RAXINV report, with output method as 'XML'
### Instance Name(s) and Type of System(s) Where Error Occurs ###
Lunix, 11.5.10 on 10g
### Recent Changes to this Environment ###
None
### Workarounds Used ###
None
### How is this Issue Impacting Your Business ###
Business is readying for CRP3, so would like to have reports ready by then.
Contact me via : MetaLink
18-OCT-06 20:48:07 GMT
The customer : [email protected] : has uploaded the following file via MetaLink:
C:\Documents_and_Settings\broy\BareEscentuals\Reports\Errors\XML_Pub1.bmp
18-OCT-06 20:49:14 GMT
The customer : [email protected] : has uploaded the following file via MetaLink:
C:\Documents_and_Settings\broy\BareEscentuals\Reports\Errors\XMLPublisher_java.t
xt
18-OCT-06 21:17:26 GMT
Hi Bashobi,
Thank you for using MetaLink. We are currently reviewing/researching the situation and will update the SR as soon as we have relevant information
Best Regards,
Bill
Oracle Support Services
STATUS
=======
@WIP -- Work In Progress
18-OCT-06 21:18:04 GMT
Email Update button has been pressed: Sending email to [email protected].
18-OCT-06 21:21:45 GMT
ISSUE CLARIFICATION
====================
On 11.5.10.2 in Production:
Find concurrent process for XML Publisher fails with warning. Cannot see Diagnostics
--> XML output completely. Only first page visible. Buttons and Menu items
disabled not allowing to view the whole XML file to troubleshoot for
correct/incorrect tags.
EXPECTED BEHAVIOR
Expect the processes run successfully
STEPS
The issue can be reproduced at will with the following steps:
1. Registered a concurrent process with XML template .
2. Run the process from Receivables Manager responsibility.
3. Ran concurrent process for
1) Standard RAXINV report , with output method as 'XML'
2) Customised RAXINV report, with output method as 'XML'
BUSINESS IMPACT
The issue has the following business impact:
Business is readying for CRP3, so would like to have reports ready by then.
ACTION PLAN
============
Hi Bashobi,
1. Can you reproduce the issue from sysadmin responsibility with Active users report? if yes
please upload OPP log file after reproduce it and upload the request log file.
Thanks.
18-OCT-06 23:09:02 GMT
New info : [email protected] : Did the same as suggested, Request
completes successfully.
But what is the relation between Active Users report and a report sent via XML
Publisher?
19-OCT-06 15:54:26 GMT
ACTION PLAN
============
Hi Bashobi,
1. When you reproduce the issue from sysadmin responsibility with Active users report change the format out put to XML,
Save your change:
2. Upload OPP manager log file and upload the request log file.
Thanks,
Bill.
19-OCT-06 15:54:33 GMT
Email Update button has been pressed: Sending email to [email protected].
19-OCT-06 16:42:23 GMT
New info : [email protected] : Bill,
No, I could not reproduce the problem with Active Users program.
Attaching OPP manager log in the next update. Bashobi
19-OCT-06 17:05:07 GMT
New info : [email protected] : Bill, Attaching internal log and manager
log
Bashobi
19-OCT-06 17:06:08 GMT
The customer : [email protected] : has uploaded the following file via MetaLink:
C:\Documents_and_Settings\broy\BareEscentuals\Reports\Errors\OPP_internal_log.tx
t
19-OCT-06 17:07:10 GMT
The customer : [email protected] : has uploaded the following file via MetaLink:
C:\Documents_and_Settings\broy\BareEscentuals\Reports\Errors\OPP_manager_log.txt
19-OCT-06 18:14:32 GMT
UPDATE
=======
Hi Bashobi,
Thank you for providing the requested information.
Best Regards,
Bill
STATUS
=======
@WIP -- Work In Progress
19-OCT-06 18:14:36 GMT
Email Update button has been pressed: Sending email to [email protected].
19-OCT-06 18:59:25 GMT
DATA COLLECTED
===============
SCREEN SHOTS
XML_Pub1.bmp:
Error:
Jave.sql SQL Exception No corresponding LOB data found: select File_data_dbms_lob...........
LOG FILE
1. XMLPublisher_java.txt:
[10/18/06 11:16:57 AM] [5670:RT277479] Completed post-processing actions for request 277479.
[10/18/06 11:29:06 AM] [OPPServiceThread1] Post-processing request 277488.
[10/18/06 11:29:06 AM] [5670:RT277488] Executing post-processing actions for request 2
77488.
[10/18/06 11:29:06 AM] [5670:RT277488] Starting XML Publisher post-processing action.
[10/18/06 11:29:06 AM] [5670:RT277488]
Template code: XXBE_TEST_INV
Template app: AR
Language: en
Territory: US
Output type: null
[10/18/06 11:29:07 AM] [UNEXPECTED] [5670:RT277488] java.lang.reflect.InvocationTarg
etException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10/18/06 11:29:07 AM] [5670:RT277488] Completed post-processing actions for reque
st 277488.
2. OPP_manager_log.txt:
[10/19/06 5:22:36 AM] [main] Starting GSF service with concurrent process id = 5688.
[10/19/06 5:22:36 AM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
[10/19/06 5:22:37 AM] [Thread-12] Service thread starting up.
[10/19/06 5:22:37 AM] [Thread-13] Service thread starting up.
ISSUE VERIFICATION
=================
Issue veryfied by the screen shots: XML_Pub1.bmp which shows:
Jave.sql SQL Exception No corresponding LOB data found: select File_data_dbms_lob...........
ACTION PLAN
============
Hi Bashobi,
1. Since you can not reproduce the issue from sysadmin responsibility can we say the issue specific to Receivables Manager
responsibility<INV xml report>?
2. You said before: "Concurrent process for XML Publisher fails with warning. Cannot see Diagnostics
--> XML output completely. Only first page visible. Buttons and Menu items
disabled not allowing to view the whole XML file to troubleshoot for
correct/incorrect tags.":
Is the above mean :
-The xml publisher report completed but you can not view the whole XML file
-Or the xml publisher report error out with "Jave.sql SQL Exception No corresponding LOB data found: select File_data_dbms_lob.."
Thanks.
19-OCT-06 18:59:32 GMT
Email Update button has been pressed: Sending email to [email protected].
20-OCT-06 21:36:13 GMT
Email Update button has been pressed: Sending email to [email protected].
24-OCT-06 21:50:06 GMT
New info : [email protected] : Hi,
We are in the process of upgrading XML Publisher at the moment. I would like to
wait a day or two to test the report with the upgrade.
Thanks,Bashobi
26-OCT-06 20:15:07 GMT
New info : [email protected] : Hi,
Our DBA has applied the 5.6.2 patch on our dev instance. My concurrent process
runs to a warning.
The warnings in the OPP manager log file say
Template code: BE_RAXINV
Template app: XXBE
Language: en
Territory: US
Output type: PDF
[10/26/06 12:50:13 PM] [UNEXPECTED] [5849:RT281617]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Any idea?Hi All,
I have ran into the same issue.
"The Output Post-processor is running but has not picked up this request.
Any ideas.
Thanks
Ravi -
Gettin error Cannot convert to number in RTF Template
Hi,
I am working on xml template development i am getting the followinf error
Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: D:\Tickets\Remittance Advice XMLP\canada_report1.xml
FOProcessor setLocale: en-us
java.lang.reflect.InvocationTargetException
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:324)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:586)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:383)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:201)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
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 RTF2PDF.runRTFto(RTF2PDF.java:626)
at RTF2PDF.runXDO(RTF2PDF.java:460)
at RTF2PDF.main(RTF2PDF.java:251)
Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert to number.
at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1526)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:517)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
... 16 more
I have checked the code and problem was due to following code i dont know where i went wrong
<xsl:variable xdofo:ctx="incontext" name="inner_group" select=".//G_SEL_INV_DATA"/><?for-each:$inner_group?><?if:(position()-1) mod $no_of_lines_per_page=0?><xsl:variable name="first_rec" xdofo:ctx="incontext" select="position()"/>
Please help me to solve this issue...
Thanks
RajeshWhat was the problem in the template? I am facing the same error, when I put a conditional in the data field, it throws the XML-22036: (Error) Cannot convert to number.
error, where if the element was printed directly it works fine.
error
<Line 984, Column 130>: XML-22036: (Error) Cannot convert to number.
@Line 984 ==> <xsl:variable name="v148" select="format-number(string(xdoxslt:one($v147)), string('###0.00'), string('_DECIMALFORMAT'))"/>
End of Process.
<format>
Number, ###0.00
<DATA >BROKEN
If (to_number(../DocumentPayableCount) + to_number(Extend/NumberOfPO) + sum(to_number(../DocumentPayable/Extend/Commentlength))) <= 7 then Extend/InvoiceAmount end if
<DATA >ALSO BROKEN
If (../DocumentPayableCount + Extend/NumberOfPO + sum(../DocumentPayable/Extend/Commentlength)) <= 7 then Extend/InvoiceAmount end if
<DATA> WORKS
then Extend/InvoiceAmount -
I got error when I perform calculation in a field, the code is
<?sum(current-group()/_IFNULL__BE_measures_._TOTAL_COST___0_) div sum(current-group()/_BE_measures_._GROSS_SALES_)?>
It shows errors:
Caused by: oracle.xdo.parser.v2.XPathException: An internal error condition occurred.
My case is infact a simple % ratio of
[Sum(Field A) - Sum(Field B) ] / Sum(Field A)
Any workaround ??? or use xdofx? but I have tried to use xdofx but nothing is shown.
Please help
Thanks ~!Field A and B are both numbers.
I also aware of '0' problem and I have already define it (ifnull (xx,0) ) from answers.
Finally, I use this to make it done:
<?xdoxslt:div(sum(current-group()/_BE_measures_._GROSS_SALES_) - sum (current-group()/_IFNULL__BE_measures_._TOTAL_COST___0_), sum(current-group()/_BE_measures_._GROSS_SALES_)) * 100 ?>
I wonder why I can't use simply "div" nor "xdofx" to archieve this....
Thanks all anyway ~ -
Error while sorting in combination with xdofx in rtf template
I'm trying to sort my invoices in a rtf/xml template.
To do so I used a statement I found on google:
<?sort:xdofx:lpad(H_FACTUUR_NR,15,’0’)?>
The error is:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at RTF2PDF.runRTFto(RTF2PDF.java:629)
at RTF2PDF.runXDO(RTF2PDF.java:442)
at RTF2PDF.main(RTF2PDF.java:289)
Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'xdofx' used but not declared.
at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
Any advise?
Best regards,
Joost.I used the following XSL and its Working !
<?xdoxslt:xdo_format_date($_XDOXSLTCTX, "YOUR COLUMN",'DD-MMM-YYYY HH12:MI:SS AM')?>
Maybe you are looking for
-
Adding a new button in the PO search summary in SRM 3
Hello gurus, my requirement is to add a new button in the search summary for PO in SRM. Here's the task: every time a search is executed, the result is a list of purchase orders and every item has on the left two icons, "Show PO" and "Modify PO". The
-
When browsing artists (Ctrl+B) in iTunes, "Jay-Z" and "Jay-Z Ft. MJB" sort different, even thought they both have the same album artist. When selecting "Jay-Z Ft. MJB" only one song appears. So I tried entering Jay-Z as "Sort Artist" for all songs in
-
Some TV Shows appearing under Movies within Front Row
I've started experiencing this particular behaviour since installing the recent updates (10.6.1 & iTunes 9). Within iTunes, I've checked the 'media kind' and it is set correctly. All the content was purchased from iTunes. I'd be grateful for any advi
-
How can I view videos from a website that uses flash player?
Hi All...having an issue finding an application to use to view videos on another website that uses flash player. I have Flip for Mac, but this doesn't solve the problem. Without this(Adobe) app, the videos will not run, rendering use of the website
-
How many ways can i improve query performance?
Hi All, can any body help me How many ways can i improve query performance in oracle ? Thanks, narasimha