Plugin failed to initialize

Issue #70 resolved
JV created an issue

java.lang.NoClassDefFoundError: org/jetbrains/io/mandatory/NullCheckingFactory at com.atlassian.bitbucket.linky.stats.AmplitudeKt.createGson(amplitude.kt:69) at com.atlassian.bitbucket.linky.stats.AmplitudeKt.access$createGson(amplitude.kt:1) at com.atlassian.bitbucket.linky.stats.DefaultAmplitudeClient.<init>(amplitude.kt:41) 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.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:59) at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:232) at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:246) at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:212) at org.picocontainer.defaults.BasicComponentParameter.resolveInstance(BasicComponentParameter.java:77) at org.picocontainer.defaults.ComponentParameter.resolveInstance(ComponentParameter.java:114) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getConstructorArguments(ConstructorInjectionComponentAdapter.java:257) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:217) at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248) at com.intellij.util.pico.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:59) at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:499) at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:123) at com.intellij.openapi.application.impl.ApplicationImpl.access$801(ApplicationImpl.java:92) at com.intellij.openapi.application.impl.ApplicationImpl$12.run(ApplicationImpl.java:500) at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127) at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:516) at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:107) at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:458) at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:450) at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:194) 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$1.run(MainImpl.java:61) 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:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366) 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: org.jetbrains.io.mandatory.NullCheckingFactory PluginClassLoader[com.atlassian.bitbucket.references, 6.1] at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:64) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 56 more

Comments (6)

  1. Daniil Penkin staff

    Hi @jvaldesmartini,

    Thanks for reporting this issue.

    I'm going to look into this ASAP, but meanwhile can you give a hint on which IDE and version did you get this error?

    Cheers, Daniil

  2. JV reporter

    @dpenkin Thanks for the prompt response. Find below the IDE specification. I was using version 6.1 without any issues. The IDE recommended an update to Bitbucket Linky 6.3 Plugin, I did it and then I couldn't use it anymore. I went to the website, downloaded the 6.1 version again, installed via local disk, and getting the same error. I use the plugin on daily basis, it's awesome. Great job!

    IntelliJ IDEA 2016.1.4 Build #IU-145.2070, built on August 2, 2016 JRE: 1.8.0_76-release-b198 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

  3. Daniil Penkin staff

    Oh, this explains the error you got. Sorry my bad, I never tested my code with 2016.1, the lowest version I tried it with was 2016.3. There was indeed a change between these versions which I accidentally relied on without adjusting lowest supported version tag.

    I doubt you ever used 6.1 because it should've hit the same issue immediately. I assume you've been using 5.x.

    Since I don't really make use of that referenced NullCheckingFactory class which has been changed in IntelliJ's codebase, I'm going to remove this dependency and release 6.4 which should work fine with 2016.1.

    Cheers, Daniil

  4. Daniil Penkin staff

    This issue has been fixed in 6.4.

    I noticed however that there are other compatibility issues with 2016.1 which would take way longer to fix. I haven't touched them this time given that so far I haven't received any complaints on the features that don't work. I'm happy to fix these bugs if I get reports but I'm not planning to actively invest time into supporting older IntelliJ IDE versions. In fact, I recently made a decision to bump the lowest supported IDE version when it makes implementation of new features easier rather than trying to support a wide range of IDE versions which became more and more cumbersome.

    All existing published versions of Linky will obviously remain available, what I mean is that new stuff will only be available in recent IDEs.

    I hope for your understanding.

    Cheers, Daniil

  5. JV reporter

    Makes sense, just tested version 6.4 with IntelliJ IDE 2016.1 everything works good.

    Thank you, Jose R.

  6. Log in to comment