db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satheesh Bandaram <sathe...@Sourcery.Org>
Subject Re: Error when running a delete all a 2nd time
Date Fri, 12 Aug 2005 19:19:37 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Peart,<br>
<br>
The error is really strange... I can't spot what could be causing the
problem here. Would it be possible for you to make a complete
reproduction?<br>
<br>
Satheesh<br>
<br>
Peart, David E. wrote:<br>
<blockquote
 cite="mid8FA12926CCB8EC4CB47333C9B65F95D3015EDEE0@EMAIL.atpiad1.local"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2900.2523" name="GENERATOR">
  <div><font face="Arial" size="2"><span class="201554417-10082005">I'm
getting the following internalError when I try and delete from a table
after I have populated it.&nbsp; Has anybody seen this error or know whats
causing it.&nbsp; It only happens with this table (find the ddl attached),
other tables are fine</span></font></div>
  <div><font face="Arial" size="2"><span class="201554417-10082005">I've
using this to do some TDD. </span></font></div>
  <div><font face="Arial" size="2"><span class="201554417-10082005">a)
So I delete the contents of the table in a class setup</span></font></div>
  <div><font face="Arial" size="2"><span class="201554417-10082005">b)
load the data</span></font></div>
  <div><font face="Arial" size="2"><span class="201554417-10082005">c)
after all tests have run, delete the contents of the table</span></font></div>
  <div><font face="Arial" size="2"><span class="201554417-10082005"></span></font>&nbsp;</div>
  <div><font face="Arial" size="2"><span class="201554417-10082005">It's
during the 'c' step this occurs, and after I get this any attempt to
delete from the table produces this error.</span></font></div>
  <div><font face="Arial" size="2"><span class="201554417-10082005"></span></font>&nbsp;</div>
  <div><font face="Arial" size="2"><span class="201554417-10082005">Any
help would be appreciated as this is driving me crazy.</span></font></div>
  <div><font face="Arial" size="2"><span class="201554417-10082005"></span></font>&nbsp;</div>
  <div><font face="Arial" size="2"><span class="201554417-10082005">MessageID
= "XJ001.U"</span></font></div>
  <div><font face="Arial" size="2"><span class="201554417-10082005">SQLState
= "XJ001"</span></font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">net.atpco.common.dataaccess.errors.DataAccessApplicationException:
unexpected error occurred in attempt to execute SQL: Java exception:
'No run method: java.lang.InternalError'.; <br>
Caused by --&gt; <br>
java.lang.InternalError: No run method<br>
&nbsp;at
org.apache.derby.impl.sql.execute.DeleteCascadeResultSet.open(DeleteCascadeResultSet.java)<br>
&nbsp;at
org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java)<br>
&nbsp;at
org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java)<br>
&nbsp;at
org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(EmbedPreparedStatement.java)<br>
&nbsp;at
org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(EmbedPreparedStatement.java)<br>
&nbsp;at
net.atpco.rules.footnotes.server.dataaccess.MockJDBCDAO.createUpdateDelete(MockJDBCDAO.java:393)<br>
&nbsp;at
net.atpco.rules.footnotes.server.dataaccess.MockJDBCDAO.delete(MockJDBCDAO.java:442)<br>
&nbsp;at
net.atpco.rules.footnotes.server.dataaccess.FootNotesJDBCDAOFake.delete(FootNotesJDBCDAOFake.java:93)<br>
&nbsp;at
net.atpco.rules.footnotes.server.dataaccess.GenericFootNotesJDBCDAO.delete(GenericFootNotesJDBCDAO.java:208)<br>
&nbsp;at
net.atpco.rules.footnotes.server.dataaccess.GenericFootNotesDaSvc.delete(GenericFootNotesDaSvc.java:148)<br>
&nbsp;at
net.atpco.rules.footnotes.server.dataaccess.GenericFootNotesDaSvc.delete(GenericFootNotesDaSvc.java:152)<br>
&nbsp;at
net.atpco.rules.footnotes.server.dataaccess.FootNotesDaSvcTest.deleteSeedData(FootNotesDaSvcTest.java:207)<br>
&nbsp;at
net.atpco.rules.footnotes.server.dataaccess.FootNotesDaSvcTest$1.setUp(FootNotesDaSvcTest.java:41)<br>
&nbsp;at junit.extensions.TestSetup$1.protect(TestSetup.java:18)<br>
&nbsp;at junit.framework.TestResult.runProtected(TestResult.java:124)<br>
&nbsp;at junit.extensions.TestSetup.run(TestSetup.java:23)<br>
&nbsp;at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:329)<br>
&nbsp;at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:218)<br>
&nbsp;at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:151)<br>
&nbsp;at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:151)</font></div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
</blockquote>
</body>
</html>


Mime
View raw message