Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » java.lang.NoSuchFieldError exception in Scout SDK core when saving a source file
java.lang.NoSuchFieldError exception in Scout SDK core when saving a source file [message #1873175] Sat, 07 December 2024 12:47 Go to next message
Eclipse UserFriend
Hi there everyone,

I just updated my Eclipse IDE installation to version 2024-12 (4.34.0) and of course it updated Eclipse Scout to version 13.0.46 also.

However, when I opened my Java based Scout application and made some modifications, every time I save my work, I get the following severe exception:

index.php/fa/45521/0/

2024-12-06 21:07:50.872 [SEVERE]  
java.lang.NoSuchFieldError: Class org.eclipse.jdt.internal.compiler.impl.CompilerOptions does not have member field 'long originalComplianceLevel'
	at org.eclipse.scout.sdk.core.java.ecj.EcjAstCompiler.createDefaultOptions(EcjAstCompiler.java:60)
	at org.eclipse.scout.sdk.core.java.ecj.EcjAstCompiler.<init>(EcjAstCompiler.java:51)
	at org.eclipse.scout.sdk.core.java.ecj.JavaEnvironmentWithEcj.lambda$getCompiler$6(JavaEnvironmentWithEcj.java:461)
	at org.eclipse.scout.sdk.core.util.FinalValue.computeIfAbsent(FinalValue.java:116)
	at org.eclipse.scout.sdk.core.util.FinalValue.computeIfAbsentAndGet(FinalValue.java:89)
	at org.eclipse.scout.sdk.core.java.ecj.JavaEnvironmentWithEcj.getCompiler(JavaEnvironmentWithEcj.java:461)
	at org.eclipse.scout.sdk.core.java.ecj.JavaEnvironmentWithEcj.lookupTypeBinding(JavaEnvironmentWithEcj.java:215)
	at org.eclipse.scout.sdk.core.java.ecj.JavaEnvironmentWithEcj.resolveAsType(JavaEnvironmentWithEcj.java:139)
	at org.eclipse.scout.sdk.core.java.ecj.JavaEnvironmentWithEcj.doFindType(JavaEnvironmentWithEcj.java:133)
	at org.eclipse.scout.sdk.core.java.model.spi.AbstractJavaEnvironment.doFindTypeInternal(AbstractJavaEnvironment.java:75)
	at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228)
	at org.eclipse.scout.sdk.core.java.model.spi.AbstractJavaEnvironment.findType(AbstractJavaEnvironment.java:65)
	at org.eclipse.scout.sdk.s2e.environment.EclipseEnvironment.toScoutType(EclipseEnvironment.java:293)
	at org.eclipse.scout.sdk.s2e.environment.EclipseEnvironment.toScoutType(EclipseEnvironment.java:286)
	at org.eclipse.scout.sdk.s2e.derived.DerivedResourceInputWithJdt.toScoutType(DerivedResourceInputWithJdt.java:44)
	at org.eclipse.scout.sdk.s2e.derived.DerivedResourceInputWithJdt.getSourceType(DerivedResourceInputWithJdt.java:39)
	at org.eclipse.scout.sdk.core.s.derived.DtoUpdateHandler.execute(DtoUpdateHandler.java:39)
	at org.eclipse.scout.sdk.core.s.derived.AbstractDerivedResourceHandler.apply(AbstractDerivedResourceHandler.java:43)
	at org.eclipse.scout.sdk.s2e.derived.DerivedResourceManager$P_RunQueuedTriggerHandlersJob.executeHandler(DerivedResourceManager.java:509)
	at org.eclipse.scout.sdk.s2e.derived.DerivedResourceManager$P_RunQueuedTriggerHandlersJob.execute(DerivedResourceManager.java:486)
	at org.eclipse.scout.sdk.s2e.derived.DerivedResourceManager$P_RunQueuedTriggerHandlersJob.lambda$execute$0(DerivedResourceManager.java:463)
	at org.eclipse.scout.sdk.s2e.environment.EclipseEnvironment.lambda$runInEclipseEnvironment$3(EclipseEnvironment.java:398)
	at org.eclipse.scout.sdk.s2e.environment.EclipseEnvironment.lambda$callInEclipseEnvironment$4(EclipseEnvironment.java:420)
	at org.eclipse.scout.sdk.s2e.environment.OperationJob.executeWithWorkingCopyManager(OperationJob.java:51)
	at org.eclipse.scout.sdk.s2e.environment.OperationJob.lambda$execute$0(OperationJob.java:46)
	at org.eclipse.scout.sdk.s2e.environment.WorkingCopyManager.lambda$runWithWorkingCopyManager$1(WorkingCopyManager.java:81)
	at org.eclipse.scout.sdk.core.util.CoreUtils.callInContext(CoreUtils.java:281)
	at org.eclipse.scout.sdk.s2e.environment.WorkingCopyManager.runWithWorkingCopyManager(WorkingCopyManager.java:80)
	at org.eclipse.scout.sdk.s2e.environment.WorkingCopyManager.runWithWorkingCopyManager(WorkingCopyManager.java:71)
	at org.eclipse.scout.sdk.s2e.environment.OperationJob.execute(OperationJob.java:46)
	at org.eclipse.scout.sdk.s2e.environment.AbstractJob.runInternal(AbstractJob.java:173)
	at org.eclipse.scout.sdk.s2e.environment.AbstractJob.run(AbstractJob.java:140)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)


The project compiles and works, but I just find this exception odd, and I don't know what caused it.

Can anyone help me figure out what the problem is?

Cheers,

JD

[Updated on: Tue, 10 December 2024 14:26] by Moderator

Re: java.lang.NoSuchFieldError exception in Scout SDK core when saving a source file files [message #1873208 is a reply to message #1873175] Mon, 09 December 2024 03:55 Go to previous messageGo to next message
Eclipse UserFriend
the issue is with several parts of the eclipse Scout SDK, creating lookup, code types, generating missing class ID ...
Re: java.lang.NoSuchFieldError exception in Scout SDK core when saving a source file files [message #1873259 is a reply to message #1873208] Tue, 10 December 2024 03:19 Go to previous messageGo to next message
Eclipse UserFriend
Good morning,
same problem with Eclipse 2024-12.
Error when creating new page or form and Eclipse hang when Ctrl+space.
This morning I tried the nighty version from https://download.eclipse.org/scout/nightly/13.0/ and it seems to work.

Thank you.

[Updated on: Tue, 10 December 2024 03:29] by Moderator

Re: java.lang.NoSuchFieldError exception in Scout SDK core when saving a source file files [message #1873268 is a reply to message #1873259] Tue, 10 December 2024 04:30 Go to previous messageGo to next message
Eclipse UserFriend
Dear all

This is a bug in the 2024-12 release of the Eclipse Scout SDK plugin.
As Giorgio Piangatelli already mentioned, installing the nightly version solves the issue. Please have a look at the Stackoverflow answer for instructions.

Hope this helps?
Mat

[Updated on: Tue, 10 December 2024 04:32] by Moderator

Re: java.lang.NoSuchFieldError exception in Scout SDK core when saving a source file files [message #1873280 is a reply to message #1873268] Tue, 10 December 2024 10:50 Go to previous message
Eclipse UserFriend
Hello there Mat,

Thanks a lot. Everything is back to order after installing the nightly version.

Thanks,

JD
Previous Topic:Issue after update Eclipse 2024.12
Next Topic:Change colour of table rows
Goto Forum:
  


Current Time: Mon Jun 23 14:01:04 EDT 2025

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

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

Back to the top