Comments (4)
@KoichiSenada can you please check version 2.2
?
from postgresql-embedded.
@smecsia , thank you, that helped!
This case is now solved.
from postgresql-embedded.
@KoichiSenada Thanks! Can you please check the version from #82 ?
from postgresql-embedded.
@smecsia , thank you, I have checked out the pull request #82
git fetch origin refs/pull/82/head:pull_82
git checkout pull_82
But the mvn install
command fails with the same NullPointerException
at the same method de.flapdoodle.embed.process.runtime.AbstractProcess.pidFile
called from the ru.yandex.qatools.embed.postgresql.AbstractPGProcess.<init>
constructor.
2017-05-15 12:42:25 DEBUG Files:120 - could delete C:\Users\UserName\AppData\Local\Temp\postgresql-embed-22609af5-4735-402c-9bc2-a09f5c5cabaf\db-content-f7cf8ccf-41f5-4db6-842d-c42a6d856211
2017-05-15 12:42:25 WARN AbstractProcess:174 - Could not delete pid file: C:\Users\UserName\AppData\Local\Temp\postgresql-embed-22609af5-4735-402c-9bc2-a09f5c5cabaf\pgsql\bin\pg_ctl.pid
2017-05-15 12:42:26 ERROR CachedPostgresArtifactStore:63 - Failed to extract file set
java.lang.NullPointerException: executable is NULL
at de.flapdoodle.embed.process.extract.ImmutableExtractedFileSet.<init>(ImmutableExtractedFileSet.java:45)[de.flapdoodle.embed.process-2.0.1.jar:]
at de.flapdoodle.embed.process.extract.ImmutableExtractedFileSet$Builder.build(ImmutableExtractedFileSet.java:122)[de.flapdoodle.embed.process-2.0.1.jar:]
at de.flapdoodle.embed.process.store.CachedPostgresArtifactStore.extractFileSet(CachedPostgresArtifactStore.java:58)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at de.flapdoodle.embed.process.runtime.Starter.prepare(Starter.java:57)[de.flapdoodle.embed.process-2.0.1.jar:]
at de.flapdoodle.embed.process.runtime.Starter.prepare(Starter.java:49)[de.flapdoodle.embed.process-2.0.1.jar:]
at ru.yandex.qatools.embed.postgresql.PostgresProcess.runCmd(PostgresProcess.java:117)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at ru.yandex.qatools.embed.postgresql.PostgresProcess.shutdownPostgres(PostgresProcess.java:132)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at ru.yandex.qatools.embed.postgresql.PostgresProcess.sendStopToPostgresqlInstance(PostgresProcess.java:170)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at ru.yandex.qatools.embed.postgresql.PostgresProcess.stopInternal(PostgresProcess.java:144)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at de.flapdoodle.embed.process.runtime.AbstractProcess.stop(AbstractProcess.java:170)[de.flapdoodle.embed.process-2.0.1.jar:]
at de.flapdoodle.embed.process.runtime.AbstractProcess$JobKiller.run(AbstractProcess.java:243)[de.flapdoodle.embed.process-2.0.1.jar:]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]
2017-05-15 12:42:26 TRACE PostgresProcess:134 - Failed to stop postgres by pg_ctl!
java.lang.NullPointerException
at de.flapdoodle.embed.process.runtime.AbstractProcess.pidFile(AbstractProcess.java:125)[de.flapdoodle.embed.process-2.0.1.jar:]
at de.flapdoodle.embed.process.runtime.AbstractProcess.<init>(AbstractProcess.java:72)[de.flapdoodle.embed.process-2.0.1.jar:]
at ru.yandex.qatools.embed.postgresql.AbstractPGProcess.<init>(AbstractPGProcess.java:19)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at ru.yandex.qatools.embed.postgresql.PgCtlProcess.<init>(PgCtlProcess.java:21)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at ru.yandex.qatools.embed.postgresql.PgCtlExecutable.start(PgCtlExecutable.java:24)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at ru.yandex.qatools.embed.postgresql.PgCtlExecutable.start(PgCtlExecutable.java:14)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at de.flapdoodle.embed.process.runtime.Executable.start(Executable.java:101)[de.flapdoodle.embed.process-2.0.1.jar:]
at ru.yandex.qatools.embed.postgresql.PostgresProcess.runCmd(PostgresProcess.java:118)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at ru.yandex.qatools.embed.postgresql.PostgresProcess.shutdownPostgres(PostgresProcess.java:132)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at ru.yandex.qatools.embed.postgresql.PostgresProcess.sendStopToPostgresqlInstance(PostgresProcess.java:170)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at ru.yandex.qatools.embed.postgresql.PostgresProcess.stopInternal(PostgresProcess.java:144)[file:/C:/Users/UserName/Documents/github.com/yandex-qatools/postgresql-embedded/target/classes/:]
at de.flapdoodle.embed.process.runtime.AbstractProcess.stop(AbstractProcess.java:170)[de.flapdoodle.embed.process-2.0.1.jar:]
at de.flapdoodle.embed.process.runtime.AbstractProcess$JobKiller.run(AbstractProcess.java:243)[de.flapdoodle.embed.process-2.0.1.jar:]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]
Though, I have managed to install the snapshot while skipping tests with command mvn install -DskipTests
, the originally mentioned code with it now runs fine. But the exception in ru.yandex.qatools.embed.postgresql.PgCtlExecutable
and ru.yandex.qatools.embed.postgresql.PgCtlProcess
is still a bug. Can you please fix it as well?
from postgresql-embedded.
Related Issues (20)
- Update de.flapdoodle.embed.process to 2.0.3 HOT 6
- Failed to read PID file HOT 7
- "Possibly failed to run initdb" - Windows HOT 5
- Configurable timeout when starting
- stop postgresql on shutdown not working
- ETA on 2.10 release? HOT 2
- Cached server path fails to find PID on Unix HOT 9
- postgresql-embedded fails to start in travis environment HOT 2
- Cannot install extensions anymore... HOT 1
- Postgres 11.1 for Linux HOT 5
- "restoreFromFile" executes more hour HOT 1
- java.lang.NoSuchFieldException: handle thrown possible because of JDK11 HOT 7
- Add start method which takes IRuntimeConfig without List<String> additionalParams
- How to run this on a buildserver through jenkins (postmaster.pid does not exist)? HOT 4
- JSON functions support
- Mac OS "No space left on device" on local tests
- Download via SSL possible?
- Download of DB broken with 403 HOT 1
- PgSQL version upgrade, Feb 14, 2019 releases
- Version.V11_1 Not Working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgresql-embedded.