NoSuchFieldException on Java 10
See original GitHub issueI found that #241 is resolved now. I use the latest version:
<dependency>
<groupId>de.flapdoodle.embed</groupId>
<artifactId>de.flapdoodle.embed.mongo</artifactId>
<version>2.0.3</version>
<scope>test</scope>
</dependency>
but still see the issue on MacOS:
java.lang.NoSuchFieldException: handle
at java.base/java.lang.Class.getDeclaredField(Class.java:2370)
at de.flapdoodle.embed.process.runtime.Processes.windowsProcessId(Processes.java:109)
at de.flapdoodle.embed.process.runtime.Processes.access$200(Processes.java:51)
at de.flapdoodle.embed.process.runtime.Processes$PidHelper$2.getPid(Processes.java:209)
at de.flapdoodle.embed.process.runtime.Processes.processId(Processes.java:72)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Uses of Class java.lang.NoSuchFieldException
Returns a Field object that reflects the specified public member field of the class or interface represented by this Class object. Uses of...
Read more >java - NoSuchFieldException when field exists - Stack Overflow
I am getting NoSuchFieldException even when using getDeclaredField() , and the "has private access" error even after using setAccessible(true) . Example 1: ...
Read more >java.lang.NoSuchFieldException: serialPersistentFields ...
java.lang.NoSuchFieldException: serialPersistentFields Exception when Debugging Test since Intellij Update ; Type, Bug ; State, Submitted ; Assignee, Sergei ...
Read more >Re: [jetty-users] java.lang.NoSuchFieldException - Eclipse
It seems in 10.x this is replaced with a serverClassMatcher which is a ClassMatcher. Is there any way to write a descriptor so...
Read more >NoSuchFieldException - Android Developers
NoSuchFieldException ; NoSuchFieldException. Recommendations ... public NoSuchFieldException (String s) ... Android 11 · Android 10 · Pie · Oreo · Nougat ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Getting the same issue with 2.0.3 with java 10
I think the problem is that embed.mongo:2.0.3 is still uses embed.process:2.0.2 instead of 2.0.3, see the pom.xml dependency: