uploadServlet « IceFaces « JSF Q&A





1. Extends uploadServlet possible?    icefaces.org

2. NPE in UploadServlet at empty line position    icefaces.org

Hi there! Any clue about why would I find this kind of exception in my logs? 2007-08-27 14:29:47,553 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OTPProject].[uploadServlet]] Servlet.service() for servlet uploadServlet threw exception java.lang.NullPointerException at com.icesoft.faces.webapp.http.servlet.UploadServlet.service(UploadServlet.java:94) at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java(Inlined Compiled Code)) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java(Compiled Code)) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java(Compiled Code)) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java(Compiled Code)) at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java(Inlined Compiled Code)) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java(Compiled Code)) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code)) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code)) ...

4. Problem with the uploadServlet    icefaces.org

Hello everybody ! I have a big problem... I try to upload files onto a server and my servlet isn't working. When we attempt to upload a file, it launches an exception : Code: GRAVE: "Servlet.service()" pour la servlet uploadServlet a gnr une exception java.lang.NullPointerException at com.icesoft.faces.webapp.http.core.UploadServer$2$1.writeTo(UploadServer.java:96) at com.icesoft.faces.webapp.http.common.standard.StreamingContentHandler.respond(StreamingContentHandler.java:24) at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:161) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36) at com.icesoft.faces.webapp.http.core.UploadServer$2.servlet(UploadServer.java:94) at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.detectEnvironment(ServletRequestResponse.java:222) at com.icesoft.faces.webapp.http.core.UploadServer.service(UploadServer.java:50) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50) ...

5. inputFile: uploadServlet exception    icefaces.org

I have an inputFile element: Code: Upon pressing the Submit button,my action listener is called (it just logs a message), then: 13:17:00,785 ERROR [[uploadServlet]] Servlet.service() for servlet uploadServlet threw exception java.lang.IllegalArgumentException: no file extension in servlet path: /uploadHtml at org.jboss.seam.mock.MockViewHandler.getActionURL(MockViewHandler.java:44) at org.jboss.seam.jsf.SeamViewHandler.getActionURL(SeamViewHandler.java:74) at org.jboss.seam.faces.FacesManager.redirect(FacesManager.java:154) at org.jboss.seam.faces.Redirect.execute(Redirect.java:139) at org.jboss.seam.exception.DebugPageHandler.handle(DebugPageHandler.java:32) at org.jboss.seam.exception.Exceptions.handle(Exceptions.java:75) at org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:114) at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:70) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at ...