Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Hawk » ClassCastException when adding Hawk index as Epsilon model
ClassCastException when adding Hawk index as Epsilon model [message #1821989] Tue, 25 February 2020 09:06 Go to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2177
Registered: July 2009
Location: York, UK
Senior Member

Hello,

Trying to add a new Hawk model to an Epsilon launch configuration through the Models configuration tab produces the following exception, which prevents the model configuration dialog from showing.

java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class [Lorg.hawk.osgiserver.HModel; ([Ljava.lang.Object; is in module java.base of loader 'bootstrap'; [Lorg.hawk.osgiserver.HModel; is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @1f799f4c)
	at org.hawk.ui.emc.dt2.HawkModelConfigurationDialog.populate(HawkModelConfigurationDialog.java:162)
	at org.hawk.ui.emc.dt2.HawkModelConfigurationDialog.createFilesGroup(HawkModelConfigurationDialog.java:143)
	at org.hawk.ui.emc.dt2.HawkModelConfigurationDialog.createGroups(HawkModelConfigurationDialog.java:56)
	at org.eclipse.epsilon.common.dt.launching.dialogs.AbstractModelConfigurationDialog.createDialogArea(AbstractModelConfigurationDialog.java:82)
	at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:158)
	at org.eclipse.jface.window.Window.create(Window.java:426)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096)
	at org.eclipse.jface.window.Window.open(Window.java:783)


This happens both when I install Hawk from https://download.eclipse.org/hawk/1.2.0/updates/ on one of the Epsilon bundles and when I run it with from source. Any suggestions?

Thanks,
Dimitris
Re: ClassCastException when adding Hawk index as Epsilon model [message #1821991 is a reply to message #1821989] Tue, 25 February 2020 09:26 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2177
Registered: July 2009
Location: York, UK
Senior Member

I *think* I've fixed this in https://git.eclipse.org/c/hawk/hawk.git/commit/?id=98a82ce76deaae364f63399fe782240dd11a992e

Thanks,
Dimitris
Re: ClassCastException when adding Hawk index as Epsilon model [message #1822048 is a reply to message #1821991] Wed, 26 February 2020 10:14 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 597
Registered: January 2010
Location: Birmingham, UK
Senior Member

Thank you for the fix! For some reason, this bug has been in Hawk since at least 2016, but we didn't run into it until now. Odd!
Previous Topic:Trouble resolving Ivy dependencies
Next Topic:Hawk 2.0 Release
Goto Forum:
  


Current Time: Fri May 24 19:58:00 GMT 2024

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

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

Back to the top