Skip to main content
0 votes
0 answers
29 views

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `javax.activation.DataHandler

`@JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) public class MyDocumentServiceResponse { @JsonProperty("Status") protected String status; @...
mahesh chinta's user avatar
-1 votes
1 answer
38 views

Delete Method in CRUD operation in Spring Bo

I have been trying CRUD Operation for my spring boot. I have to delete the row by given name in delete() method. I need some guidance to get this working. I debugged the code but it returns 500 error ...
Maniverse's user avatar
0 votes
0 answers
65 views

Consuming third party REST services in Java - Who provides the POJO classes?

I am a bit new to consuming third party rest APIs using Spring Boot and Java. I have experience consuming REST APIs we have developed internal to our organization. When consuming rest APIs internal to ...
Ping's user avatar
  • 635
0 votes
0 answers
116 views

Generate fake data into xml files based on xsd

I have an XSD file with a complex structure that is challenging to read directly. Using the JAXB-2 Maven plugin, I've generated POJO classes from this XSD. Now, I need to create a Java application ...
sof maz's user avatar
2 votes
1 answer
69 views

Map JSON with multiple unknown fields to Java POJO

I am trying to map the below JSON to java POJO. Below is the JSON. { "customObject": { "value": { "config-1": { "configurationName": { ...
Naved Ali's user avatar
  • 627
1 vote
0 answers
102 views

How to debug the Kryo fallback in Flink?

I wonder which is the simplest way of troubleshooting/debugging what causes the Kryo fallback. Detecting it is just a matter of adding this line to your job: env.getConfig().disableGenericTypes(); or ...
salvalcantara's user avatar
0 votes
2 answers
69 views

Java Pojos - Setter-Call (Field Touched) Detection

Pojos are often used as Models/DTOs for inserting/updating data into a database. They need to by validated (with a Validator) to make sure they only contain the expected fields for the use-case: ...
funkrusher's user avatar
2 votes
3 answers
137 views

Why do we still need to implement 'noArgsConstructor' if Java gives a non-parameterized constructor by default?

In Spring boot if we are creating a POJO class and we end up creating only a parameterized constructor and not any default constructor then Java will throw errors, why does this happen if Java ...
Ananthu K Kumar's user avatar
0 votes
1 answer
840 views

java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.Object[] java.util.Arrays$ArrayList.a accessible

I cannot make access to Java POJO in Visual Studio Code with Maven. OS : Windows 11 JDK : open-jdk 17.0.2 maven : apache-maven 3.9.6 apache flink : 1.18.1 (installed on WSL 2 ubuntu) visual studio ...
Joseph Hwang's user avatar
  • 1,403
0 votes
0 answers
26 views

How to get a number array from MongoDB to Java class with POJO?

So basically, I'm trying to get loc value from mongodb like this { _id: '01050', city: 'HUNTINGTON', loc: [ -72.873341, 42.265301 ], pop: 2084, state: 'VN' } But when I try to ...
Phạm Thế Mạnh's user avatar
0 votes
0 answers
16 views

Multiple Inner classes POJO - Mongo DB

I am trying below way to deserialize documents being read from mongodb collections @Data @ToString(doNotUseGetters = true) @JsonInclude(JsonInclude.Include.NON_NULL) public class FileInfoObject { ...
Mrinal's user avatar
  • 45
0 votes
1 answer
763 views

Getting error as "com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException" for API testing practice

Below is my main code. I am trying to do the end to end flow for POJO deserialization. I have created necessary getters and setters as well. I think access token is getting generated but after that it ...
Ansuman Prasad Pati's user avatar
1 vote
0 answers
31 views

Apply Object Template To Object

I'm writing an application which at some point must build a configuration for a couple of components based on configuration parameters and some execution context. The input is a JSON (de-serialized ...
Stefan's user avatar
  • 11
-1 votes
1 answer
66 views

Memory issues with XML-based spring configuration

I am creating a project for that I have tested both the XML-based spring configurations and Pure Java based configuration. My project is simple, it will listen on a RabbitMQ queue and perform an ...
Abhishek Goyal's user avatar
1 vote
1 answer
2k views

SpringBoot + Java 17 @Valid not validating POJO

I was recently trying to learn Spring and Java 17 as I only have experience with Dropwizard and Java 11, and I would like to do validation on a POJO, in a POST or PUT request. I've encountered several ...
Dany's user avatar
  • 35

15 30 50 per page
1
2 3 4 5
123