You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Justin Stanczak <js...@vinu.edu> on 2004/11/10 18:19:25 UTC

Re: java.lang.NullPointerException on db.deletePersistent (); - FIXED

Never mind all. It was a stupid mistake on my part. I can't believe I 
missed it.

Justin Stanczak, Web Manager
Vincennes University
812-888-5813


"All that is necessary for the triumph of evil is that good men do nothing." Edmund Burke



Justin Stanczak wrote:

> Well I just setup another with same code and it works. Does anyone 
> have suggestions on what kind of mistakes would cause a 
> java.lang.NullPointerException when using the this.db.deletePersistent 
> (toBeDeleted);. I've removed just this line and there's no error, so I 
> know it's a mistake in this area. Either with the object or mappings. 
> This object below has no collections or references in it.
>
> Justin Stanczak, Web Manager
> Vincennes University
> 812-888-5813
>
>
> "All that is necessary for the triumph of evil is that good men do 
> nothing." Edmund Burke
>
>
>
> Justin Stanczak wrote:
>
>> I seem to be getting a NullPointerException when attempting to delete 
>> an object. I do this "this.db.deletePersistent (toBeDeleted);" and I 
>> get the exception. I've copied the same delete code to three 
>> different objects and two of the three throw the exception. I've 
>> looked over and over the code, but can't seem to figure it out. If 
>> someone has run into this I'm sure it's a simple mistake. Any help 
>> would be great.
>>
>>
>> java.lang.NullPointerException
>>     at 
>> com.carque.sale.SalePersonHandler.deleteSalesPerson(SalePersonHandler.java:134) 
>>
>>     at 
>> com.carque.sale.SalePersonHandler.handleRequest(SalePersonHandler.java:67) 
>>
>>     at com.carque.CarQue.handleRequest(CarQue.java:74)
>>     at 
>> org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:358) 
>>
>>     at 
>> org.apache.velocity.servlet.VelocityServlet.doPost(VelocityServlet.java:327) 
>>
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>     at 
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) 
>>
>>     at 
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) 
>>
>>     at 
>> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) 
>>
>>     at 
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233) 
>>
>>     at 
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) 
>>
>>     at 
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) 
>>
>>     at 
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 
>>
>>     at 
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) 
>>
>>     at 
>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) 
>>
>>     at 
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) 
>>
>>     at 
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 
>>
>>     at 
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) 
>>
>>     at 
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184) 
>>
>>     at 
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 
>>
>>     at 
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) 
>>
>>     at 
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 
>>
>>     at 
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) 
>>
>>     at 
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) 
>>
>>     at 
>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 
>>
>>     at 
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) 
>>
>>     at 
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
>>     at 
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
>>     at 
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833) 
>>
>>     at 
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732) 
>>
>>     at 
>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619) 
>>
>>     at 
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688) 
>>
>>     at java.lang.Thread.run(Thread.java:534)
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org