0 Replies Latest reply on Jun 14, 2011 11:45 PM by el_jone

    Jsf 1.2 + richfaces 3.3.3 application in GFi v2=ok but in Gf v3=not work

    el_jone

      hi everibody:

       

      I am working to upload images to the server and guide me with the fileupload component of the page

      http://livedemo.exadel.com/richfaces-demo/richfaces/fileUpload.jsf?c=fileUpload&tab=usage RichFaces

      Example guide works well in GlassFish v2, the problem occurs when I switch to GF V3 (the app up, load the image but when I give click on the button "clear uploaded data" of <h:form> I get the following error (java.lang.NullPointerException).

      Below I will paste the error trace.

      I debugged my app and detect where the error is when the button "clear uploaded data" called the event "string clearUploadData" in class "FileUploadBean" and the method returns null.

      if someone could help me would be very, very grateful.

      My development environment is: netbeans 6.9, RichFaces 3.3.3, JSF 1.2, Java EE 5 web, oracle 10g client

       

      PS: Sorry for my English

      below the stack of error:

       

      java.lang.NullPointerException
      at javax.faces.component.UIComponentBase.findComponent(UIComponentBase.java:564)
      at org.ajax4jsf.component.EventValueExpression.getComponent(EventValueExpression.java:98)
      at org.ajax4jsf.component.AbstractEventValueExpression.getValue(AbstractEventValueExpression.java:98)
      at org.richfaces.component.html.HtmlFileUpload.getOnuploadcomplete(HtmlFileUpload.java:2022)
      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:597)