You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Dorel bruno <bd...@wanadoo.fr> on 2007/03/23 17:07:24 UTC

Can't remove a structure node

Hi all

I try tu use Slide API to add and remove file to a file repository : 
when I try to remove a node in structure I get :

23 Mar 2007 15:13:29 - org.apache.slide.security.ACLSecurityImpl - 
WARNING -  permission [object=/documents, subject=/roles/user, 
action=/actions/write, ->GRANT, INHERITABLE]
23 Mar 2007 15:13:29 - org.apache.slide.security.ACLSecurityImpl - 
WARNING -     permission=[object=/documents, subject=/roles/user, 
action=/actions/write, ->GRANT, INHERITABLE], match=true
23 Mar 2007 15:13:29 - 
org.apache.slide.store.impl.rdbms.PostgresRDBMSAdapter - ERROR - 
org.postgresql.util.PSQLException: ERROR: update or delete on 
"version_history" violates foreign key constraint "$1" on "properties"

org.postgresql.util.PSQLException: ERROR: update or delete on 
"version_history" violates foreign key constraint "$1" on "properties"

    at 
org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139)
    at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:152)
    at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:100)
    at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
    at 
org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:517)
    at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50)
    at 
org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:273)
    at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
    at 
org.apache.slide.store.impl.rdbms.PostgresRDBMSAdapter.removeObject(PostgresRDBMSAdapter.java:93)
    at 
org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.removeObject(AbstractRDBMSStore.java:458)
    at 
org.apache.slide.store.AbstractStore.removeObject(AbstractStore.java:803)
    at 
org.apache.slide.store.ExtendedStore.removeObject(ExtendedStore.java:684)

Here is my call to structure.remove

    at 
org.apache.slide.structure.StructureImpl.remove(StructureImpl.java:547)
    at 
sas.slideAPI.serveur.GestionDeContenuImpl.supprimeDocument(GestionDeContenuImpl.java:653)
    at 
sas.slideAPI.commun.corba.GestionDeContenuPOATie.supprimeDocument(GestionDeContenuPOATie.java:53)
    at 
sas.slideAPI.commun.corba.GestionDeContenuPOA._invoke(GestionDeContenuPOA.java:101)
    at 
sas.slideAPI.commun.corba.GestionDeContenuPOA._invoke(GestionDeContenuPOA.java:41)
    at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2822)
    at 
com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:186)
    at 
com.inprise.vbroker.poa.ServerInterceptorManager$ARWrapper.invoke(ServerInterceptorManager.java:111)
    at 
com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:838)
    at 
com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapter.java:68)
    at 
com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:1120)
    at 
com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:100)
    at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
23 Mar 2007 15:13:29 - sas.slideAPI.serveur.GestionDeContenuImpl - ERROR 
- org.apache.slide.common.ServiceAccessException: Service 
org.apache.slide.store.impl.rdbms.JDBCStore@79b177 access error : ERROR: 
update or delete on "version_history" violates foreign key constraint 
"$1" on "properties"


I joined my source code and the complete stack trace

Does anyBody can help me I can't manage this problem !


Regards B DOREL