question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash by "RESTEASY003770: Response is committed" when using h2 database

See original GitHub issue

digdag crashed and cannot restart process only executing # systemctl restart digdag

/var/log/digdag/digdag-error.log

General error: "java.lang.NullPointerException" [50000-192]
        at com.google.common.base.Throwables.propagate(Throwables.java:160)
        at io.digdag.core.database.DataSourceProvider.createSimpleDataSource(DataSourceProvider.java:70
...
Caused by: org.h2.jdbc.JdbcSQLException: 一般エラー: "java.lang.NullPointerException"

It fixes with command below.

$ sudo systemctl stop digdag
$ sudo mv /var/digdag/database /tmp
$ sudo systemctl restart digdag

I guess this crash caused by resteasy-client bug.

https://issues.jboss.org/browse/RESTEASY-1238

and the bug fixed by this PR which released in 3.0.23.Final

https://github.com/resteasy/Resteasy/pull/1169

My envirtonment

  • OS: ubuntu 16.04.2 LTS
  • digdag version: 0.9.12
    • database.type=h2
  • java:
openjdk version "1.8.0_162"
OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)

So I bumped up resteasy-client in this PR. https://github.com/treasure-data/digdag/pull/754

But CI failed with executing webpack which mentioned to my another issue. https://github.com/treasure-data/digdag/issues/753

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mugacommented, Sep 14, 2018

@takanamito if my understanding is correct, this issue was already fixed. i close this ticket but, please let me know if you have anything.

0reactions
mugacommented, Apr 25, 2018

@takanamito roughly checked your stacktrace and https://issues.jboss.org/browse/RESTEASY-1238. I agree with you and https://github.com/resteasy/Resteasy/pull/1169 could mitigate this issue. Please re-create or re-open ticket to upgrade resteasy library?

Read more comments on GitHub >

github_iconTop Results From Across the Web

RESTEasy Exception: RESTEASY003770: Response is ...
Ok, having been through this now a couple of times - I've personally seen this behaviour when there is an issue with the...
Read more >
Advanced - H2 Database Engine
For a query, this means the transaction is committed even before the application scans through the result set, and before the result set...
Read more >
About the recovery of h2 database - Atlassian Community
My confluence is using H2 databases, After an unexpected power outage I can't connect to my confluence, I also failed to link the...
Read more >
unable to write: "the database is read only" after system crash
h2 goes to readonly-mode on the attached database. It may have to do with recovery, since we get into this situation (sometimes) by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found