我有一个应用程序,包括primefaces 5.2,omnifaces 2.1,jsf 2.2,ejb和hibernate以及wildfly 8.1,我遇到一个大问题,只有一个客户是“哎呀! 处理ajax请求时出现问题。随后,在处理错误页面时出现了另一个问题,该页面应该通知您该问题。如果您是负责任的Web开发人员,则应该在错误页面本身中读取有关错误的服务器日志。“我是按问题查找,此消息是FullAjaxExceptionHandler类的常量,但我不知道解决了这个问题。
我可以看到它有很多这种异常
ERROR [io.undertow.request] (default task-64) Blocking request failed HttpServerExchange{ GET /correspondente/javax.faces.resource/dynamiccontent.properties}: java.lang.RuntimeException: java.io.IOException: Broken Pipe
at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:527)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
Caused by: java.io.IOException: Broken Pipe
at sun.nio.ch.FileDispatcherImpl.writev0(Native Method) [rt.jar:1.7.0_79]
at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51) [rt.jar:1.7.0_79]
at sun.nio.ch.IOUtil.write(IOUtil.java:148) [rt.jar:1.7.0_79]
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:524) [rt.jar:1.7.0_79]
at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:159) [xnio-nio-3.2.2.Final.jar:3.2.2.Final]
at io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:561)
at io.undertow.conduits.ChunkedStreamSinkConduit.doWrite(ChunkedStreamSinkConduit.java:171)
at io.undertow.conduits.ChunkedStreamSinkConduit.writeFinal(ChunkedStreamSinkConduit.java:226)
at org.xnio.conduits.ConduitStreamSinkChannel.writeFinal(ConduitStreamSinkChannel.java:104) [xnio-api-3.2.2.Final.jar:3.2.2.Final]
at io.undertow.channels.DetachableStreamSinkChannel.writeFinal(DetachableStreamSinkChannel.java:172)
at io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:582)
at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:616)
at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:451)
at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:525)
... 9 more
faces-config.xml中
<?xml version="1.0" encoding="UTF-8"?><faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
version="2.2">
<lifecycle>
<phase-listener>br.com.virtualsistemas.correspondente.filter.CorrespondenteFilter</phase-listener>
</lifecycle>
<factory>
<exception-handler-factory>org.omnifaces.exceptionhandler.FullAjaxExceptionHandlerFactory</exception-handler-factory>
</factory>
<application>
<resource-handler>
org.omnifaces.resourcehandler.UnmappedResourceHandler
</resource-handler>
</application>
的template.xhtml
<?xml version='1.0' encoding='UTF-8' ?><!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"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
<h:outputStylesheet library="css" name="foundation.css" />
<h:outputStylesheet library="css" name="basic.css" />
<h:outputScript library="javascript" name="primefaces_locate.js" />
<h:outputScript library="javascript" name="sistema.js" />
<h:outputScript library="javascript" name="jquery.maskMoney.js" />
<h:outputScript library="javascript" name="jquery.maskMoney.min.js" />
<link rel="shortcut icon" type="image/png" href="#{resource['img:icone.png']}" />
<p:ajaxStatus onstart="PF('statusDialog').show();" onsuccess="PF('statusDialog').hide();" />
<p:dialog modal="true" widgetVar="statusDialog" draggable="false" header="AGUARDE..." closable="false" resizable="false">
<p:graphicImage value="/resources/img/ajax_loader.gif" />
</p:dialog>
<ui:include src="/paginas/sistema/motivoPausa.xhtml" />
<ui:include src="/paginas/sistema/menu.xhtml" />
<div class="row">
<p:panel id="pnlConteudo" header="#{titulo}" styleClass="ui-panel-conteudo">
<h:form id="formConteudo" prependId="false">
<ui:insert name="conteudo" />
</h:form>
<ui:insert name="conteudo_sem_form" />
<ui:insert name="modal" />
<p:growl id="msg" widgetVar="msg" showDetail="false" life="10000" globalOnly="true" autoUpdate="true"/>
</p:panel>
</div>
<div class="row rodape">
<div id="rodape" class="ui-panel-titlebar ui-widget-header ui-helper-clearfix ui-corner-all alinhamento_centro">
<span class="ui-panel-title">Virtual Sistemas e Tecnologia Ltda. Copyright © 2014</span>
</div>
<div style="position: absolute; right: 0; bottom: 0; z-index: 2;">
<p:clock mode="server" pattern="dd/MM/yyyy HH:mm:ss" />
</div>
</div>