Questions tagged [java]
Java is a high-level object-oriented programming language. Use this tag when you're having problems using or understanding the language itself. This tag is frequently used alongside other tags for libraries and/or frameworks used by Java developers.
165
questions
-1
votes
0
answers
12
views
How to see network calls JMX URL when have a java Swing application as an UI?
I am working on leagcy java backend application which is build on EJB's and running on RMI server using JMX framework. And further, whose UI is built as a java SWING app. I am facing difficulties how ...
-1
votes
0
answers
26
views
When I call the constructor in the main program, the default values are getting displayed. I want the values initialized in the default Constructor() [duplicate]
When I call the constructor in the main program, the default values are displayed. I want the values initialized in the default Constructor(). Why constructor overloading is not happening when I ...
-4
votes
1
answer
50
views
Is there a way to prevent directory traversal attacks (../ pattern) at the JRE level? [closed]
I'm looking for a way to prevent directory traversal attacks, specifically those involving the ../ pattern in file paths, at the Java Runtime Environment (JRE) level. My goal is to ensure that such ...
0
votes
1
answer
53
views
Which version of Springdoc is compatible with Spring boot 3.2.8?
Which version of Springdoc (springdoc-openapi) is compatible with Spring Boot 3.2.8?
I'm unable to open Swagger UI via localhost.
I have a project that runs on Spring Boot 3.2.8 and cannot downgrade ...
-3
votes
0
answers
28
views
Java Template engine that externalizes "Common" JSP file (not HTML) is not available. It is needed as it helps developer to ease the development [closed]
can someone suggest best java Template engine that externalizes "Common.jsp" JSP file (not HTML).
This common JSP file should have header.jsp, footer.jsp, LeftMenu.jsp and should have a ...
0
votes
0
answers
12
views
Spring-web / Jakarta-servlet: detect input-change in 'when' function
In my .jsp-file, I have a text-field and a button. Both elements are part of a table. The table is filled through a forEach loop, which iterates over a List<WordDto> from the java-controller. ...
-2
votes
1
answer
39
views
Azure Repo Setup for Nexus Repo
We have our own company framework for testing and all jar are stored in nexus repo.
Whenever running my automation framework,all required jars are getting downloaded from nexus repo via pom dependancy....
2
votes
0
answers
26
views
Gradle does not see log field through @Log4j2 annotation inside lombok in InteliJ
I have a class
@Log4j2
public class TestClass {
public void doSmth() {
log.info("doSmth");
}
}
When I try to compile my code using gradle (tap on "assemble" button ...
-1
votes
0
answers
48
views
Java app memory increase very fast and GC happening too frequent [closed]
I have a spring boot cronjob running in container. I found that container were killed by kubernetes several times.
This is the memory and CPU profiling of the app when the job is running:
This is ...
1
vote
0
answers
21
views
PAM JBPM query by correlation key does not work
I am enhancing this sample https://www.mastertheboss.com/bpm/jbpm6/jbpm-6-web-application-example/. I have a requirement to get deployment id and the process id of a process instances that completed ...
0
votes
0
answers
34
views
Accessing native DLL during runtime at specific location in Jar
I'm working on a Java project using nar-maven-plugin to build a native library in another module, and then I'm using maven to copy that NAR file over to the module I'd like to use it in via JNA. I've ...
-1
votes
0
answers
27
views
Java spring boot server sending response all at once instead of streaming depending on how it's run
I am trying to stream a response from a java server. The response is sent to a Vue client. When the server is run in VS Code, it works beautifully. However, when I run the server using java -server -...
1
vote
0
answers
19
views
How to implement a double relation between entities with hibernate 6.5
I have a database on which 2 tables have a double relationship :
Database graph
The Spot may be the parent of several SpotConditions, so there is a basic OneToMany relationship.
But in addition, each ...
1
vote
0
answers
52
views
Socket connection to localhost refused
I have a Java Spring Boot application that at the service level creates a Socket connection to localhost and accesses another application written in C++.
When I run a Java application on a remote host ...
1
vote
1
answer
25
views
Spring Boot Application Runs in IntelliJ IDEA but Fails with mvn install Due to JDBC URL Error
I'm encountering an issue with my Spring Boot application. It runs perfectly fine when I start it directly from IntelliJ IDEA by clicking the play button. However, when I try to build the project ...