https://bz.apache.org/bugzilla/show_bug.cgi?id=68493
Bug ID: 68493
Summary: NoSuchMethodException:
java.lang.foreign.MemorySegment.getString(long) is
thrown during the application start using java 21
Product: Tomcat 11
Version: 11.0.0-M16
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -------
Created attachment 39524
--> https://bz.apache.org/bugzilla/attachment.cgi?id=39524&action=edit
error stacktrace
I have windows 10 with WSL2 environment set up. I run app from under the WSL.
java --version
openjdk 21.0.1 2023-10-17
OpenJDK Runtime Environment (build 21.0.1+12-29)
OpenJDK 64-Bit Server VM (build 21.0.1+12-29, mixed mode, sharing)
Above are jdk details.
The version of tomcat I am trying to run is 11.0.0-M16. I go with spring boot
app, and when I am running spring boot app with the command:
mvn spring-boot:run
I am getting a stack trace that you may find in the attached file.
Also, when I open the file "java.lang.foreign.MemorySegment" - java 21 really
does not have method "getString(long)", but java 22 does have it. So I assume
something is wrong here... With java 21 or with tomcat 11.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]