Breakpoint strangeness

Answered

Hello,

 

IntelliJ has been working well until just recently, now something is happening that I cannot explain or fix. I have breakpoints within a Wicket Link class (these have always worked)

When I navigate via Chrome webbrowser to the page this link is in, a breakpoint in the page's constructor is hit.

When I click on this particular link, and empty file is created, but the breakpoints are never hit.

 

Anyone have *any* idea what's going on?

I have File->Invalidate Cache/Restart, I've rebuilt the project.

It's just amazingly weird that the file is created (none of the breakpoints in my exportService.getPersonalDataFile() are hit either!).

I'm wrapping up a capstone project for my final course at university, so any help would be appreciated.

Thanks!

 

 

 

 

0
7 comments

Hard to say without a minimal project to reproduce it.

0

I think that might be difficult, as these types of breakpoints were working over that past 9 weeks of development. Last week of the course and this starts happening :/

 

By the way, I made a copy of the project directory, and then deleted all contents of the /target sub-directory, restarted IntelliJ.

 

I saw it recompile, but now when I try to debug I get the following error:

 

0

Check idea.log for errors (https://intellij-support.jetbrains.com/hc/articles/207241085).

Your project may be in some read-only location, Google Drive is known to cause such problems.

0

Hi Serge, thanks so much for answering so quickly!

 

The project's in a folder of my C: drive (Windows 10), not DropBox or Google Drive. The log file shows some exceptions:

 

2017-05-29 09:16:55,724 [ 268635]   INFO - ide.actions.ShowFilePathAction -
Exit code 1
2017-05-29 09:16:56,423 [ 269334]   INFO - lij.openapi.util.io.FileUtilRt -  
java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor152.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.openapi.util.io.FileUtilRt.deleteRecursivelyNIO(FileUtilRt.java:726)
    at com.intellij.openapi.util.io.FileUtil.delete(FileUtil.java:434)
    at com.intellij.util.io.SafeFileOutputStream.close(SafeFileOutputStream.java:123)
    at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
    at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase$1.close(LocalFileSystemBase.java:487)
    at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$2.close(PersistentFSImpl.java:644)
    at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:320)
    at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:149)
    at java.io.OutputStreamWriter.close(OutputStreamWriter.java:233)
    at com.intellij.openapi.util.JDOMUtil.write(JDOMUtil.java:383)
    at com.intellij.configurationStore.FileBasedStorageKt$doWrite$$inlined$runUndoTransparentWriteAction$1$1.compute(actions.kt:64)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1035)
    at com.intellij.configurationStore.FileBasedStorageKt$doWrite$$inlined$runUndoTransparentWriteAction$1.run(actions.kt:29)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.runUndoTransparentAction(CoreCommandProcessor.java:323)
    at com.intellij.configurationStore.FileBasedStorageKt.a(FileBasedStorage.kt:308)
    at com.intellij.configurationStore.FileBasedStorageKt.writeFile(FileBasedStorage.kt:210)
    at com.intellij.configurationStore.FileBasedStorage$FileSaveSession.saveLocally(FileBasedStorage.kt:103)
    at com.intellij.configurationStore.XmlElementStorage$XmlElementStorageSaveSession.save(XmlElementStorage.kt:140)
    at com.intellij.configurationStore.FileBasedStorage$FileSaveSession.save(FileBasedStorage.kt:88)
    at com.intellij.configurationStore.ComponentStoreImplKt.executeSave(ComponentStoreImpl.kt:489)
    at com.intellij.configurationStore.ComponentStoreImpl.doSave(ComponentStoreImpl.kt:241)
    at com.intellij.configurationStore.ProjectStoreImpl.doSave(ProjectStoreImpl.kt:350)
    at com.intellij.configurationStore.ComponentStoreImpl.save(ComponentStoreImpl.kt:198)
    at com.intellij.openapi.components.impl.stores.StoreUtil.save(StoreUtil.java:46)
    at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:352)
    at com.intellij.ide.SaveAndSyncHandlerImpl.doSaveDocumentsAndProjectsAndApp(SaveAndSyncHandlerImpl.java:137)
    at com.intellij.ide.SaveAndSyncHandlerImpl.saveProjectsAndDocuments(SaveAndSyncHandlerImpl.java:125)
    at com.intellij.ide.SaveAndSyncHandlerImpl$2.a(SaveAndSyncHandlerImpl.java:94)
    at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:86)
    at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:109)
    at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:118)
    at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
    at com.intellij.ide.SaveAndSyncHandlerImpl$2.onFrameDeactivated(SaveAndSyncHandlerImpl.java:92)
    at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:84)
    at com.intellij.ide.FrameStateManagerImpl.access$500(FrameStateManagerImpl.java:32)
    at com.intellij.ide.FrameStateManagerImpl$2.a(FrameStateManagerImpl.java:70)
    at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:223)
    at com.intellij.util.Alarm$Request.runSafely(Alarm.java:418)
    at com.intellij.util.Alarm$Request.access$700(Alarm.java:343)
    at com.intellij.util.Alarm$Request$1.run(Alarm.java:385)
    at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:303)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:410)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.k(IdeEventQueue.java:827)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:655)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: com.intellij.openapi.util.io.FileUtilRt$NIOReflect$1$2: Failed to delete C:\Projects\Web\Java\healthmanager\.idea\workspace.xml___jb_old___
