Posts

react native run on android Caused by: java.util.concurrent.ExecutionException: com.android.tools.r8.internal.Jj: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null

Image
Today I would like to continue my react native app development work. After I run npm start , I got below quite strange error. I build the app via android studio, no build issue. Quite strange problem. Caused by: java.util.concurrent.ExecutionException: com.android.tools.r8.internal.Jj: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing. at com.android.builder.dexing.D8De  

Don't Forget to Update Spring Cloud Version When Upgrading Spring Cloud Gateway

Image
Hey everyone, Today, I'd like to share a quick tip for those of you who are upgrading Spring Cloud Gateway in your projects. It's important to remember that when you upgrade Spring Cloud Gateway, you also need to update the Spring Cloud version to ensure compatibility. Here's why: Spring Cloud Gateway relies on specific features and dependencies provided by Spring Cloud. If you upgrade Spring Cloud Gateway without updating the Spring Cloud version, you may encounter compatibility issues and y  

why your Spring Data JPA query so slow? took more than 10 mins to just fetch 100 thousands records

Image
We encountered a query performance issue which took more than 10 minutes to complete a query from a table which has 100 thousands records. We are using Spring Data JPA framework. We thought the framework shouldn't be quite slow. 100,000 records is not too much. After google search, find some similar issues. Why is JPA query so slow?I am implementing queries in my web application with JPA repositories. The two main tables I am querying from are FmReportTb and SpecimenTb. Here are the two entity  

Seamless Transaction ID Propagation in Spring WebFlux Applications

Image
Introduction In Spring WebFlux applications, ensuring consistent transaction ID propagation across asynchronous execution chains is essential for effective logging and tracing. However, the reactive, non-blocking nature of WebFlux introduces challenges due to multiple threads handling requests concurrently. In this guide, we'll explore how to seamlessly propagate transaction IDs using the Reactor Hooks library and ContextPropagation in Spring WebFlux applications. 1. Understanding the Challen