Hello everyone, does anyone know why it failed to build and run? - version 6.3

Turbovix5 months ago
> Task :Main.main()
2024-07-29 06:03:01  INFO: Operating system name: Linux version: 6.9.9-1-default architecture: amd64
2024-07-29 06:03:02  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Amazon.com Inc. version: 17.0.12+7-LTS
2024-07-29 06:03:02  INFO: Memory limit heap: 1930mb non-heap: 0mb
2024-07-29 06:03:02  INFO: Character encoding: UTF-8
2024-07-29 06:03:02  INFO: Version: null
2024-07-29 06:03:02  INFO: Starting server...
2024-07-29 06:03:02  INFO: HikariPool-1 - Starting...
2024-07-29 06:03:03  INFO: HikariPool-1 - Added connection conn0: url=jdbc:h2:./target/database user=SA
2024-07-29 06:03:03  INFO: HikariPool-1 - Start completed.
2024-07-29 06:03:03  INFO: Set default schema name to PUBLIC
2024-07-29 06:03:03  INFO: Clearing database change log checksums
2024-07-29 06:03:04  INFO: Successfully acquired change log lock
2024-07-29 06:03:04  INFO: Successfully released change log lock
2024-07-29 06:03:09  INFO: Reading from PUBLIC.DATABASECHANGELOG
2024-07-29 06:03:10  INFO: Reading from PUBLIC.DATABASECHANGELOG
Database is up to date, no changesets to execute
2024-07-29 06:03:10  INFO: Reading from PUBLIC.DATABASECHANGELOG
2024-07-29 06:03:10  INFO: UPDATE SUMMARY
2024-07-29 06:03:10  INFO: Run:                          0
2024-07-29 06:03:10  INFO: Previously run:              49
2024-07-29 06:03:10  INFO: Filtered out:                 0
2024-07-29 06:03:10  INFO: -------------------------------
2024-07-29 06:03:10  INFO: Total change sets:           49


UPDATE SUMMARY
Run:                          0
Previously run:              49
Filtered out:                 0
-------------------------------
Total change sets:           49

2024-07-29 06:03:10  INFO: Update summary generated
2024-07-29 06:03:10  INFO: Successfully released change log lock
2024-07-29 06:03:10  INFO: Command execution complete
2024-07-29 06:03:12  INFO: jetty-11.0.21; built: 2024-05-14T03:19:28.958Z; git: 996cd61addad9cb033e0e3eba6fa3f0fa3dc270d; jvm 17.0.12+7-LTS
2024-07-29 06:03:12  INFO: Started o.t.w.@e319a6a{/,null,AVAILABLE}
2024-07-29 06:03:12  INFO: Session workerName=node0
2024-07-29 06:03:13  WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2024-07-29 06:03:14  WARN: unavailable - 
org.h2.message.DbException: IO Exception: "java.net.UnknownHostException: Dell: Dell: Não há endereço associado com o nome" [90028-230]
    at org.h2.message.DbException.get(DbException.java:212)
    at org.h2.message.DbException.convert(DbException.java:399)
    at org.h2.util.NetUtils.getLocalAddress(NetUtils.java:279)
    at org.h2.server.web.WebServer.updateURL(WebServer.java:398)
    at org.h2.server.web.WebServer.init(WebServer.java:377)
    at org.h2.server.web.JakartaWebServlet.init(JakartaWebServlet.java:52)
    at org.traccar.web.ConsoleServlet.init(ConsoleServlet.java:41)
    at jakarta.servlet.GenericServlet.init(GenericServlet.java:178)
    at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:633)
    at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:415)
    at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$2(ServletHandler.java:725)
    at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
    at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:310)
    at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
    at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:749)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:392)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:902)
    at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:306)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
    at org.eclipse.jetty.server.Server.start(Server.java:470)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89)
    at org.eclipse.jetty.server.Server.doStart(Server.java:415)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
    at org.traccar.web.WebServer.start(WebServer.java:223)
    at org.traccar.Main.run(Main.java:126)
    at org.traccar.Main.main(Main.java:110)
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: IO Exception: "java.net.UnknownHostException: Dell: Dell: Não há endereço associado com o nome" [90028-230]
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:566)
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
    ... 35 more
Caused by: java.net.UnknownHostException: Dell: Dell: Não há endereço associado com o nome
    at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1671)
    at org.h2.util.NetUtils.getLocalAddress(NetUtils.java:277)
    ... 32 more
