Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ve-dev] Re: ve-dev Digest, Vol 47, Issue 1

Hi Immanuel,

That was my first try, having the same
IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
at java.lang.ClassLoader.defineClass1(Native Method)

If I put the bundles in a plugin container then I stop receiving the
NoClassDefError and receive a NullPointerException instead, because
the getDefault() method returns null.

Perhaps the reason is because the editor is running in the target VM,
which probably has no handles to the plugin object. That is why I need
a formula to access the preferences store from my editor (or, in
general, from the target VM).


On 3/21/09, ve-dev-request@xxxxxxxxxxx <ve-dev-request@xxxxxxxxxxx> wrote:
> Send ve-dev mailing list submissions to
> 	ve-dev@xxxxxxxxxxx
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://dev.eclipse.org/mailman/listinfo/ve-dev
> or, via email, send a message with subject or body 'help' to
> 	ve-dev-request@xxxxxxxxxxx
>
> You can reach the person managing the list at
> 	ve-dev-owner@xxxxxxxxxxx
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ve-dev digest..."
>
>
> Today's Topics:
>
>    1. How to use preferences store in a property editor?
>       (Camilo Vasquez)
>    2. Re: How to use preferences store in a property editor?
>       (Immanuel Scheerer)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 20 Mar 2009 18:30:13 +0200
> From: Camilo Vasquez <camilo.vasquez@xxxxxxxxx>
> Subject: [ve-dev] How to use preferences store in a property editor?
> To: ve-dev@xxxxxxxxxxx
> Message-ID:
> 	<aaa423810903200930s710cd9a1v361bf2f8a6d0a1f4@xxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> I built a control extending the visual editor in my plugin, it works
> fine. Now I want to poblate a list for one of its property editors
> from the preferences store using the line:
>      String[] values =
> MyPlugin.getDefault().getPreferenceStore().getString("values").split(",");
>
> the following exception is thrown when the bean is inserted in the pane
>
> IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
> java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
> 	at java.lang.ClassLoader.defineClass1(Native Method)
>         ....
>
> How can I force my plugin to find the requested preference?
>
> org/eclipse/ui/plugin/AbstractUIPlugin is part of the
> eclipse.ui.workbench plugin. I forced this dependence on my
> plugin.xml, it finds the class but at then looks for another class,
> and so forth. I added the bundles but at end a null pointer exception
> is returned because the plugin is not initialized and getDefault()
> returns null.
>
> My environment is eclipse 3.2 with eclipse.ve 1.2
>
> I'll thank for any help
>
> ------
> This is what I added to my plugin.xml
> 	<extension
> 		point="org.eclipse.jdt.core.classpathContainerInitializer">
> 		<classpathContainerInitializer			class="org.eclipse.ve.internal.java.core.RegisteredClasspathContainerInitializer"
> 			id="MyPlugin.ControlsContainer">
> 		</classpathContainerInitializer>
> 	</extension>
> 	<extension point="org.eclipse.ve.java.core.registrations">
> 		<registration container="MayPlugin.ControlsContainer"
> 			description="My Plugin Library">
> 			<library runtime="MyPlugin.ve.jar" />
> 			<library runtime="skin.jar" />
> 			<library runtime="org.eclipse.ui.workbench_3.2.2.M20070119-0800.jar" />	
> 			<library runtime="org.eclipse.core.runtime_3.2.0.v20060603.jar" />
> 			<library runtime="org.eclipse.osgi_3.2.2.R32x_v20070118.jar"/>
> 		</registration>
> 	</extension>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 20 Mar 2009 18:29:08 +0100
> From: Immanuel Scheerer <immanuel@xxxxxxxxxxxxxxx>
> Subject: Re: [ve-dev] How to use preferences store in a property
> 	editor?
> To: Discussions people developing code for the Visual Editor project
> 	<ve-dev@xxxxxxxxxxx>
> Message-ID: <49C3D264.7070503@xxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
>
> did you add the "Bundle-Activator" header to MANIFEST.MF? Otherwise
> start(BundleContext) of your plugin will never be called.
>
> I think you should use OSGi headers (Import-Package or Require-Bundle)
> in your MANIFEST.MF to define dependencies for your classpath, rather
> than using plugin.xml.
>
> Cheers,
>
> Immanuel
>
> Camilo Vasquez schrieb:
>> Hi,
>>
>> I built a control extending the visual editor in my plugin, it works
>> fine. Now I want to poblate a list for one of its property editors
>> from the preferences store using the line:
>>      String[] values =
>> MyPlugin.getDefault().getPreferenceStore().getString("values").split(",");
>>
>> the following exception is thrown when the bean is inserted in the pane
>>
>> IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
>> java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
>> 	at java.lang.ClassLoader.defineClass1(Native Method)
>>         ....
>>
>> How can I force my plugin to find the requested preference?
>>
>> org/eclipse/ui/plugin/AbstractUIPlugin is part of the
>> eclipse.ui.workbench plugin. I forced this dependence on my
>> plugin.xml, it finds the class but at then looks for another class,
>> and so forth. I added the bundles but at end a null pointer exception
>> is returned because the plugin is not initialized and getDefault()
>> returns null.
>>
>> My environment is eclipse 3.2 with eclipse.ve 1.2
>>
>> I'll thank for any help
>>
>> ------
>> This is what I added to my plugin.xml
>> 	<extension
>> 		point="org.eclipse.jdt.core.classpathContainerInitializer">
>> 		<classpathContainerInitializer			class="org.eclipse.ve.internal.java.core.RegisteredClasspathContainerInitializer"
>> 			id="MyPlugin.ControlsContainer">
>> 		</classpathContainerInitializer>
>> 	</extension>
>> 	<extension point="org.eclipse.ve.java.core.registrations">
>> 		<registration container="MayPlugin.ControlsContainer"
>> 			description="My Plugin Library">
>> 			<library runtime="MyPlugin.ve.jar" />
>> 			<library runtime="skin.jar" />
>> 			<library runtime="org.eclipse.ui.workbench_3.2.2.M20070119-0800.jar"
>> />	
>> 			<library runtime="org.eclipse.core.runtime_3.2.0.v20060603.jar" />
>> 			<library runtime="org.eclipse.osgi_3.2.2.R32x_v20070118.jar"/>
>> 		</registration>
>> 	</extension>
>> _______________________________________________
>> ve-dev mailing list
>> ve-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/ve-dev
>
>
> ------------------------------
>
> _______________________________________________
> ve-dev mailing list
> ve-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ve-dev
>
>
> End of ve-dev Digest, Vol 47, Issue 1
> *************************************
>


-- 
Camilo Vasquez
Consultor Internacional en Informatica


Back to the top