What is JDBC? Introduction to Java Database Connectivity

JDBC (Java Database Connectivity) is the Java API that manages connecting to a database, issuing queries and commands, and handling result sets obtained from the database. Released as part of JDK 1.1 in 1997, JDBC was one of the earliest libraries developed for the Java language. JDBC was initially conceived as a client-side API, enabling … Read more

java – Retrofit 2 Response is null even when response code is 200 and response.isSuccessful() is true

My json response file is : { “access_token”: “3lfX6-GCJv8uWZE8h8OSDL5eY5oiiInNjLKZTy2ZFxj7Tru4Ounb3jIdPGMe48Ed6QchTGI3il3NxAOTdHe-3hc-1jAsqiCk6Jq_w5DfRESOfjqNBXQCM6sSj65ugygn8F8mIV9DxSm7Ac6GZu5rwwk-yVnYjNh_6xEReqCn21ZzvYIuZJ2M8YGa73o0CPwtGsJO9dPUPIrZAdK1c08iYyAixnG4aqpLfpUnHzmTyng_QQXp1TD3xfPhsNApDymx89BbCvNF2iDKvh75fGYfWKXOUj6QCOrdI4PH0PDU92e6Acjs3GZdyTo5a6SfKR5Pnfm_koehsNcCVG00xtVnfCcFJkVYaSJ5sfyjoCQ5aS8wgEOpPbHtk6AmxQqFBMHgVryxgEphKfriXOJmtg9MTE7CasVM7Ur6tFzf_sqUJERuQWDtGn6QowHVKoMHmM4stRqgU02i1MiiKzv_m83D1Fht1TjAna73_FICdWyXtijzJOaTEdWINclPxUmOa1CjjFcIVRFb0Xn3znTcI7AyNy2UJ_b3r7wf3MxZdR2TNxS9WGPdflIA5cswRy2nxQgex5cKj24c7s8fmaxm2eRH9nG3iGIK1MkQkEc58Wq0nQcPsUTnlRc1x6uAy8H9HToar9ndGnz8yh8XLBqe2PmBKXRIDBIBr_cEqP2vPmJDVq9-yaoJOPNJ4LHhuthTpNoMlhbin892yZHt1jZvJANAMtk8Ub5gkXsOggzzQoGMuWZYcoFVNGDkwiMmG624ija4kWnMAfoxar14OMnBxPbli1macFrfo5VDuZPzz9uoFEudwLeb-FPRsUSXxXj6lttVllOGKRG1bjX58DimfIfP6Mkk1C9w_Snij6sHHe1iY7V_mCOUQzsn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yhqw47lCKGI7KcMUEqy18Py4wmvnxbBYZ4reSUjPa8DLJXqheLkBiU6RX4HiGUWdANgoGDa7kFftOxxV0W0FpAGWSQU6xc6XNY85OiZOY0_gAG20zpG36D15BK_tdp6zY_rEaUdl4r02E7qLcXfb-9BwhlMfkv_SDVpkTortF_GZt-CBgtxhqmLANHWhRpdcqCMTEIamC_F1YIo2BxbZHbS3zXyGwIk4IUp3AObc54hw39bHkE0xxUwSHVPtZJkU4F0QrsISTy3Xg0SIVuoX6a6trN5l7d1RMrZj9EQKuW-5h1dQ-kNH5j3OVb5nzcw4GuVGjx-EuAeB-PCjJRJJa3Yl4AqL4WXDwUxt-A-vpSyVWlJ_EbNk2GdSwv4vGDLeVS4XONFr6Sl4lUXrgMQ4AMnyEIwr4ms4POXnJb20nF87HM”, “token_type”: “bearer”, “expires_in”: 86399, “refresh_token”: “fc833f6e009c4ca6bcc5a5720fa7c546”, “as:client_id”: “OtherApp”, “UserId”: “13315”, “InstituteId”: “0”, “FinancialYearId”: “0”, “UserType”: “S”, “StudentId”: “59110”, “StudDetail”: “JSON String”, “.issued”: “Fri, 13 May 2022 03:35:03 GMT”, “.expires”: “Sat, 14 May 2022 03:35:03 GMT” } I have check the response in App Interceptor, it shows … Read more

java – How to make two keycloak modules (factory providers) communicates between them?

I try to develop two modules of Keycloak (two authenticators in Keycloak terminology) and I want to make them communicate between them. Before describing the error I have, let me introduce the way I build my modules. Basically, a Keycloak module is developed by implementing two interfaces called AuthenticatorFactory and Authenticator defined by Keycloak. For … Read more

Intro to Micronaut: A cloud-native Java framework

The Spring framework has long dominated back-end Java development, but several new frameworks challenge that status quo. Micronaut is among the most compelling. Developed by the team that built Grails, Micronaut is made for modern architectures. This article is a hands-on introduction to Micronaut. We’ll start with a simple RESTful API-based application, refactor it for … Read more

java – How to fix org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: info, could not initialize proxy – no Session

I have a customer and a customer info entity in my spring boot project. They have an one to many relationship. @Data @Builder @Entity @NoArgsConstructor @AllArgsConstructor @Table(name = “customer”) public class Customer implements Serializable{ @Serial private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long serialNumber; private Long customerId; private String name; … Read more

java – React Native + Gradle fails with Problems reading data from Binary store error (.gradle/.tmp/gradle7278112572988587194.bin offset 230266 exists? true)

I was able to build my react native code successfully until yesterday but when I tried today I am getting gradle error * What went wrong: Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’. > Could not resolve all dependencies for configuration ‘:app:debugCompileClasspath’. > Problems reading data from Binary store in usr/.gradle/.tmp/gradle7278112572988587194.bin offset 230266 exists? … Read more

How to Hash, Salt, and Verify Passwords in NodeJS, Python, Golang, and Java

Storing passwords can be a nuance due to the liability of them being compromised. To make matters worse, users tend to reuse passwords across services which makes storing them securely even more important. The aim behind storing passwords securely is that even if the database containing them is compromised, the attacker can’t decipher any user’s … Read more