NPE in NoRowsResultSetImpl.close

This is a discussion on NPE in NoRowsResultSetImpl.close within the Apache forums in Application Servers & Tools category; I am seeing a strange problem trying to execute a simple delete statement. I have never had a problem with this in the past. It seems NullPointerException is happening inside the derby delete code. DELETE FROM GEOFF__BLOG__USER WHERE "PK"=3 Caused by: java.lang.NullPointerException at org.apache.derby.impl.sql.execute.NoRowsResultSetI mpl.close(Unknown Source) at org.apache.derby.impl.sql.execute.DeleteResultSet. cleanUp(Unknown Source) at org.apache.derby.impl.sql.execute.DeleteCascadeRes ultSet.cleanUp(Unknown Source) at org.apache.derby.impl.sql.execute.DeleteCascadeRes ultSet.cleanUp(Unknown Source) at org.apache.derby.impl.sql.execute.DeleteCascadeRes ultSet.open(Unknown Source) at org.apache.derby.impl.sql.GenericPreparedStatement .execute(Unknown Source) ... 32 more...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-10-2008, 03:00 AM
Geoff hendrey
Guest
 
Default NPE in NoRowsResultSetImpl.close

I am seeing a strange problem trying to execute a simple delete statement. I have never had a problem with this in the past. It seems NullPointerException is happening inside the derby delete code.

DELETE FROM GEOFF__BLOG__USER WHERE "PK"=3

Caused by: java.lang.NullPointerException
at org.apache.derby.impl.sql.execute.NoRowsResultSetI mpl.close(Unknown Source)
at org.apache.derby.impl.sql.execute.DeleteResultSet. cleanUp(Unknown Source)
at org.apache.derby.impl.sql.execute.DeleteCascadeRes ultSet.cleanUp(Unknown Source)
at org.apache.derby.impl.sql.execute.DeleteCascadeRes ultSet.cleanUp(Unknown Source)
at org.apache.derby.impl.sql.execute.DeleteCascadeRes ultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement .execute(Unknown Source)
... 32 more
Reply With Quote
  #2  
Old 11-11-2008, 10:24 AM
Knut Anders Hatlen
Guest
 
Default Re: NPE in NoRowsResultSetImpl.close

Geoff hendrey <geoff_hendrey-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> writes:

> I am seeing a strange problem trying to execute a simple delete statement. I
> have never had a problem with this in the past. It seems NullPointerException
> is happening inside the derby delete code.
>
> DELETE FROM GEOFF__BLOG__USER WHERE "PK"=3
>
> Caused by: java.lang.NullPointerException
> at org.apache.derby.impl.sql.execute.NoRowsResultSetI mpl.close(Unknown
> Source)
> at org.apache.derby.impl.sql.execute.DeleteResultSet. cleanUp(Unknown
> Source)
> at org.apache.derby.impl.sql.execute.DeleteCascadeRes ultSet.cleanUp
> (Unknown Source)
> at org.apache.derby.impl.sql.execute.DeleteCascadeRes ultSet.cleanUp
> (Unknown Source)
> at org.apache.derby.impl.sql.execute.DeleteCascadeRes ultSet.open(Unknown
> Source)
> at org.apache.derby.impl.sql.GenericPreparedStatement .execute(Unknown
> Source)
> ... 32 more


Hi Geoff,

Are you able to reproduce this? It would be great if you could file a
JIRA issue for this error and upload a test case to reproduce it, if you
have one. From the stack trace, it looks like the NPE happens when the
delete cascades to another table which references GEOFF__BLOG__USER, so
the schema of the other tables would also be useful in the bug report.

--
Knut Anders

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:14 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.