8 Replies Latest reply on Nov 1, 2009 7:58 PM by Richard Lam

    Getting XML Parsing Error: DTD is prohibited. in a4j logs. I

    Richard Lam Newbie

      Hi,

      Using Rich Faces 3.3 with Tomcat

      I am having a problem with IE7. We've implemented an session timeout which redirects to the login page. This works fine in browsers including firefox and IE6.

      However in IE7, the server serves the login page but the browser fails to rerender the page.

      Upon inspecting the a4j logs I can the following error:

      debug[14:00:46,373]: exception during write page content undefined
      error[14:00:46,388]: Error parsing responseXML Parsing Error: DTD is prohibited.
      Location: Line Number 1, Column 11:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
      -----------^



      The page only renders if I hit refresh (F5) in the browser? Anyone know a workaround for this?

      I've included the log with the last request. This includes the response page from the server.

      Thanks
      Richard


      debug[14:00:44,810]: Have Event [object Object] with properties: target: undefined, srcElement: http://localhost:7070/combined.webapp/pages/admin/mainForm.jsf?c=1256007762146#, type: click
      debug[14:00:44,826]: Query preparation for form 'mainForm' requested
      debug[14:00:44,841]: Append hidden control c with value [1256007762146] and value attribute [1256007762146]
      debug[14:00:44,857]: Append text control mainFormInclude:intermediary with value [] and value attribute []
      debug[14:00:44,873]: Append select-one control mainFormInclude:status with value [] and value attribute []
      debug[14:00:44,888]: Append select-one control mainFormInclude:product with value [] and value attribute []
      debug[14:00:44,888]: Append text control mainFormInclude:insured with value [] and value attribute []
      debug[14:00:44,920]: Append select-one control mainFormInclude:group with value [] and value attribute []
      debug[14:00:44,920]: Append select-one control mainFormInclude:user with value [] and value attribute []
      debug[14:00:44,935]: Append text control mainFormInclude:policyOrQuoteNumber with value [] and value attribute []
      debug[14:00:44,951]: Append select-one control mainFormInclude:authority with value [] and value attribute []
      debug[14:00:44,966]: Append hidden control mainForm with value [mainForm] and value attribute [mainForm]
      debug[14:00:44,982]: Append hidden control autoScroll with value [] and value attribute []
      debug[14:00:44,998]: Append hidden control javax.faces.ViewState with value [j_id2] and value attribute [j_id2]
      debug[14:00:45,013]: parameter j_id82:menuRenewalInvitations with value j_id82:menuRenewalInvitations
      debug[14:00:45,029]: parameter target with value /pages/admin/renewalInvitations.xhtml
      debug[14:00:45,045]: Look up queue with name 'menu'
      debug[14:00:45,060]: Found view queue 'menu'
      debug[14:00:45,076]: Queue is empty now
      debug[14:00:45,076]: New request added to queue 'menu'. Queue similarityGroupingId changed to menuRequest
      debug[14:00:45,091]: Queue will wait 500ms before submit
      debug[14:00:45,607]: Queue 'menu' will submit request NOW
      debug[14:00:45,623]: NEW AJAX REQUEST !!! with form: mainForm
      debug[14:00:45,638]: Start XmlHttpRequest
      debug[14:00:45,654]: Reqest state : 1
      debug[14:00:45,670]: QueryString: AJAXREQUEST=_viewRoot&c=1256007762146&mainFormInclude%3Aintermediary=&mainFormInclude%3Astatus=&mainFormInclude%3Aproduct=&mainFormInclude%3Ainsured=&mainFormInclude%3Agroup=&mainFormInclude%3Auser=&mainFormInclude%3ApolicyOrQuoteNumber=&mainFormInclude%3Aauthority=&mainForm=mainForm&autoScroll=&javax.faces.ViewState=j_id2&j_id82%3AmenuRenewalInvitations=j_id82%3AmenuRenewalInvitations&target=%2Fpages%2Fadmin%2FrenewalInvitations.xhtml&AJAX%3AEVENTS_COUNT=1&
      debug[14:00:46,091]: Reqest state : 2
      debug[14:00:46,107]: Reqest state : 3
      debug[14:00:46,123]: Reqest state : 4
      debug[14:00:46,138]: Reqest end with state 4
      debug[14:00:46,154]: Response with content-type: text/html;charset=UTF-8
      debug[14:00:46,201]: Full response content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
      <html xmlns="http://www.w3.org/1999/xhtml"> <head>
      <script src="/combined.webapp/pages/a4j/g/3_3_0.GA/org/ajax4jsf/framework.pack.js" type="text/javascript"></script><script src="/combined.webapp/pages/a4j/g/3_3_0.GA/org/richfaces/ui.pack.js" type="text/javascript"></script><link class="component" href="/combined.webapp/pages/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAELXT5DOhSIAQ!sA18_" rel="stylesheet" type="text/css" /><link class="component" href="/combined.webapp/pages/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAELXT5DOhSIAQ!sA18_" media="rich-extended-skinning" rel="stylesheet" type="text/css" /><script type="text/javascript">window.RICH_FACES_EXTENDED_SKINNING_ON=true;</script><script src="/combined.webapp/pages/a4j/g/3_3_0.GAprototype.js" type="text/javascript"></script><script src="/combined.webapp/pages/a4j/g/3_3_0.GAscriptaculous.js" type="text/javascript"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>Chartis Administration Portal</title>
      <link type="text/css" rel="stylesheet" href="/combined.webapp/styles/reset.css" />
      <link type="text/css" rel="stylesheet" href="/combined.webapp/styles/layout.css" />
      <link type="text/css" rel="stylesheet" href="/combined.webapp/styles/admin.css" />
      
      <link type="text/css" rel="stylesheet" href="/combined.webapp/overlay/facebox.css" />
       <link type="image/x-icon" rel="shortcut icon" href="/combined.webapp/favicon.ico" />
       <link type="image/x-icon" rel="icon" href="/combined.webapp/favicon.ico" />
      </head> <body> <div id="login_container"> <div id="header">
      <div id="logo"><img src="/combined.webapp/images/logo_chartis.gif" />
      </div> <div class="clear"></div> </div>
       <div>
       <div id="loginBackground"><img src="/combined.webapp/images/tap_login_background.jpg" />
       </div> </div> <div id="loginForm">
      <form id="login" name="login" method="post" action="/combined.webapp/pages/admin/login.jsf" class="form" enctype="application/x-www-form-urlencoded">
      <input type="hidden" name="login" value="login" />
      <input type="hidden" id="c" name="c" value="1256007922165" />
      <div id="platformAdmin"><img src="/combined.webapp/images/TAP_heading.jpg" />
      </div><ul class="errorMessage loginMessages"><li> Your session has timed out. </li></ul>
       <div class="loginField">
      <label>User Id: </label><input id="userId" type="text" name="userId" value="" class="width_3 inputText" maxlength="50" tabindex="010" />
       </div> <div class="loginField">
      <label>Password: </label><input id="password" type="password" name="password" value="" maxlength="50" tabindex="020" class="width_3 inputText" />
       </div>
       <div id="loginButtonDiv"><input id="loginButton" type="submit" name="loginButton" value="Login" />
       </div><script id="j_id22" type="text/javascript">LOG.registerPopup('L','LogWindow',800,600,LOG.ALL);</script><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id1" />
      </form> </div> <script>
      document.observe("dom:loaded", function() {
      var userId = $('userId');
      if (userId!=null) userId.focus(); }); </script>
      <div class="clear"></div> </div>
       <div id="version">0.0.0-000</div> </body> </html>

      debug[14:00:46,216]: Header Ajax-Response not found, search in <meta>
      debug[14:00:46,232]: Header Ajax-Expired not found, search in <meta>
      warn[14:00:46,248]: No ajax response header
      debug[14:00:46,263]: Header Location not found, search in <meta>
      debug[14:00:46,279]: replace all page content with response
      debug[14:00:46,295]: setup custom document.open method
      debug[14:00:46,373]: exception during write page content undefined
      error[14:00:46,388]: Error parsing responseXML Parsing Error: DTD is prohibited.
      Location: Line Number 1, Column 11:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
      -----------^
      debug[14:00:46,404]: page content has been replaced