JSF 2.2 - File upload return java.lang.NullPointerException
问题 <h:inputFile/> return a NullPointerException error. I know there is already a lot of stuff about this exception and uploading files with JSF but I've read it all without any success to diagnose this problem. I am using JSF 2.2 with GlassFish 4.1.1, without PrimeFaces or Tomahawk since you can handle the file upload with JSF 2.2. as I read. The goal is just to upload a picture on the remote filesystem, and copy the path to the DB to retrieve it later through a datatable. I've already checked :