Sempre que examinar um stacktrace, procure por classes que você escreveu e exceções ligadas a ela. No seu caso, é um NullPointerException
na classe FileUploadBean
.
Veja a parte relevante do stacktrace abaixo:
Caused by: java.lang.NullPointerException
at br.com.drogaria.bean.FileuploadBean.upload(FileuploadBean.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.el.parser.AstValue.invoke(AstValue.java:245)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
... 35 more
Caused by: java.lang.NullPointerException
at br.com.drogaria.bean.FileuploadBean.upload(FileuploadBean.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.el.parser.AstValue.invoke(AstValue.java:245)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
... 35 more
Veja que nele é mostrado um NullPointerException
na linha 109 da classe br.com.drogaria.beanFileUploadBean.upload(FileuploadBen.java)