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

HQLQueryTest.cleanDb throws NullPointerException on scheduled job #418

Closed
DavideD opened this issue Oct 22, 2020 · 3 comments
Closed

HQLQueryTest.cleanDb throws NullPointerException on scheduled job #418

DavideD opened this issue Oct 22, 2020 · 3 comments
Labels
bug Something isn't working testing Improvements to test suite

Comments

@DavideD
Copy link
Member

DavideD commented Oct 22, 2020

It doesn't always happen but we might be able to handle it.

Gradle Test Executor 1 > org.hibernate.reactive.HQLQueryTest > testAutoFlushOnResultList FAILED
    java.lang.NullPointerException
        at org.hibernate.engine.internal.StatefulPersistenceContext.clear(StatefulPersistenceContext.java:236)
        at org.hibernate.reactive.engine.impl.ReactivePersistenceContextAdapter.clear(ReactivePersistenceContextAdapter.java:118)
        at org.hibernate.internal.SessionImpl.cleanupOnClose(SessionImpl.java:531)
        at org.hibernate.internal.AbstractSharedSessionContract.setClosed(AbstractSharedSessionContract.java:353)
        at org.hibernate.internal.AbstractSharedSessionContract.close(AbstractSharedSessionContract.java:346)
        at org.hibernate.internal.SessionImpl.closeWithoutOpenChecks(SessionImpl.java:385)
        at org.hibernate.internal.SessionImpl.close(SessionImpl.java:361)
        at org.hibernate.reactive.session.impl.ReactiveSessionImpl.close(ReactiveSessionImpl.java:1324)
        at org.hibernate.reactive.stage.impl.StageSessionImpl.close(StageSessionImpl.java:450)
        at org.hibernate.reactive.BaseReactiveTest.openSession(BaseReactiveTest.java:165)
        at org.hibernate.reactive.HQLQueryTest.cleanDb(HQLQueryTest.java:48)

https://github.com/hibernate/hibernate-reactive/runs/1290593651?check_suite_focus=true#step:5:403

@DavideD DavideD added bug Something isn't working testing Improvements to test suite labels Oct 22, 2020
@gavinking
Copy link
Member

interesting, i've never seen this even once.

@DavideD
Copy link
Member Author

DavideD commented Oct 22, 2020

Me neither, it seems to only happen on CI

@DavideD
Copy link
Member Author

DavideD commented Nov 10, 2020

I think we can close this one. It doesn't seem to happen anymore and I think it was more related to the GitHub workflow than our code.

@DavideD DavideD closed this as completed Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing Improvements to test suite
Projects
None yet
Development

No branches or pull requests

2 participants