1
0
-1

Hi All, 

I am working on some Fluent services in Intelij, Everything is working as expected despite the debugging part. 

I have followed the instructions in Debugging Guide, and after I click debug on UnitTest I am receiving an exception : 


java.lang.IllegalStateException: Current thread has no bound ObjectContext


The code which is raising the exception is in BaseContext class  -  apache cayenne: 

public static ObjectContext getThreadObjectContext() throws IllegalStateException {
ObjectContext context = (ObjectContext)threadObjectContext.get();
if (context == null) {
throw new IllegalStateException("Current thread has no bound ObjectContext.");
} else {
return context;
}
}


Am I missing some configuration item in IDE? 


  1. Christopher Eagar

    Hi Piotr,

    Did you ever find a solution for this?

    Regards, Chris

  2. Piotr Lechnio

    Hi Chris, 

    Unfortunately not. I was trying by playing with the code and IDE for couple hours but I didn't find any solution. Are you able to replicate that on your side? 

    Thanks, 

    Piotr 

  3. Christopher Eagar

    I'm not the man for the job Piotr, but will try and track someone down who can investigate.

CommentAdd your comment...