Category "spring-boot"

Unable to store ManyToOne association for an entity

I am unable to bind foreign_key baz_id to Baz on a POST call, it fails with a instantiation error trying to store a bar POST http://localhost/foo/api/v1/bars {

org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: java.lang.String cannot be cast to java.lang.Enum

I have a Spring boot application. spring-boot-starter-parent 2.3.0.RELEASE I'm trying to get a list of objects and expect to get something like this: { "i

Add trace.id and transaction.id Springboot

I have a Springboot micro-service. For logging I'm using Elastic common scheme, implemented using ecs-logging-java. I want to set the trace.ID and a transactio

Looking for something similar to Laravel Livewire for Spring Boot

I am looking to use Spring Boot for my next project and I am unable to find something that offers similar functionality to Laravel Livewire, does anybody know i

javax.validation.ValidationException Error

Error: Caused by: javax.validation.ValidationException: HV000183: Unable to initialize 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on

Error: Could not find or load main class - When running a JAR at the prompt

I'm looking all afternoon how I can run a JAR of a Spring Boot application I'm developing. Generated the JAR through the mvn clean package command. The JAR is g

Unable to connect to progress database using spring jpa

I am trying to add progress as a secondary DataSource to my application Here are the properties of the dataSource: spring.datasource2.jdbcUrl=jdbc:datadirect:op

How to search from spring cache using where condition?

In the spring boot application let the entity is as follows public class Employee{ private String location; private String name; private String lastNam

Which Java class is compatible with python Pandas DataFrame when using DJL(Deep Java Library)?

I'm trying to import Python Tensorflow custom model to spring-boot using DJL Tensorflow, and the model gets Pandas DataFrame as both input and output. I'm wonde

Getting All Object attribut names reursively

is there any way to get all attribute names of an object Company recursively: ExpectedOutput id, age, address {street, zipCode}, employee {firstName, LastName,

How to skip a document from retrieving in MongoRepository if it causes an error?

I'm working on a web application built using SpringBoot as backend and MongoDB as DBMS. I'm showing all the latest posts in a web page. In the PostRepository.kt

How to get the start_time of the last completed job in Spring Batch?

Suppose these are my job runs: job_id | job_status ------------------- 1 COMPLETED 2 COMPLETED 3 FAILED 4 COMPLETED 5 FAILED

Couldn't retrieve job because a required class was not found, even though previous triggers fired successfully

I have a CRON trigger defined with Quartz, which successfully fires several times and ends up in error state after some cycles, with the following message (clas

Configure Open API 3 - SpringBoot with multiple controller classes

Am trying to configure swagger 3 spring documentation for my springboot application. I have 3 controller classes with 1 functional endpoint method each. If I op

form-data prameters are sent in body, causing the getParameter method to return null

I've recently upgraded to the spring boot version 2.6.3 while using camunda 7.17.0. The login camunda page, sends a post request, but the form-data parameters a

Databricks - spark-submit Error | org.springframework.core.ResolvableType.forInstance(Ljava/lang/Object;)Lorg/springframework/core/ResolvableType

Spark-submit in Databricks cluster.. is giving this error. I am using Spark 3.1.2 Scala 2.12 Springframeworkboot 2.6.3 However spark-submit is running good in m

Create an open-telemetry span using trace-id and span-id in Java

I'm using open-telemetry to trace my applications and have a few microservices and Kafka broker in my distributed system. I'm using Java/spring-boot and in the

IllegalArgumentException("Null KeyStore name") while trying to debug SpringBoot App

I`ve got IllegalArgumentException("Null KeyStore name") in PolicyUtil.java while trying to debug SpringBoot App. Debugging in every other project, including Spr

Camel SFTP with Quartz scheduler: prevent concurrent execution, reject task if busy

Camel 3.11 Spring Boot 2.5 Java 11 I have a dynamic Camel routes that fetches files from an SFTP server. There is one route per SFTP user. The routes are schedu

How do I prevent RSocket from allowing cross origin in Spring Boot?

My Problem I have a spring boot application that uses RSockets. My spring boot app is running on port 8080, and my front-end (React.js) is running on port 3000.