Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Webstorm 7.0.1 Snapshot 0.5.0 not working #63

Closed
ghost opened this issue Oct 27, 2013 · 5 comments
Closed

Webstorm 7.0.1 Snapshot 0.5.0 not working #63

ghost opened this issue Oct 27, 2013 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 27, 2013

Getting an error after installing the snapshot 0.5.0 build in web storm 7.0.1. I've got a copy of the stack trace, but didn't want to post a wall of text here. If you think it will be of help, I can email the trace to you.

Thanks

@dboissier
Copy link
Owner

Hi,

This is the right and best place to put some stacktrace (you can use markdown formatting if you want).

Four your information, there are 2 builds (mentioned in the README ) : one for Idea 12, Webstorm 6, and other lower version and one for Idea13, Webstorm 7, PhpStorm 7.
It is due to some API change made by Jetbrains on their core plateform.

Which version did you installed?

Regards,

David

@ghost
Copy link
Author

ghost commented Oct 28, 2013

Hello,

Thanks. I saw that there are two different builds for the plugin. I tried mongo4idea-0.5.0-SNAPSHOT-for-idea13-distribution.zip and the mongo4idea-0.5.0-SNAPSHOT-distribution.zip builds. Both builds produced an IDE internal failure.

Below is the stack trace as webstorm 7.0.1 dumped it.

Thanks,

Ed

org.codinjutsu.tools.mongo.MongoComponent@1916a3a: com/mongodb/DBObject
java.lang.NoClassDefFoundError: com/mongodb/DBObject
at org.codinjutsu.tools.mongo.view.MongoWindowManager.(MongoWindowManager.java:61)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
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 org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
at com.intellij.openapi.components.impl.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:54)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.initializeInstance(ServiceManagerImpl.java:159)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter$1.compute(ServiceManagerImpl.java:147)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:957)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:139)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:226)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:213)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:200)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:40)
at org.codinjutsu.tools.mongo.view.MongoWindowManager.getInstance(MongoWindowManager.java:56)
at org.codinjutsu.tools.mongo.MongoComponent.projectOpened(MongoComponent.java:41)
at com.intellij.openapi.project.impl.ProjectImpl.c(ProjectImpl.java:420)
at com.intellij.openapi.project.impl.ProjectImpl.access$200(ProjectImpl.java:76)
at com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectOpened(ProjectImpl.java:457)
at com.intellij.openapi.project.impl.ProjectManagerImpl$2.projectOpened(ProjectManagerImpl.java:155)
at com.intellij.openapi.project.impl.ProjectManagerImpl.e(ProjectManagerImpl.java:1050)
at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:415)
at com.intellij.platform.PlatformProjectOpenProcessor.doOpenProject(PlatformProjectOpenProcessor.java:178)
at com.intellij.ide.RecentDirectoryProjectsManager.doOpenProject(RecentDirectoryProjectsManager.java:59)
at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:114)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:228)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:219)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:209)
at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:43)
at com.intellij.util.messages.impl.MessageBusImpl$1.invoke(MessageBusImpl.java:131)
at $Proxy33.appStarting(Unknown Source)
at com.intellij.idea.IdeaApplication.c(IdeaApplication.java:394)
at com.intellij.idea.IdeaApplication.access$600(IdeaApplication.java:64)
at com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:361)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:347)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:696)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.ClassNotFoundException: com.mongodb.DBObject PluginClassLoader[Mongo Plugin, 0.5.0]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:82)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 63 more

@dboissier
Copy link
Owner

Hi,

This bug is quite strange because the mongodb driver dependency in the distribution file. I suspect a bad import of the plugin in you IDE or a conflict with old version of the plugin previously installed.

  • Close your IDE
  • What you could do is to remove it from the .WebStorm directory/config/plugins (if your IDE is Webstorm).
  • If you have an old version of the plugin, remove it also.
  • Download again the idea13 version and extract it in the same folder

You should have .WebStorm directory/config/plugins/mongo4idea-0.5.0-SNAPSHOT/.

Start your IDE and tell me if the bugs occurs.

Sorry for the inconvenience,

David

@ghost
Copy link
Author

ghost commented Oct 28, 2013

Hello,

Thanks for the info. I imported the add-on using the method suggested. After starting the IDE, I didn't receive the fatal error. The importing of the add-on appears to be successful.

Thank you,

Ed

@ghost ghost closed this as completed Oct 28, 2013
@dboissier
Copy link
Owner

Thanks for your feedback, I updated the README to highlight this error.

Regards,

David

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant