Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Eclipse Layout Kernel » elk Demo program fails during injector creation process(elkDemo5 fails at line 46 of FactoryProxyClass.notify() )
elk Demo program fails during injector creation process [message #1850674] Mon, 14 March 2022 01:28 Go to next message
Michael Lynott is currently offline Michael LynottFriend
Messages: 11
Registered: September 2021
Junior Member
The report from bug submission 579094 indicated a failure to replicate earlier submission. This report details more specifically where the failure happens.
--elkDemo5 line 58
--FactoryProxyClass line46
A red-letter warning is issued.

This code was run against AdoptOpenJDK\jdk-14.0.2.12-hotspot
on Windows 10 (build 19044.1586)
Eclipse v4.222 Build-id: 20211202-1639
Maven M2E 1.19.0.20211116-0804
Elk v 0.7.1

If elkDemo5 does not fail on Elk Test system, it would be useful to know which precise release of java / jvm was used to succeed. openjdk 14 was chosen because it appears to have been the release on which Elk 0.7.1 was built. elkDemo5 also fails against official Oracle java release 17.

Attached:
elkDemo5 code
elkDemo5 pom.xml
elkDemo5 Snapshot image of traceback
debug, info and warning messages from the failed run.

Thanks,
Mike Lynott (BoiseStateCS410)
Re: elk Demo program fails during injector creation process [message #1850675 is a reply to message #1850674] Mon, 14 March 2022 01:39 Go to previous messageGo to next message
Michael Lynott is currently offline Michael LynottFriend
Messages: 11
Registered: September 2021
Junior Member
This may help. Here is the code for the failing method. it is part of the Google Guice package:

@Override
public void notify(final Errors errors) {
try {
targetFactory =
injector.getInternalFactory(
targetKey, errors.withSource(source), JitLimitation.NEW_OR_EXISTING_JIT);
} catch (ErrorsException e) {
errors.merge(e.getErrors());
}
}
Re: elk Demo program fails during injector creation process [message #1850836 is a reply to message #1850675] Fri, 18 March 2022 07:23 Go to previous message
Sören Domrös is currently offline Sören DomrösFriend
Messages: 14
Registered: June 2021
Junior Member
Hi, it worked for me despite the bug fix https://github.com/eclipse/elk/pull/796 with java 11.
Previous Topic:ELK Sample code shows missing Options class
Next Topic:Guidance on invoking AllCrossingsCounter
Goto Forum:
  


Current Time: Mon Jul 15 12:40:47 GMT 2024

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

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

Back to the top