JSP XML output to file system
I hava a JSP application that uses the XDK to query the database and display XML rowset data to a JSP. This rowset data can be a few hundred rows or up to 50,000 rows,
as we publish technical manuals, parts manuals and wiring manuals for aircraft.
Getting the data to display within the JSP is not a problem. The problem is
that the XML rowset data shares two purposes:
1. Query by Example, returning
XML formatted data for display within a browser.
2. Use of the XML formatted
data as an external entity file for our SGML authoring software to print the
paper publication.
The JSP I developed (I'm not sure I should take credit for it) uses the XMLData bean and it will open the browser File/SaveAs dialog in both Netscape (Unix) and IE5.5 (Windows). HOWEVER, when I create a second JSP to perform the same task on a different table the JSP errorpage shows with no error and no errors within the JDeveloper console. This has been kicking my butt for some time, and would very much appreciate a workable solution. I will share whatever I can share with the provider. Here is the JSP code.
=============================================
<?xml version="1.0"?>
<%@ page language = "java" errorPage="errorpage.jsp" import = "java.io.*, java.util.*, oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*, oracle.jbo.html.databeans.*" contentType="text/html;charset=ISO-8859-1" %>
<jsp:useBean class="oracle.jbo.html.databeans.XmlData" id="h25EqXml" scope="request" >
<%
h25EqXml.setResultElement("equiptbl");
h25EqXml.setReleaseApplicationResources(true);
h25EqXml.setDisplayAttributes("Ein,Pnr,Nomen,Cage,Diagnbr,Sht,Effect");
h25EqXml.initialize(pageContext,"h25Wires_JspApp_h25Wires_be_H25Wires_beModule.HU25A_Equipment");
response.setContentType("text/sgml");
response.setHeader("Content-location","attachment;filename="+"equiptbl.sgm");
ServletOutputStream sos = response.getOutputStream();
BufferedInputStream bis = new BufferedInputStream (new FileInputStream("equiptbl.sgm"));
int data;
while((data = bis.read()) != -1)
sos.write(data);
bis.close();
sos.flush();
sos.close();
%>
<jsp:forward page= "HU5A_Equipment_Browse.jsp" />
</jsp:useBean>
============================================
The code for the other pages is the same with the exception of the filename xxx.sgm and the bean id.
I very much appreciate your help. Thanks!
null
Hello Paulo,
thank you for your answer, but i'm using type 04 XML for SEPA.
when i select Type XML, the fields "output to file system" and "filename" are hidden.
i dont understand why ...
Similar Messages
-
Extract XML output to file using PL/SQL
Hi.
Since Oracle 8.1.4.7.1 I am using XML output in my applications.
With that version of Oracle, my method was:
1. Make the select;
2. Create a file somewhere in my C drive;
3. Create the XML file header;
3. For each row, insert into the file, with the correct format;
4. Close the file;
... and, voilá ... the XML file was made.
Now, with the Oracle 10g, I know that I have much more ways to do it:
1. Package DBMS_XMLQUERY
2. Statements like
"SELECT XMLELEMENT("USERS", XMLELEMENT("nome_pessoa", e.nome_pessoa ||' - '|| e.login), XMLELEMENT ( "password", e.password)) AS "result"
FROM pessoa e"
3. Or finally using XML SQL Utility.
My question, is that if there is any way that i can make it all of this automatically. If there is any procedure or method that allow me to do all this stuff in just one step:
1. Select in XML output;
2. Creation of file;
3. Insertion of Select output in file and Close of File;
Thankx,I'm assuming that you want to write to the file system of the server that the database is running on...
you'll have to use utl_file
See
http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96612/u_file.htm -
Hi All,
I have an JMS to File interface that outputs an XML file.
The XML is being written to the file in one long line of text like below
<?xml version="1.0" encoding="UTF-8"?>
<field1>test</field1><field2>test</field2><field3>test</field3><field4>test</field4><field5>test</field5><field6>test</field6><field7>test</field7><field8>test</field8><field9>test</field9>
How can I get it to write out like this..
<?xml version="1.0" encoding="UTF-8"?>
<field1>test</field1>
<field2>test</field2>
<field3>test</field3>
<field4>test</field4>
<field5>test</field5>
<field6>test</field6>
<field7>test</field7>
<field8>test</field8>
<field9>test</field9>
I can't see any option in the File Communication Channel to do this???Damien,
Depending on how your create your target document, you could use :
XSLT : <xsl:output method="xml" indent="yes"/> it will automatically creates indentation according to XML structure, instead of flat structure,
JAVA: you can explicitly set the EOL pattern wherever you want (but this will require some coding). The XML framework you use may also offer native tool(s) to handle this.
Chris -
How to read XML from UNIX file system
Hi,
I have this code with read a xml file from windows:
Document doc = builder.build(new File(C:\\mywork\\src\\Contacts.xml));
But how can I read the same file from UNIX? (The file is located in "\tmp\Contacts.xml")
Thanks
KennyHi,
I have this code with read a xml file from windows:
Document doc = builder.build(new
File(C:\\mywork\\src\\Contacts.xml));
But how can I read the same file from UNIX? (The file
is located in "\tmp\Contacts.xml")
Thanks
KennyNo, the file is really located in "/tmp/Contacts.xml". You would writeDocument doc = builder.build(new File("/tmp/Contacts.xml"));Also, your original code would need quotes around the filename too. -
Saving JSP report output as a file on the application server
I am trying to determine if it is possible to save a web based JSP report to the file system in the same way you can with a report generated via the rwservlet command. I am specifying DESTYPE=HTML and DESNAME=/home/mydirectory/abc.htm on the command line, but it seems to be ignored. The directory has 777 permissions on it.
1. Is it possible to save the JSP output onto the file system just like paper based reports?
2. Where, if any, is documentation addressing this issue? The reports deployment guide appendix lists all the URL parameters that are available to the various rw commands, but nowhere is discussed what params are relavent to JSP reports.
3. If it is not possible to do this via the URL, does anyone know if I can somehow fetch out the inner HTML from the generated page at the bottom pf the JSP and then write it to the file system using JAVA? I know how to do it via JavaScript, but the reports are run on UNIX. Is there someway I can access the DOM inside the JSP?
4. Why hasn't Oracle explained this better?
Thanks,
mattThanks for getting back to me. But the documentation link below takes me to running rwservlet requests. This was not what I needed. The good news is my most excellent DBA, Manoj Gandhi, found an old TAR in Metalink that emphatically states that what I am trying to do is not possible. See Note:272401.1
Well, sort of not possible...
As it turns out it is possible, but you must schedule the report for immediate execution using the rwservlet's scheduling facility. Again, this came to me via my DBA. The TAR for this piece is Note:295420.1. Ignore the rwservlet urlparameter= part as best I can tell it's gibberish. Below is what I did. Substitute your info for the stuff in UPPER CASE and put it all on one contiguous line of course:
http://SERVER:PORT/PATH/rwservlet
?server=REPORT_SERVER_NAME
&destype=file
&desname=A_PATH_AND_FILE_FILE_NAME_WITH_EXTENSION
&jobtype=rwurl
&schedule=
&urlparameter=http://SERVER:PORT/PATH/JSP_NAME?userid=USERID&OTHER_PARAMETERS...
I am not sure why cmdkey= fails when passed in the urlparameter= but I am working on a solution! -
hi all. I have here a jsp code that generates XML.. how can i save the XML output to file instead of displaying it to the browser? pls. help. thanks.
<%@ page contentType="text/xml" %>
<?xml version="1.0" encoding="ISO-8859-1"?>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<report>
<header>
<title>TRANSACTIONS</title>
<description>PER COMPANY, BY PREMIUM TYPE</description>
<period>session.getAttribute("dateCreatedToPrint")</period>
</header>
<table>
<c:forEach var="transactionDetails" items="${listOfAllTransactionDetails}">
<transaction>
<company><c:out value="${transactionDetails.orgaName}" escapeXml="false" /></company>
<prem1><c:out value="${transactionDetails.premAmountType1}" escapeXml="false" /></prem1>
<prem2><c:out value="${transactionDetails.premAmountType2}" escapeXml="false" /></prem2>
<prem3><c:out value="${transactionDetails.premAmountType3}" escapeXml="false" /></prem3>
</transaction>
</c:forEach>
<totals>
<total>Total</total>
<total1><c:out value="${subTotals.subtotal1}"/></total1>
<total2><c:out value="${subTotals.subtotal2}"/></total2>
<total3><c:out value="${subTotals.subtotal3}"/></total3>
</totals>
</table>
</report>hi. i got the ff error when i added the code above. to which does "document" refer to? why does the Writer cannot be resolved eventhough i imported java.io.*?
The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 39 in the jsp file: /jsp/summaryOfTransactionsReport.jsp
document cannot be resolved
36: javax.xml.transform.TransformerFactory tfactory = TransformerFactory.newInstance();
37: javax.xml.transform.Transformer xform = tfactory.newTransformer();
38:
39: javax.xml.transform.Source src = new DOMSource(document);
40: java.io.StringWriter writer = new StringWriter();
41: StreamResult result = new javax.xml.transform.stream.StreamResult(writer);
42:
An error occurred at line: 55 in the jsp file: /jsp/summaryOfTransactionsReport.jsp
writer cannot be resolved
52: }
53:
54: Writer output = null;
55: String text = writer.toString();
56: File file = new File("myxml.xml");
57: output = new BufferedWriter(new FileWriter(file));
58: output.write(text);
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
web.cocafReport.servlet.GenerateCocafReportServlet.doPost(GenerateCocafReportServlet.java:51)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) -
DME file CLIEOP03 in file system
We want to create the DME in the File system of SAP. On the variant of RFFONL_I I selectioned the option to create the CLIEOP03 in the file system and gave a file name.
When testing it we face a serious shortcoming: the suffix of the file is always '01' resulting the file always being overwritten. In cases with different vendors and thus different payment files, the result is always 1 file being written to the file system.
Anyone had the same problem?
DTHi,
You are using the clasic payment program.
When you use the DMEE workbrache it is no problem to get the file on file system.
The program SAPFPAYM is then used for creating the payment file and there you have the option Output to file system.
With new implementation you should use the DMEE you never know how long the old clasic programs will be supported.
When it is a new implementation perhaps it is even better to start with the SEPA format -
JSP XML file parsing XSLT using Xalan
Hi all
I have created an XML file "view_campaign.xml" using JSP as shown in a code below and i wanna know how i should proceed to parse the XML file and so i can display this XML as the XSLT file i created.
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<%
// Identify a carriage return character for each output line
int iLf = 10;
char cLf = (char)iLf;
// Create a new empty binary file, which will content XML output
File outputFile = new File("C:\\WebContent\\view_campaigns.xml");
//outputFile.createNewFile();
FileWriter outfile = new FileWriter(outputFile);
// the header for XML file
outfile.write("<?xml version='1.0' encoding='ISO-8859-1'?>"+cLf);
try {
// Define connection string and make a connection to database
//DriverManager.registerDriver (new org.apache.derby.jdbc.ClientDriver());
Connection conn = DriverManager.getConnection("jdbc:derby://localhost:1527/sample","app","app");
Statement stat = conn.createStatement();
// Create a recordset
ResultSet rset = stat.executeQuery("Select * From campagn");
// Expecting at least one record
if( !rset.next() ) {
throw new IllegalArgumentException("No data found for the campaigns table");
outfile.write("<campaigns>"+cLf);
outfile.write("<campaign>"+cLf);
outfile.write("<campaign_id>" + rset.getString("campagn_id") +"</campaign_id>"+cLf);
outfile.write("<campaign_name>" + rset.getString("campagn_name") +"</campaign_name>"+cLf);
outfile.write("<campaign_type>" + rset.getString("campagn_type") +"</campaign_type>"+cLf);
outfile.write("<client>" + rset.getString("client_name") +"</client>"+cLf);
outfile.write("<positions>" + rset.getString("positions_nbr") +"</positions>"+cLf);
outfile.write("<begin>" + rset.getString("campagn_beginning_date") +"</begin>"+cLf);
outfile.write("<close>" + rset.getString("campagn_ending_date") +"</close>"+cLf);
outfile.write("</campaign>"+cLf);
// Parse our recordset
// Parse our recordset
while(rset.next()) {
outfile.write("<campaign>"+cLf);
outfile.write("<campaign_id>" + rset.getString("campagn_id") +"</campaign_id>"+cLf);
outfile.write("<campaign_name>" + rset.getString("campagn_name") +"</campaign_name>"+cLf);
outfile.write("<campaign_type>" + rset.getString("campagn_type") +"</campaign_type>"+cLf);
outfile.write("<client>" + rset.getString("client_name") +"</client>"+cLf);
outfile.write("<positions>" + rset.getString("positions_nbr") +"</positions>"+cLf);
outfile.write("<begin>" + rset.getString("campagn_beginning_date") +"</begin>"+cLf);
outfile.write("<close>" + rset.getString("campagn_ending_date") +"</close>"+cLf);
outfile.write("</campaign>"+cLf);
outfile.write("</campaigns>"+cLf);
// Everything must be closed
rset.close();
stat.close();
conn.close();
outfile.close();
catch( Exception er ) {
%>////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
this is my .XSL file
<?xml version="1.0" encoding="iso-8859-1" ?>
- <!-- DWXMLSource="view_campaigns.xml"
-->
<!DOCTYPE xsl:stylesheet (View Source for full doctype...)>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
- <xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Gestion des campagnes</title>
</head>
- <body>
Gestion des campagnes
- <table border="1">
- <tr bgcolor="#9acd32">
<th align="left">Code</th>
<th align="left">Nom</th>
<th align="left">Type</th>
<th align="left">Client</th>
<th align="left">Nombre de positions</th>
<th align="left">Date d'ouverture</th>
<th align="left">Date de cl�ture</th>
</tr>
- <xsl:for-each select="campaigns/campaign">
- <tr>
- <td>
<xsl:value-of select="campaign_id" />
</td>
- <td>
<xsl:value-of select="campaign_name" />
</td>
- <td>
<xsl:value-of select="campaign_type" />
</td>
- <td>
<xsl:value-of select="client" />
</td>
- <td>
<xsl:value-of select="positions" />
</td>
- <td>
<xsl:value-of select="begin" />
</td>
- <td>
<xsl:value-of select="close" />
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>I would be greatful that u answer my question what i should do have any exemple case study.Hi,
Try this code
JspWriter out = pageContext.getOut(); // Get JSP output writter
javax.xml.transform.TransformerFactory tFactory = javax.xml.transform.TransformerFactory.newInstance(); //Instantiate a TransformerFactory.
String realPath = "c:/applyXsl.xsl";
java.io.File file = new java.io.File(realPath); // crearte a file object for given XSL.
// Use the TransformerFactory to process the stylesheet Source and generate a Transformer.
javax.xml.transform.Transformer transformer = tFactory.newTransformer(new javax.xml.transform.stream.StreamSource(file));
java.io.StringReader inputStream = new java.io.StringReader("c:/xmlFile.xml"); // create an input stream for given XML doc
java.io.ByteArrayOutputStream obj = new java.io.ByteArrayOutputStream(); // Create an output stream for XSL applied XML doc.
// 3. Use the Transformer to transform an XML Source and send the output to a Result object.
transformer.transform(new javax.xml.transform.stream.StreamSource(inputStream), new javax.xml.transform.stream.StreamResult(obj));
String outputString = obj.toString(); // get the XSL applied applied XML document for print
out.println(outputString); // print the XSL applied XML in to JSP.
however you need xercesImpl.jar and xml-apis.jar files to run this program.
Regards,
Ananth.P -
Deliver a report in XML format and save it to local file system on the server
We have OBIEE 10.1.3.4 on Redhat linux. We want to have generate a report in XML format and saved it to the server's file system. Did not realize this is s difficult task. Basically
1) How to create a XML report? It is not listed in the output items of a layout template.
2) How to deliver XML the report to local file system. Look into the Delivery section of Admin page. FTP should be the best choice, but does that means that one need to install and run ftp server on the BI server box?
ThanksHi,
Since I still have problems on this subject, I would like to share on how it progresses.
Currently I have a problem of timeout in step "Truncate XML Schema" with the URL that I mentioned above.
The exact error is the following : 7000 : null : com.sunopsis.sql.l: Oracle Data Integrator TimeOut : connection with URL [...]
The connection test is still OK.
I tried to increase the value in the user's pref but there's no change. -
Converting an sap file output program into xml output
Hi,
I have developed a program from which i am able to generate outptut as a file. Since this file is going to be used by the third party system, user has come back asking me to generate an conversion program into xml of the file output.
Since i have not handled previously about generating the xml conversion program. Please let me know how to do this or if you could provide me the sample program it will be great.
Thanks in advance.
Sunil KumarHello
Just for example:
data: itab type standard table of sflight.
data: xml_out type string,xmltab type swbhtmltable.
select * from sflight into table itab.
call transformation ('ID')
source tab = itab[]
result xml xml_out.
call function 'SWA_STRING_TO_TABLE'
exporting
character_string = xml_out
importing
character_table = xmltab.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function 'GUI_DOWNLOAD'
exporting
filetype = 'BIN'
filename = 'C:\xmlfile.xml'
tables
data_tab = xmltab.
P.s. search SDN for CALL TRANSFORMATION -
Classpath/Datatype restriction/Output XML to a file
Hi,
I was trying to use a webservice but because the service could not identify the
classes needed to run the service it is giving me an exception.If only i give
the directory(temp staging directory-which is in my d drive but not within the
default directory where we have installed the weblogic6.1)in the classpath of
the system environment variable am i able to access the service.Is there any default
directory where i can store all of the EJB,supporting classes to run this webservice?
2.Also the datatypes are restricted and a clear mention of arrays(single array
only),iam trying to use String array but when iam creating the ear file using
Ant iam getting and exception
wsgen:
Error at line:8 col:12 ':' Already got a ':' in name
at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseExcepti
on(SAXElementFactory.java:60)
at weblogic.xml.babel.parsers.StreamParser.<init>(StreamParser.java:45)
at weblogic.xml.babel.parsers.BabelXMLEventStream.startDocument(BabelXML
EventStream.java:28)
at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:600)
at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:577)
at weblogic.soap.WebServiceProxy.getServiceFrom(WebServiceProxy.java:225
at weblogic.ant.taskdefs.ejb.WSGenHelper.writeClientJar(WSGenHelper.java
:1125)
at weblogic.ant.taskdefs.ejb.WSGenHelper.writeWSDL(WSGenHelper.java:1285
at weblogic.ant.taskdefs.ejb.WSGenHelper.saveDescriptors(WSGenHelper.jav
a:1418)
at weblogic.ant.taskdefs.ejb.WSGenHelper.output(WSGenHelper.java:1486)
at weblogic.ant.taskdefs.ejb.WSGenHelper.doit(WSGenHelper.java:1520)
at weblogic.ant.taskdefs.ejb.WSGen.execute(WSGen.java:93)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
3.while trying to use this service the output being generated is written to the
console.Could we direct this output XML to a file and if so what steps needs to
be followed in the client program(java)?
Could anybody sort out these issues?Thanks in advance.
NandulaIf you're trying to do this through sql*plus then just use 'spool'. If you need a pure pl/sql solution you'll need to use UTL_FILE.
Richard -
R12.0.6 OA PG xml - Error in - MDS or File System - No data found on region
Hello,
Instance details:
I am in release 12.0.6,
Am using "p7523554_R12_GENERIC" patch for building my OA page
Business components version : 10.1.3.3
Issue:
(when i run my OA page from my desktop, it works, but upon migrating the code to unix, I get the below java exception stack)
a. I ftp-ed the requisite files to the unix box (in the requisite mode)
b. I imported the xml data into the MDS successfully
adjava -mx128m -nojit oracle.jrad.tools.xml.importer.XMLImporter $OA_JAVA/oracle/apps/xxcus/receivingq/webui/ReceivingQPG.xml -username apps -password password -dbconnection "(description = (address_list = (address = (community = tcp.world)(protocol = tcp) (host =hostname)(port = 1521)))(connect_data = (sid = TEST)))" -rootdir $OA_JAVA
c. when i run the below script in sql plus
begin
JDR_UTILS.PRINTDOCUMENT('/oracle/apps/xxcus/receivingq/webui/ReceivingQPG');
end;
I can see my page contents without any errors
d. I bounced the apache (adapcctl.sh) and oa core (adoacorectl.sh)
e. upon clicking my form function, i get the below error (exception stack below)
Exception Details.
oracle.apps.fnd.framework.OAException: No data found for region (/oracle/apps/xxcus/receivingq/webui/ReceivingQPG.xml).
at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:529)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3745)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3467)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1100)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:702)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:359)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:252)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:186)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:191)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:322)
at RF.jspService(_RF.java:225)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:610)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:359)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
## Detail 0 ##
Exception:
oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /oracle/apps/xxcus/receivingq/webui/ReceivingQPG.xml, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1394)
at oracle.adf.mds.MElement.findElement(MElement.java:97)
at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:503)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3745)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3467)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1100)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:702)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:359)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:252)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:186)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:191)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:322)
at RF.jspService(_RF.java:225)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:610)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:359)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Exception:
oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /oracle/apps/xxcus/receivingq/webui/ReceivingQPG.xml, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1394)
at oracle.adf.mds.MElement.findElement(MElement.java:97)
at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:503)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3745)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3467)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1100)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:702)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:359)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:252)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:186)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:191)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:322)
at RF.jspService(_RF.java:225)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:610)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:359)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Please advise on any possible solution to this issue.
Thanks,
SanthoshHello Sumit,
In the form function registration,
I had this entry
OA.jsp?page=/oracle/apps/xxcus/receivingq/webui/ReceivingQPG.xml
Now, modified to,
OA.jsp?page=/oracle/apps/xxuns/receivingq/webui/ReceivingQPG
and it works.
Thanks a lot.
Anil,
Thanks for your suggestion.
Thanks,
Santhosh -
Output PDF on file system? (EBS)
Hi all,
When you run a BI Publisher report with a concurrent program, is the output PDF stored somewhere on the file system? (Where..) Thanks in advance!
Best Regards, Matilda SmedsThanks for the replies! I had found the out-file (xml file) previously. I wasn't aware that there was a separate table for the final outputs, though it is quite essential knowledge. Also, it is good to know the pdf also resides on the file system. Thanks again, to both of you.
Best Regards, Matilda -
Java file with xml output..
Hi all,
I am executing a java code in the command prompt.
It takes input of an xml file and gives the result in the command prompt itself which contains the complete format of soap file... using data.append(line);
data.append("/r/n");
Now it shows the whole output in the command line and i want it to create an xml or html file and transfer the output into that file....How will i do it... Im using HTTPClient..Is the output already in the XML or HTML format you desire?
If so you can just pipe it down to a file
In DOS Command Prompt (i think that's what you are using) what you do is use the > sign like this
dir > test.txt
Instead of getting the dir listing in the screen, it's piped down to the file
So what you do is
java yourJavaFile > yourOutput.xml (this is the simplified version, put your flags and everything there, after your command add > and the file name)
If you are using Unix/Linux systems, i think that the pipe command is || instead of >, but i'm not sure
If the result is not in the format you need, then you'll have to open a FileWriter in your code, and just write the things down in a file, in the manner you want. -
When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb. The records contained in excel file is 4000 records. When taking the excel records and copy to new excel file the excel file size is 3.5 mb only.Why does the oracle software generates 20mb file?
Does any one knows the answer please advice?Hello,
This issue is because the Excel output from BI Publisher is MHTML (XML Publisher generates XHTML) not binary .xls.
MHTML and XHTML are more verbose formats than binary .xls.
It will be large because the current Excel output is just an HTML and not compressed like PDF. Please use the workaround (save it as .xls file). This is a known limitation of RTF layout templates.
BI Publisher Enterprise has a new feature True Excel Templates. The layouts generate binary Excel output.
Excel Output File Size Generated By BI Publisher is Very Large (Doc ID 760437.1)
Bogdan
Maybe you are looking for
-
How do setup FlexUnit in your CI build process on 64-Bit Linux
Hello everyone. I am trying to setup FlexUnit in my build process and am using Rackspace cloud servers for my build server. I only have the option of Linux 64 bit distros or Windows 32b/64b. I started setting up and configuring everything on Linux bu
-
Request for MSI X360(MS-1355) dissassembly guide
Request for MSI X360(MS-1355) dissassembly guide
-
What happened?? (people with mac's)
i was lisenting to my ipod touch and i triple pressed to home button to bring it out of sleep so i could change the song (without unlocking it) and i had accidently hit the screen when the controls went away and this volume symbol i have never seen o
-
Hi There, Can anyone tell me why the attached VI returns a error? Many Thanks, Dan Dan CLD Attachments: cursor error.vi 9 KB
-
How to write group by ???
Hi all, I have problem with GROUP BY clause. My query is select case .........end shift, t.* from table1 where .... gruop by case.....end Its throws me an error. But if the remove the column "t.*" then if i write the satement select case .........end