2009-06-24 47 views
0

我正在使用ICEFaces。我有多列數據表。一個我加載頁面我得到以下異常;然而,頁面仍然加載和contiues正確,但在我開始分頁表後,它很慢,我不確定這個例外是關於頁面仍然工作,我不知道它是否與分頁緩慢有關。ICEFaces異常

任何想法?

感謝,

的錯誤時拋出:

15:27:49,254 ERROR [Digester] Parse Fatal Error at line 1 column 1: Content is not allowed in prolog. 
org.xml.sax.SAXParseException: Content is not allowed in prolog. 
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) 
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) 
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 
    at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) 
    at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) 
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) 
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) 
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) 
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) 
    at org.apache.commons.digester.Digester.parse(Digester.java:1765) 
    at com.icesoft.faces.webapp.parser.TagToComponentMap.addTags(TagToComponentMap.java:145) 
    at com.icesoft.faces.webapp.parser.JsfJspDigester.startPrefixMapping(JsfJspDigester.java:126) 
    at org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unknown Source) 
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) 
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) 
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) 
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) 
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) 
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) 
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) 
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) 
    at org.apache.commons.digester.Digester.parse(Digester.java:1785) 
    at com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:130) 
    at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:464) 
    at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153) 
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110) 
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) 
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) 
    at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19) 
    at com.icesoft.faces.context.View$2$1.respond(View.java:48) 
    at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:201) 
    at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36) 
    at com.icesoft.faces.context.View$2.serve(View.java:76) 
    at com.icesoft.faces.context.View.servePage(View.java:139) 
    at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52) 
    at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11) 
    at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114) 
    at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24) 
    at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160) 
    at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42) 
    at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19) 
    at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63) 
    at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62) 
    at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) 
    at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153) 
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) 
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) 
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) 
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) 
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) 
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) 
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) 
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) 
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) 
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) 
    at java.lang.Thread.run(Thread.java:595) 
+0

你在同一個問題中拼寫了「expection」,「exception」和「excpetion」:p – aberrant80 2009-06-25 01:52:11

+0

yead我有拼寫問題:D – Tam 2009-06-25 16:30:28

回答

2

這將是困難的,沒有看到任何代碼來診斷什麼,但看起來這已經在其他地方之前覆蓋。你有沒有試過谷歌這個錯誤?這裏是你從this留言板線程看到的錯誤的定義:

這意味着你有根據XML規範不允許出現在根元素之前的東西。除了 可選的字節順序標記之外,確保NOTHING出現在XML聲明之前,並且XML聲明和最外面的元素(註釋,處理指令和空白字符除外)之間沒有任何內容。

希望有幫助。

+0

感謝您的回覆。我注意到的是,一旦我開始分頁,大約CPU使用率將達到100%!並且服務器似乎已經完成響應。我不認爲這是服務器的問題。有時瀏覽器會問我是否想停止腳本,因爲它已經運行很久了!這可能是一些JS和ICEFaces卡住了。有任何想法嗎? – Tam 2009-06-25 16:32:19

-1

可能是一個JSP問題。您需要提供更多信息。你最好問ICEFaces論壇。

0

如果您使用Facelets,可能是一個簡單的語法問題。 XML解析器(Xerces)告訴你頁面中有部分是不允許的。這可能是行爲的原因。

但是,如上所述,我們需要一個詳細的頁面標記看看。