postgresql-embedded icon indicating copy to clipboard operation
postgresql-embedded copied to clipboard

Update de.flapdoodle.embed.process to 2.0.3

Open saiya opened this issue 6 years ago • 6 comments

To improve JDK 10 compatibility, please update de.flapdoodle.embed.process to 2.0.3.

Under 2.0.2, following stacktrace fills console:

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)
	at de.flapdoodle.embed.process.runtime.ProcessControl.<init>(ProcessControl.java:64)
	at de.flapdoodle.embed.process.runtime.ProcessControl.start(ProcessControl.java:205)
	at de.flapdoodle.embed.process.runtime.AbstractProcess.<init>(AbstractProcess.java:99)
	at ru.yandex.qatools.embed.postgresql.AbstractPGProcess.<init>(AbstractPGProcess.java:19)

See flapdoodle-oss/de.flapdoodle.embed.process#78 for details.

saiya avatar May 28 '18 08:05 saiya

Same here on version 2.9 on macos

ekoutanov avatar Aug 28 '18 02:08 ekoutanov

and consider replacing the e.printStackTrace() calls that are sprinkled throughout the code base with proper logging

ekoutanov avatar Aug 28 '18 02:08 ekoutanov

I am interested in getting to work embedded postgres with java 10. I am not sure whether this error actually is a problem. The database process is started anyway.

What has to be done to update embed.process to 2.0.3? Maybe I can contribute.. But I would like to know the current state.

Why does the existing pull request revert the version back to 2.0.2 in the second commit? https://github.com/yandex-qatools/postgresql-embedded/pull/133

gofabian avatar Sep 17 '18 11:09 gofabian

Same here, JDK 10.0.2 getting the exception.

heruan avatar Sep 22 '18 13:09 heruan

I'm still getting the error on Java 11, though it doesn't seem to actually break anything. That's both on Linux (CircleCI) and on macOS.

sazzer avatar Dec 05 '18 13:12 sazzer

Same here for JDK11

pablomusumeci avatar Feb 14 '19 10:02 pablomusumeci