java.lang.IllegalStateException: Object already is target of defines relationship

Oracle Community | 3004 | 2 decades ago
  1. 0

    Designer 6i - Building Dependencies

    Oracle Community | 2 decades ago | 3004
    java.lang.IllegalStateException: Object already is target of defines relationship
  2. 0

    Error: Object already is target of defines relationship

    Oracle Community | 1 decade ago | 232629
    java.lang.IllegalStateException: Object already is target of defines relationship
  3. 0

    The implementation of _CRUDRepository.deleteAll()_ employs _EntityRemover.removeNode()_, which deletes all relationships regardless of direction. Thus, each relationship is deleted from the start and the end node, which is invalid and throws (sample below). {code} Exception in thread "main" java.lang.IllegalStateException: Unable to delete relationship[255491] since it is already deleted. at org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.relDelete(WriteTransaction.java:668) at org.neo4j.kernel.impl.persistence.PersistenceManager.relDelete(PersistenceManager.java:171) at org.neo4j.kernel.impl.core.NodeManager.deleteRelationship(NodeManager.java:1102) at org.neo4j.kernel.impl.core.RelationshipImpl.delete(RelationshipImpl.java:138) at org.neo4j.kernel.impl.core.RelationshipProxy.delete(RelationshipProxy.java:62) at org.springframework.data.neo4j.support.DelegatingGraphDatabase.remove(DelegatingGraphDatabase.java:253) at org.springframework.data.neo4j.support.mapping.EntityRemover.removeRelationship(EntityRemover.java:64) at org.springframework.data.neo4j.support.mapping.EntityRemover.removeNode(EntityRemover.java:51) at org.springframework.data.neo4j.support.mapping.EntityRemover.removeNodeEntity(EntityRemover.java:45) at org.springframework.data.neo4j.support.mapping.EntityRemover.remove(EntityRemover.java:85) at org.springframework.data.neo4j.support.Neo4jTemplate.delete(Neo4jTemplate.java:222) at org.springframework.data.neo4j.repository.AbstractGraphRepository.delete(AbstractGraphRepository.java:328) at org.springframework.data.neo4j.repository.AbstractGraphRepository.delete(AbstractGraphRepository.java:339) at org.springframework.data.neo4j.repository.AbstractGraphRepository.deleteAll(AbstractGraphRepository.java:345) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:333) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy34.deleteAll(Unknown Source) {code}

    Spring JIRA | 3 years ago | Johannes Mockenhaupt
    java.lang.IllegalStateException: Unable to delete relationship[255491] since it is already deleted.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 16#6832006

    GitHub | 4 years ago | ceefour
    java.lang.IllegalStateException: Unable to delete relationship[16] since it is already deleted.
  6. 0

    py2neo error on write batch py2neo.neo4j.BatchOperationFailedException

    Stack Overflow | 3 years ago | skme
    java.lang.IllegalStateException: Unable to delete relationship[259221] since it is already deleted.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Object already is target of defines relationship

      at oracle.des.ia.data.AnalysisObject.setParent()
    2. oracle.des.ia
      AnalysisTool.process
      1. oracle.des.ia.data.AnalysisObject.setParent(AnalysisObject.java:243)
      2. oracle.des.ia.data.AnalysisObject.addDefinesRelationship(AnalysisObject.java:346)
      3. oracle.des.ia.parser.forms.GenericListener.setDefinesRelationship(GenericListener.java:172)
      4. oracle.des.ia.parser.forms.GenericListener.parseObject(GenericListener.java:81)
      5. oracle.des.ia.parser.forms.ProgramUnitListener.parseObject(ProgramUnitListener.java:55)
      6. oracle.des.ia.parser.forms.FormsProcessor.processParseEvent(FormsProcessor.java:164)
      7. oracle.des.ia.parser.forms.FormsProcessor.navigate(FormsProcessor.java:187)
      8. oracle.des.ia.parser.forms.FormsProcessor.navigate(FormsProcessor.java:220)
      9. oracle.des.ia.parser.forms.FormsProcessor.start(FormsProcessor.java:59)
      10. oracle.des.ia.parser.forms.FormsParser.parse(FormsParser.java:183)
      11. oracle.des.ia.AnalysisTool.executeParser(AnalysisTool.java:1668)
      12. oracle.des.ia.AnalysisTool.process(AnalysisTool.java:1257)
      13. oracle.des.ia.AnalysisTool.process(AnalysisTool.java:943)
      13 frames
    3. oracle.repos.tools
      RunnableErrAdapter.run
      1. oracle.repos.tools.dependency.manager.framework.DependencyAnalyzer.parseObject(DependencyAnalyzer.java:468)
      2. oracle.repos.tools.dependency.manager.framework.DependencyAnalyzer.analyzeUsing(DependencyAnalyzer.java:324)
      3. oracle.repos.tools.dependency.manager.framework.DependencyAnalyzer.analyzeUsing(DependencyAnalyzer.java:247)
      4. oracle.repos.tools.dependency.manager.framework.DependencyAnalyzer.analyze(DependencyAnalyzer.java:219)
      5. oracle.repos.tools.dependency.manager.dialog.AnalyzeDialog$4.runImpl(AnalyzeDialog.java:608)
      6. oracle.repos.tools.dependency.manager.adapter.RunnableErrAdapter.run(RunnableErrAdapter.java:33)
      6 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:466)
      1 frame