NPE while edding a text file

Hi there,

i have see that this bug has already been reported several times in the
tracker in serveral differents builds of IDEA, but it is always a non
repeteable bug.
For me it happens about 4-5 times a day, so it's quite annoying, because
i have to restart IDEA. After this bug happens, the cut, copy, paste,
undo and redo operations become unavailable or throws exceptions.

If i try to edit the same file form a "fresh" start it works fine.

In the stack trace, i have noticed the "file length:-1".

Hope it helps.

25473395] ERROR - on.impl.DaemonCodeAnalyzerImpl - Length wrong!
dirtyScope:PsiBinaryFile:MANIFEST.MF
ERROR - on.impl.DaemonCodeAnalyzerImpl - IntelliJ IDEA
(Aurora) Build #818
ERROR - on.impl.DaemonCodeAnalyzerImpl - JDK: 1.4.1_02
ERROR - on.impl.DaemonCodeAnalyzerImpl - VM: Java
HotSpot(TM) Client VM
ERROR - on.impl.DaemonCodeAnalyzerImpl - Vendor: Sun
Microsystems Inc.
ERROR - on.impl.DaemonCodeAnalyzerImpl - OS: Linux
ERROR - on.impl.DaemonCodeAnalyzerImpl - Last Action:
EditorCopy
ERROR - on.impl.DaemonCodeAnalyzerImpl -
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:16)
at com.intellij.codeInsight.h.a.e.b(e.java:46)
at com.intellij.codeInsight.h.a.e.a(e.java:33)
at com.intellij.codeInsight.h.a.e.b(e.java:188)
at com.intellij.codeInsight.h.a.e.a(e.java:123)
at com.intellij.codeInsight.h.a.l.run(l.java:1)
at com.intellij.util.Alarm$1.run(Alarm.java:1)
at com.intellij.util.Alarm$2.run(Alarm.java:10)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at com.intellij.ide.t.a(t.java:86)
at com.intellij.ide.t.dispatchEvent(t.java:117)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThre
ad.java:197)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread
.java:150)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
ERROR - on.impl.DaemonCodeAnalyzerImpl - file length:-1
ERROR - on.impl.DaemonCodeAnalyzerImpl - document length:251
ERROR - on.impl.DaemonCodeAnalyzerImpl - file text:null
ERROR - on.impl.DaemonCodeAnalyzerImpl - document
text:Manifest-Version: 1.0
Bundle-Vendor: Domotica
Bundle-Version: 0.0.1
Bundle-Activator: net.domotica.domocasa.core.Activator
Bundle-Name: etuner
Import-Package: org.osgi.service.log, net.domotica.domocasa.util,
net.domotica.domocasa.model


ERROR - #com.intellij.util.Alarm -
ERROR - #com.intellij.util.Alarm - IntelliJ IDEA
(Aurora) Build #818
ERROR - #com.intellij.util.Alarm - JDK: 1.4.1_02
ERROR - #com.intellij.util.Alarm - VM: Java
HotSpot(TM) Client VM
ERROR - #com.intellij.util.Alarm - Vendor: Sun
Microsystems Inc.
ERROR - #com.intellij.util.Alarm - OS: Linux
ERROR - #com.intellij.util.Alarm - Last Action:
EditorCopy
ERROR - #com.intellij.util.Alarm -
java.lang.NullPointerException
at com.intellij.codeInsight.h.a.e.b(e.java:198)
at com.intellij.codeInsight.h.a.e.a(e.java:33)
at com.intellij.codeInsight.h.a.e.b(e.java:188)
at com.intellij.codeInsight.h.a.e.a(e.java:123)
at com.intellij.codeInsight.h.a.l.run(l.java:1)
at com.intellij.util.Alarm$1.run(Alarm.java:1)
at com.intellij.util.Alarm$2.run(Alarm.java:10)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at com.intellij.ide.t.a(t.java:86)
at com.intellij.ide.t.dispatchEvent(t.java:117)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThre
ad.java:197)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread
.java:150)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

2 comments
Comment actions Permalink

I have tried to reproduce it and it's quite simple.
I have create a new proyect, with no JDK, no source files, nothing.
Then i select "Open file..." to open the text file. I am asked what type of file is, say Text file and the bug appears.

I use RedHat 8.0. IDEA 818.

I attach the file and the log.



