You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I tried to run the minimum configuration, but I got errors on the first step when I compile the backend-service, the tests fail.
Everythings seems to run fine in docker:
2024-07-12 09:17:26 2024/07/12 07:17:26 Pinging Docker...
2024-07-12 09:17:26 2024/07/12 07:17:26 Docker daemon is available!
2024-07-12 09:17:26 2024/07/12 07:17:26 Starting on port 8080...
2024-07-12 09:17:26 2024/07/12 07:17:26 Started!
2024-07-12 09:17:26 2024/07/12 07:17:26 New client connected: 172.17.0.1:45548
2024-07-12 09:17:26 2024/07/12 07:17:26 Adding {"label":{"org.testcontainers.lang=java":true,"org.testcontainers.sessionId=04718584-94a9-4427-b4e5-f81eb56330d4":true,"org.testcontainers.version=1.19.8":true,"org.testcontainers=true":true}}
And the Postgres SQL
2024-07-12 09:17:27 The files belonging to this database system will be owned by user "postgres".
2024-07-12 09:17:27 This user must also own the server process.
2024-07-12 09:17:27
2024-07-12 09:17:27 The database cluster will be initialized with locale "en_US.utf8".
2024-07-12 09:17:27 The default database encoding has accordingly been set to "UTF8".
2024-07-12 09:17:27 The default text search configuration will be set to "english".
2024-07-12 09:17:27
2024-07-12 09:17:27 Data page checksums are disabled.
2024-07-12 09:17:27
2024-07-12 09:17:27 fixing permissions on existing directory /var/lib/postgresql/data ... ok
2024-07-12 09:17:27 creating subdirectories ... ok
2024-07-12 09:17:27 selecting dynamic shared memory implementation ... posix
2024-07-12 09:17:27 selecting default max_connections ... 100
2024-07-12 09:17:27 selecting default shared_buffers ... 128MB
2024-07-12 09:17:27 selecting default time zone ... Etc/UTC
2024-07-12 09:17:27 creating configuration files ... ok
2024-07-12 09:17:27 running bootstrap script ... ok
2024-07-12 09:17:27 performing post-bootstrap initialization ... ok
2024-07-12 09:17:27 syncing data to disk ... ok
2024-07-12 09:17:27
2024-07-12 09:17:27
2024-07-12 09:17:27 Success. You can now start the database server using:
2024-07-12 09:17:27
2024-07-12 09:17:27 pg_ctl -D /var/lib/postgresql/data -l logfile start
2024-07-12 09:17:27
2024-07-12 09:17:27 waiting for server to start....2024-07-12 07:17:27.786 UTC [48] LOG: starting PostgreSQL 16.3 (Debian 16.3-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-07-12 09:17:27 2024-07-12 07:17:27.786 UTC [48] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-07-12 09:17:27 initdb: warning: enabling "trust" authentication for local connections
2024-07-12 09:17:27 initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
2024-07-12 09:17:28 2024-07-12 07:17:28.096 UTC [1] LOG: starting PostgreSQL 16.3 (Debian 16.3-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-07-12 09:17:28 2024-07-12 07:17:28.097 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-07-12 09:17:28 2024-07-12 07:17:28.097 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-07-12 09:17:28 2024-07-12 07:17:28.097 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-07-12 09:17:28 2024-07-12 07:17:28.098 UTC [64] LOG: database system was shut down at 2024-07-12 07:17:27 UTC
2024-07-12 09:17:28 2024-07-12 07:17:28.100 UTC [1] LOG: database system is ready to accept connections
2024-07-12 09:17:27 2024-07-12 07:17:27.787 UTC [51] LOG: database system was shut down at 2024-07-12 07:17:27 UTC
2024-07-12 09:17:27 2024-07-12 07:17:27.789 UTC [48] LOG: database system is ready to accept connections
2024-07-12 09:17:27 done
2024-07-12 09:17:27 server started
2024-07-12 09:17:27 CREATE DATABASE
2024-07-12 09:17:27
2024-07-12 09:17:27
2024-07-12 09:17:27 /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
2024-07-12 09:17:27
2024-07-12 09:17:27 waiting for server to shut down....2024-07-12 07:17:27.982 UTC [48] LOG: received fast shutdown request
2024-07-12 09:17:27 2024-07-12 07:17:27.982 UTC [48] LOG: aborting any active transactions
2024-07-12 09:17:27 2024-07-12 07:17:27.983 UTC [48] LOG: background worker "logical replication launcher" (PID 54) exited with exit code 1
2024-07-12 09:17:27 2024-07-12 07:17:27.984 UTC [49] LOG: shutting down
2024-07-12 09:17:27 2024-07-12 07:17:27.984 UTC [49] LOG: checkpoint starting: shutdown immediate
2024-07-12 09:17:27 2024-07-12 07:17:27.989 UTC [49] LOG: checkpoint complete: wrote 922 buffers (5.6%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.005 s, sync=0.001 s, total=0.005 s; sync files=0, longest=0.000 s, average=0.000 s; distance=4255 kB, estimate=4255 kB; lsn=0/1912040, redo lsn=0/1912040
2024-07-12 09:17:27 2024-07-12 07:17:27.994 UTC [48] LOG: database system is shut down
2024-07-12 09:17:28 done
2024-07-12 09:17:28 server stopped
2024-07-12 09:17:28
2024-07-12 09:17:28 PostgreSQL init process complete; ready for start up.
2024-07-12 09:17:28
But the tests fails with the error:
org.eclipse.edc.spi.EdcException: java.io.IOException: The system cannot find the file specified
at app//org.eclipse.edc.junit.extensions.EdcRuntimeExtension.resolveClassPathEntry(EdcRuntimeExtension.java:194)
at app//org.eclipse.edc.junit.extensions.EdcRuntimeExtension.lambda$beforeTestExecution$4(EdcRuntimeExtension.java:106)
at [email protected]/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
at [email protected]/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at [email protected]/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
at [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
at [email protected]/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at [email protected]/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
at app//org.eclipse.edc.junit.extensions.EdcRuntimeExtension.beforeTestExecution(EdcRuntimeExtension.java:107)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
Suppressed: java.lang.NullPointerException: Cannot invoke "org.eclipse.edc.spi.monitor.Monitor.info(String, java.lang.Throwable[])" because "this.monitor" is null
at org.eclipse.edc.boot.system.runtime.BaseRuntime.shutdown(BaseRuntime.java:106)
at org.eclipse.edc.junit.extensions.EdcExtension.afterTestExecution(EdcExtension.java:89)
at org.eclipse.edc.junit.extensions.EdcRuntimeExtension.afterTestExecution(EdcRuntimeExtension.java:154)
... 3 more
Caused by: java.io.IOException: The system cannot find the file specified
at java.base/java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.base/java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:462)
at java.base/java.io.File.getCanonicalPath(File.java:626)
at java.base/java.io.File.getCanonicalFile(File.java:651)
at org.eclipse.edc.junit.extensions.EdcRuntimeExtension.resolveClassPathEntry(EdcRuntimeExtension.java:178)
... 13 more
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I tried to run the minimum configuration, but I got errors on the first step when I compile the backend-service, the tests fail.
Everythings seems to run fine in docker:
2024-07-12 09:17:26 2024/07/12 07:17:26 Pinging Docker...
2024-07-12 09:17:26 2024/07/12 07:17:26 Docker daemon is available!
2024-07-12 09:17:26 2024/07/12 07:17:26 Starting on port 8080...
2024-07-12 09:17:26 2024/07/12 07:17:26 Started!
2024-07-12 09:17:26 2024/07/12 07:17:26 New client connected: 172.17.0.1:45548
2024-07-12 09:17:26 2024/07/12 07:17:26 Adding {"label":{"org.testcontainers.lang=java":true,"org.testcontainers.sessionId=04718584-94a9-4427-b4e5-f81eb56330d4":true,"org.testcontainers.version=1.19.8":true,"org.testcontainers=true":true}}
And the Postgres SQL
2024-07-12 09:17:27 The files belonging to this database system will be owned by user "postgres".
2024-07-12 09:17:27 This user must also own the server process.
2024-07-12 09:17:27
2024-07-12 09:17:27 The database cluster will be initialized with locale "en_US.utf8".
2024-07-12 09:17:27 The default database encoding has accordingly been set to "UTF8".
2024-07-12 09:17:27 The default text search configuration will be set to "english".
2024-07-12 09:17:27
2024-07-12 09:17:27 Data page checksums are disabled.
2024-07-12 09:17:27
2024-07-12 09:17:27 fixing permissions on existing directory /var/lib/postgresql/data ... ok
2024-07-12 09:17:27 creating subdirectories ... ok
2024-07-12 09:17:27 selecting dynamic shared memory implementation ... posix
2024-07-12 09:17:27 selecting default max_connections ... 100
2024-07-12 09:17:27 selecting default shared_buffers ... 128MB
2024-07-12 09:17:27 selecting default time zone ... Etc/UTC
2024-07-12 09:17:27 creating configuration files ... ok
2024-07-12 09:17:27 running bootstrap script ... ok
2024-07-12 09:17:27 performing post-bootstrap initialization ... ok
2024-07-12 09:17:27 syncing data to disk ... ok
2024-07-12 09:17:27
2024-07-12 09:17:27
2024-07-12 09:17:27 Success. You can now start the database server using:
2024-07-12 09:17:27
2024-07-12 09:17:27 pg_ctl -D /var/lib/postgresql/data -l logfile start
2024-07-12 09:17:27
2024-07-12 09:17:27 waiting for server to start....2024-07-12 07:17:27.786 UTC [48] LOG: starting PostgreSQL 16.3 (Debian 16.3-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-07-12 09:17:27 2024-07-12 07:17:27.786 UTC [48] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-07-12 09:17:27 initdb: warning: enabling "trust" authentication for local connections
2024-07-12 09:17:27 initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
2024-07-12 09:17:28 2024-07-12 07:17:28.096 UTC [1] LOG: starting PostgreSQL 16.3 (Debian 16.3-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-07-12 09:17:28 2024-07-12 07:17:28.097 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-07-12 09:17:28 2024-07-12 07:17:28.097 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-07-12 09:17:28 2024-07-12 07:17:28.097 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-07-12 09:17:28 2024-07-12 07:17:28.098 UTC [64] LOG: database system was shut down at 2024-07-12 07:17:27 UTC
2024-07-12 09:17:28 2024-07-12 07:17:28.100 UTC [1] LOG: database system is ready to accept connections
2024-07-12 09:17:27 2024-07-12 07:17:27.787 UTC [51] LOG: database system was shut down at 2024-07-12 07:17:27 UTC
2024-07-12 09:17:27 2024-07-12 07:17:27.789 UTC [48] LOG: database system is ready to accept connections
2024-07-12 09:17:27 done
2024-07-12 09:17:27 server started
2024-07-12 09:17:27 CREATE DATABASE
2024-07-12 09:17:27
2024-07-12 09:17:27
2024-07-12 09:17:27 /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
2024-07-12 09:17:27
2024-07-12 09:17:27 waiting for server to shut down....2024-07-12 07:17:27.982 UTC [48] LOG: received fast shutdown request
2024-07-12 09:17:27 2024-07-12 07:17:27.982 UTC [48] LOG: aborting any active transactions
2024-07-12 09:17:27 2024-07-12 07:17:27.983 UTC [48] LOG: background worker "logical replication launcher" (PID 54) exited with exit code 1
2024-07-12 09:17:27 2024-07-12 07:17:27.984 UTC [49] LOG: shutting down
2024-07-12 09:17:27 2024-07-12 07:17:27.984 UTC [49] LOG: checkpoint starting: shutdown immediate
2024-07-12 09:17:27 2024-07-12 07:17:27.989 UTC [49] LOG: checkpoint complete: wrote 922 buffers (5.6%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.005 s, sync=0.001 s, total=0.005 s; sync files=0, longest=0.000 s, average=0.000 s; distance=4255 kB, estimate=4255 kB; lsn=0/1912040, redo lsn=0/1912040
2024-07-12 09:17:27 2024-07-12 07:17:27.994 UTC [48] LOG: database system is shut down
2024-07-12 09:17:28 done
2024-07-12 09:17:28 server stopped
2024-07-12 09:17:28
2024-07-12 09:17:28 PostgreSQL init process complete; ready for start up.
2024-07-12 09:17:28
But the tests fails with the error:
org.eclipse.edc.spi.EdcException: java.io.IOException: The system cannot find the file specified
at app//org.eclipse.edc.junit.extensions.EdcRuntimeExtension.resolveClassPathEntry(EdcRuntimeExtension.java:194)
at app//org.eclipse.edc.junit.extensions.EdcRuntimeExtension.lambda$beforeTestExecution$4(EdcRuntimeExtension.java:106)
at [email protected]/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
at [email protected]/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at [email protected]/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
at [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
at [email protected]/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at [email protected]/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
at app//org.eclipse.edc.junit.extensions.EdcRuntimeExtension.beforeTestExecution(EdcRuntimeExtension.java:107)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
Suppressed: java.lang.NullPointerException: Cannot invoke "org.eclipse.edc.spi.monitor.Monitor.info(String, java.lang.Throwable[])" because "this.monitor" is null
at org.eclipse.edc.boot.system.runtime.BaseRuntime.shutdown(BaseRuntime.java:106)
at org.eclipse.edc.junit.extensions.EdcExtension.afterTestExecution(EdcExtension.java:89)
at org.eclipse.edc.junit.extensions.EdcRuntimeExtension.afterTestExecution(EdcRuntimeExtension.java:154)
... 3 more
Caused by: java.io.IOException: The system cannot find the file specified
at java.base/java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.base/java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:462)
at java.base/java.io.File.getCanonicalPath(File.java:626)
at java.base/java.io.File.getCanonicalFile(File.java:651)
at org.eclipse.edc.junit.extensions.EdcRuntimeExtension.resolveClassPathEntry(EdcRuntimeExtension.java:178)
... 13 more
Any ideas how I can solve this?
Beta Was this translation helpful? Give feedback.
All reactions