2017-05-29 09:16:56,424 [ 269335]   WARN - mponents.impl.stores.StoreUtil - Save settings failed
java.lang.RuntimeException: java.io.IOException: Cannot save C:\Projects\Web\Java\healthmanager\.idea\workspace.xml.
Unable to delete an intermediate file (workspace.xml___jb_old___).
The file left unchanged.
    at com.intellij.util.ExceptionUtil.rethrow(ExceptionUtil.java:176)
    at com.intellij.util.lang.CompoundRuntimeException.throwIfNotEmpty(CompoundRuntimeException.java:148)
    at com.intellij.configurationStore.ComponentStoreImpl.save(ComponentStoreImpl.kt:200)
    at com.intellij.openapi.components.impl.stores.StoreUtil.save(StoreUtil.java:46)
    at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:352)
    at com.intellij.ide.SaveAndSyncHandlerImpl.doSaveDocumentsAndProjectsAndApp(SaveAndSyncHandlerImpl.java:137)
    at com.intellij.ide.SaveAndSyncHandlerImpl.saveProjectsAndDocuments(SaveAndSyncHandlerImpl.java:125)
    at com.intellij.ide.SaveAndSyncHandlerImpl$2.a(SaveAndSyncHandlerImpl.java:94)
    at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:86)
    at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:109)
    at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:118)
    at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
    at com.intellij.ide.SaveAndSyncHandlerImpl$2.onFrameDeactivated(SaveAndSyncHandlerImpl.java:92)
    at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:84)
    at com.intellij.ide.FrameStateManagerImpl.access$500(FrameStateManagerImpl.java:32)
    at com.intellij.ide.FrameStateManagerImpl$2.a(FrameStateManagerImpl.java:70)
    at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:223)
    at com.intellij.util.Alarm$Request.runSafely(Alarm.java:418)
    at com.intellij.util.Alarm$Request.access$700(Alarm.java:343)
    at com.intellij.util.Alarm$Request$1.run(Alarm.java:385)
    at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:303)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:410)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.k(IdeEventQueue.java:827)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:655)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.io.IOException: Cannot save C:\Projects\Web\Java\healthmanager\.idea\workspace.xml.
Unable to delete an intermediate file (workspace.xml___jb_old___).
The file left unchanged.
    at com.intellij.util.io.SafeFileOutputStream.close(SafeFileOutputStream.java:125)
    at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
    at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase$1.close(LocalFileSystemBase.java:487)
    at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$2.close(PersistentFSImpl.java:644)
    at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:320)
    at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:149)
    at java.io.OutputStreamWriter.close(OutputStreamWriter.java:233)
    at com.intellij.openapi.util.JDOMUtil.write(JDOMUtil.java:383)
    at com.intellij.configurationStore.FileBasedStorageKt$doWrite$$inlined$runUndoTransparentWriteAction$1$1.compute(actions.kt:64)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1035)
    at com.intellij.configurationStore.FileBasedStorageKt$doWrite$$inlined$runUndoTransparentWriteAction$1.run(actions.kt:29)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.runUndoTransparentAction(CoreCommandProcessor.java:323)
    at com.intellij.configurationStore.FileBasedStorageKt.a(FileBasedStorage.kt:308)
    at com.intellij.configurationStore.FileBasedStorageKt.writeFile(FileBasedStorage.kt:210)
    at com.intellij.configurationStore.FileBasedStorage$FileSaveSession.saveLocally(FileBasedStorage.kt:103)
    at com.intellij.configurationStore.XmlElementStorage$XmlElementStorageSaveSession.save(XmlElementStorage.kt:140)
    at com.intellij.configurationStore.FileBasedStorage$FileSaveSession.save(FileBasedStorage.kt:88)
    at com.intellij.configurationStore.ComponentStoreImplKt.executeSave(ComponentStoreImpl.kt:489)
    at com.intellij.configurationStore.ComponentStoreImpl.doSave(ComponentStoreImpl.kt:241)
    at com.intellij.configurationStore.ProjectStoreImpl.doSave(ProjectStoreImpl.kt:350)
    at com.intellij.configurationStore.ComponentStoreImpl.save(ComponentStoreImpl.kt:198)
    ... 37 more

0

It looks like the file system permissions issue. IntelliJ IDEA cannot create a temp file and then rename it, it's used for the safe write feature.

You can disable it here: 

0

Serge, after seeing the file could not be deleted, I attempted to manually delete it, that did not work.

 

So I rebooted my machine, and the file then could be manually deleted.

 

The breakpoints are now working. So, for me, manual deletion of everything in /target followed by a reboot solved the issue.

 

It makes me very nervous not understanding why this started happening though.

 

Again, thanks for the help, Serge!

 

0

Could be a hardware problem or a corrupted file system. Perform the disk check.

0

Please sign in to leave a comment.