
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
| Build: |
6,180
|
| Fixed in build: |
6,922
|
Support feedback:
Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
Error:Error: -1
I found a solution to this, but maybe you can help me understand it.
In Project Settings/Struts Assistant, if I turn off "Run Struts
configuration files validation" the error goes away.
This is odd, since the check box "Report errors as warnings" is
already turned on.
So, is there some kind of bug with the struts validation? I don't
think there is anything fundamentally wrong with our struts-config.xml
file, as this is a project for a working application (it is in
production, actually).
I did find the logs from yesterday, and it does appear to be related
to struts. The interesting thing is, now I don't get the error
anymore, even if I turn back on struts validation. It reports the
validation failures as errors, or warnings, depending on the check box
(whereas yesterday, it didn't seem to honor the check box). Somehow,
it is in a state now where it is doing what you would expect, but
there definitely may be a bug, as it wasn't in the correct state
yesterday.
Here is the content from the logs:
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - IntelliJ IDEA 6.0.5 Build #6180
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - JDK: 1.5.0_11
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - VM: Java HotSpot(TM) Client VM
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - Vendor: Sun Microsystems Inc.
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - OS: Windows XP
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - Last Action: GotoFile
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - Assertion failed
java.lang.Throwable
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:96)
at com.intellij.psi.PsiAnchor.<init>(PsiAnchor.java:1)
at
com.intellij.psi.impl.smartPointers.LazyPointerImpl.<init>(LazyPointer
Impl.java:18)
at
com.intellij.psi.impl.smartPointers.SmartPointerManagerImpl.createLazy
Pointer(SmartPointerManagerImpl.java:34)
at
com.intellij.codeInspection.ex.ProblemDescriptorImpl.<init>(ProblemDes
criptorImpl.java:4)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil$2$1.<in
it>(DomElementsHighlightingUtil.java:1)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil$2.fun(D
omElementsHighlightingUtil.java:0)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil$2.fun(D
omElementsHighlightingUtil.java:2)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil.a(DomEl
ementsHighlightingUtil.java:3)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil.createP
roblemDescriptors(DomElementsHighlightingUtil.java:20)
at
com.intellij.util.xml.highlighting.DomElementAnnotationsManagerImpl.cr
eateProblemDescriptors(DomElementAnnotationsManagerImpl.java:61)
at
com.intellij.util.xml.highlighting.DomElementsInspection$2.fun(DomElem
entsInspection.java:105)
at
com.intellij.util.xml.highlighting.DomElementsInspection$2.fun(DomElem
entsInspection.java:104)
at
com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:3
39)
at
com.intellij.util.xml.highlighting.DomElementsInspection.checkDomFile(
DomElementsInspection.java:102)
at
com.intellij.util.xml.highlighting.DomElementsInspection.checkFile(Dom
ElementsInspection.java:75)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:109)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.doCollectInf
ormation(LocalInspectionsPass.java:103)
at
com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInform
ation(TextEditorHighlightingPass.java:59)
at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.j
ava:0)
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(Ap
plicationImpl.java:271)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:
18)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThr
ead.java:2)
at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.j
ava:1)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(Prog
ressManagerImpl.java:51)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.jav
a:23)
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - IntelliJ IDEA 6.0.5 Build #6180
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - JDK: 1.5.0_11
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - VM: Java HotSpot(TM) Client VM
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - Vendor: Sun Microsystems Inc.
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - OS: Windows XP
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - Last Action: GotoFile
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - Exception happened in local
inspection tool: Struts inspection
java.lang.ArrayIndexOutOfBoundsException: -1
at com.intellij.psi.PsiAnchor.retrieve(PsiAnchor.java:45)
at
com.intellij.psi.impl.smartPointers.LazyPointerImpl.getElement(LazyPoi
nterImpl.java:5)
at
com.intellij.codeInspection.ex.ProblemDescriptorImpl.getStartElement(P
roblemDescriptorImpl.java:18)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil$2$1.get
PsiElement(DomElementsHighlightingUtil.java)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:156)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:27)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:109)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.doCollectInf
ormation(LocalInspectionsPass.java:103)
at
com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInform
ation(TextEditorHighlightingPass.java:59)
at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.j
ava:0)
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(Ap
plicationImpl.java:271)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:
18)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThr
ead.java:2)
at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.j
ava:1)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(Prog
ressManagerImpl.java:51)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.jav
a:23)
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - IntelliJ IDEA 6.0.5 Build #6180
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - JDK: 1.5.0_11
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - VM: Java HotSpot(TM) Client VM
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - Vendor: Sun Microsystems Inc.
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - OS: Windows XP
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - Last Action: GotoFile
|
|
Description
|
Support feedback:
Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
Error:Error: -1
I found a solution to this, but maybe you can help me understand it.
In Project Settings/Struts Assistant, if I turn off "Run Struts
configuration files validation" the error goes away.
This is odd, since the check box "Report errors as warnings" is
already turned on.
So, is there some kind of bug with the struts validation? I don't
think there is anything fundamentally wrong with our struts-config.xml
file, as this is a project for a working application (it is in
production, actually).
I did find the logs from yesterday, and it does appear to be related
to struts. The interesting thing is, now I don't get the error
anymore, even if I turn back on struts validation. It reports the
validation failures as errors, or warnings, depending on the check box
(whereas yesterday, it didn't seem to honor the check box). Somehow,
it is in a state now where it is doing what you would expect, but
there definitely may be a bug, as it wasn't in the correct state
yesterday.
Here is the content from the logs:
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - IntelliJ IDEA 6.0.5 Build #6180
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - JDK: 1.5.0_11
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - VM: Java HotSpot(TM) Client VM
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - Vendor: Sun Microsystems Inc.
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - OS: Windows XP
2007-04-17 11:01:46,787 [1381375] ERROR -
ction.ex.ProblemDescriptorImpl - Last Action: GotoFile
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - Assertion failed
java.lang.Throwable
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:96)
at com.intellij.psi.PsiAnchor.<init>(PsiAnchor.java:1)
at
com.intellij.psi.impl.smartPointers.LazyPointerImpl.<init>(LazyPointer
Impl.java:18)
at
com.intellij.psi.impl.smartPointers.SmartPointerManagerImpl.createLazy
Pointer(SmartPointerManagerImpl.java:34)
at
com.intellij.codeInspection.ex.ProblemDescriptorImpl.<init>(ProblemDes
criptorImpl.java:4)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil$2$1.<in
it>(DomElementsHighlightingUtil.java:1)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil$2.fun(D
omElementsHighlightingUtil.java:0)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil$2.fun(D
omElementsHighlightingUtil.java:2)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil.a(DomEl
ementsHighlightingUtil.java:3)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil.createP
roblemDescriptors(DomElementsHighlightingUtil.java:20)
at
com.intellij.util.xml.highlighting.DomElementAnnotationsManagerImpl.cr
eateProblemDescriptors(DomElementAnnotationsManagerImpl.java:61)
at
com.intellij.util.xml.highlighting.DomElementsInspection$2.fun(DomElem
entsInspection.java:105)
at
com.intellij.util.xml.highlighting.DomElementsInspection$2.fun(DomElem
entsInspection.java:104)
at
com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:3
39)
at
com.intellij.util.xml.highlighting.DomElementsInspection.checkDomFile(
DomElementsInspection.java:102)
at
com.intellij.util.xml.highlighting.DomElementsInspection.checkFile(Dom
ElementsInspection.java:75)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:109)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.doCollectInf
ormation(LocalInspectionsPass.java:103)
at
com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInform
ation(TextEditorHighlightingPass.java:59)
at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.j
ava:0)
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(Ap
plicationImpl.java:271)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:
18)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThr
ead.java:2)
at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.j
ava:1)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(Prog
ressManagerImpl.java:51)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.jav
a:23)
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - IntelliJ IDEA 6.0.5 Build #6180
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - JDK: 1.5.0_11
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - VM: Java HotSpot(TM) Client VM
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - Vendor: Sun Microsystems Inc.
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - OS: Windows XP
2007-04-17 11:01:46,787 [1381375] ERROR -
#com.intellij.psi.PsiAnchor - Last Action: GotoFile
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - Exception happened in local
inspection tool: Struts inspection
java.lang.ArrayIndexOutOfBoundsException: -1
at com.intellij.psi.PsiAnchor.retrieve(PsiAnchor.java:45)
at
com.intellij.psi.impl.smartPointers.LazyPointerImpl.getElement(LazyPoi
nterImpl.java:5)
at
com.intellij.codeInspection.ex.ProblemDescriptorImpl.getStartElement(P
roblemDescriptorImpl.java:18)
at
com.intellij.util.xml.highlighting.DomElementsHighlightingUtil$2$1.get
PsiElement(DomElementsHighlightingUtil.java)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:156)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:27)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:109)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.doCollectInf
ormation(LocalInspectionsPass.java:103)
at
com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInform
ation(TextEditorHighlightingPass.java:59)
at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.j
ava:0)
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(Ap
plicationImpl.java:271)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:
18)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThr
ead.java:2)
at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.j
ava:1)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(Prog
ressManagerImpl.java:51)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.jav
a:23)
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - IntelliJ IDEA 6.0.5 Build #6180
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - JDK: 1.5.0_11
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - VM: Java HotSpot(TM) Client VM
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - Vendor: Sun Microsystems Inc.
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - OS: Windows XP
2007-04-17 11:01:46,787 [1381375] ERROR -
emon.impl.LocalInspectionsPass - Last Action: GotoFile |
Show » |
| There are no comments yet on this issue.
|
|