Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Plug-In startup(?) problem
Plug-In startup(?) problem [message #135019] Wed, 24 September 2003 08:55 Go to next message
Eclipse UserFriend
Hi,

I have written three plug-ins (called
"de.uni.saarland.cs.st.{ddcore|ddcore.ui|isolate}"). The "isolate" plug-in
requires the "ddcore" plug-in, so I have set the appropriate dependencies
in the plugin.xml file. All three plug-ins compile fine, but when it comes
to execution, "isolate" tries to display a view. This view, however,
cannot be displayed, because a class in the "ddcore" plug-in cannot be
found. Now, I inserted the following lines before the error occurs

Plugin plug = Platform.getPlugin("de.uni.saarland.cs.st.ddcore");
System.out.println("plug == " + plug);
Plugin plug2 = Platform.getPlugin("de.uni.saarland.cs.st.ddcore.ui");
System.out.println("plug2 == " + plug2);

(And I also added a reference from "isolate" to "ddcore.ui" in the
plugin.xml, just to be on the safe side.)

The strange result is the output:

plug == null
plug2 == de.uni.saarland.cs.st.ddcore.ui

So, there is no de.uni.saarland.cs.st.ddcore plug-in in the plugin
registry, right?!
What does that mean? I suppose ddcore got shut-down due to an early
startup error? Could that be the case?
Note, that not even the constructor (or getDefault method) of the plug-in
class of ddcore are called.
I tried to add "ddcore" to early startup to see what happens, but all I
get is a "uncaught exception, reason uncaught exception" error...

Do you have an idea what this could mean? How can I trace down the error?
Oh -- one last thing: I stripped the "ddcore" plug-in class down to a
skeleton which only provides generation of the class and access via
getDefault() - no change: The error still occurs.

Thanks for any advice,
Philipp
Re: Plug-In startup(?) problem [message #135071 is a reply to message #135019] Wed, 24 September 2003 10:37 Go to previous messageGo to next message
Eclipse UserFriend
An error occurred when Eclipse tries to activate your dd.core plugin
(constructor / startup code). Look at the error log for more details
(Window> Show View > Others -> PDE Runtime -> Error Log). The exception
should give you the line number where the error occurred.

HTH
Balaji

"Philipp Bouillon" <Philipp.Bouillon@t-online.de> wrote in message
news:bks483$ibf$1@eclipse.org...
> Hi,
>
> I have written three plug-ins (called
> "de.uni.saarland.cs.st.{ddcore|ddcore.ui|isolate}"). The "isolate" plug-in
> requires the "ddcore" plug-in, so I have set the appropriate dependencies
> in the plugin.xml file. All three plug-ins compile fine, but when it comes
> to execution, "isolate" tries to display a view. This view, however,
> cannot be displayed, because a class in the "ddcore" plug-in cannot be
> found. Now, I inserted the following lines before the error occurs
>
> Plugin plug = Platform.getPlugin("de.uni.saarland.cs.st.ddcore");
> System.out.println("plug == " + plug);
> Plugin plug2 = Platform.getPlugin("de.uni.saarland.cs.st.ddcore.ui");
> System.out.println("plug2 == " + plug2);
>
> (And I also added a reference from "isolate" to "ddcore.ui" in the
> plugin.xml, just to be on the safe side.)
>
> The strange result is the output:
>
> plug == null
> plug2 == de.uni.saarland.cs.st.ddcore.ui
>
> So, there is no de.uni.saarland.cs.st.ddcore plug-in in the plugin
> registry, right?!
> What does that mean? I suppose ddcore got shut-down due to an early
> startup error? Could that be the case?
> Note, that not even the constructor (or getDefault method) of the plug-in
> class of ddcore are called.
> I tried to add "ddcore" to early startup to see what happens, but all I
> get is a "uncaught exception, reason uncaught exception" error...
>
> Do you have an idea what this could mean? How can I trace down the error?
> Oh -- one last thing: I stripped the "ddcore" plug-in class down to a
> skeleton which only provides generation of the class and access via
> getDefault() - no change: The error still occurs.
>
> Thanks for any advice,
> Philipp
>
Re: Plug-In startup(?) problem [message #135160 is a reply to message #135071] Wed, 24 September 2003 11:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

thanks for your help! The log told me that the error occured in the
constructor of the "isolate" plug-in. The code of the constructor is shown
below.

java.lang.ClassNotFoundException:
de.uni.saarland.cs.st.ddcore.DeltaDebuggingPlugin
at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(DelegatingURLClassLoader.java:866)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivation(PluginDescriptor.java:700)
at
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginA ctivation(PluginDescriptor.java:188)
at
org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin (PluginDescriptor.java:306)
at
org.eclipse.core.internal.runtime.InternalPlatform.getPlugin (InternalPlatform.java:405)
at org.eclipse.core.runtime.Platform.getPlugin(Platform.java:31 9)
at
de.uni.saarland.cs.st.isolateinput.IsolateInputPlugin.<init >(IsolateInputPlugin.java:60)
... (several more lines following).

The constructor:

public IsolateInputPlugin(IPluginDescriptor descriptor) {
super(descriptor);
// The next line causes the exception (IsolateInputPlugin.<init>:60)
Plugin plug = Platform.getPlugin("de.uni.saarland.cs.st.ddcore");
[...]
}

So, I cannot find the ddcore plugin. But there is no hint in the error
log, _why_ the ddcore plugin could not be found.
I still cannot figure out, what's going on here... Do you have any further
ideas?

Thanks,
Philipp

> An error occurred when Eclipse tries to activate your dd.core plugin
> (constructor / startup code). Look at the error log for more details
> (Window> Show View > Others -> PDE Runtime -> Error Log). The exception
> should give you the line number where the error occurred.

> HTH
> Balaji

> "Philipp Bouillon" <Philipp.Bouillon@t-online.de> wrote in message
> news:bks483$ibf$1@eclipse.org...
> > Hi,
> >
> > I have written three plug-ins (called
> > "de.uni.saarland.cs.st.{ddcore|ddcore.ui|isolate}"). The "isolate" plug-in
> > requires the "ddcore" plug-in, so I have set the appropriate dependencies
> > in the plugin.xml file. All three plug-ins compile fine, but when it comes
> > to execution, "isolate" tries to display a view. This view, however,
> > cannot be displayed, because a class in the "ddcore" plug-in cannot be
> > found. Now, I inserted the following lines before the error occurs
> >
> > Plugin plug = Platform.getPlugin("de.uni.saarland.cs.st.ddcore");
> > System.out.println("plug == " + plug);
> > Plugin plug2 = Platform.getPlugin("de.uni.saarland.cs.st.ddcore.ui");
> > System.out.println("plug2 == " + plug2);
> >
> > (And I also added a reference from "isolate" to "ddcore.ui" in the
> > plugin.xml, just to be on the safe side.)
> >
> > The strange result is the output:
> >
> > plug == null
> > plug2 == de.uni.saarland.cs.st.ddcore.ui
> >
> > So, there is no de.uni.saarland.cs.st.ddcore plug-in in the plugin
> > registry, right?!
> > What does that mean? I suppose ddcore got shut-down due to an early
> > startup error? Could that be the case?
> > Note, that not even the constructor (or getDefault method) of the plug-in
> > class of ddcore are called.
> > I tried to add "ddcore" to early startup to see what happens, but all I
> > get is a "uncaught exception, reason uncaught exception" error...
> >
> > Do you have an idea what this could mean? How can I trace down the error?
> > Oh -- one last thing: I stripped the "ddcore" plug-in class down to a
> > skeleton which only provides generation of the class and access via
> > getDefault() - no change: The error still occurs.
> >
> > Thanks for any advice,
> > Philipp
> >
Re: Plug-In startup(?) problem [message #135185 is a reply to message #135160] Wed, 24 September 2003 11:24 Go to previous messageGo to next message
Eclipse UserFriend
It seems like u don't have a dependency on dd.core project in your
plug-in.xml file. When you said you have updated the plug-in, do u have a
dd.core in the requires sub-element of plugin.xml

<requires>
<import plugin="de.uni.saarland.cs.st.ddcore"/>

HTH, balaji

"Philipp Bouillon" <Philipp.Bouillon@t-online.de> wrote in message
news:bksc54$s7t$1@eclipse.org...
> Hi,
>
> thanks for your help! The log told me that the error occured in the
> constructor of the "isolate" plug-in. The code of the constructor is shown
> below.
>
> java.lang.ClassNotFoundException:
> de.uni.saarland.cs.st.ddcore.DeltaDebuggingPlugin
> at
>
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(Delegating
URLClassLoader.java:866)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivatio
n(PluginDescriptor.java:700)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginA ctivation(Plugin
Descriptor.java:188)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin (PluginDescripto
r.java:306)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.getPlugin (InternalPlatfor
m.java:405)
> at org.eclipse.core.runtime.Platform.getPlugin(Platform.java:31 9)
> at
>
de.uni.saarland.cs.st.isolateinput.IsolateInputPlugin.<init >(IsolateInputPlu
gin.java:60)
> .. (several more lines following).
>
> The constructor:
>
> public IsolateInputPlugin(IPluginDescriptor descriptor) {
> super(descriptor);
> // The next line causes the exception (IsolateInputPlugin.<init>:60)
> Plugin plug = Platform.getPlugin("de.uni.saarland.cs.st.ddcore");
> [...]
> }
>
> So, I cannot find the ddcore plugin. But there is no hint in the error
> log, _why_ the ddcore plugin could not be found.
> I still cannot figure out, what's going on here... Do you have any further
> ideas?
>
> Thanks,
> Philipp
>
> > An error occurred when Eclipse tries to activate your dd.core plugin
> > (constructor / startup code). Look at the error log for more details
> > (Window> Show View > Others -> PDE Runtime -> Error Log). The exception
> > should give you the line number where the error occurred.
>
> > HTH
> > Balaji
>
> > "Philipp Bouillon" <Philipp.Bouillon@t-online.de> wrote in message
> > news:bks483$ibf$1@eclipse.org...
> > > Hi,
> > >
> > > I have written three plug-ins (called
> > > "de.uni.saarland.cs.st.{ddcore|ddcore.ui|isolate}"). The "isolate"
plug-in
> > > requires the "ddcore" plug-in, so I have set the appropriate
dependencies
> > > in the plugin.xml file. All three plug-ins compile fine, but when it
comes
> > > to execution, "isolate" tries to display a view. This view, however,
> > > cannot be displayed, because a class in the "ddcore" plug-in cannot be
> > > found. Now, I inserted the following lines before the error occurs
> > >
> > > Plugin plug = Platform.getPlugin("de.uni.saarland.cs.st.ddcore");
> > > System.out.println("plug == " + plug);
> > > Plugin plug2 = Platform.getPlugin("de.uni.saarland.cs.st.ddcore.ui");
> > > System.out.println("plug2 == " + plug2);
> > >
> > > (And I also added a reference from "isolate" to "ddcore.ui" in the
> > > plugin.xml, just to be on the safe side.)
> > >
> > > The strange result is the output:
> > >
> > > plug == null
> > > plug2 == de.uni.saarland.cs.st.ddcore.ui
> > >
> > > So, there is no de.uni.saarland.cs.st.ddcore plug-in in the plugin
> > > registry, right?!
> > > What does that mean? I suppose ddcore got shut-down due to an early
> > > startup error? Could that be the case?
> > > Note, that not even the constructor (or getDefault method) of the
plug-in
> > > class of ddcore are called.
> > > I tried to add "ddcore" to early startup to see what happens, but all
I
> > > get is a "uncaught exception, reason uncaught exception" error...
> > >
> > > Do you have an idea what this could mean? How can I trace down the
error?
> > > Oh -- one last thing: I stripped the "ddcore" plug-in class down to a
> > > skeleton which only provides generation of the class and access via
> > > getDefault() - no change: The error still occurs.
> > >
> > > Thanks for any advice,
> > > Philipp
> > >
>
>
Re: Plug-In startup(?) problem [message #135198 is a reply to message #135160] Wed, 24 September 2003 11:25 Go to previous message
Eclipse UserFriend
Hi again,

ok, it was an error (_my_ error, to be precise) in the plugin.xml file of
the ddcore plugin... I specified invalid package prefixes in the
runtime-export section.

Philipp

> Hi,

> thanks for your help! The log told me that the error occured in the
> constructor of the "isolate" plug-in. The code of the constructor is shown
> below.

> java.lang.ClassNotFoundException:
> de.uni.saarland.cs.st.ddcore.DeltaDebuggingPlugin
> at
>
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(DelegatingURLClassLoader.java:866)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.internalD oPluginActivation(PluginDescriptor.java:700)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginA ctivation(PluginDescriptor.java:188)
> at
>
org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin (PluginDescriptor.java:306)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.getPlugin (InternalPlatform.java:405)
> at org.eclipse.core.runtime.Platform.getPlugin(Platform.java:31 9)
> at
>
de.uni.saarland.cs.st.isolateinput.IsolateInputPlugin.<init >(IsolateInputPlugin.java:60)
> ... (several more lines following).

> The constructor:

> public IsolateInputPlugin(IPluginDescriptor descriptor) {
> super(descriptor);
> // The next line causes the exception (IsolateInputPlugin.<init>:60)
> Plugin plug = Platform.getPlugin("de.uni.saarland.cs.st.ddcore");
> [...]
> }

> So, I cannot find the ddcore plugin. But there is no hint in the error
> log, _why_ the ddcore plugin could not be found.
> I still cannot figure out, what's going on here... Do you have any further
> ideas?

> Thanks,
> Philipp

> > An error occurred when Eclipse tries to activate your dd.core plugin
> > (constructor / startup code). Look at the error log for more details
> > (Window> Show View > Others -> PDE Runtime -> Error Log). The exception
> > should give you the line number where the error occurred.

> > HTH
> > Balaji

> > "Philipp Bouillon" <Philipp.Bouillon@t-online.de> wrote in message
> > news:bks483$ibf$1@eclipse.org...
> > > Hi,
> > >
> > > I have written three plug-ins (called
> > > "de.uni.saarland.cs.st.{ddcore|ddcore.ui|isolate}"). The "isolate"
plug-in
> > > requires the "ddcore" plug-in, so I have set the appropriate dependencies
> > > in the plugin.xml file. All three plug-ins compile fine, but when it
comes
> > > to execution, "isolate" tries to display a view. This view, however,
> > > cannot be displayed, because a class in the "ddcore" plug-in cannot be
> > > found. Now, I inserted the following lines before the error occurs
> > >
> > > Plugin plug = Platform.getPlugin("de.uni.saarland.cs.st.ddcore");
> > > System.out.println("plug == " + plug);
> > > Plugin plug2 = Platform.getPlugin("de.uni.saarland.cs.st.ddcore.ui");
> > > System.out.println("plug2 == " + plug2);
> > >
> > > (And I also added a reference from "isolate" to "ddcore.ui" in the
> > > plugin.xml, just to be on the safe side.)
> > >
> > > The strange result is the output:
> > >
> > > plug == null
> > > plug2 == de.uni.saarland.cs.st.ddcore.ui
> > >
> > > So, there is no de.uni.saarland.cs.st.ddcore plug-in in the plugin
> > > registry, right?!
> > > What does that mean? I suppose ddcore got shut-down due to an early
> > > startup error? Could that be the case?
> > > Note, that not even the constructor (or getDefault method) of the plug-in
> > > class of ddcore are called.
> > > I tried to add "ddcore" to early startup to see what happens, but all I
> > > get is a "uncaught exception, reason uncaught exception" error...
> > >
> > > Do you have an idea what this could mean? How can I trace down the error?
> > > Oh -- one last thing: I stripped the "ddcore" plug-in class down to a
> > > skeleton which only provides generation of the class and access via
> > > getDefault() - no change: The error still occurs.
> > >
> > > Thanks for any advice,
> > > Philipp
> > >
Previous Topic:using jsse classes from a plug-in
Next Topic:[ANN]: eclipse-games 3.0M2 released
Goto Forum:
  


Current Time: Wed Jun 04 02:46:02 EDT 2025

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

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

Back to the top