Category "java"

train a model with djl

Good evening ! I'm starting with DJL. My code source is here https://github.com/ngandji/green_anthill.git someone can tell what is wrong in my code! I learn wit

Using EntityGraph with SuperClasses and Embedded Attributes

I would like to use the EntityGraph Feature because of the known n+1 Problem. I have the following Entities structure: @Entity @Table(name = "customer") public

Android: How do I programmatically DOWNLOAD an SSL certificate from a provided HTTPS URL?

try { final SSLSocket sslSocket = (SSLSocket)SSLSocketFactory.getDefault().createSocket(); Timber.e("RAWR: BEFORE CO

Making a method level annotation that tells the method to save all logs to database

My problem is that a lot of methods in my project now require to have their logs stored, AOP isn't very viable since there isn't an appropriate point to cut, so

Socket connection not workin in flutter release apk

I am new to working with sockets, and I am working on this project where a connection between my android flutter app and a java server is needed, to do this I a

Maven project couldn't resolve archetype org.apache.maven.archetypes

When I begin to create a maven project I have this problem couldn't resolve archetype org.apache.maven.archetypes I can’t create maven project in my eclip

Spring Boot Server not loading React webpage

Issue: Hello! I've been spending a fair bit of time now trying to get a Spring Boot server to host a React Application. I've been able to work out nearly everyt

How do I fix "Could not reach Cloud Firestore Backend" error?

I'm build a simple app and I keep getting this error: "W/Firestore: (23.0.1) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't resp

Why won't my SpringBoot Project program populate tables in the database?

I have tried connecting to my Spring Boot project to a PostgreSQL database for the past few days and I have no errors running this project but when I open up my

What serves the same purpose of Java volatile in C++?

I learned the volatile keyword in Java. It serves as a mean to ensure visibility in other threads when a variable is written by one particular thread. It does t

Unable to connect IBMi machine with Spring Data & JPA

Trying connect IBMi machine by using Spring Data & JPA, but it's generating the error: org.springframework.beans.factory.BeanCreationException: Error creati

netbeans shows blank interface

I'm trying to open Netbeans IDE (version 12.3) but it shows me a blank screen. Please if you have a solution for that.

Setting textures on a model (Maya or Blender) via Java?

My task is: after selecting the user settings in the web application, this application must create a 3D model according to its settings (this building model wit

Unable to open txt file

I've got a school project whereas we are writing a Java program in netbeans. The project has both a substring and a points game, using a separate file (dictiona

The default type resolver could not find a suitable Java type for GraphQL type `ArrayList. Provide a @DgsTypeResolver.`

I have a java - Spring Boot project using graphql and DGS from netflix. I have the following query: type Query { ticketingHistory(ticketId: String): TicketingHi

Duplicated class Koin org.koin and io.insert-koin

I'm using two library that have dependencies of two different versions of Koin. One of the library has org.koin:koin-android:2.0.1 and the other has io.insert-k

too many org.mongodb.driver.connection: Opened connection for document DB

We have developed an Arest application that uses document DB to store/retrieve user data. MongoClientSettings settings = MongoClientSettings

make repository mutually exclusive in springboot

Is there a way to make a repository mutually exclusive i.e two concurrent values not update the same document in Springboot. My code structure is. //func(versi

Using PowerMock in JDK 16

Java reflection is becoming more and more restricted: Up to Java 8 all operations are allowed Starting from Java 9 to 15 you are still able to perform the opera

Want to compare Timestamps in Drools

I am to receive a timestamp value and want to check it agains the current timeStamp value to make sure that the value I am getting is less of before the current