Category "java"

Maven build failed with GC overhead limit exceeded

I am trying to build the project with the following command mvn clean install But every-time its end with memory issue ,then i run same command with -X opt

Eclipse windowbuilder not showing the full frame

I'm trying to use Eclipse windowbuilder, but when I go to the design page the frame gets cut. Below is an image of what I am seeing. This is just a simple JFra

I have two filters in a Spring Boot project. Why the response.isCommited() became true when the response go through the first filter

I have two filters, and one of them needs to setting headers into the response. response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Acce

Hibernate 5 migration Issue with Multilevel Joined table Inheritance with Hibernate 5.4 DiscriminatorColumn

I am working on migrating a legacy Hibernate project from version 4.1 to 5.4. The code has Multilevel Joined table inheritance using a dedicated DiscriminatorCo

Parameter 0 of constructor in required a bean of type 'java.lang.String' that could not be found

I am working on spring batch with spring boot 2.X application, actually its existing code i am checked out from git. While running the application it fails due

Can´t run JavaFX application outside ide

I want run JavaFX application with module but dont know how to do. I tried several times but i never got it. I use Eclipse, and export the proyect with the firs

Flatbuffer object returning null on Netty Bytebuffer

We are using Flatbuffer with Java bindings. The application is running Netty4 and has following code for handling Netty request: String id; try { reques

Maven mvn install doesn't run liquibase scripts

everyone! I faced with a problem. I have SpringBoot app with Spring JDBC and liquibase. When I do mvn install my tests failed because, liquibase doesn't run. Wh

Using Lombok @SuperBuilder annotation with toBuilder on an abstract class?

I have the following classes: @SuperBuilder(toBuilder = true) public abstract class Parent { //... } @SuperBuilder(toBuilder = true) public class Child ex

Binary Gap Program in Java

My problem statement: A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the b

screen shot is not displayed in extent report

The screen shot is taken and stored in the folder. but its not displaying for the failed test. displayed as corrupted image. Java Code: public synchronized

Failed to Build Application Getting Error::No toolchain found for type jdk

I have tried different solution for this but didn't work for me, please see the error log and toolchain.xml file. These are error logs: [INFO] --- maven

JPA Specification predicate for querying latest/newest/most recent records

I'm trying to convert the below query into a JPA specification in order to enable more flexible querying of my Rule entities, but i don't find any way of transl

Set of String is not acting normal in Spring JPA Projection Interface

I am using Projection Interface to return a partial view of an Entity, and the partial view contains a Set of String. I expect the Set works as normal but its n

The maven on the right side of the intellij IDEA is missing plugins and dependencies

1,The maven on the right side of the intellij IDEA is missing plugins and dependencies.help me This question made me cry. 2,Problem Description mall ---mall-aut

Issues calling Java from Ballerina

This code below for ballerina Java interop is failing to generate the data signature. Can you spot why it is failing on the following line? The code is run with

Given ClassA and SubclassA, if I use Google Guice to bind ClassA to SubclassA then will SubclassA be injected as an instance where ClassA gets called?

Say I am given a scenario like this: @Data public class ClassA { private final String name = "ClassA"; public ClassA(){ //This constructor gets

SessionNotCreatedException with Selenium 4.1.3/IEDriverServer 4.0.0 without open desktop session (works with Selenium 3.141.0/IEDriverServer 2.53.1)

I'm running Selenium via a Jenkins Maven job. The job is running on a separate Jenkins agent without a remote desktop session open to it. When I run in Selenium

Issues calling Java from Ballerina

This code below for ballerina Java interop is failing to generate the data signature. Can you spot why it is failing on the following line? The code is run with

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/LocalDate; error

I tried everything, but the error not getting solved Here is my code: public String[] getWeekDays() { LocalDate today = LocalDate.now(); LocalDate mo