| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.