Steps in bursting Xml publisher report
hey,
can anyone give all the steps required to burst a xml report.
like the output should go to different destinations like mail,fax etc.
thanks
RDM
Do you have any findings for sending output to email or fax. We need the same.
Thx,
Suman
Similar Messages
-
XML Publisher Report Bursting Program (XDOBURSTREP) is failing after ATG7
Hello
After upgrading ATG RUP7, we have issue related to the XML Bursting Program.
XML Publisher Report Bursting Program (XDOBURSTREP Short Name) is failing with error when there is no output is generated by the Oracle Report, this was working fine before the ATG RUP7.
Oracle XML Publisher Template Builder for Word
Version 5.6 Build 45
Oracle RDBMS : 10.2.0.4.0
Oracle Applications : 11.5.10.2
Concurrent Program: XML Publisher Report Bursting Program
Concurrent Short Name:XDOBURSTREP
Executable: XDOBURSTRPT
The following is the log file of Bursting
XDOBURSTREP module: XML Publisher Report Bursting Program
Current system time is 22-OCT-2010 08:41:09
0.932: [GC 0.932: [DefNew: 1792K->191K(1984K), 0.0190521 secs] 1792K->243K(6080K), 0.0193017 secs] [Times: user=0.01 sys=0.00, real=0.02 secs]
1.637: [GC 1.638: [DefNew: 1983K->45K(1984K), 0.0279269 secs] 2035K->283K(6080K), 0.0281136 secs] [Times: user=0.03 sys=0.00, real=0.03 secs]
2.369: [GC 2.369: [DefNew: 1837K->192K(1984K), 0.0249747 secs] 2075K->597K(6080K), 0.0251559 secs] [Times: user=0.02 sys=0.00, real=0.03 secs]
3.186: [GC 3.186: [DefNew: 1984K->130K(1984K), 0.0208499 secs] 2389K->713K(6080K), 0.0210453 secs] [Times: user=0.02 sys=0.01, real=0.02 secs]
3.938: [GC 3.939: [DefNew: 1922K->114K(1984K), 0.0219872 secs] 2505K->825K(6080K), 0.0221742 secs] [Times: user=0.02 sys=0.00, real=0.02 secs]
4.781: [GC 4.781: [DefNew: 1906K->192K(1984K), 0.0271288 secs] 2617K->1258K(6080K), 0.0273437 secs] [Times: user=0.03 sys=0.00, real=0.03 secs]
4.931: [GC 4.931: [DefNew: 1983K->192K(1984K), 0.0114155 secs] 3049K->1575K(6080K), 0.0116308 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
4.978: [GC 4.978: [DefNew: 1974K->1K(1984K), 0.0032511 secs] 3357K->1415K(6080K), 0.0034360 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
5.001: [GC 5.001: [DefNew: 1790K->34K(1984K), 0.0020751 secs] 3204K->1448K(6080K), 0.0022582 secs] [Times: user=0.01 sys=0.01, real=0.00 secs]
5.023: [GC 5.023: [DefNew: 1814K->68K(1984K), 0.0021542 secs] 3228K->1481K(6080K), 0.0023365 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
5.273: [GC 5.273: [DefNew: 1860K->119K(1984K), 0.0055906 secs] 3273K->1533K(6080K), 0.0057779 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
5.451: [GC 5.451: [DefNew: 1911K->58K(1984K), 0.0059780 secs] 3325K->1587K(6080K), 0.0061632 secs] [Times: user=0.00 sys=0.00, real=0.01 secs]
5.653: [GC 5.653: [DefNew: 1850K->103K(1984K), 0.0034036 secs] 3379K->1632K(6080K), 0.0035865 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
5.813: [GC 5.813: [DefNew: 1895K->86K(1984K), 0.0053900 secs] 3424K->1667K(6080K), 0.0055748 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
5.932: [GC 5.932: [DefNew: 1878K->124K(1984K), 0.0035633 secs] 3459K->1705K(6080K), 0.0037447 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
6.057: [GC 6.057: [DefNew: 1916K->147K(1984K), 0.0043476 secs] 3497K->1760K(6080K), 0.0045299 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
6.214: [GC 6.214: [DefNew: 1939K->192K(1984K), 0.0120992 secs] 3552K->2141K(6080K), 0.0122907 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
XML/BI Publisher Version : 5.6.3
Updating request description
Retrieving XML request information
Preparing parameters
7.104: [GC 7.104: [DefNew: 1982K->192K(1984K), 0.0200714 secs] 3932K->2346K(6080K), 0.0202692 secs] [Times: user=0.02 sys=0.00, real=0.02 secs]
Set Bursting parameters..
Bursting propertes.....
{user-variable:cp:territory=US, user-variable:cp:ReportRequestID=16649488, user-variable:cp:language=en, user-variable:cp:responsibility=23202, user-variable.OA_MEDIA=http://d1at2.atco.ca:8010/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=N, user-variable:cp:parent_request_id=16649488, user-variable:cp:locale=en-US, user-variable:cp:user=URU4.ASHAFI, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=16649506, user-variable:cp:org_id=43, user-variable:cp:reportdescription=XXPAY Database Audit Series Change Register}
Start bursting process..
7.845: [GC 7.845: [DefNew: 1984K->158K(1984K), 0.0181146 secs] 4138K->2495K(6080K), 0.0183025 secs] [Times: user=0.01 sys=0.00, real=0.02 secs]
7.885: [GC 7.885: [DefNew: 231K->14K(1984K), 0.0055622 secs]7.891: [Tenured[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor2]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor1]
: 2486K->2073K(4096K), 0.2881229 secs] 2568K->2073K(6080K), 0.2940010 secs] [Times: user=0.29 sys=0.02, real=0.29 secs]
8.682: [GC 8.682: [DefNew: 1787K->170K(1984K), 0.0120166 secs] 5861K->4243K(6080K), 0.0122079 secs] [Times: user=0.02 sys=0.00, real=0.01 secs]
9.163: [GC 9.163: [DefNew: 1524K->74K(1984K), 0.0086781 secs]9.171: [Tenured: 4237K->2299K(4352K), 0.2773675 secs] 5597K->2299K(6336K), 0.2863681 secs] [Times: user=0.28 sys=0.00, real=0.29 secs]
9.472: [GC 9.473: [DefNew: 90K->17K(1984K), 0.0025361 secs]9.475: [Tenured: 4299K->2311K(6104K), 0.2718601 secs] 4390K->2311K(8088K), 0.2747072 secs] [Times: user=0.28 sys=0.00, real=0.27 secs]
9.822: [GC 9.822: [DefNew: 585K->42K(1984K), 0.0027399 secs]9.825: [Tenured: 4311K->2085K(6104K), 0.3354828 secs] 4897K->2085K(8088K), 0.3385340 secs] [Times: user=0.34 sys=0.00, real=0.34 secs]
Bursting process complete..
Generating Bursting Status Report..
--Exception
/oracle/appl/orad1at2/product/comn/temp/102210_084117484/AUDIT_GS_BI-WEEKLY.pdf (No such file or directory)
java.io.FileNotFoundException: /oracle/appl/orad1at2/product/comn/temp/102210_084117484/AUDIT_GS_BI-WEEKLY.pdf (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:532)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:299)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
Heap
def new generation total 1984K, used 194K [0xb1000000, 0xb1220000, 0xb4780000)
eden space 1792K, 10% used [0xb1000000, 0xb1030a98, 0xb11c0000)
from space 192K, 0% used [0xb11c0000, 0xb11c0000, 0xb11f0000)
to space 192K, 0% used [0xb11f0000, 0xb11f0000, 0xb1220000)
tenured generation total 6104K, used 4085K [0xb4780000, 0xb4d76000, 0xd0400000)
the space 6104K, 66% used [0xb4780000, 0xb4b7d490, 0xb4b7d600, 0xb4d76000)
compacting perm gen total 12288K, used 7424K [0xd0400000, 0xd1000000, 0xd8400000)
the space 12288K, 60% used [0xd0400000, 0xd0b402a8, 0xd0b40400, 0xd1000000)
ro space 8192K, 80% used [0xd8400000, 0xd8a73430, 0xd8a73600, 0xd8c00000)
rw space 12288K, 59% used [0xd8c00000, 0xd9330510, 0xd9330600, 0xd9800000)
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 22-OCT-2010 08:41:20
Any Help Appreciated
ThanksHi;
Similar issue mention at below notes, Please review:
NPE Error While Bursting Using XDOBURSTREP in EBS R12 [ID 754790.1]
Bursting Engine Ends With Java.Lang.Nullpointerexception[Article ID 559443.1]
XDOBURSTREP - XML Publisher Report Bursting Program Fails with InvalidPropertyValueException[Article ID 603424.1]
If its not help I suggest rise SR
Regard
Helios -
I have created report using XML Publisher Report Bursting. The output-type of the report is pdf..
<xapi:document output="${PROJECT_APPROVER}" output-type="pdf" delivery="123">
But if I change the format to xls it's showing error and the report is not getting created.
<xapi:document output="${PROJECT_APPROVER}" output-type="xls" delivery="123">
Can any one help me how to get the report in excel format?
The error in log file is below:
[121212_045029867][][EXCEPTION] java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at oracle.apps.xdo.oa.cp.CPUtil.setProperty(CPUtil.java:67)
at oracle.apps.xdo.oa.cp.CPUtil.getSessionProperties(CPUtil.java:45)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:84)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
XML/BI Publisher Version : 5.6.3
Updating request description
Retrieving XML request information
Preparing parameters
Set Bursting parameters..
Bursting propertes.....
{user-variable:cp:territory=US, user-variable:cp:ReportRequestID=75676032, user-variable:cp:language=en, user-variable:cp:responsibility=50597, user-variable.OA_MEDIA=http://erplive.rssoftware.com:8002/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=N, user-variable:cp:parent_request_id=75676032, user-variable:cp:locale=en-US, user-variable:cp:user=3094, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=75680212, user-variable:cp:reportdescription=RS Test Report Bursting, user-variable:cp:Dummy for Data Security=Y}
Start bursting process..
Bursting process complete..
Generating Bursting Status Report..900300 wrote:
There is no question related to pl/sql. I want to know that where do i need to make any change in bursting control file to get the report in excel format?This forum is for SQL and PL/SQL questions. Please post your question in a forum appropriate for it. -
XML Publisher Report Bursting Program Randomly failing
Hi,
In our environment "XML Publisher Report Bursting Program" fails randomly and failures are very very few and random, and can not be reproduced.
The error message is
+++++++++++++++++++++++++++++++++++++++++++
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XDOBURSTREP module: XML Publisher Report Bursting Program
Current system time is 16-APR-2013 14:00:42
Exception in thread "main" java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at oracle.apps.xdo.oa.cp.CPUtil.getSessionProperties(CPUtil.java:42)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:84)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
Start of log messages from FND_FILE
End of log messages from FND_FILE
oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine
Program exited with status 1
Executing request completion options...
++++++++++++++++++++++++++++++++++++++++++++++
Had been trying to find out any pattern, but no fix time or particular parent request.
Only common point in failure with above error are below columns in fnd_concurrent_request
Description - blank
LFILE_SIZE - 1476
& interim_status_code - Blank
Any suggestions will be helpfulHi;
Similar issue mention at below notes, Please review:
NPE Error While Bursting Using XDOBURSTREP in EBS R12 [ID 754790.1]
Bursting Engine Ends With Java.Lang.Nullpointerexception[Article ID 559443.1]
XDOBURSTREP - XML Publisher Report Bursting Program Fails with InvalidPropertyValueException[Article ID 603424.1]
If its not help I suggest rise SR
Regard
Helios -
Utilizing XML Publisher Report Bursting Program user-variables
When running the XML Publisher Report Bursting Program against a bursting control file, I see the following in the log:
Bursting propertes.....
{user-variable:cp:territory=US, user-variable:cp:ReportRequestID=4413342, user-variable:cp:language=en, user-variable:cp:responsibility=20678, user-variable.OA_MEDIA=http://hostname:8000/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=N, user-variable:cp:parent_request_id=4413342, user-variable:cp:locale=en-US, user-variable:cp:user=USER, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=4413368, user-variable:cp:org_id=204, user-variable:cp:reportdescription=Report Name, user-variable:cp:Dummy for Data Security=Y}
I would like to reference one or more of these in
1. My bursting control file
2. My template (to be output in final PDF).
I cannot seem to get this to work in my bursting control file by referencing:
${cp:user} (note that it just returns the word 'null' here instead of the value)
nor can I get it to work in my RTF template by referencing:
<?xdoxslt:get_variable($_XDOCTX, ‘cp:user’)?>
Should this work, or I am missing something?
ThanksThanks Ike, it likely would. The thing I keep coming back to is an example in the BIP Developer's Guide that suggests you can set a property and have it made available:
DocumentProcessor dp = new DocumentProcessor (cfgFile, xmlFile, dir);
Properties prop= new Properties();
prop.put("user-variable:ADMIN_EMAIL","[email protected]");
dp.setConfig(prop);
dp.process()
Seems to me that the work going on behind the scenes here (based on log statements alone) suggest the same sort of integration.. but I suppose not.
Thanks -
XML Publisher Report Bursting Program ends in error
We have a report that generates the XML output (ACH notification)
In the after report we have a call to the Bursting program.
The ACH notification completes with the correct output but the bursting ends in error showing
Set Bursting parameters..
Temp. Directory:/tmp
[101211_072452383][][STATEMENT] Oracle XML Parser version ::: Oracle XDK Java 9.0.4.0.0 Production
[101211_072452385][][STATEMENT] setOAProperties called..
Bursting propertes.....
{user-variable:cp:territory=US, user-variable:cp:ReportRequestID=28081235, user-variable:cp:language=en, user-variable:cp:responsibility=50274, user-variable.OA_MEDIA=http://xxx/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=28081235, user-variable:cp:locale=en-US, user-variable:cp:user=xxx, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=28081236, user-variable:cp:org_id=83, user-variable:cp:reportdescription=xxx ACH Payment Nofitication}
Start bursting process..
Bursting process complete..
Generating Bursting Status Report..
--Exception
/tmp/101211_072452427/xdo1_2.pdf (No such file or directory)
java.io.FileNotFoundException: /tmp/101211_072452427/xdo1_2.pdf (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:523)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
The temp directory variable in the XML Publisher is /tmp which has all the permissions.
The control file calls the delivery method (email 123 in the example) and uses the following template
<xapi:document key="" output-type="pdf" delivery="123">
<xapi:template type="rtf"
location="XDO://XBOL.ACHPAYNOTIF.en.US/?getSource=true" filter=""/>
</xapi:document>
This template is defined for English language and Territory United States.
I covered everything I could find here and in metalink and still cannot make it work.
Any ideas?Hi;
Similar issue mention at below notes, Please review:
NPE Error While Bursting Using XDOBURSTREP in EBS R12 [ID 754790.1]
Bursting Engine Ends With Java.Lang.Nullpointerexception[Article ID 559443.1]
XDOBURSTREP - XML Publisher Report Bursting Program Fails with InvalidPropertyValueException[Article ID 603424.1]
If its not help I suggest rise SR
Regard
Helios -
FO processing for XML Publisher Report Bursting Program
Hello,
I am facing the following problem: if i try to burst a report using XML Publisher Report Bursting Program special characters like (ş,ţ,ă, etc.) in the resulting PDF look strange. I have tried running the report without bursting it and the characters appear just fine (after i've set the FO Processing Font Mapping). My guess is that XML Publisher Report Bursting Program is not using the right font mapping. Have you faced this problem before? Do you have any idea how to set the right font mapping for XML Publisher Report Bursting Program.
Thank you.So the answer was to make sure the location in the bursting file (location="xdo://schema.template_code.en.US) exactly matches the language/country setting in the uploaded Definition. Then make sure the fonts have been added to the xdo.cfg file matching what your Font Mappings are:
<font family="Cambria" style="normal" weight="normal">
<truetype path="/app/erp1/applmgr/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/fonts/CAMBRIA.TTC" />
</font>
<font family="Cambria" style="normal" weight="bold">
<truetype path="/app/erp1/applmgr/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/fonts/CAMBRIAB.TTF" />
</font>
<font family="Cambria Bold" style="normal" weight="bold">
<truetype path="/app/erp1/applmgr/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/fonts/CAMBRIAB.TTF" />
</font>
<font family="Cambria Bold" style="normal" weight="normal">
<truetype path="/app/erp1/applmgr/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/fonts/CAMBRIAB.TTF" /> -
XML Publisher Report with PL/SQL
Hi
Like to know how to develop the XML Publisher Report with PL/SQL, i did the following
1. created a pkg like as below
CREATE OR REPLACE PACKAGE BODY APPS.TEST_XMLTAG_PKG AS
PROCEDURE main (errbuf OUT VARCHAR2,
retcode OUT NUMBER
) IS
BEGIN
DECLARE
ctx DBMS_XMLGEN.ctxHandle;
xml CLOB;
BEGIN
ctx := dbms_xmlgen.newcontext('select * from scott.emp');
dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
xml := dbms_xmlgen.getxml(ctx);
dbms_output.put_line(xml);
Fnd_file.put_line (fnd_file.LOG, XML);
END;
END;
END TEST_XMLTAG_PKG;
this pkg produces the output with xml tag in the view log.
I have registered the conc program & xml rtf but it does not produce the output in PDF, , I am not able to get the xml tag when i click the Diagnostics --> View XML.
can you please let me know the next steps involved.
Regards
YramI think the problem is because there is no begin and end tag. save the xml from the logfile and open with xml editor or IE.. then you will see the problem.
add Begin and end tag...then you should be fine.. i.e
fnd_file.put_line(fnd_file.output,'<EMP_DATA>'); -- begin Tag
tx := dbms_xmlgen.newcontext('select * from scott.emp');
dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
xml := dbms_xmlgen.getxml(ctx);
dbms_output.put_line(xml);
Fnd_file.put_line (fnd_file.LOG, XML);
fnd_file.put_line(fnd_file.output,'</EMP_DATA>'); -- End Tag
Hope this helps..>Good Luck
Ravi -
Xml Publisher Report Without RDF
Hi experts,
I need to customize the seeded XML publisher report.Till now i developed XML publisher reports by developing rdf only. But here i didn't see any rdf for it..
without rdf how we can create the xml publisher report. I need to insert a field in this report where i need to insert this field.
where i found the SQL query for this report.Please help me
Thanks
AshokThank u,
Here I need to customize the Sales Order XSL Template which is a seeded template in Order Management.
and it will execute when user select the actions button-> print and prview .so there is no concurrent program for this.they did the setups for this.
I didn't find any datetemplate for this in data defination window.here I need to change this one as
1. Update the Report Header to read “Dispatch Note” instead of “ORDERING DOCUMENT”.
2. Inclusion of logo for each police authority (Open Issue).
3. Modification to include *“United Kingdom” instead of U.S.* in the free text portion of the PRODUCT section. “United Kingdom” value will be derived from the country specified for the selected organization and not hardcoded.
4. Footer to include shipment date instead of Sales Order Creation date and the document should be available to print only after Ship Confirm.
5. Updating the Layout template in the Transaction Type setup, so that it points to the modified layout template.
6. The modified Dispatch Note document will be included in the Ship Confirm document set and this document set will be included in the respective Ship Confirm rules. This Ship Confirm Rule will be attached in the Shipping parameters tabs for both the organisations. This step would enable the Dispatch Note to be printed automatically after successful completion Ship Confirm process.
I have *.XSD file and .XSL file * .. I don't find any data template in datadefination window to see the SQL query.
I thought now i have to change the *.XSD AND .XSL FILES* is it right? Is there any other solution for this ..
Thanks
Ashok
Edited by: 886640 on Oct 11, 2011 6:41 AM
Edited by: 886640 on Oct 11, 2011 10:00 PM
Edited by: 886640 on Oct 11, 2011 11:07 PM -
XML Publisher Report getting errored out
Hi,
I have created a basci XML Publisher report.
When I run the report I am getting the following error in concurrent program log.
XDO Data Engine ver 1.0
Resp: 51553
Org ID : 996
Request ID: 5040983
All Parameters: p_po_number=11
Data Template Code: TDD1
Data Template Application Short Name: PO
Debug Flag: Y
{p_po_number=11}
Calling XDO Data Engine...
[072706_012532569][][STATEMENT] oracle.jdbc.driver.OracleBlobInputStream@1b5340c
[072706_012533015][][STATEMENT] Template parsing started...
[072706_012533766][][EXCEPTION] java.lang.NullPointerException
at oracle.apps.xdo.dataengine.DataTemplateParser.GetNodeNumChildren(DataTemplateParser.java:327)
at oracle.apps.xdo.dataengine.DataTemplateParser.templateParser(DataTemplateParser.java:251)
at oracle.apps.xdo.dataengine.XMLPGEN.setDataTemplate(XMLPGEN.java:642)
at oracle.apps.xdo.dataengine.DataProcessor.setDataTemplate(DataProcessor.java:169)
at oracle.apps.xdo.oa.util.DataTemplate.<init>(DataTemplate.java:136)
at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:259)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
[072706_012533766][][STATEMENT] Template parsing completed...
[072706_012533766][][STATEMENT] Setting Data Template
[072706_012533766][][STATEMENT] Setting JDBC Connection
[072706_012533766][][STATEMENT] Setting Parameters
[072706_012533767][][STATEMENT] Setting Parameters
[072706_012533826][][STATEMENT] Process Data ...
[072706_012533870][][STATEMENT] Writing Data ...
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492)
at com.sun.java.util.collections.ArrayList.get(ArrayList.java:306)
at oracle.apps.xdo.dataengine.DataTemplateParser.getParentDataSource(DataTemplateParser.java:1511)
at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:398)
at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:357)
at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:342)
at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:288)
at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:312)
at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:307)
at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:207)
at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:272)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
The steps I followed to create the report are
1. I have created a concurrent program with executable as XDODTEXE.
2. Created a Data Template
<?xml version = '1.0' encoding = 'UTF-8'?>
<dataTemplate name="DATA" version="1.0">
<parameters>
<parameter name="p_po_number" dataType="varchar2"/>
</parameters>
<dataQuery>
<sqlStatement name="ROW">
<![CDATA[select pha.segment1, pra.release_num,pra.org_id
from
po_headers_all pha,
po_releases_all pra
where
pha.po_header_id=pra.po_header_id and
pha.segment1=:p_po_number]]>
</sqlStatement>
</dataQuery>
</dataTemplate>
3. I have created a data definition with concurrent program short name as code and uploading data template.
4.I have created a rtf template and registered against the data definition.
When I run the concurrent program, its failing with the above mentioned error, I am not able to debug out of it.
Could somebody please help me?
Thanks in Advance,
ThiruHi,
I don't see any issue with data template. it works fine for me .
Make sure the CP program shortname and Application name are the same as data definiton code and application name.
As per the error It seems the JCP could not get the data template from repository and its passing null.
What xdo version you are using ? -
Call Xml Publisher report from Jdeveloper
Hi,
I am first time integrating XML publisher with Jdevloper.
I need to call xml publisher report from Jdeveloper.
I followed all steps from anilpassi link for sample
its showing error while tring to open pdf file
Error:
Adobe Reader could not find 'EmpReport[1].pdf' because it is either not a supported file type or because the file has been damaged.
Please help ,i m stuvk because of this error.
below is the code
EmpCO :
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModuleImpl am =
(OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
am.invokeMethod("initEmpVO");
// am.invokeMethod("getEmpDataXML");
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModuleImpl am =
(OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
if ("GenerateReport".equals(pageContext.getParameter(EVENT_PARAM)))
System.out.println("event fired");
// Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
DataObject sessionDictionary =
(DataObject)pageContext.getNamedDataObject("_SessionParameters");
HttpServletResponse response =
(HttpServletResponse)sessionDictionary.selectValue(null,
"HttpServletResponse");
try
System.out.println("inside try");
ServletOutputStream os = response.getOutputStream();
// Set the Output Report File Name and Content Type
String contentDisposition = "attachment;filename=EmpReport.pdf";
response.setHeader("Content-Disposition", contentDisposition);
response.setContentType("application/pdf");
// Get the Data XML File as the XMLNode
XMLNode xmlNode = (XMLNode)am.invokeMethod("getEmpDataXML");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlNode.print(outputStream);
ByteArrayInputStream inputStream =
new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
//Generate the PDF Report.
TemplateHelper.processTemplate(((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
APP_NAME, TEMPLATE_CODE,
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_PDF, null,
pdfFile);
// Write the PDF Report to the HttpServletResponse object and flush.
byte[] b = pdfFile.toByteArray();
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
catch (IOException e) {
System.out.println("Exception1"+e);
} catch (SQLException e) {
System.out.println("Exception2"+e);
} catch (XDOException e) {
System.out.println("Exception3"+e);
pageContext.setDocumentRendered(false);
EmpAMImpl:
public void initEmpVO() {
EmpVOImpl vo = getEmpVO1();
if (vo == null) {
MessageToken errTokens[] =
{ new MessageToken("OBJECT_NAME", "EmpVO1") };
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
} else {
vo.executeQuery();
public XMLNode getEmpDataXML() {
OAViewObject vo = (OAViewObject)findViewObject("EmpVO1");
XMLNode xmlNode =
(XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
return xmlNode;
Please help !!Hi,
I tried the way suggested by Anil in the above link as well today, but still am getting the same error while openning the pdf .
Dont know why it shows error that either the file is not a supported file type or because the file is damaged.
Please suggest way to solve this error or some other way of calling xml report from OAF page.
Edited by: user13573749 on Apr 10, 2011 9:59 PM -
Need to find the root cause of the XML Publisher report erroring out.
Hello All,
After I ran for a Particular Invoice, to have output in XML Publisher Report for Invoice Priting. It got errored out with the below details which i got from the OPP Log file.
From the below information, how do I get exact root cause. Please do the needful.
=======================================================================
[8/6/09 11:16:32 AM] [774712:RT14922832] Executing post-processing actions for request 14922832.
[8/6/09 11:16:32 AM] [774712:RT14922832] Starting XML Publisher post-processing action.
[8/6/09 11:16:32 AM] [774712:RT14922832]
Template code: XXBIORAXINV_PHY
Template app: BIO_AR
Language: en
Territory: 00
Output type: PDF
[8/6/09 11:16:33 AM] [UNEXPECTED] [774712:RT14922832] 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.invokeParse(XSLT10gR1.java:517)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:229)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
Caused by: oracle.xdo.parser.v2.XMLParseException: Unexpected EOF.
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:324)
at oracle.xdo.parser.v2.XMLReader.popXMLReader(XMLReader.java:526)
at oracle.xdo.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1287)
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)
... 17 more
[8/6/09 11:16:33 AM] [774712:RT14922832] Completed post-processing actions for request 14922832.
=======================================================================
Please do the needful. Suggest the steps to get rid of this critical - issue.
Thanks,
AbdulPlease check if Output Post Processor concurrent manager is down/ inactive.
Restart the manager/ get it restarted and test the issue.
System Admin >> Concurrent >> Manager >> Administer -
How to print Barcode data in Oracle XML Publisher Report
Hi,
We have an rdf report which prints Bar code in the starting page based on a custom procedure from MarkView. It works well with Oracle Reports.
But since the current report was a matrix report, we are changing it to a Linear report through Oracle XML Publisher Report.
We have all the things possible in the new Oracle XML Report.. But we are unable to print the Bar code data which is BLOB in the XML Report..
Can anyone help me on this? We have UAT dates around the corner..
We have an RTF Template .
Help asap.
Thanks
AbhilashHi Abhishek,
Bar code Registration Steps in XMLPublisher responsibility:
1. Go to responsibility XML Publisher Administrator
2. Open Administration
3. Open Font Files Tab
4. Create Font File
5. Give Font Name : XX_BARCODE
6. File : Browse Barcode file
7. Apply
8. Go to Font mapping Tab
9. Open Create Font Mapping Set
10. Give Mapping Name: XX_BARCODE
11. Give Mapping Code: XX_BARCODE
12. Type : FO TO PDF
13. Apply
14. Open Tab Create Font Maping
15. Font Family: Code39-Digits(This name should be exactly the font name comes in word)
16. Style: Normal
17. Weight: Normal
18. Target Font Type: Truetype
19. Continue
20. Font : XX_BARCODE
21. Apply
1. Go to Template Tab
2. Query for your template
3. Open Edit Configuration
4. Click on FO Processing
5. In Font Mapping set Give XX_BARCODE
RTF Template (word):
1.Design the RTF template
2.Insert the barcode against reqd field
3.Make sure to put an * before and after the barcode so that scanner understands the beginning and end
Please send your rtf ,xml file if you are still facing issues.
Rgds, -
Rendering Imges in XML Publisher Report
Hi,
We have the requirement of Rendering Images in XML Publisher Report.This images will be for each record you export. We do not want to construct the URL at run time and show the image, rather want to send the data through XML as encoded binary information and at run time to interpret the data and render the Image.
Is this supported in XML Publisher, if yes , what are the steps to follow in sending the data (specific encoding/formats etc)
Thanks
Joseph GeorgeWhy can you not use send the path on the server via XML to the template to render the image?
Brett -
How to add a digital signature in xml publisher report
The problem is: There is a existing pick slip report.This is a xml publisher report and the data source is RDF. We have to add digital signature there. Now this signature is stored in a table with type Long Raw and format BMP. XML Publisher do not support Long Raw and BMP format. It supports BLOB and jpg format.
Could you please guide how to add this signature in the existing RDF with datatype as BLOB and format as jpg.
Please provide the steps with example.Hi,
Have a look at this thread.
Implementing electronic signatures on an existing AP check run
Re: Implementing electronic signatures on an existing AP check run
Regards,
Hussein
Maybe you are looking for
-
I can't download iPhoto 9.5.1 from App Store. Can anyone help?
After I made the up grade Montain Lion to Mavericks I had many problems, I have a macbook pro early 2011, and it was impossible to use. So yesterday I decided to do a clean install of OS X 10.9 system and reinstall my personal files and programs from
-
SAP roles- "getResourceObjects" search options?
Hi, I'm trying retrieve all the roles (activity groups) from a SAP resource. I use the "getResourceObjects" form util method to do this. This method retrieves all the roles on SAP system. But I need to get only the roles starting with a particular ch
-
Hi unfortunately due to the requirement to save the form i had to use the pdf form instea dof the web version. the problem i have i s the form is live and working ok, but i neeed to make some adjustments to the form, whats the best way to do this? ca
-
There isn't much more to this question. My format works like this: H2 Headline H3 Explanation H2 Headline H3 Explanation H2 Headline H3 Explanation I need to distribute these text boxes evenly down my page. It's a bit of a pain to do so manually. Sin
-
My external hard drive is suddenly locked. It doesn't unlock through 'get information' as I'm restricted to read only.