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.

All requests result in NullPointerException after running for some time

See original GitHub issue

Getting an NPE on all requests (GET,POST,PATCH,DELETE) after application is running for some time. Using version 2.11.20190113153635. On startup all requests are working fine but at some point all requests result in NPE with below stack trace:

io.crnk.core.engine.internal.http.JsonApiRequestProcessor: - failed to process request, unknown exception thrown java.lang.NullPointerException: null at ~[crnk-meta-2.11.20190113153635.jar!/:?] at io.crnk.meta.MetaLookup.access$300( ~[crnk-meta-2.11.20190113153635.jar!/:?] at io.crnk.meta.MetaLookup$2.runDiscovery( ~[crnk-meta-2.11.20190113153635.jar!/:?] at io.crnk.meta.provider.MetaPartitionBase.allocateMetaElement( ~[crnk-meta-2.11.20190113153635.jar!/:?] at io.crnk.jpa.internal.query.AbstractJpaQueryImpl.<init>( ~[crnk-jpa-2.11.20190113153635.jar!/:?] at io.crnk.jpa.internal.query.backend.criteria.JpaCriteriaQueryImpl.<init>( ~[crnk-jpa-2.11.20190113153635.jar!/:?] at io.crnk.jpa.query.criteria.JpaCriteriaQueryFactory.query( ~[crnk-jpa-2.11.20190113153635.jar!/:?] at io.crnk.jpa.query.criteria.JpaCriteriaQueryFactory.query( ~[crnk-jpa-2.11.20190113153635.jar!/:?] at io.crnk.jpa.JpaEntityRepositoryBase.findAll( ~[crnk-jpa-2.11.20190113153635.jar!/:?]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

remmeiercommented, Jun 24, 2019

can do it this week. beta has been out a while and is perfectly fine for use

kevinflaherty1commented, Jul 8, 2019

We upgraded to v3 and have not seen the problem since so I am going to close this issue.


Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.NullPointerException when i run my unit test - mockito
My guess is that your messageSource is null. You are mocking your request, but not your messageSource, and where you are newing the...
Read more >
How to Fix and Avoid NullPointerException in Java - Rollbar
The NullPointerException occurs due to a situation in application code where an uninitialized object is attempted to be accessed or modified.
Read more >
Java NullPointerException - Detect, Fix, and Best Practices
1. NullPointerException when calling an instance method · 2. Java NullPointerException while accessing/modifying field of a null object · 3. Java ...
Read more >
Getting NullpointerException while running the Tes...
We are facing 3 kind of Exceptions in the attached log while working with launch runner from the ready API 1.7.0 version. 1....
Read more >
Handling Java NullPointerException and Best Practices
If you are dealing with static variables or static methods then you won't get a null pointer exception even if you have your...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found