Eclipse Plugin Development Issue

View: New views
3 Messages — Rating Filter:   Alert me  

Eclipse Plugin Development Issue

by Arin Soyen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am a new FindBugs user and I am also interested in a project regarding FindBugs. I currently have the FindBugs Eclipse plugin source code (eclipsePlugin-1.3.5.20080913-source) in Eclipse 3.4 and all of the dependencies are resolved. However, when trying to run the plugin code I get the following in the error log: "An error occurred while automatically activating bundle edu.umd.cs.findbugs.plugin.eclipse (1055).". When I try to open the FindBugs perspective in the new environment, I get a pop-up saying that "Problems opening perspective 'de.tobject.findBugs.FindBugsPerspective'". I tried to resolve this issue but have not been successful. Searching the archive of the mailing list did not turn up anything, either. Is there anyway to resolve this issue? If needed, I can attach screenshots.

Thank you for your help.
Arin

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Re: Eclipse Plugin Development Issue

by Tim Halloran-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"An error occurred while automatically activating bundle edu.umd.cs.findbugs.plugin.
eclipse (1055)."

This typically means your META.INF or plugin.xml are not correct; or that your Activator class threw an exception during the call to:

    public void start(final BundleContext context) throws Exception { ... }

Since the plug-in didn't load properly the perspective issue is simply a result.  Was there an exception for the 1055 error?


On Fri, Oct 3, 2008 at 1:01 AM, Arin Soyen <arin.soyen@...> wrote:
Hello,

I am a new FindBugs user and I am also interested in a project regarding FindBugs. I currently have the FindBugs Eclipse plugin source code (eclipsePlugin-1.3.5.20080913-source) in Eclipse 3.4 and all of the dependencies are resolved. However, when trying to run the plugin code I get the following in the error log: "An error occurred while automatically activating bundle edu.umd.cs.findbugs.plugin.eclipse (1055).". When I try to open the FindBugs perspective in the new environment, I get a pop-up saying that "Problems opening perspective 'de.tobject.findBugs.FindBugsPerspective'". I tried to resolve this issue but have not been successful. Searching the archive of the mailing list did not turn up anything, either. Is there anyway to resolve this issue? If needed, I can attach screenshots.

Thank you for your help.
Arin

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss


_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Re: Eclipse Plugin Development Issue

by Arin Soyen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

There is an exception stack trace related to the message "An error occurred while automatically activating bundle edu.umd.cs.findbugs.plugin.eclipse (1055).":

org.osgi.framework.BundleException: The activator de.tobject.findbugs.FindbugsPlugin for bundle edu.umd.cs.findbugs.plugin.eclipse is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:146)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:980)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:444)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1274)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
...
... 68 more
Caused by: java.lang.ClassNotFoundException: org.dom4j.DocumentException
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 74 more
Root exception:
java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
...
... 74 more


I cut the stack trace at the ... points. The first line suggests that the activator is invalid, however, I am clueless at this point as to what I should do to resolve this issue.

Thanks for your help...
Arin

________________________________________
From: Tim Halloran [tim.halloran@...]
Sent: Friday, October 03, 2008 11:16 AM
To: Arin Soyen
Cc: findbugs-discuss@...
Subject: Re: [FB-Discuss] Eclipse Plugin Development Issue

"An error occurred while automatically activating bundle edu.umd.cs.findbugs.plugin.
eclipse (1055)."

This typically means your META.INF or plugin.xml are not correct; or that your Activator class threw an exception during the call to:

    public void start(final BundleContext context) throws Exception { ... }

Since the plug-in didn't load properly the perspective issue is simply a result.  Was there an exception for the 1055 error?


On Fri, Oct 3, 2008 at 1:01 AM, Arin Soyen <arin.soyen@...<mailto:arin.soyen@...>> wrote:
Hello,

I am a new FindBugs user and I am also interested in a project regarding FindBugs. I currently have the FindBugs Eclipse plugin source code (eclipsePlugin-1.3.5.20080913-source) in Eclipse 3.4 and all of the dependencies are resolved. However, when trying to run the plugin code I get the following in the error log: "An error occurred while automatically activating bundle edu.umd.cs.findbugs.plugin.eclipse (1055).". When I try to open the FindBugs perspective in the new environment, I get a pop-up saying that "Problems opening perspective 'de.tobject.findBugs.FindBugsPerspective'". I tried to resolve this issue but have not been successful. Searching the archive of the mailing list did not turn up anything, either. Is there anyway to resolve this issue? If needed, I can attach screenshots.

Thank you for your help.
Arin

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...<mailto:Findbugs-discuss@...>
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss


_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
LightInTheBox - Buy quality products at wholesale price!