Re: Cannot remove project (due to notifier)

2007-03-26 Thread David Leangen

Sorry... never was able to get back to this until now.

On Tue, 2007-03-20 at 09:16 +, David Roussel wrote:
  I am unable to remove a project because of a FK constraint in the DB on
  the notifiers.
 
 See Re: troubles removing projects on 15 March 2007 on this very same
 mailing list.

The solution found in that thread by the original poster with the
problem was to re-install Continuum.

Ouch!


  Is there anyway I can get around this without having to poke around in
  the DB?
 
 Possibly not.

Guess I'll have to poke into the DB after all.

Can I presume that this known problem has been fixed? IIUC... a release
is imminent... is that true?


Cheers,
Dave





Re: Cannot remove project (due to notifier)

2007-03-20 Thread David Roussel

 I am unable to remove a project because of a FK constraint in the DB on
 the notifiers.

See Re: troubles removing projects on 15 March 2007 on this very same
mailing list.

 Is there anyway I can get around this without having to poke around in
 the DB?

Possibly not.


Cannot remove project (due to notifier)

2007-03-19 Thread David Leangen

Hello!

I am unable to remove a project because of a FK constraint in the DB on
the notifiers.

However, in the UI, it is not possible to remove the notifiers (that
were from the POM).

I tried commenting them out from the pom, but the old projects remain
with their dependencies on the notifiers.


Is there anyway I can get around this without having to poke around in
the DB?


Stack trace below:

ognl.MethodFailedException: Method removeProject failed for object
[EMAIL PROTECTED]
[javax.jdo.JDOUserException: One or more instances could not be deleted
NestedThrowables:
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM 
PROJECTNOTIFIER WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of foreign 
key constraint 'PROJECT_NOTIRN_FK2' for key (184).  The statement has been 
rolled back.
javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM 
PROJECTNOTIFIER WHERE ID = ?
NestedThrowables:
SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of foreign 
key constraint 'PROJECT_NOTIRN_FK2' for key (183).  The statement has been 
rolled back.]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
at ognl.SimpleNode.getValue(SimpleNode.java:210)
at ognl.Ognl.getValue(Ognl.java:333)
at ognl.Ognl.getValue(Ognl.java:378)
at ognl.Ognl.getValue(Ognl.java:357)
at 
org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation(DeleteEntity.java:57)
at 
org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.java:47)
at 
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)
at 
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)
at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
/-- Encapsulated exception \
javax.jdo.JDOUserException: One or more instances could not be deleted
at 
org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1438)
at 
org.jpox.store.rdbms.scostore.ElementContainerStore.clear(ElementContainerStore.java:595)
at 
org.jpox.store.mapping.CollectionMapping.preDelete(CollectionMapping.java:304)
at 
org.jpox.store.mapping.CollectionMapping.deleteDependent(CollectionMapping.java:332)
at 
org.jpox.store.rdbms.table.ClassTable.deleteDependent(ClassTable.java:2280)
at org.jpox.store.StoreManager.deleteDependent(StoreManager.java:838)
at 
org.jpox.state.StateManagerImpl.deletePersistent(StateManagerImpl.java:4049)
at 
org.jpox.AbstractPersistenceManager.internalDeletePersistent(AbstractPersistenceManager.java:1391)
at 
org.jpox.AbstractPersistenceManager.deletePersistent(AbstractPersistenceManager.java:1402)
at 
org.codehaus.plexus.jdo.PlexusJdoUtils.removeObject(PlexusJdoUtils.java:53)
at 
org.apache.maven.continuum.store.JdoContinuumStore.removeObject(JdoContinuumStore.java:969)
at 
org.apache.maven.continuum.store.JdoContinuumStore.removeProject(JdoContinuumStore.java:901)
at 
org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinuum.java:328)
at sun.reflect.GeneratedMethodAccessor194.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)