|
Re: Exception thrown with EMF 2.9 and RAP 2.0 [message #1007990 is a reply to message #1007818] |
Fri, 08 February 2013 06:24 |
Ed Merks Messages: 33107 Registered: July 2009 |
Senior Member |
|
|
Sorry, yes was reported as
https://bugs.eclipse.org/bugs/show_bug.cgi?id=399246. I'll commit the
fix today.
On 07/02/2013 7:18 PM, TSimoes Mising name wrote:
> Hi all,
>
> I was evaluating the migration of an RAP 1.5 and EMF 2.8 application
> to the latest RAP 2.0 and EMF 2.9 builds (preparing for the future
> ahead).
>
> Everything seems to work great out of the box except for the following
> problem, when I try to open an generated editor I get a
> ClassNotFoundException for the class SessionSingletonBase (which was
> replaced by SingletonUtil in RAP 2.0).
>
> After analyzing the exception trace it seems the culprit is the
> ExtendedImageRegistry class, in particular the following code:
>
>
> try
> {
> Class<?> singletonUtilityClass =
> CommonPlugin.loadClass("org.eclipse.rap.rwt", "SingletonUtil");
> instanceMethod =
> singletonUtilityClass.getMethod("getSessionInstance", Class.class);
> }
> catch (Exception exception)
> {
> try
> {
> Class<?> singletonUtilityClass =
> CommonPlugin.loadClass("org.eclipse.rap.rwt", "SessionSingletonBase");
> instanceMethod = singletonUtilityClass.getMethod("getInstance",
> Class.class);
> }
> catch (Exception exception2)
> {
> EMFEditUIPlugin.INSTANCE.log(exception2);
> }
> }
>
>
> So it seems the class is already prepared for RAP 2.0 since it tries
> to load the SingletonUtil class, however due to some strange reason
> the class is not found.
>
> Note that everything else works fine in the application which means
> that the SingletonUtil class is used in other non EMF places correctly.
>
> Is it a bug or something I overlooked?
>
> Thanks!
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.01923 seconds