Hi Andrus,
I am using Oracle 9i. I have byte[] and the line that
gives error(line#114) is :
-->byte[] data = fdb.getNewFile().getFileData();
(where fdb is a bean, and fdb.getNewFile() returns me
a FormFile object)
The stack trace is as follows :
java.lang.NullPointerException
at
com.atsva.glin.service.contributions.ContributionControllerImpl.addDo
cument(ContributionControllerImpl.java:114)
at
com.atsva.glin.web.servicebridge.ContributionDelegate.addDocument(Con
tributionDelegate.java:36)
at
com.atsva.glin.web.struts.action.LawsLookupDispatchAction.finalSubmit
(LawsLookupDispatchAction.java:172)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchActio
n.java:280)
at
com.atsva.glin.web.struts.action.ValidatorLookupDispatchAction.execut
e(ValidatorLookupDispatchAction.java:228)
at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
0)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:157)
at
com.atsva.glin.service.search.SetCharacterEncodingFilter.doFilter(Set
CharacterEncodingFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
ContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
0)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:534)
=====
Regards,
-Kalpesh
(703)506-8229 X-3308 (Work)
(203)676-9385 (Mobile)
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
This archive was generated by hypermail 2.0.0 : Mon Sep 20 2004 - 16:30:18 EDT