Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Exception thrown with EMF 2.9 and RAP 2.0(ExtendedImageRegistry seems broken)
Exception thrown with EMF 2.9 and RAP 2.0 [message #1007818] Thu, 07 February 2013 15:22 Go to next message
Tiago Simoes is currently offline Tiago Simoes
Messages: 2
Registered: May 2011
Junior Member
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!
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26046
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!
Re: Exception thrown with EMF 2.9 and RAP 2.0 [message #1014750 is a reply to message #1007990] Tue, 26 February 2013 11:47 Go to previous message
Konstantinos Apostolou is currently offline Konstantinos Apostolou
Messages: 4
Registered: February 2013
Junior Member
I have the same problem!

allow me to correct the link https://bugs.eclipse.org/bugs/show_bug.cgi?id=399246

the dot in the end Smile
Previous Topic:[CDO] 4.2 and CDOElementProxy
Next Topic:[CDO]Net4J Oracle Adaptor - schema generation exception
Goto Forum:
  


Current Time: Tue Sep 16 15:45:32 GMT 2014

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

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