Page cannot be displayed message

Hi,
When I run a webi report in the interactive viewer in XI 3.1 I get a 'The page cannot be displayed'. When I look at the technical information on that error page it says " Error code: 500 Internal Server Error. The request was rejected by the HTTP filter. Contact the server administrator (12217) "
Sometimes a report will run and be displayed OK but I seem to be getting this message on longer running reports.
Does anyone have any ideas why this is?
Thanks,
Chrs

Hmmmm I think it may be down to European character sets being restricted by the firewall.

Similar Messages

  • Page cannot be displayed message ONLY on the content area of the portal

    Hi All,
    I am using Netweaver Portal 7.0 and the portal works fine if logged in as an end user. But when I'm logged in as Administrator and whenever I try to create a portal object (iview or pages etc), I get a page cannot be displayed message ONLY on the content area of the portal. It is happening quite frequently, any clue what is wrong here?
    Thanks for your help
    -Mike

    Hi
    This could  sometimes happen because of  multiple users working on the same content .
    Edited by: chandana kallu on Mar 11, 2008 1:41 PM

  • The page cannot be displayed (message when

    Hi together,
    since a couple of weeks, I have the problem with the message above in subject. My Client tries to access a "news" document which is - so I think - created by XMLForms Builder. When he clicks on the link, he got the message "The page cannot be displayed. The page you are looking for is currently unavailable. ....".
    I have checked the IE option settings. Therefore, we have a PDF document with all required settings. I had also the same problem which has been fixed after I have made changes on my settings but that has no effect on my Client's PC.
    I need an urgent idea / solution how to fix that. Thanks for helps
    Cengiz

    If this is an XE installation it would probably be best addressed in the Oracle XE forum. Having said that, I had a similar problem on my Windoze machine and needed to uninstall all previous Oracle client products.
    The basic problem (for me) was that the operating environment (path and environment variables) is not properly prepared to run the XE database and web server. Removing the other Oracle client apps removed the conflicting and offending environment settings and all works well.
    For further info you might want to go to that Oracle XE forum.
    Earl

  • Https with tomcat-page cannot be displayed error

    Hi,
    when trying to connect using https browser displays page cannot be displayed message
    I've created a self-signed certificate using the keytool program.
    I've uncommented the connecter element for port 8443 in the server.xml file. I'm using jdk1.6 and tomcat 5.5.
    please help as to what i might have done wrong
    thanks

    hi
    I am also facing the same problem. I have installed jre5 and tomcat 5.
    I am not getting any error in configuration. it is working when I am using
    http://localhost:8443
    but it is not working with
    https://localhost:8443
    please help me on this
    Thanks in Advance
    Dalwinder Kumar

  • This page cannot be displayed - web connectivity problem

    Just purchased an HP laptop with Windows 8 and IE 10.
    I am connecting to my wireless connection because I can login and use Yahoo messenger, but cannot access any websites.  When open IE, get the error:  This page cannot be displayed. 
    There is an option to Fix Connection Issues - tried this and get the following results:
    Problem with wireless adaptor or access point  (not fixed)
    Your computer appears to be correctly configured, but the device or resource (www.msn.com) is not responding.
    Searched Google and there was a suggestion to flush the dns using command:  ipconfig \flushdns.  Did this, rebooted and then the home website does come up (www.msn.com).  However, if I click any link on the site, I then get back to the same 'This page cannot be displayed' message.
    Anyone else having this same issue or have any suggestions for resolving? 
    Thanks

    I'm sorry your new laptop isn't working! I think I have some solutions for you and hopefully resolve your issue quickly.
    (Make sure your time and date are correct!)
    First, reset your router. This is done by unplugging the power from your router and modem. Once ALL the lights on both are out, wait a few seconds. Plug the modem back in, wait for the lights to come on, then the router. Give it time to access the device and assign IP addresses (this takes up to 4 minutes with some models). Once completed, try to reconnect using your HP laptop.
    If that does not work, manually reset your IP address by using the command prompt (search for it using the search option on the right menu),
    ipconfig /release
    ipconfig /renew
    This should flush the IP address. You have already reset the DNS, and you may do so again just to clear everything.
    If that still does not work, hook the Ethernet cable directly into your laptop and see if it can get online. If it does, then it is a wireless connection issue and you should either return it OR have Geek Squad take a look. If it doesn't work, then either your router will NOT assign an IP address properly due to the computer having the same IP or Name as another computer on your network, or the computer could have a winsoc issue. In this case, you would have to restore the computer or
    go to :
    microsoft.com/fixit
    And use there fix. Download it on another computer, burn to DVD/CD or drop it to a flash drive, then use it on the computer giving you the issue.
    Let me know if any of these options work!
    - Disclaimer: While Agent Bender is currently employed at GeekSquad, ALL posts made by Agent Bender are her personal opinions, and do not reflect the opinions or policies of Best Buy or GeekSquad. -

  • Page cannot be dispalyed message

    i installed tomcat and created a simple servlet named servlet1.
    i created a directory named servlet1 and put servlet1.class under servlet1/WEB-INF/classes. i also put web.xml under WEB-INF.
    in web.xml i wrote-
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>servlet1</servlet-name>
    <display-name>servlet1</display-name>
    <servlet-class>servlet1</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>servlet1</servlet-name>
    <url-pattern>/servlet/servlet1</url-pattern>
    </servlet-mapping>
    </web-app>
    but when i tried to run it in the browser with url's like-
    http://localhost:8080/servlet/servlet1
    i got the "the page cannot be displayed" message
    (i also tried without the 8080).
    my environment variables are-
    JAVA_HOME = C:\j2sdk1.4.2_10\bin
    PATH = %PATH%;%JAVA_HOME%\bin
    what is wrong?
    thanks in advanced.

    hi friend,
    gave the url in browser like this :
    http://localhost:8080/servlet1/servlet/servlet1
    now ur application will get executed. Otherwise I gave small example with the required programs. pls look at those once and make changes as per my instructions. if u have any doubt let me know immediately.
    make the application as follows: u can execute ur application:
    i will give u each and everything clearly, follow these.
    step 1:[b]write the servlet : For example : TestServlet
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.GenericServlet;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    * @author sivakumar
    public class TestServlet extends GenericServlet  {
          public void service(ServletRequest request,ServletResponse response)throws ServletException,IOException{
                   PrintWriter out=response.getWriter();
                   response.setContentType("text/html");
                   out.println("Hi this is first servlet");
    step 2:[b]web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
      <servlet>
        <servlet-name>testServlet</servlet-name>
        <servlet-class>TestServlet</servlet-class>
      </servlet>
      <!-- Standard Action Servlet Mapping -->
      <servlet-mapping>
        <servlet-name>testServlet</servlet-name>
        <url-pattern>/testServlet</url-pattern>
      </servlet-mapping>
    </web-app>
    Step 3 : set classpath to servlet.jar or servlet-api.jar depending upon ur tomcat version
    for example, if Tomcat5.0 is available in C:\ drive,then
    set CLASSPATH=C:\Tomcat5.0\common\lib\servlet-api.jar
    Step 4: Compile your Servlet
    Step 5: Create your directory structure as follows : and place ur class file in classes directory of WEB-INF
              RootDirecotry
                             WEB-INF
                                         classes
                                         lib
                                         web.xml
                               html [if needed]
                               jsp [if needed]
            For ur application( For example ur root direcotory is   servlet)                 
                 servlet
                             WEB-INF
                                         classes
                                                    TestServlet.class
                                          lib
                                          web.xml  (which i have given above)      
    Step 6 : Deploy this application in tomcat's webapps directory
    Step 7 : Give the URL as follows
    http://localhost:8080/servlet/testServlet
    Port number depends on configuration. Make sure ur tomcat is running at 8080. otherwise give the port number which u mentioned at the time of tomcat installation.
    Thanks ,
    Regards.
    Message was edited by:
    siva_forums

  • Web Dispatcher - Page Cannot Be Displayed

    We have a Web Dispatcher in a DMZ (DMZ2) that is used for external (Internet) access to our E-Sourcing application. The E-Sourcing application is in another DMZ (DMZ1).
    When external (sell-side) users enter the url in their browser to connect through the Web Dispatcher over the Internet, the initial E-Sourcing screen is displayed very briefly in the browser and then the message 'Page cannot be displayed' comes up on the screen. If the browser screen is refreshed, the login screen is then displayed and the user is able to log in with no issues.
    This occurs only when trying to access the E-Sourcing application through the Web Dispatcher. It does not make any difference if the Web Dispatcher hostname is used in the url (internal access through Web Dispatcher) or if the url created specifically for the Web Dispatcher is used (external (Internet) access through the Web Dispatcher). The result is the same.
    If either http://WebDisp_Hostname (internal) or http://www.myESOapp.here.com (external Internet) is entered in the browser, both display the front-end ESO screen briefly and then display the 'Page cannot be displayed' message. Refreshing the browser screen then displays the login screen and users can log in OK.
    Can anyone point me in the right direction to solve this? I have reviewed the Web Dispatcher trace file and the E-Sourcing log file and can find no errors or anything that would indicate what might be going on. It appears to be a Web Dispatcher issue. Any help would be appreciated.
    WL

    Hi Wayne,
    When external (sell-side) users enter the url in their browser to connect through the Web Dispatcher over the Internet, the initial E-Sourcing screen is displayed very briefly in the browser and then the message 'Page cannot be displayed' comes up on the screen. If the browser screen is refreshed, the login screen is then displayed and the user is able to log in with no issues.
    When first time you call URL , do you the page of Esourcing or you directly get the error page.
    It better , install HTTP watch software on you dekstop and then activate the HTTP watch and start browsing the page and generate the problem which you are facing .
    Once it is done share the result of HTTP Watch  in the forum , depend upon that we can come to some solution.
    Thanks
    Anil

  • Webtemplate: The page cannot be displayed

    Hello All,
    When I try to execute a webtemplate in the Browser, I am getting "The page cannot be displayed" message. At the top of the Browser winow.."Cannot find server-Microsoft internet explorer"
    Could you explain me why the webtemplate is unable to execute in the browser?...what are the steps i have to proceed to execute the webtemplate in the browser?
    Regards,
    Pasumarty

    Hello Heike Guder,
    I checked in SMICM, HTTP protocol is running on 8080.
    I compared the Parameters of properly configured WAS, on which our webreporting is currently running.
    from rz10 the fllowing parameters are found, from the running server.
    icm/host_name_full
    icm/server_port_0
    icm/server_port_1
    icm/max_conn
    icm/max_threads
    icm/keep_alive_timeout
    and I added all the above parameters to the server, on which, ICM is not configured. After adding the above parameters, I found fallowing things:
    1. When i execute the template in the browser..the URL is "http://<server>:8100/sap/bw/BEx?sap-language=EN&bsplanguage=EN&CMD=LDOC&TEMPLATE_ID=ZACD_CHECK_APPLICATION01"
    --> even though icm/server_port_0 PROT=HTTP,PORT=8080,TIMEOUT=1800  but in the URL it is showing 8100 port.
    2. http://<server>:8100/sap/bw/BEx? is not working, same message, page can not be displayed.
    Please suggest me, if you have any further suggestions, to make WAS working properly.
    Regards
    Ravi

  • E-Recruitment error message :Page cannot be displayed

    Hi E u2013Recruitment Experts,
    While testing the E rec BSP pages from SE80 I am getting the error message:
    Page cannot be displayed.
    What I have done is as follows:
    Step 1:defined the context in table V77RCF_CONTEXT
    Step 2:defined the element of container sequence in table V77RCF_CS_ITEMC  by copyin the data from table V77RCF_CS_ITEM
    Step3. defined the container sequence in table V77RCF_CS_SEQC and defined the element.
    Step 4.defined link for start pages in table V77RCF_SP_LINKC while copying the data from table V77RCF_SP_LINK
    Step 5.Define Start page groups in table V77RCF_SP_GROUPC while copying the enteries from V77RCF_SP_GROUP
    Step 6;Defined Start pages in table V77RCF_SP_ASIDC while copying enteries from table V77RCF_SP_ASID
    Step 8:I generated the url using the program RCF_GENERATE_URLS using Https protocol
    Apart from above setting I have also made entries in the following customer tables:
    T77RCF_SP_ID(C) - Startpages
    T77RCF_SP_ID(C)T - Startpages texttable
    T77RCF_SP_GROUP(C) - Startpage groups (the blocks with a number of links)
    T77RCF_SP_GROUPT/GRPCT - Startpage groups texttable
    T77RCF_SP_LINK(C) - Links
    T77RCF_SP_LINK(C)T - Links texttable
    T77RCF_SP_ASID(C) - assignment of groups to startpages
    T77RCF_SP_ASGRP(C)
    But still I am getting the error message that the page cannot be displayed
    Can any body tell me where I have missed out
    Thanks and best regards
    Rajeev chhabra

    Hi Naddy,
    I could not find the error log in the given T code.Is there anything else where I should look at.
    Cheers
    Rajeev

  • 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

  • "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,
    Barry

    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 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.
    Tom

    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 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?

    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 - 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 AM

    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

Maybe you are looking for