java.lang.IllegalStateException: Cycle references detected, can't sort table references!

GitHub | gcscaglia | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 42#243755436

    GitHub | 6 months ago | gcscaglia
    java.lang.IllegalStateException: Cycle references detected, can't sort table references!

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Cycle references detected, can't sort table references!

      at org.jetbrains.exposed.dao.EntityCache$Companion.sortTablesByReferences()
    2. org.jetbrains.exposed
      SchemaUtils.create
      1. org.jetbrains.exposed.dao.EntityCache$Companion.sortTablesByReferences(Entity.kt:437)
      2. org.jetbrains.exposed.sql.SchemaUtils.createStatements(SchemaUtils.kt:15)
      3. org.jetbrains.exposed.sql.SchemaUtils.create(SchemaUtils.kt:102)
      3 frames
    3. example
      TestMetaModels$testCreate$1.invoke
      1. example.TestMetaModels$testCreate$1.invoke(TestMetaModels.kt:22)
      2. example.TestMetaModels$testCreate$1.invoke(TestMetaModels.kt:12)
      2 frames
    4. org.jetbrains.exposed
      ThreadLocalTransactionManagerKt.transaction
      1. org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt.inTopLevelTransaction(ThreadLocalTransactionManager.kt:69)
      2. org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt.transaction(ThreadLocalTransactionManager.kt:57)
      3. org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt.transaction(ThreadLocalTransactionManager.kt:48)
      3 frames
    5. example
      TestMetaModels.testCreate
      1. example.TestMetaModels.testCreate(TestMetaModels.kt:21)
      1 frame