idea-multimarkdown icon indicating copy to clipboard operation
idea-multimarkdown copied to clipboard

NullPointerException with v2016.3 EAP (163.6110.12)

Open Javaru opened this issue 10 years ago • 16 comments

Just a heads up that a NPE is being thrown in the latest 2013.3 EAP (163.6110.12) during the startup of IDEA. You are forced to disable the plugin in order to get IDEA to start.

Plugin 'com.vladsch.idea.multimarkdown' failed to initialize and will be disabled.  Please restart IntelliJ IDEA.

java.lang.NullPointerException
    at com.vladsch.idea.multimarkdown.highlighter.MultiMarkdownHighlighterColors.migrateAttributes(MultiMarkdownHighlighterColors.java:219)
    at com.vladsch.idea.multimarkdown.MultiMarkdownPlugin.initComponent(MultiMarkdownPlugin.kt:133)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:501)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:125)
    at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:441)
    at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164)
    at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:448)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:109)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:400)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:386)
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:190)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.idea.MainImpl$1$1.a(MainImpl.java:74)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
    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)

Javaru avatar Oct 13 '16 20:10 Javaru

@Javaru, thanks for the heads up. It is a change in the latest IDE behaviour. I will post a patch once I have another breaking behaviour figured out.

For some reason the latest EAP complains about a class not found when the class file is in the right place. Don't know if it is a Kotlin issue or something else.

vsch avatar Oct 13 '16 21:10 vsch

YouTrack issue opened: https://youtrack.jetbrains.com/issue/IDEA-162576

vsch avatar Oct 13 '16 22:10 vsch

@Javaru, Public Preview 2016.3 EAP has the issue of plugin failing fixed. You will need to download and install from disk patch version 2.1.1.6: https://github.com/vsch/idea-multimarkdown/raw/master/dist/idea-multimarkdown.2.1.1.6.zip that fixes the original issue you reported.

This version also includes early preview of HTML export functionality, it also has per project Markdown settings for: preview, parser, stylesheet, html generation and html export.

For HTML export description see: #314

vsch avatar Oct 21 '16 12:10 vsch

Unfortunately, after d/l 2.1.1.6 I get a new error

`Plugin 'com.vladsch.idea.multimarkdown' failed to initialize and will be disabled. Please restart IntelliJ IDEA.

java.lang.NoClassDefFoundError: com/vladsch/smart/BitSetEnum at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.lang.ClassLoader.defineClass(ClassLoader.java:642) at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:274) at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:270) at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:239) at com.intellij.ide.plugins.cl.PluginClassLoader.b(PluginClassLoader.java:119) at com.intellij.ide.plugins.cl.PluginClassLoader.a(PluginClassLoader.java:73) at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:62) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at com.vladsch.idea.multimarkdown.settings.MarkdownParserSettings$ParserOptions.(MarkdownParserSettings.kt:83) at com.vladsch.idea.multimarkdown.settings.MarkdownParserSettings.(MarkdownParserSettings.kt:93) at com.vladsch.idea.multimarkdown.settings.MarkdownRenderingProfile.(MarkdownRenderingProfile.kt:48) at com.vladsch.idea.multimarkdown.settings.MarkdownApplicationSettings$SharedState.(MarkdownApplicationSettings.kt:269) at com.vladsch.idea.multimarkdown.settings.MarkdownApplicationSettings.(MarkdownApplicationSettings.kt:49) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220) at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248) at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:58) at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:228) at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:238) at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:205) at com.intellij.openapi.components.ServiceManager.doGetService(ServiceManager.java:49) at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:39) at com.vladsch.idea.multimarkdown.settings.MarkdownApplicationSettings$Companion.getInstance(MarkdownApplicationSettings.kt:341) at com.vladsch.idea.multimarkdown.MultiMarkdownPlugin.initComponent(MultiMarkdownPlugin.kt:109) at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:501) at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:125) at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:441) at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164) at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:448) at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:109) at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:400) at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:386) at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:190) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.idea.MainImpl$1$1.a(MainImpl.java:74) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363) 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.lang.ClassNotFoundException: com.vladsch.smart.BitSetEnum PluginClassLoader[com.vladsch.idea.multimarkdown, 2.1.1.6] at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:64) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 64 more `

bstout avatar Oct 21 '16 23:10 bstout