Attachment(s):
idea.log
MANIFEST.MF
0
Comment actions Permalink

Could please submit it as a tracker request?

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Daniel" <dlebrero@softhome.net> wrote in message
news:20030605174051.16293932.dlebrero@softhome.net...

Hi there,

>

i have see that this bug has already been reported several times in the
tracker in serveral differents builds of IDEA, but it is always a non
repeteable bug.
For me it happens about 4-5 times a day, so it's quite annoying, because
i have to restart IDEA. After this bug happens, the cut, copy, paste,
undo and redo operations become unavailable or throws exceptions.

>

If i try to edit the same file form a "fresh" start it works fine.

>

In the stack trace, i have noticed the "file length:-1".

>

Hope it helps.

>

25473395] ERROR - on.impl.DaemonCodeAnalyzerImpl - Length wrong!
dirtyScope:PsiBinaryFile:MANIFEST.MF
ERROR - on.impl.DaemonCodeAnalyzerImpl - IntelliJ IDEA
(Aurora) Build #818
ERROR - on.impl.DaemonCodeAnalyzerImpl - JDK: 1.4.1_02
ERROR - on.impl.DaemonCodeAnalyzerImpl - VM: Java
HotSpot(TM) Client VM
ERROR - on.impl.DaemonCodeAnalyzerImpl - Vendor: Sun
Microsystems Inc.
ERROR - on.impl.DaemonCodeAnalyzerImpl - OS: Linux
ERROR - on.impl.DaemonCodeAnalyzerImpl - Last Action:
EditorCopy
ERROR - on.impl.DaemonCodeAnalyzerImpl -
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:16)
at com.intellij.codeInsight.h.a.e.b(e.java:46)
at com.intellij.codeInsight.h.a.e.a(e.java:33)
at com.intellij.codeInsight.h.a.e.b(e.java:188)
at com.intellij.codeInsight.h.a.e.a(e.java:123)
at com.intellij.codeInsight.h.a.l.run(l.java:1)
at com.intellij.util.Alarm$1.run(Alarm.java:1)
at com.intellij.util.Alarm$2.run(Alarm.java:10)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at com.intellij.ide.t.a(t.java:86)
at com.intellij.ide.t.dispatchEvent(t.java:117)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThre
ad.java:197)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread
.java:150)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
ERROR - on.impl.DaemonCodeAnalyzerImpl - file length:-1
ERROR - on.impl.DaemonCodeAnalyzerImpl - document length:251
ERROR - on.impl.DaemonCodeAnalyzerImpl - file text:null
ERROR - on.impl.DaemonCodeAnalyzerImpl - document
text:Manifest-Version: 1.0
Bundle-Vendor: Domotica
Bundle-Version: 0.0.1
Bundle-Activator: net.domotica.domocasa.core.Activator
Bundle-Name: etuner
Import-Package: org.osgi.service.log, net.domotica.domocasa.util,
net.domotica.domocasa.model

>
>

ERROR - #com.intellij.util.Alarm -
ERROR - #com.intellij.util.Alarm - IntelliJ IDEA
(Aurora) Build #818
ERROR - #com.intellij.util.Alarm - JDK: 1.4.1_02
ERROR - #com.intellij.util.Alarm - VM: Java
HotSpot(TM) Client VM
ERROR - #com.intellij.util.Alarm - Vendor: Sun
Microsystems Inc.
ERROR - #com.intellij.util.Alarm - OS: Linux
ERROR - #com.intellij.util.Alarm - Last Action:
EditorCopy
ERROR - #com.intellij.util.Alarm -
java.lang.NullPointerException
at com.intellij.codeInsight.h.a.e.b(e.java:198)
at com.intellij.codeInsight.h.a.e.a(e.java:33)
at com.intellij.codeInsight.h.a.e.b(e.java:188)
at com.intellij.codeInsight.h.a.e.a(e.java:123)
at com.intellij.codeInsight.h.a.l.run(l.java:1)
at com.intellij.util.Alarm$1.run(Alarm.java:1)
at com.intellij.util.Alarm$2.run(Alarm.java:10)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at com.intellij.ide.t.a(t.java:86)
at com.intellij.ide.t.dispatchEvent(t.java:117)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThre
ad.java:197)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread
.java:150)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)



0

Please sign in to leave a comment.