Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h2 not working #12

Open
officialPlocki opened this issue Oct 12, 2023 · 0 comments
Open

h2 not working #12

officialPlocki opened this issue Oct 12, 2023 · 0 comments

Comments

@officialPlocki
Copy link
Owner

IMPORTANT: {"data":[{"password":"b3duZXI=","creation_timestamp":1697135126841,"uuid":"c0c46c52-af45-4a73-93dc-05b55fb62198","username":"owner"}],"arrays":["owner"],"type":"POST","dataThread":"accounts"}
Okt. 12, 2023 8:25:26 PM io.undertow.server.Connectors executeRootHandler
ERROR: UT005071: Undertow request failed HttpServerExchange{ POST /json-transfer}
java.lang.RuntimeException: Error updating data in the database
at co.plocki.neoguard.server.cache.DataCache.updateData(DataCache.java:119)
at co.plocki.neoguard.server.process.DataProcessor.processData(DataProcessor.java:244)
at co.plocki.neoguard.server.process.DataProcessor.handleRequest(DataProcessor.java:48)
at co.plocki.neoguard.server.webserver.DataHandler.lambda$handleRequest$0(DataHandler.java:82)
at io.undertow.io.AsyncReceiverImpl.receiveFullString(AsyncReceiverImpl.java:140)
at io.undertow.io.AsyncReceiverImpl.receiveFullString(AsyncReceiverImpl.java:84)
at co.plocki.neoguard.server.webserver.DataHandler.handleRequest(DataHandler.java:45)
at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:104)
at io.undertow.server.protocol.http2.Http2UpgradeHandler.handleRequest(Http2UpgradeHandler.java:101)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:393)
at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:256)
at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:59)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Feld "ID" enthält NULL Werte
Column "ID" contains null values; SQL statement:
MERGE INTO cache (file, data) VALUES (?, ?) [90081-224]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:644)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
at org.h2.message.DbException.get(DbException.java:223)
at org.h2.message.DbException.get(DbException.java:199)
at org.h2.command.dml.Merge.merge(Merge.java:171)
at org.h2.command.dml.Merge.update(Merge.java:109)
at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:74)
at org.h2.command.CommandContainer.update(CommandContainer.java:169)
at org.h2.command.Command.executeUpdate(Command.java:256)
at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:216)
at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:174)
at co.plocki.neoguard.server.cache.DataCache.updateData(DataCache.java:114)
... 16 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant