简体   繁体   中英

Eclipse pausing without a breakpoint on getting session code

While debugging, my Eclipse pause on same line every time. I read this Eclipse pausing without a breakpoint , but there are no exceptions in my console. I also read this Why does my Eclipse project have phantom debugger breakpoints? , but it doesn't help too.

The code that pauses debugger without breakpoint is this:

Query query = sessionFactory.getCurrentSession().createQuery(hql);

I think there's no problem with createQuery() . Whenever getCurrentSession() called, my Eclipse pauses. Why is this happening?

Sometimes I face this kind of problem and everytime I end up finding out that my java code is not synchronized with my .class, this happens when I'm in remote debugging. Try to close your eclipse, clean your project and then try again. If you're debugging remotely, update your source codes.

Cheers!

Look into concurrency. Maybe ur running into situations like deadlock. It happens when two objects are not locked in the same order, causing two different threads to be waiting for each other to release other object.

At this point it appears that the entire program has paused. Maybe its whats happening, but cant say for sure until I can see the code.

Simple. Application always multithreading.. Obvously that application stop in another thread. When you analyze on which tread Eclipse stop and click on this thread - you found that Eclipse starts to react on command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM