再会,
我正在使用richfaces 组件上传文件(FileUpload FileUpload)。问题是它给我一个错误,只有当软件在 unix 服务器上使用时。当我在我的机器上测试时,在 Eclipse 上,文件的“添加”工作正常。
WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle]
JSF1053: (Listener: org.richfaces.component.FileUploadPhaselistener.beforePhase(), Phase ID: RESTORE_VIEW 1, View ID: ) Exception thrown during phase-listener execution: java.lang.IndexOutOfBoundsException
WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle]
java.nio.Buffer.checkBounds(Buffer.java:530)
java.nio.DirectByteBuffer.get(DirectByteBuffer.java:215)
org.apache.coyote.ajp.AjpAprProcessor.readMessage(AjpAprProcessor.java:1174)
org.apache.coyote.ajp.AjpAprProcessor.receive(AjpAprProcessor.java:1099)
org.apache.coyote.ajp.AjpAprProcessor$SocketInputBuffer.doRead(AjpAprProcessor.java:1239)
org.apache.coyote.Request.doRead(Request.java:428)
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:332)
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:420)
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:364)
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:162)
org.ajax4jsf.request.MultipartRequest.fillBuffer(MultipartRequest.java:415)
org.ajax4jsf.request.MultipartRequest.initialize(MultipartRequest.java:583)
org.ajax4jsf.request.MultipartRequest.parseRequest(MultipartRequest.java:616)
org.richfaces.component.FileUploadPhaselistener.beforePhase(FileUploadPhaselistener.java:63)
com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:102)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
.......
.......
.......
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:419)
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:402)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2036)
java.lang.Thread.run(Thread.java:619)
没有原因...有什么建议吗?