Error: The XML page cannot be displayed
Hello,
I'm beginning to investigate XML output and XML Publisher. In order to generate XML output of an existing report, I changed the output type on to XML in the program definition.
When I run the report with English data the XML output displays just fine. When the data is in German, the html page display gives the error mentioned above.
How do I get my output to display for non-english character sets?
Thanks,
Carl
You can post this at the XML Publisher Forum to get a quick response.
BI Publisher
Sam
http://appstech-sam.blogspot.com
Similar Messages
-
The XML page cannot be displayed Cannot view XML input using XSL stylesheet
Hi Oracle Gurus,
I got this error ...once i have submitted request it shows warning ..I opened output it shows the below error...i cant understand how to resolve this error...Please help me...It is PL/SQ L STORED PROCEDURE CODE...
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
A semi colon character was expected. Error processing resource 'http://orappsus64.tsindia.in:8009/OA_CGI/FNDWRR.exe?temp_id...
<CP_PROJECT>IT/Quintiles/J&J COGNOS</CP_PROJECT>
----------------------------^
n-left:1em;text-indent:-2em"> <GL_MAIN_PERIOD>Jun-12</GL_MAIN_PERIOD>
<TOTAL_REVENUE>4026.14</TOTAL_REVENUE>
<GL_PERIOD>Jun-12</GL_PERIOD>
</G_TOTAL_REVENUE_CAT>
THIS IS MY LOG FILE
[10/1/12 10:44:26 AM] [main] Starting GSF service with concurrent process id = 157635.
[10/1/12 10:44:26 AM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
[10/1/12 10:44:26 AM] [Thread-22] Service thread starting up.
[10/1/12 10:44:26 AM] [Thread-23] Service thread starting up.
[10/1/12 10:52:33 AM] [OPPServiceThread1] Post-processing request 1296337.
[10/1/12 10:52:33 AM] [157635:RT1296337] Executing post-processing actions for request 1296337.
[10/1/12 10:52:34 AM] [157635:RT1296337] Starting XML Publisher post-processing action.
[10/1/12 10:52:34 AM] [157635:RT1296337]
Template code: XXTGSCPR004
Template app: PA
Language: en
Territory: US
Output type: EXCEL
[100112_105234216][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
[100112_105234216][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
[100112_105234216][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
[100112_105234216][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
[100112_105234216][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
[100112_105234217][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[US7ASCII]
[100112_105234217][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[-1]
[100112_105234217][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
[100112_105234217][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[100112_105234217][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
[100112_105234217][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
[100112_105234217][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=orappsus64.tsindia.in)(PORT=1530)))(CONNECT_DATA=(SID=clone)))]
[100112_105234217][][EXCEPTION] [DEBUG] [RESP_ID]:[-1]
[100112_105234217][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
[100112_105234217][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
[100112_105234218][][EXCEPTION] [DEBUG] [USER_ID]:[-1]
[100112_105234218][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[AMERICA]
[100112_105234218][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
[100112_105234218][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
[100112_105234218][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RR]
[100112_105234218][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
[100112_105234218][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
[100112_105234218][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
[100112_105234218][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
[100112_105234218][][EXCEPTION] [DEBUG] [LOGIN_ID]:[-1]
[100112_105234218][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
[100112_105234219][][EXCEPTION] [DEBUG] [APPLTMP]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appltmp]
[100112_105234219][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) SE Runtime Environment]
[100112_105234219][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386]
[100112_105234219][][EXCEPTION] [DEBUG] [java.vm.version]:[11.0-b15]
[100112_105234219][][EXCEPTION] [DEBUG] [OVERRIDE_DBC]:[true]
[100112_105234219][][EXCEPTION] [DEBUG] [dbcfile]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]
[100112_105234219][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Sun Microsystems Inc.]
[100112_105234219][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://java.sun.com/]
[100112_105234219][][EXCEPTION] [DEBUG] [path.separator]:[:]
[100112_105234219][][EXCEPTION] [DEBUG] [APPLCSF]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc]
[100112_105234220][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Server VM]
[100112_105234220][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
[100112_105234220][][EXCEPTION] [DEBUG] [sun.java.launcher]:[SUN_STANDARD]
[100112_105234220][][EXCEPTION] [DEBUG] [user.country]:[US]
[100112_105234220][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[unknown]
[100112_105234220][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
[100112_105234220][][EXCEPTION] [DEBUG] [user.dir]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc/log]
[100112_105234220][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.6.0_10-b33]
[100112_105234220][][EXCEPTION] [DEBUG] [CLIENT_PROCESSID]:[25943]
[100112_105234220][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.X11GraphicsEnvironment]
[100112_105234220][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/endorsed]
[100112_105234221][][EXCEPTION] [DEBUG] [os.arch]:[i386]
[100112_105234221][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]
[100112_105234221][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[tmp]
[100112_105234221][][EXCEPTION] [DEBUG] [line.separator]:[
[100112_105234221][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
[100112_105234221][][EXCEPTION] [DEBUG] [os.name]:[Linux]
[100112_105234221][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[100112_105234221][][EXCEPTION] [DEBUG] [cpid]:[157635]
[100112_105234221][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[UTF-8]
[100112_105234221][][EXCEPTION] [DEBUG] [oracle.apps.fnd.common.Pool.leak.mode]:[stderr:off]
[100112_105234221][][EXCEPTION] [DEBUG] [java.library.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386/server:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/../lib/i386:/AP1/oracle/PROD01/apps/tech_st/10.1.3/lib32:/AP1/oracle/PROD01/apps/tech_st/10.1.3/lib:/AP1/oracle/PROD01/apps/apps_st/appl/cz/12.0.0/bin:/AP1/oracle/PROD01/apps/apps_st/appl/iby/12.0.0/bin:/AP1/oracle/PROD01/apps/apps_st/appl/pon/12.0.0/bin:/AP1/oracle/PROD01/apps/apps_st/appl/sht/12.0.0/lib:/usr/java/packages/lib/i386:/lib:/usr/lib]
[100112_105234222][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
[100112_105234222][][EXCEPTION] [DEBUG] [java.class.version]:[50.0]
[100112_105234222][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Tiered Compilers]
[100112_105234222][][EXCEPTION] [DEBUG] [queue_appl_id]:[0]
[100112_105234222][][EXCEPTION] [DEBUG] [os.version]:[2.6.18-128.el5]
[100112_105234222][][EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]:[true]
[100112_105234222][][EXCEPTION] [DEBUG] [user.home]:[home/applmgr01]
[100112_105234222][][EXCEPTION] [DEBUG] [user.timezone]:[Asia/Kolkata]
[100112_105234222][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.print.PSPrinterJob]
[100112_105234222][][EXCEPTION] [DEBUG] [file.encoding]:[UTF-8]
[100112_105234222][][EXCEPTION] [DEBUG] [java.specification.version]:[1.6]
[100112_105234222][][EXCEPTION] [DEBUG] [CACHEMODE]:[DISTRIBUTED]
[100112_105234222][][EXCEPTION] [DEBUG] [conc_queue_id]:[6269]
[100112_105234222][][EXCEPTION] [DEBUG] [java.class.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/AP1/oracle/PROD01/apps/apps_st/comn/java/lib/appsborg2.zip:/AP1/oracle/PROD01/apps/apps_st/comn/java/classes]
[100112_105234222][][EXCEPTION] [DEBUG] [user.name]:[applmgr01]
[100112_105234222][][EXCEPTION] [DEBUG] [DBCFILE]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]
[100112_105234222][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
[100112_105234222][][EXCEPTION] [DEBUG] [java.home]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre]
[100112_105234222][][EXCEPTION] [DEBUG] [sun.arch.data.model]:[32]
[100112_105234223][][EXCEPTION] [DEBUG] [user.language]:[en]
[100112_105234223][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
[100112_105234223][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
[100112_105234223][][EXCEPTION] [DEBUG] [logfile]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc/log/FNDOPP157635.txt]
[100112_105234223][][EXCEPTION] [DEBUG] [java.version]:[1.6.0_10]
[100112_105234223][][EXCEPTION] [DEBUG] [java.ext.dirs]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/ext:/usr/java/packages/lib/ext]
[100112_105234223][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/resources.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/sunrsasign.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jsse.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jce.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/classes]
[100112_105234223][][EXCEPTION] [DEBUG] [java.vendor]:[Sun Microsystems Inc.]
[100112_105234223][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
[100112_105234223][][EXCEPTION] [DEBUG] [file.separator]:[]
[100112_105234223][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://java.sun.com/cgi-bin/bugreport.cgi]
[100112_105234223][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeLittle]
[100112_105234223][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[little]
[100112_105234223][][EXCEPTION] [DEBUG] [APPLOUT]:[out]
[100112_105234223][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[]
[10/1/12 10:52:35 AM] [UNEXPECTED] [157635:RT1296337] 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:597)
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:1665)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:285)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
Caused by: oracle.xdo.parser.v2.XMLParseException: Expected ';'.
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:337)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:305)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
... 17 more
[10/1/12 10:52:35 AM] [157635:RT1296337] Completed post-processing actions for request 1296337.
[GC 8059K->6286K(8692K), 0.0076290 secs]
[Full GC[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor17]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor19]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor18]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor13]
6286K->3865K(8692K), 0.0446370 secs]
Please help great appriciation.
Thanks,
Sidharth.A semi colon character was expected. Error processing resource 'http://orappsus64.tsindia.in:8009/OA_CGI/FNDWRR.exe?temp_id...
<CP_PROJECT>IT/Quintiles/J&J COGNOS</CP_PROJECT>
----------------------------^
n-left:1em;text-indent:-2em"> <GL_MAIN_PERIOD>Jun-12</GL_MAIN_PERIOD>
<TOTAL_REVENUE>4026.14</TOTAL_REVENUE>
<GL_PERIOD>Jun-12</GL_PERIOD>
</G_TOTAL_REVENUE_CAT>
{code}
Your PL/SQL code doesn't produce a valid XML document.
In the XML grammar, "&" is a special character and must be escaped using the character entity "&amp;".
If you were using standard methods to build XML from Oracle (SQL/XML functions for instance), I'm sure you wouldn't have this error.
Please show us the PL/SQL code you're using to produce this XML output and we'll be able to help you further. -
Proxy to File The XML page cannot be displayed
Hi My scenario is Proxy to File
no error in moni and also in comm channel.
.xml File generated sucessfully in the target. while i am trying to open it it saying that
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'file:///C:/Documents and Settings/P7106410/Desktop/Pro...
Gone through the related blogs but didnt solved.
Pls let me know what may the wrong
VankadoathThanks for ur replies Abhishek salvi, SudipPaul
no errors in comm channel shows all the logs sucessfull.
If I open the this file in note pad it shows correct
its an xml file, its not able to open in xml shows the error as
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
the xml structure is
<?xml version="1.0" encoding="utf-8" ?>
- <n0:Logos_ProjectPhasesData_SEN_MT xmlns:n0="ness.com:Czech:ProjectPhasesData" xmlns:prx="urn:sap.com:proxy:DV3:/1SAI/TAS30B2AEEE452B4C067B89:701:2009/02/10">
- <Row>
<PROJECT_DEF>X0-0097</PROJECT_DEF>
<DESCRIPTION1>Project for 3750-111.</DESCRIPTION1>
<RESPONSIBLE_NO1>00001831</RESPONSIBLE_NO1>
<WBS_ELEMENT>01-01</WBS_ELEMENT>
<DESCRIPTION2>Project for 3750-111</DESCRIPTION2>
<RESPONSIBLE_NO2>00000123</RESPONSIBLE_NO2>
<COUNTRY>HU</COUNTRY>
</Row>
- <Row>
<PROJECT_DEF>X0-0097</PROJECT_DEF>
<DESCRIPTION1>Project for 3750-111.</DESCRIPTION1>
<RESPONSIBLE_NO1>00001831</RESPONSIBLE_NO1>
<WBS_ELEMENT>01</WBS_ELEMENT>
<DESCRIPTION2>Project for 3750-111</DESCRIPTION2>
<RESPONSIBLE_NO2>00000123</RESPONSIBLE_NO2>
<COUNTRY>HU</COUNTRY>
</Row>
</n0:Logos_ProjectPhasesData_SEN_MT>
Regards
Vankadoath -
The XML page cannot be displayed
Hi,
i have problem when i run report in modul Purchasing.
This is new report. I create use .rdf but for output, i set to XML
the error is :
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
An invalid character was found in text content. Error processing resource 'http://oraapps.moratelindo.co.id:8000/OA_CGI/FND...
<VENDOR_NAME>CENTRADO PRIMA INT
When i click Refresh, output is "+Authentication failed+."
See screen capture above:
[http://my.jetscreenshot.com/demo/20120321-szyn-45kb.jpg]
So, what can i do about that problem.
Thanks
Edited by: adewe on Mar 21, 2012 11:13 AMwhen concurrent complited then press view output
you can see html page with +...Cannot view XML input using XSL style sheet...+
see code of page and post top 10 or may be more rows for identify xml
ps: may be you use xsd or dtd
Edited by: AlexAnd on Mar 20, 2012 9:59 PM -
XML Page cannot be displayed error on interactive reports
Hi, I am having trouble with a user downloading an interactive report as a CSV output. When a user tries to download the interactive report (as it is displayed when the web page loads, no alterations), they are getting this error:
The XML Page cannot be displayed.
Cannot view XML input using XSL style sheet. Please correct the error and then click the refresh button, or try again later.
A name was started with an invalid character. Error processing resource 'http.............'.
This is only happening with a small group of users which doesn't include me, so it has been very hard to troubleshoot. I can download the report and open in Excel without any problems.
I am using Apex version 3.2 and IE 8. The user did not have multiple windows or tabs open logged into ApEx at the same time.
Has anyone ever had this problem before? I could not find a thread with the same issue.
Thanks!i'm pretty sure that error comes up when your browser (ie, specifically, i believe) can't render the xml data it's received. i'm also pretty sure, as the full message implies, it's because it doesn't know what style sheet to use when you go to that page. in short, it's a browser config issue. one way to bypass it (to at least prove that it's a browser issue) would be to create a link to your page, right click the link, and do a "Save Target As...". the resulting file will be your valid XML one. fwiw, i've had better luck controlling the manner in which my xml data is received when i use mozilla or netscape (but i'd imagine there's just some setting you'd toggle in IE to avoid your issue).
hope this helps,
raj -
XML page cannot be displayed - Servlet error
Hi,
I am trying to extract XML data from a source using a servlet.But i am getting this error when i run my servlet in IE :
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
The download of the specified resource has failed. Error processing resource 'http://serverA.h.c.com:9300/p2pd/cog...
</dataset>
Can someone please guide me why i am getting this error? Here is the servlet code that i am using :
package com.cognos.demo;
import javax.servlet.http.*;
import java.io.*;
import com.cognos.developer.schemas.bibus._3.*;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
* To change this generated comment edit the template variable "typecomment":
* Window>Preferences>Java>Templates.
* To enable and disable the creation of type comments go to
* Window>Preferences>Java>Code Generation.
public class XMLGenerator extends HttpServlet
//Logging information goes here
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
response.setContentType ("text/html;charset=utf-8");
response.setCharacterEncoding("utf-8");
String xml = null;
RunReport reportRunner= new RunReport();
CRNConnect connect=new CRNConnect();
String url="http://serverA.h.c.com:9300/p2pd/servlet/dispatch";
String nameSpace="ADS_NS";
String uid="cognos";
String pwd="abcd45";
Logon sessionLogon = null;
int REP_XML=1;
try {
connect.connectToCognosServer(url);
catch (Exception e)
e.printStackTrace();
//System.out.println("Not able to connect to Cognos Server");
response.getWriter().print("Cannot connect to Cognos server");
sessionLogon=new Logon();
String logonOutputSource = "";
String reportOutput=null;
//Till the user gets logged in or he exits
while (!Logon.loggedIn(connect)) {
try
logonOutputSource = sessionLogon.quickLogon(connect,uid,pwd);
//System.out.println("Connected to the Cognos server..");
System.out.println(logonOutputSource);
catch(Exception ex)
System.out.println("Error : Unknown host ");
if (!Logon.loggedIn(connect)) {
response.getWriter().print("Unable to logon");
System.exit(0);
//Report Processing here
//String reportName=args[0].trim();
//locate the selected report
BaseClassWrapper selectedReport=null;
selectedReport=reportRunner.findReport(connect);
reportOutput=reportRunner.runReport(connect,selectedReport,REP_XML,false);
xml=reportOutput;
//System.out.println("Main:" + reportOutput);
System.exit(0);
try
response.getWriter().print(xml);
response.getWriter().flush();
catch (IOException e)
response.getWriter().print("Unable to publish xml");
System.out.println(e);
}I am using some classes to extract xml data from a data source and retrieve that as a string and then i am displaying it using response object.
Any help in this regard would be highly appreciated.
Thanks,
Shishir.
Edited by: Invinc4u on Dec 15, 2008 6:56 AMi'm pretty sure that error comes up when your browser (ie, specifically, i believe) can't render the xml data it's received. i'm also pretty sure, as the full message implies, it's because it doesn't know what style sheet to use when you go to that page. in short, it's a browser config issue. one way to bypass it (to at least prove that it's a browser issue) would be to create a link to your page, right click the link, and do a "Save Target As...". the resulting file will be your valid XML one. fwiw, i've had better luck controlling the manner in which my xml data is received when i use mozilla or netscape (but i'd imagine there's just some setting you'd toggle in IE to avoid your issue).
hope this helps,
raj -
XML Page cannot be displayed An invlaid character
While testing a report, I have noticed two issues and I believe this is the correct forum for the subject.
A report is completing successfully with a completion status of Normal in the concurrent manager. The report has data. However upon inspection of the XML of the request (Diagnostics -- View XML) the following error message appears
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
An invalid character was found in text content. Error processing resource 'http://sinudy07.devtst.go2uti.com:4110/OA_CGI/FN...
<ITEM_DESCRIPTION>Office supplies
Upon inspection of the data, it appears that the offending character is an ACSII 150.
Can you provide a solution by which alphanumeric data is properly handled in XML? Is this an encoding issue?
Why does XML Publisher exit successfully when it has an error? When this error is detected, I am assuming that the report is incomplete, but to the end user it looks complete.
Many thanks for your suggestions and advice.
TomIs the error message displayed in Firefox or in IE, or in a customized window that doesn't identify the browser?
''If it displays in Firefox:''
It's possible that the Troubleshooter doesn't work correctly unless IE is your default browser. You could test that possibility by having IE make itself the default and testing the Troubleshooter again.
''If it displays in IE or embedded in another Microsoft application:''
In a web search I found these suggestions:
(1) Reset your Internet Explorer settings, according to http://answers.microsoft.com/en-us/ie/forum/ie8-windows_7/cannot-view-xml-using-xsl-style-sheet/ccfe80c6-c0db-4594-a7e3-475f9eac0e85
(2) Try the System File Checker, according to http://ask-leo.com/why_do_i_get_the_xml_page_cannot_be_displayed_after_running_a_microsoft_troubleshooter.html
Any luck? -
XML page cannot be displayed?
Hi,
I'm getting this error message when trying to view the XML for a data template:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
A name was started with an invalid character. Error processing resource
<system name>
This is my Data Template:
<dataTemplate >
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[SELECT r.short_desc arec_type,
NVL (t.short_desc, 'No Group') aprospect_group,
p.prospect_id,
t.hierarchy_order asort_order,
DECODE (r.record_type_priority_value,
0, 99,
r.record_type_priority_value
) asort_rec
FROM prospect p,
prospect_entity pe,
entity e,
tms_prospect_group t,
tms_record_type r
WHERE p.prospect_id = pe.prospect_id
AND pe.id_number = e.id_number
AND e.record_type_code = r.record_type_code
AND p.prospect_group_code = t.prospect_group_code(+)
AND p.active_ind = 'Y']]>
</sqlStatement>
</dataQuery>
</dataTemplate>
Sorry if this is answered somewhere else. Couldn't find anything on it.
Thanks!Hi..
Your data template should look something like below...
<dataTemplate name="dataTemplateName" description="Template description">
<dataQuery>
<sqlStatement name="Q_1">
<![CDATA[SELECT r.short_desc arec_type,
NVL (t.short_desc, 'No Group') aprospect_group,
p.prospect_id,
t.hierarchy_order asort_order,
DECODE (r.record_type_priority_value,
0, 99,
r.record_type_priority_value
) asort_rec
FROM prospect p,
prospect_entity pe,
entity e,
tms_prospect_group t,
tms_record_type r
WHERE p.prospect_id = pe.prospect_id
AND pe.id_number = e.id_number
AND e.record_type_code = r.record_type_code
AND p.prospect_group_code = t.prospect_group_code(+)
AND p.active_ind = 'Y'
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_1" source="Q_1">
<element name="short_desc arec_type" value="short_desc arec_type"/>
<element name="aprospect_group" value="aprospect_group"/>
<element name="prospect_id" value="prospect_id"/>
<element name="asort_order" value="asort_order"/>
<element name="asort_rec" value="asort_rec"/>
</group>
</dataStructure>
</dataTemplate> -
XML page cannot be displayed cannot view XML input using XSL style sheet Please correct the error and then click the REfresh
Is the error message displayed in Firefox or in IE, or in a customized window that doesn't identify the browser?
''If it displays in Firefox:''
It's possible that the Troubleshooter doesn't work correctly unless IE is your default browser. You could test that possibility by having IE make itself the default and testing the Troubleshooter again.
''If it displays in IE or embedded in another Microsoft application:''
In a web search I found these suggestions:
(1) Reset your Internet Explorer settings, according to http://answers.microsoft.com/en-us/ie/forum/ie8-windows_7/cannot-view-xml-using-xsl-style-sheet/ccfe80c6-c0db-4594-a7e3-475f9eac0e85
(2) Try the System File Checker, according to http://ask-leo.com/why_do_i_get_the_xml_page_cannot_be_displayed_after_running_a_microsoft_troubleshooter.html
Any luck? -
"XML page cannot be displayed" error
Using XML output on a table with more than a few rows falls over with a "XML page cannot be displayed" error. Sometimes only the error is displayed, sometimes some rows are displayed with this error at the end of the page (eg the DEMO_STATES table)
Can anyone advise if there is some sort of limiter at work here?
Thanks,
Barryi'm pretty sure that error comes up when your browser (ie, specifically, i believe) can't render the xml data it's received. i'm also pretty sure, as the full message implies, it's because it doesn't know what style sheet to use when you go to that page. in short, it's a browser config issue. one way to bypass it (to at least prove that it's a browser issue) would be to create a link to your page, right click the link, and do a "Save Target As...". the resulting file will be your valid XML one. fwiw, i've had better luck controlling the manner in which my xml data is received when i use mozilla or netscape (but i'd imagine there's just some setting you'd toggle in IE to avoid your issue).
hope this helps,
raj -
XML Page cannot be displayed -- whitespace is not allowed at this location
To create an online training program I am using Captivate 3
to create the videos then move the published flash file into
Contribute 3 to create the XML and HTM files. Using the same
publishing steps most videos play; however, some videos do not. I
noticed in the FTP that videos which work will display text when I
open the XML file and those that do not I receive the error message
below:
"XML page cannot be displayed"
"Cannot view XML imput using XSL style sheet."
"Whitespace is not allowed at this location. Error processing
resource"
When I click on the flash files in the FTP the videos that
play and ones that do not play both will allow me to play the
video. I need for HealthStream (the web site my videos are stored)
to connect to the FTP but receive the message "error parsing the
XML document and content cannot be launched" due to the error
reading the XML document (located above).
Please help resolve the XML issue.Downloaded Captivate 3 demo to check it out. Nice program,
bit expensive though...
From what I saw so far the xml-export and inport feature is
used to create swf-files in different languages. Correct?
I don't see Contribute creating any xml or html when
importing the swf created by Captivate, so what do you mean exactly
by that?
Is it a feature (that I don't know yet) that you can load xml
files dynamically into the swf's for different languages? From the
help in Captivate I understand that you open your project, then
import the translated xml, publish and then you have a translated
swf. So I don't see why there is xml on your server. I only see the
swf's that function like they should. Inlighten me please and we
will search for more answers... -
I cannot open Pages from the app or from a saved document on the desk top. I get an error: "The application Pages cannot be opened -1712" Any suggestions?
The following previous discussion has a solution that worked for a variety of people with the -1712 error on a variety of applications and may help: The application Safari can't be opened -1712
-
Xml page can't display in the first time
Hi everyone:
I want to read data from MySQL to web page using JDOM.I read the data from database successful and insert them into a xml file.But I can't open the xml page property.It will display after I refresh the page more than ten times!
I find that it become easy if I use JDOM to do this work.I write the logic in a servlet:
/////////////////////////the servlet code is:////////////////////////////////////////////
public void displayXml(){
SAXBuilder build=new SAXBuilder();
try{
Document doc=build.build(new FileInputStream("C:\\tomcat\\webapps\\ROOT\\xmlbook\\mysql.xml"));
Element root=doc.getRootElement();
List books=root.getChildren();
out.println("debug... ...");
while(rs.next()){
Element id=root.getChild("id");
id.setText(rs.getString("id"));
Element name=root.getChild("name");
name.setText(rs.getString("name"));
Element title=root.getChild("title");
title.setText(rs.getString("title"));
Element content=root.getChild("content");
content.setText(rs.getString("content"));
Element time=root.getChild("time");
time.setText(rs.getString("time"));
XMLOutputter xmlout=new XMLOutputter("",true,"GBK");
xmlout.output(doc,new FileOutputStream("C:\\tomcat\\webapps\\ROOT\\xmlbook\\mysqlnew.xml"));
}catch(Exception e){
out.println(e.toString());
System.out.println(e.toString());
//////////////////////////////index.html/////////////////////////////////////////////////////
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Enter the title of your XHTML document here</title>
<link style="html/css" href="style.css" rel="stylesheet"/>
</head>
<body>
<h2>welcome to here</h2>
<form action="mainpageurl" method="post">
<p><input type="submit" value="CliCk To EnTEr" /></p>
</form>
</body>
</html>
//////////////////////////mysql.xml////////////////////////////////////////////////////
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href='mysqlxsl.xsl' type='text/xsl'?>
<rootpro>
<id/>
<name/>
<title/>
<content/>
<time/>
</rootpro>
/////////////////////////////End code///////////////////////////////////////////////////
I add a hyperlink to the xml in a web page.It will go to the xml page when user click the button.
But there is a problem puzzle me.The xml page will not display when the user first to come this page.The browser report error:"Can't display this page.The xml file must have a top element".It can display after I refresh this xml page more than ten times.Why?But the xml page already have a top element!~.I means the client must refresh the xml page more than ten times for display it.someone know why? :(sorry,My xsl file is:
////////////////////////////mysqlxsl.xsl//////////////////////////////////////
<?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">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<title>WelcomE To thE MainPagE</title>
</head>
<body>
<table border="1" bgcolor="#eecc00">
<tr>
<td>User Information</td>
<td><xsl:apply-templates select="result/entry"/></td>
</tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="entry">
<li><xsl:value-of select="ID"/></li>
<li><xsl:value-of select="Name"/></li>
<li><xsl:value-of select="Title"/></li>
<li><xsl:value-of select="Content"/></li>
<li><xsl:value-of select="Time"/></li>
</xsl:template>
</xsl:stylesheet>
I want to transform the xml file using the xsl. -
In the view of Web Dynpro- "Page cannot be displayed screen"
Dear All,
In se80,During ABAP Webdynpro development,in the View "Page cannot be displayed screen" is appearing.....In SICF i have activated almost all services.....can anyone please help me out,so that i can develop webdynpros plsssss...........
Regards
Sajid
Edited by: shaik sajid on Feb 10, 2009 7:32 AMCheck Your internet Explorer connection settings Internet Option->Connection->LAN settings.
Try playing around with it. We had the same problem in the past.
Greetings
Prashant
P.S- Points welcome -
When i open my SQL reporting URL it says this page cannot be displayed
Hi All,
I am using SQL Server 2008 with SP3. When i open my open my reporting manager URL. i get the error as "This page cannot be displayed" HTTP Error 500 internal server error. I read few blogs posted below. Tried both but could not help me out
http://social.technet.microsoft.com/Forums/en-US/1a03196f-f8ee-4a66-b08b-b2e02447a25e/can-not-open-page-for-report-manager-url-httplocalhost8080reports-for-sql-server-2008?forum=sqlreportingservices
and
http://ashwaniashwin.wordpress.com/2014/02/28/the-url-has-already-been-reserved-error-while-configuring-the-report-server-url-in-reporting-services-configuration-manager/
But none of them helped.
I tried deleting the reserved URL and re reserved but still did not help.
Tried changing the port number but still no luck.
I analysed the sql reporting error log and found the below.
===============================================
library!ReportServer_0-1!ad4!06/07/2014-03:30:52:: Call to GetSystemPropertiesAction().
ui!ReportManager_0-2!fbc!06/07/2014-03:30:54:: e ERROR: Unable to validate data.
ui!ReportManager_0-2!fbc!06/07/2014-03:30:54:: e ERROR: HTTP status code --> 500
===============================================
at ReportingServicesHttpRuntime.BaseWorkerRequest.FilterAndThrowException(Exception e, String message)
at ReportingServicesHttpRuntime.RsWorkerRequest.GetUserToken()
at System.Web.HttpContext.get_ImpersonationToken()
at System.Web.ClientImpersonationContext.Start(HttpContext context, Boolean throwOnError)
at System.Web.HttpApplication.ThreadContext.SetImpersonationContext()
at System.Web.HttpApplication.ThreadContext.Enter(Boolean setImpersonationContext)
at System.Web.HttpApplication.OnThreadEnterPrivate(Boolean setImpersonationContext)
at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
library!ReportServer_0-1!e0c!06/07/2014-03:30:49:: Call to GetItemTypeAction(/).
library!ReportServer_0-1!f10!06/07/2014-03:30:49:: i INFO: Catalog SQL Server Edition = Enterprise
library!ReportServer_0-1!e0c!06/07/2014-03:30:49:: i INFO: Catalog SQL Server Edition = Enterprise
crypto!ReportServer_0-1!e0c!06/07/2014-03:30:49:: i INFO: Initializing crypto as user: E2K\Lg161489
crypto!ReportServer_0-1!e0c!06/07/2014-03:30:49:: i INFO: Exporting public key
crypto!ReportServer_0-1!e0c!06/07/2014-03:30:49:: i INFO: Performing sku validation
crypto!ReportServer_0-1!e0c!06/07/2014-03:30:50:: i INFO: Importing existing encryption key
library!ReportServer_0-1!e0c!06/07/2014-03:30:50:: Call to ListParentsAction(/).
library!ReportServer_0-1!e0c!06/07/2014-03:30:50:: Call to ListChildrenAction(/, False).
webserver!ReportServer_0-1!e0c!06/07/2014-03:30:50:: i INFO: Processed folder '/'
library!ReportServer_0-1!ad4!06/07/2014-03:30:51:: Call to GetPermissionsAction(/).
library!ReportServer_0-1!f10!06/07/2014-03:30:51:: Call to GetPropertiesAction(/, PathBased).
library!ReportServer_0-1!ad4!06/07/2014-03:30:52:: Call to GetSystemPermissionsAction().
library!ReportServer_0-1!f10!06/07/2014-03:30:52:: Call to ListChildrenAction(/, False).
library!ReportServer_0-1!ad4!06/07/2014-03:30:52:: Call to GetSystemPropertiesAction().
library!ReportServer_0-1!f10!06/07/2014-03:30:52:: Call to GetSystemPropertiesAction().
library!ReportServer_0-1!ad4!06/07/2014-03:30:52:: Call to GetSystemPropertiesAction().
ui!ReportManager_0-2!fbc!06/07/2014-03:30:54:: e ERROR: Unable to validate data.
ui!ReportManager_0-2!fbc!06/07/2014-03:30:54:: e ERROR: HTTP status code --> 500
I have also attached all the logs in a FTP for further analysis. Please download it from the below link.
https://depositfiles.com/files/cfe6af33b
Can any one please help me. Seems to be a never ending issue to me.Take a look on link
http://pcsupport.about.com/od/findbyerrormessage/a/500servererror.htm
In case If you rebuilt the server then then linking will break , go in encryption keys option if only delete button is enabled, and backup button is disabled the delete the keys .close the report configuration manager and reopen the manager .Now try
to open report manager url.
Please click "Propose
As Answer" if a post solves your problem, or "Vote
As Helpful" if a post has been useful to you
Maybe you are looking for
-
Can anyone make a recommendation on the purchase of an external hard drive for my Macbook Pro? I am currently using OS 10.6.8 because I can't upgrade until I clean out my start up disc space. I have a ton of pictures to transfer.Thanks!
-
Were can i information find? Word access from the Java programm. Bulj
-
D600 Raw files won't open in LR but will in CS6. Help appreciated :)
Hi, I am having trouble opening my D600 raw files in LR 3.6. I transfered the images directly from my camer onto my hard drive. The images open fine in CS6 so I know they are not corrupted. What am I missing? Thank you!
-
VBRP does't have the PROFIT CENTRE FIELD
Hi Gurus, Hi Gurus I am fetching the billing(commision, credit notes ) from vbrp, based on profit centre, controlling area and date. but some where in vbrp profit centre field having no value. Actually this report is FICO but commission ,credit not
-
ORA-06502 PL/SQL: numeric or... when exporting data
I am getting this error message when I go to export data . I have a WHEN-BUTTON-PRESSED trigger on the Export button with the following code EXPORT_BLOCK(:SYSTEM.CURSOR_BLOCK); Why am I getting this error? Can anyone help. Thanks Nick