CssHighlighter problem in 7718
Since this last build, it seems the css hightlighter has a problem
here is the exception i've get (and reported using the error reporter).
Am i the only one seeing this ?
java.lang.ExceptionInInitializerError
at com.intellij.psi.css.impl.util.CssHighlighter.getHighlightingLexer(CssHighlighter.java:28)
at com.intellij.lexer.HtmlHighlightingLexer.a(HtmlHighlightingLexer.java:81)
at com.intellij.lexer.HtmlHighlightingLexer.access$100(HtmlHighlightingLexer.java:35)
at com.intellij.lexer.HtmlHighlightingLexer$XmlEmbeddmentHandler.handleElement(HtmlHighlightingLexer.java:4)
at com.intellij.lexer.BaseHtmlLexer.advance(BaseHtmlLexer.java:5)
at com.intellij.lexer.HtmlHighlightingLexer.advance(HtmlHighlightingLexer.java:46)
at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.documentChanged(LexerEditorHighlighter.java:41)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:54)
at com.intellij.openapi.editor.impl.DocumentImpl.access$100(DocumentImpl.java:133)
at com.intellij.openapi.editor.impl.DocumentImpl$3.afterChangedUpdate(DocumentImpl.java:1)
at com.intellij.openapi.editor.impl.CharArray.insert(CharArray.java:45)
at com.intellij.openapi.editor.impl.DocumentImpl.insertString(DocumentImpl.java:109)
at com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter$Mapper.insertMapping(LayeredLexerEditorHighlighter.java:30)
at com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter$MappingSegments.a(LayeredLexerEditorHighlighter.java:37)
at com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter$MappingSegments.setElementAt(LayeredLexerEditorHighlighter.java:5)
at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.a(LexerEditorHighlighter.java:55)
at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.setText(LexerEditorHighlighter.java:86)
at com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter.setText(LayeredLexerEditorHighlighter.java:32)
at com.intellij.psi.impl.cache.impl.idCache.IdTableBuilding$WordsScannerIdCacheBuilderAdapter.build(IdTableBuilding.java:19)
at com.intellij.psi.impl.cache.impl.idCache.IdTableBuilding$1.run(IdTableBuilding.java:2)
at com.intellij.psi.impl.cache.impl.idCache.IdCacheUtil.updateInfoForFile(IdCacheUtil.java:76)
at com.intellij.psi.impl.cache.impl.idCache.MapBuilder.processFile(MapBuilder.java:22)
at com.intellij.psi.impl.cache.impl.idCache.ImmutableIdCacheImpl$MyInitializer$MyRebuildingCacheUpdater.processFile(ImmutableIdCacheImpl.java:33)
at com.intellij.psi.impl.cache.impl.idCache.ImmutableIdCacheImpl$MyInitializer.processFile(ImmutableIdCacheImpl.java:112)
at com.intellij.psi.impl.cache.impl.CacheManagerImpl$4.processFile(CacheManagerImpl.java:5)
at com.intellij.ide.startup.FileSystemSynchronizer.updateFiles(FileSystemSynchronizer.java:191)
at com.intellij.ide.startup.FileSystemSynchronizer.execute(FileSystemSynchronizer.java:72)
at com.intellij.ide.startup.impl.StartupManagerImpl$2.run(StartupManagerImpl.java:6)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:3)
at com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivities(StartupManagerImpl.java:40)
at com.intellij.openapi.project.impl.ProjectManagerImpl$3.run(ProjectManagerImpl.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:12)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:90)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:8)
at com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:13)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:3)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:2)
Caused by: java.lang.IllegalStateException: @NotNull method com/intellij/psi/css/impl/util/table/CssElementDescriptorFactory.getPropertyValues must not return null
at com.intellij.psi.css.impl.util.table.CssElementDescriptorFactory.getPropertyValues(CssElementDescriptorFactory.java)
at com.intellij.psi.css.impl.util.CssHighlighterLexer.]]>(CssHighlighterLexer.java:34)
... 43 more
Please sign in to leave a comment.
Hello Thibaut,
could your tell me how to reproduce this?
jfyi:
http://www.jetbrains.net/jira/browse/IDEADEV-25129
Thibaut wrote:
// cut
--
Alexey Pegov
Java Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Thing is, i don't have any idea why/how it happens : it just did it today while creating a completely new project from a bunch of maven poms.
I cleared my IDEA caches some days ago hoping the problem would solve itself but it didn't help.
Checking my IDEA log, here is the first exception that appears after cache building
2008-02-27 11:32:14,796 ERROR - enapi.editor.impl.DocumentImpl -
java.lang.ExceptionInInitializerError
at com.intellij.psi.css.impl.util.CssHighlighter.getHighlightingLexer(CssHighlighter.java:28)
at com.intellij.lexer.HtmlHighlightingLexer.a(HtmlHighlightingLexer.java:81)
at com.intellij.lexer.HtmlHighlightingLexer.access$100(HtmlHighlightingLexer.java:35)
at com.intellij.lexer.HtmlHighlightingLexer$XmlEmbeddmentHandler.handleElement(HtmlHighlightingLexer.java:4)
at com.intellij.lexer.BaseHtmlLexer.advance(BaseHtmlLexer.java:5)
at com.intellij.lexer.HtmlHighlightingLexer.advance(HtmlHighlightingLexer.java:46)
at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.documentChanged(LexerEditorHighlighter.java:41)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:54)
at com.intellij.openapi.editor.impl.DocumentImpl.access$100(DocumentImpl.java:133)
at com.intellij.openapi.editor.impl.DocumentImpl$3.afterChangedUpdate(DocumentImpl.java:1)
at com.intellij.openapi.editor.impl.CharArray.insert(CharArray.java:45)
at com.intellij.openapi.editor.impl.DocumentImpl.insertString(DocumentImpl.java:109)
at com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter$Mapper.insertMapping(LayeredLexerEditorHighlighter.java:30)
at com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter$MappingSegments.a(LayeredLexerEditorHighlighter.java:37)
at com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter$MappingSegments.setElementAt(LayeredLexerEditorHighlighter.java:5)
at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.a(LexerEditorHighlighter.java:55)
at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.setText(LexerEditorHighlighter.java:86)
at com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter.setText(LayeredLexerEditorHighlighter.java:32)
at com.intellij.psi.impl.cache.impl.idCache.IdTableBuilding$WordsScannerIdCacheBuilderAdapter.build(IdTableBuilding.java:19)
at com.intellij.psi.impl.cache.impl.idCache.IdTableBuilding$1.run(IdTableBuilding.java:2)
at com.intellij.psi.impl.cache.impl.idCache.IdCacheUtil.updateInfoForFile(IdCacheUtil.java:76)
at com.intellij.psi.impl.cache.impl.idCache.MapBuilder.processFile(MapBuilder.java:22)
at com.intellij.psi.impl.cache.impl.idCache.ImmutableIdCacheImpl$MyInitializer$MyRebuildingCacheUpdater.processFile(ImmutableIdCacheImpl.java:33)
at com.intellij.psi.impl.cache.impl.idCache.ImmutableIdCacheImpl$MyInitializer.processFile(ImmutableIdCacheImpl.java:112)
at com.intellij.psi.impl.cache.impl.CacheManagerImpl$4.processFile(CacheManagerImpl.java:5)
at com.intellij.ide.startup.FileSystemSynchronizer.updateFiles(FileSystemSynchronizer.java:191)
at com.intellij.ide.startup.FileSystemSynchronizer.execute(FileSystemSynchronizer.java:72)
at com.intellij.ide.startup.impl.StartupManagerImpl$2.run(StartupManagerImpl.java:6)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:3)
at com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivities(StartupManagerImpl.java:40)
at com.intellij.openapi.project.impl.ProjectManagerImpl$3.run(ProjectManagerImpl.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:12)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:90)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:8)
at com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:13)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:3)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:2)
Caused by: java.lang.IllegalStateException: @NotNull method com/intellij/psi/css/impl/util/table/CssElementDescriptorFactory.getPropertyValues must not return null
at com.intellij.psi.css.impl.util.table.CssElementDescriptorFactory.getPropertyValues(CssElementDescriptorFactory.java)
at com.intellij.psi.css.impl.util.CssHighlighterLexer.]]>(CssHighlighterLexer.java:34)
... 43 more
Is there any reason why
java.lang.IllegalStateException: @NotNull method com/intellij/psi/css/impl/util/table/CssElementDescriptorFactory.getPropertyValues must not return null
at com.intellij.psi.css.impl.util.table.CssElementDescriptorFactory.getPropertyValues(CssElementDescriptorFactory.java)
happens ?
Does that mean that my IDEA installation has been corrupted somehow ?
You can find attached the relevant portion of my idea.log if it can be of any use
Attachment(s):
idea.zip
Thibaut wrote:
Thibaut, it's looks like our bytecode instrumentation has broked
something. The method which "should not return null" have the only exit
point with preinitialized value and is called from the static context.
I've just removed the @NotNull annotation from the declaration and hope
it will help. The patch will be available in next Selena EAP or minor
release.
The solution I see for you now is to move back to the previous Idea
eap/release.
Please, reopen the issue in jira if the problem will still exist in the
upcoming selena eap/release.
--
Alexey Pegov
Java Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
thanks :)