Category "java"

Multiple issues in Log4J Upgrade for old Java Servlet ( Struts ) based application

Current Situation Java Application development version: a Struts based GUI application developed in Java 1.5 JDK used for Compilation: 1.7 Tomcat Server: Applic

Extract WebClient GET response values within a Spring Cloud Gateway filter

My end goal with this is to implement a way to make composite API calls within the body of a gateway route filter. I have a very basic demo application running

Custom Genotype in Jenetics for nesting

I'm using Jenetics to nest a list of polygons using NoFitPolygon I have a function that gived a list of polygon nests them following the order in the list. I ad

Spring Boot "FirebaseApp with name [DEFAULT] doesn't exist."

Launching Spring Boot's jar file throws me these errors: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with n

Spring Cloud Gateway - modify response body in global Post filter

I have spent the last 2 days trying every possible way of modifying the response body of a request before it hits the client, and nothing seems to work for me.

Java servlet illegal characters

Original Question I have a Java web application that allows users to create an account and login. For some reason, after someone has sent enough illegal charact

Display only default message of Spring boot validation - MethodArgumentNotValidException

How can i strip down the excessive information from MethodArgumentNotValidException and keep only the required "default message" ?? I am experimenting with Val

MVVM: ViewModel logic needs info from database, but how to wait for the data?

I am new to MVVM and am trying to figure out how to organize my app. I made a simplified login app to help figure things out. I separated the app into layers: A

How to write a test case for the icon which is not displayed on the page due to permissions

I am trying to write test cases with the different Users with their permissions. I have a situation where there are two users Admin- with full permissions Layd

Android animation to draw alphabet

I am stuck at the animation part which is kinda tough for me, I need to draw this green sign like this. I tried this Github guide achieve my requirement but wit

java.security.AccessControlException: access denied can't be fixed in security/java.policy

I'm using SonarQube and embedding addon there When I run SonarQube it gives an exception java.security.AccessControlException: access denied ("java.io.FilePerm

JAVA Generating a Signature for Apple Promotional Offers

I'm trying to generate a signature to be returned to the mobile application in order to validate a promotional offer with the App Store. Apple documentation :do

gradle multiple repositories doesn't work

repositories { maven { url "https://maven.aliyun.com/repository/gradle-plugin" } gradlePluginPortal() } error: > Could not resolve all files for c

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 {

how to get android on click listener to work despite nullpointerexception

My project throws a nullpointerexception buy attempting invoke an onclicklistener on a null object. here is my code. protected void onCreate(Bundle savedInsta

How to convert. APK file to .AAB file?

How to convert. APK file to .AAB file? Even if it is irrelavant to your field, Please do share this to your friends who are expert in android app development. I

Spring native query with GROUP BY and ORDER BY also pagination

What if I have my native query (with PostgreSQL) in a more "complex" way, which I need to GROUP the data in order to apply an ORDER BY clause? Well, doing so wi

When Onclick operates in fragment xml, app crashes

I'm new to the development scene and I'm just trying my hand at fragments. I have an onClick event defined in one of my fragment XML files, but when I click the

How do you embed a Swing JPanel into a JavaFX frame?

From Integrating JavaFX 2.0 with Swing and SWT there is a code that allows you to embed a JFXPanel inside a Swing JFrame. I was wondering is there a reverse of

Compose DslPart for complex json

Please could someone assist me create a dslPart object for the below json. I'm stuck at the components array within the content object for type: Component 2. I'