Maybe I didn't manually update the plugin properly?

bstout avatar Oct 21 '16 23:10 bstout

@bstout, since you are not getting the NPE it seems that you did upgrade the plugin.

Did you upgrade the IDE to Public Preview 2016.3 EAP? The build should be 163.6512.17.

It seems to have the NoClassDefFoundError fixed.

vsch avatar Oct 22 '16 00:10 vsch

I am running IntelliJ IDEA 2016.3 EAP Build #IU-163.6512.17, built on October 19, 2016 IntelliJ IDEA EAP User

bstout avatar Oct 22 '16 00:10 bstout

@bstout, I guess there is still an issue with 2016.3 but for some reason on my system, identical build to yours is working with the patched version. It also has no trouble running the previous version of the plugin without the fix for NPE. Seems that issue was also fixed on the IDE.

Can you try uninstalling the plugin and installing it again, just in case something went wrong with the installation.

vsch avatar Oct 22 '16 00:10 vsch

I re-installed a few times. I've not manually installed a plugin before but just said to load from disk and picked the idea-markdown.jar in the 2.1.1.6 dir and seemed okay. I'm running the unregistered version - if that might matter.

bstout avatar Oct 22 '16 00:10 bstout

@bstout, in that case it is installed wrong.

You need to install from disk and select the installation zip file. Do not unzip the distribution, just select the distribution zip. The IDE does it all. Just selecting the jar causes it to be missing all the supporting files.

vsch avatar Oct 22 '16 00:10 vsch

Perfect - no more error - so disregard my NoClassDefFoundError msg.

Only the "show editor only" button is enabled - it looks to have some syntax highlighting and bold/italic/etc.. buttons in a toolbar. I see no HTML. The Markdown support plugin seems more functional. I bring this up because I think maybe I still don't have things set up properly to evaluate and register as was my intent after looking at the screenshot and docs of this plugin. Do I need to do more or ..?

bstout avatar Oct 22 '16 01:10 bstout

@bstout, to enable the enhanced features you need to get a trial license: https://vladsch.com/product/markdown-navigator/try

Can you please be more specific about the features of Markdown Support plugin that make it seem more functional? I would like to address them in Markdown Navigator.

vsch avatar Oct 22 '16 01:10 vsch

@vsch - I can confirm that the manual install of v2.1.1.6 (enhanced edition) in IntelliJ IDEA 2016.3 Public Preview (163.6512.17) works and resolves this issue.

Thanks for the fast turn around. And thanks for this plugin. I use to avoided writing/using markdown docs until I started using your plugin. Even basic editing is better with it. The preview mode, especially side-by-side, makes things so much easier. And the advanced editing rocks. For example. it was so cool the other day when I was adding an XML code sample to a doc and Markdown Navigator gave me full IDEA XML editing abilities when editing the snippet. And I think you have priced it very reasonably so you don't mind paying for the large feature set, especially knowing you are supporting a plugin author for their hard work.

Javaru avatar Oct 24 '16 15:10 Javaru

@Javaru, thank you for the feedback and thank you for your support. It is encouraging to know that having full IntjelliJ support for Markdown is appreciated.

vsch avatar Oct 24 '16 15:10 vsch

Yes:

IntelliJ IDEA 2016.3 EAP Build #IU-163.6512.17, built on October 19, 2016 IntelliJ IDEA EAP User

On Fri, Oct 21, 2016 at 5:04 PM, Vladimir Schneider < [email protected]> wrote:

@bstout https://github.com/bstout, since you are not getting the NPE it seems that you did upgrade the plugin.

Did you upgrade the IDE to Public Preview 2016.3 EAP? The build should be 163.6512.17.

It seems to have the NoClassDefFoundError fixed.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vsch/idea-multimarkdown/issues/315#issuecomment-255492561, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtVtwfR00o7iGGd-MdMLJ6RLqJ1KZJtks5q2VMggaJpZM4KWXBH .

Ben Stout : Voice: 916-585-4236

bstout avatar Oct 25 '16 18:10 bstout

EAP update released. Has lots of new features and improvements. You can enable the EAP update channel in the plugin or download and install from disk: https://github.com/vsch/idea-multimarkdown/raw/master/dist/idea-multimarkdown.2.1.1.40.zip

vsch avatar Nov 23 '16 09:11 vsch