Caused by: java.net.UnknownHostException: Dell: Não há endereço associado com o nome
    at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: IO Exception: "java.net.UnknownHostException: Dell: Dell: Não há endereço associado com o nome" [90028-230]

    at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:934)
Caused by: java.net.UnknownHostException: Dell: Dell: Não há endereço associado com o nome

    at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1543)
Caused by: java.net.UnknownHostException: Dell: Não há endereço associado com o nome

    at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1533)
    at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1666)
    ... 33 more

2024-07-29 06:03:14  INFO: Stopped o.t.w.@e319a6a{/,null,STOPPED}
2024-07-29 06:03:14 ERROR: Main method error - 
jakarta.servlet.ServletException: org.traccar.web.ConsoleServlet-11fe12e5==org.traccar.web.ConsoleServlet@6dd512b1{jsp=null,order=-1,inst=true,async=true,src=EMBEDDED:null,STARTED}
    at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:651)
    at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:415)
    at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$2(ServletHandler.java:725)
    at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
    at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:310)
    at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
    at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:749)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:392)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:902)
    at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:306)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
    at org.eclipse.jetty.server.Server.start(Server.java:470)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89)
    at org.eclipse.jetty.server.Server.doStart(Server.java:415)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
    at org.traccar.web.WebServer.start(WebServer.java:223)
    at org.traccar.Main.run(Main.java:126)
    at org.traccar.Main.main(Main.java:110)
Caused by: org.h2.message.DbException: IO Exception: "java.net.UnknownHostException: Dell: Dell: Não há endereço associado com o nome" [90028-230]
    at org.h2.message.DbException.get(DbException.java:212)
    at org.h2.message.DbException.convert(DbException.java:399)
    at org.h2.util.NetUtils.getLocalAddress(NetUtils.java:279)
    at org.h2.server.web.WebServer.updateURL(WebServer.java:398)
    at org.h2.server.web.WebServer.init(WebServer.java:377)
    at org.h2.server.web.JakartaWebServlet.init(JakartaWebServlet.java:52)
    at org.traccar.web.ConsoleServlet.init(ConsoleServlet.java:41)
    at jakarta.servlet.GenericServlet.init(GenericServlet.java:178)
    at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:633)
    ... 26 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: IO Exception: "java.net.UnknownHostException: Dell: Dell: Não há endereço associado com o nome" [90028-230]
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:566)
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
    ... 35 more
Caused by: java.net.UnknownHostException: Dell: Dell: Não há endereço associado com o nome
    at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1671)
    at org.h2.util.NetUtils.getLocalAddress(NetUtils.java:277)
    ... 32 more
Caused by: java.net.UnknownHostException: Dell: Não há endereço associado com o nome
    at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:934)
    at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1543)
    at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852)
    at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1533)
    at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1666)
    ... 33 more

Caused by: org.h2.message.DbException: IO Exception: "java.net.UnknownHostException: Dell: Dell: Não há endereço associado com o nome" [90028-230]

Caused by: org.h2.jdbc.JdbcSQLNonTransientException: IO Exception: "java.net.UnknownHostException: Dell: Dell: Não há endereço associado com o nome" [90028-230]

Caused by: java.net.UnknownHostException: Dell: Dell: Não há endereço associado com o nome

Caused by: java.net.UnknownHostException: Dell: Não há endereço associado com o nome


> Task :Main.main() FAILED

Execution failed for task ':Main.main()'.
> Process 'command '/home/marcio/.jdks/corretto-17.0.12/bin/java'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 17s
6 actionable tasks: 1 executed, 5 up-to-date

Ashok Chandra5 months ago

which gradle version you are using

Turbovix5 months ago

Hello, where can I check the version?

Ashok Chandra5 months ago

gradle > wrapper > gradle-wrapper.properties

Turbovix5 months ago

Hello, where can I check the version?

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Ashok Chandra5 months ago

HERE IS SCREENSHOT FOR YOUR REFERENCE
Screenshot 2024-07-29 162309.png

ONCE TRY WITH GRADEL VERSION 9.0

Turbovix5 months ago

Okay, I'll check here.

Turbovix5 months ago

gradle.png

Turbovix5 months ago

Same problem. Seems to be something with the H2 database.

Anton Tananaev5 months ago

What's in your config?

Turbovix5 months ago

Hello, something got corrupted in my development environment. I reinstalled everything and now everything is normal.
Thank you.