Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Exception on view initialisation - real cause hidden ?
Exception on view initialisation - real cause hidden ? [message #246832] Fri, 28 May 2004 09:49 Go to next message
Eclipse UserFriend
Originally posted by: weberjn.hotmail.com

Hi,

I get Exceptions on initialisation of my view. Below is an excerpt of the
almost 2000 lines of exceptions messages (3.0 M9)

I guess this says that running the constructor of my view failed, might be
for missing dependencies.

How can I find the real cause of the Exception and find out, which Class
exactly is missing? I think this is not very well-behaved of Eclipse to
hide an Exception cause.

Thanks,
Juergen


!SESSION Mai 28, 2004 10:12:48.703
---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
!ENTRY org.eclipse.core.runtime 4 2 Mai 28, 2004 10:12:48.703
!MESSAGE Plug-in "test.ui.Data" was unable to instantiate class
"test.ui.DataView".
!STACK 0
java.lang.NoSuchMethodException:
test.ui.DataView.<init>(org.eclipse.core.runtime.IPluginDescriptor)
at java.lang.Class.getConstructor0(Class.java:1929)
at java.lang.Class.getConstructor(Class.java:1019)
at
org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivation(PluginDescriptor.java:403)


...

!ENTRY org.eclipse.osgi Mai 28, 2004 10:12:48.812
!MESSAGE An error occured while automatically activating bundle
test.ui.Data (24).
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.core.internal.compatibility.PluginActivator.star t() of bundle
test.ui.Data.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:975)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:937)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:421)



...

Caused by: org.eclipse.core.runtime.CoreException: Plug-in "test.ui.Data"
was unable to instantiate class "test.ui.DataView".
at
org.eclipse.core.internal.plugins.PluginDescriptor.throwExce ption(PluginDescriptor.java:284)
at
org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivation(PluginDescriptor.java:406)


...


Root exception:
org.eclipse.core.runtime.CoreException[2]:
java.lang.NoSuchMethodException:
test.ui.DataView.<init>(org.eclipse.core.runtime.IPluginDescriptor)
at java.lang.Class.getConstructor0(Class.java:1929)
at java.lang.Class.getConstructor(Class.java:1019)
at
org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivation(PluginDescriptor.java:403)
at
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginA ctivation(PluginDescriptor.java:359)
Re: Exception on view initialisation - real cause hidden ? [message #247119 is a reply to message #246832] Sat, 29 May 2004 03:50 Go to previous messageGo to next message
Eclipse UserFriend
Remove the IPluginDescriptor argument from all your plugin constructors.

Ciao, Michael.
Re: Exception on view initialisation - real cause hidden ? [message #248409 is a reply to message #246832] Wed, 02 June 2004 10:30 Go to previous message
Eclipse UserFriend
Originally posted by: weberjn.hotmail.com

I finally found out the solution.

In plugin.xml I had

<plugin .... class="test.ui.DataView">

instead of class="test.ui.DataPlugin"

This was a stupid typo. But still I think the exception thrown could be
better formulated as

!MESSAGE Plug-in "test.ui.Data" was unable to instantiate __plugin__ class
"test.ui.DataView".
Previous Topic:Re: CVS perspective - how to set up "Repository location"
Next Topic:CVS Proxy
Goto Forum:
  


Current Time: Mon May 12 00:51:08 EDT 2025

Powered by FUDForum. Page generated in 0.06546 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top