I'm pretty sure that logoName is always null in the following code line. File(filePath, imageDetailBean.getLogoName());
According with the docs [1], you should change your setter from setLogoName to set setLogoFileName [1] http://struts.apache.org/2.x/docs/file-upload.html Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin :http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 23 April 2012 18:28, rahul bhalla <urcoolfrien...@gmail.com> wrote: > > my server show like below > > Server path:/webportalextn null....... > java.lang.NullPointerException > at java.io.File.<init>(Unknown Source) > at com.webportal.admin.action.SetInfo.upload(SetInfo.java:89) > at com.webportal.admin.action.SetInfo.execute(SeInfo.java:26) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > ..... > -- > Regards > Rahul Bhalla > (9953225211) --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org