users@javaserverfaces.java.net

inputFileUpload not working.

From: Nishant <katoch.nishant_at_gmail.com>
Date: Sun, 1 Apr 2007 22:15:09 -0700 (PDT)

Fiel Upload is not working for me. Please let me know what might be the
reason.

I verifed the checklist that was suggested to get Upload working.

Here is the exception that I get once I click on the upload button:
_________________________________________________________________________
2007-04-02 00:42:07 StandardWrapperValve[Faces Servlet]: Servlet.service()
for servlet Faces Servlet threw exception
javax.faces.FacesException: Error calling action method of component with id
myForm:uploadbutton
        at
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
        at
org.ajax4jsf.framework.ajax.AjaxActionComponent.broadcast(AjaxActionComponent.java:88)
        at
org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:274)
        at
org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:250)
        at
org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:405)
        at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
        .....

Caused by: javax.faces.el.EvaluationException:
java.lang.NullPointerException
        at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
        at
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
        ... 39 more
Caused by: java.lang.NullPointerException
        at com.rdi.web.handler.UploadBean.startUploadNow(UploadBean.java:64)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
_________________________________________________________________________

-- 
View this message in context: http://www.nabble.com/inputFileUpload-not-working.-tf3503727.html#a9785281
Sent from the javaserverfaces users mailing list archive at Nabble.com.