java.lang.IllegalStateException: Unable to access CDI

GitHub | mincong-h | 7 months ago
  1. 0

    GitHub comment 63#228890724

    GitHub | 7 months ago | mincong-h
    java.lang.IllegalStateException: Unable to access CDI
  2. 0

    Camel-CDI-mq example in 2.2.50.

    Google Groups | 1 year ago | Alex T
    java.lang.IllegalStateException: Unable to access CDI
  3. 0

    Unable to locate CDIProvider

    Google Groups | 5 months ago | Sverker Abrahamsson
    esteasy.spi.UnhandledException: java.lang.IllegalStateException: Unable to locate CDIProvider
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    You should define the TestContext class in your classpath
  6. 0
    You can solve this by using an actual Service instead of an IntentService

    1 unregistered visitors
    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

      Unable to access CDI

      at javax.enterprise.inject.spi.CDI.current()
    2. JavaEE 7
      CDI.current
      1. javax.enterprise.inject.spi.CDI.current(CDI.java:65)
      1 frame
    3. org.hibernate.search
      MassIndexerIT.testSearch
      1. org.hibernate.search.jsr352.MassIndexerImpl.registrerRootEntities(MassIndexerImpl.java:196)
      2. org.hibernate.search.jsr352.MassIndexerImpl.start(MassIndexerImpl.java:36)
      3. org.hibernate.search.jsr352.se.MassIndexerIT.indexCompany(MassIndexerIT.java:98)
      4. org.hibernate.search.jsr352.se.MassIndexerIT.testSearch(MassIndexerIT.java:70)
      4 frames