question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NoSuchFieldException on Java 10

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
getalphacodecommented, Jun 7, 2018

Getting the same issue with 2.0.3 with java 10

1reaction
chli1commented, May 28, 2018

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:

		<dependency>
			<groupId>de.flapdoodle.embed</groupId>
			<artifactId>de.flapdoodle.embed.process</artifactId>
			<version>2.0.2</version>
		</dependency>
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found