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 JDK 9

See original GitHub issue

When using the plug-in on JDK 9, I’m getting the following exception:

java.lang.NoSuchFieldException: handle
    at java.lang.Class.getDeclaredField(Class.java:2100)
    at de.flapdoodle.embed.process.runtime.Processes.windowsProcessId(Processes.java:94)
    at de.flapdoodle.embed.process.runtime.Processes.processId(Processes.java:55)
    at de.flapdoodle.embed.process.runtime.ProcessControl.<init>(ProcessControl.java:65)
    at de.flapdoodle.embed.process.runtime.ProcessControl.start(ProcessControl.java:206)
    at de.flapdoodle.embed.process.runtime.ProcessControl.fromCommandLine(ProcessControl.java:202)
    at de.flapdoodle.embed.process.runtime.NUMA.isNUMAOnce(NUMA.java:56)
    at de.flapdoodle.embed.process.runtime.NUMA.isNUMA(NUMA.java:44)
    at de.flapdoodle.embed.mongo.runtime.Mongod.enhanceCommandLinePlattformSpecific(Mongod.java:175)
    at de.flapdoodle.embed.mongo.MongodProcess.getCommandLine(MongodProcess.java:85)
    at de.flapdoodle.embed.mongo.MongodProcess.getCommandLine(MongodProcess.java:41)
    at de.flapdoodle.embed.process.runtime.AbstractProcess.<init>(AbstractProcess.java:84)
    at de.flapdoodle.embed.mongo.AbstractMongoProcess.<init>(AbstractMongoProcess.java:52)
    at de.flapdoodle.embed.mongo.MongodProcess.<init>(MongodProcess.java:50)
    at de.flapdoodle.embed.mongo.MongodExecutable.start(MongodExecutable.java:44)
    at de.flapdoodle.embed.mongo.MongodExecutable.start(MongodExecutable.java:34)
    at de.flapdoodle.embed.process.runtime.Executable.start(Executable.java:99)
    at com.github.joelittlejohn.embedmongo.StartEmbeddedMongoMojo.execute(StartEmbeddedMongoMojo.java:271)

Not sure what’s the best way to address this issue, but it’d be nice to be able to use the plug-in on JDK 9, too 😃

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Loki-Afrocommented, May 15, 2018

@francisdb you can now (since yesterday) update to process 2.0.3

0reactions
francisdbcommented, May 15, 2018

can we please get a release including this fix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

NoSuchFieldException (Java SE 9 & JDK 9 )
Signals that the class doesn't have a field of a specified name. Since: 1.1; See Also: Serialized Form ...
Read more >
Issues with JDK9 #452 - mgarin/weblaf - GitHub
There are quite a few problems that appeared on JDK 9. ... java.lang.NoSuchFieldException: Field "AA_TEXT_PROPERTY_KEY" not foun...
Read more >
NoSuchFieldException (Java Platform SE 9 [ad-hoc build])
public class NoSuchFieldException extends ReflectiveOperationException. Signals that the class doesn't have a field of a specified name.
Read more >
java - NoSuchFieldException when field exists - Stack Overflow
NoSuchFieldException when field exists · Ask Question. Asked 9 years, 9 months ago. Modified 1 year, 1 month ago.
Read more >
476870 – NoSuchFieldException: c with java 9 - Bugs - Eclipse
Bug 476870 - NoSuchFieldException: c with java 9 ... My environment: OS X 10.10.5 Oracle jdk 1.9.0-ea-b74 Eclipse Mars R Docker Tools from...
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