Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » The Problem Of RAP3.0 M5 ClassLoader ?
The Problem Of RAP3.0 M5 ClassLoader ? [message #1605296] Sat, 07 February 2015 11:45 Go to next message
kylin Mising name is currently offline kylin Mising nameFriend
Messages: 10
Registered: December 2014
Junior Member
When I update to 3.0(M5),Throw this exception,3.0(M4) is OK
java.lang.ClassNotFoundException:
net.ui.eclipse.form.IconTextFormPropertyComosite cannot be found by org.eclipse.rap.ui.workbench_3.0.0.20141125-0949
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at net.ui.eclipse.ClassLoaderHelper.loadClass(ClassLoaderHelper.java:79)
at net.ui.eclipse.form.GridFormComposite.createOther(GridFormComposite.java:554)
Re: The Problem Of RAP3.0 M5 ClassLoader [message #1605333 is a reply to message #1605296] Sat, 07 February 2015 12:20 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
there is no such class
(net.ui.eclipse.form.IconTextFormPropertyComosite) in RAP runtime. I
don't think this error is introduced by a change in RAP 3.0M5.
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
icon9.gif  Re: The Problem Of RAP3.0 M5 ClassLoader [message #1606114 is a reply to message #1605333] Sun, 08 February 2015 01:00 Go to previous messageGo to next message
kylin Mising name is currently offline kylin Mising nameFriend
Messages: 10
Registered: December 2014
Junior Member
But RAP 3.0(M4) is OK !
Re: The Problem Of RAP3.0 M5 ClassLoader [message #1606643 is a reply to message #1606114] Sun, 08 February 2015 09:38 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
RAP 3.0M4 was based on Luna. RAP3.0M5 is based on Mars. Probably
something is changed in Equinox bundles (could be a bug there) between
Luna and Mars. This bug report is probably related:
459366: Equinox Security Integration doesn't work in latest 3.0.0 m5 build
https://bugs.eclipse.org/bugs/show_bug.cgi?id=459366
I'll try to investigate it next week.
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: The Problem Of RAP3.0 M5 ClassLoader [message #1606810 is a reply to message #1606643] Sun, 08 February 2015 12:23 Go to previous messageGo to next message
kylin Mising name is currently offline kylin Mising nameFriend
Messages: 10
Registered: December 2014
Junior Member
Thank You!

Re: The Problem Of RAP3.0 M5 ClassLoader [message #1608327 is a reply to message #1606810] Mon, 09 February 2015 12:37 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
I think it is Equinox problem. Probably you will get a better support if
you ask this question on Equinox newsgroup.
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: The Problem Of RAP3.0 M5 ClassLoader [message #1608480 is a reply to message #1605296] Mon, 09 February 2015 14:47 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
could you provide a simple test project to demonstrate the issue?
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: The Problem Of RAP3.0 M5 ClassLoader [message #1609301 is a reply to message #1608480] Tue, 10 February 2015 03:27 Go to previous messageGo to next message
kylin Mising name is currently offline kylin Mising nameFriend
Messages: 10
Registered: December 2014
Junior Member
Hi! I found the problem:

private static ClassLoader CLASS_LOADER = Thread.currentThread().getContextClassLoader();

This Code in RAP3.0 M4 is OK.

At RAP3.0 M5 I changed the code:
in Plugin Activator :

public void start(BundleContext context) throws Exception {
super.start(context);
ClassLoaderHelper.initClassLoader(Thread.currentThread().getContextClassLoader());
}

When RAP3.0 M5 started , the Thread.currentThread().getContextClassLoader() get different Classloader instance.

That's all
Re: The Problem Of RAP3.0 M5 ClassLoader [message #1609545 is a reply to message #1609301] Tue, 10 February 2015 07:15 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
I really want to find and understand what is changed in the way TCCL is
set and used. Please create simple test project(s) with your original
implementation that worked in RAP 3.0M4.
Thanks,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: The Problem Of RAP3.0 M5 ClassLoader [message #1610773 is a reply to message #1609545] Wed, 11 February 2015 01:16 Go to previous messageGo to next message
kylin Mising name is currently offline kylin Mising nameFriend
Messages: 10
Registered: December 2014
Junior Member
The test project,There is a problem whe I comment out the "initClassLoader" code.

package testplugin;

import net.ui.eclipse.ClassLoaderHelper;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {

public void start(BundleContext context) throws Exception {

//ClassLoaderHelper.initClassLoader(Thread.currentThread().getContextClassLoader());
}

public void stop(BundleContext context) throws Exception {
}

}
Re: The Problem Of RAP3.0 M5 ClassLoader [message #1611077 is a reply to message #1610773] Wed, 11 February 2015 06:13 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
the problem is fixed by Equinox team. The fix will be included in RAP
3.0M6 (March 27).
See: 459445: Different class loading for ExtensionLoginModule since Luna
https://bugs.eclipse.org/bugs/show_bug.cgi?id=459445
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Problem Viewing RAP 2.3.1-SR1 with SWT Browser
Next Topic:Missing Border on AutoSuggest's Dropdown
Goto Forum:
  


Current Time: Tue Mar 19 03:35:05 GMT 2024

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

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

Back to the top