Skip to main content
The 2024 Developer Survey results are live! See the results

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.

java
-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 ...
avaneesh kumar Shukla's user avatar
-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 ...
Tanuja Naik's user avatar
-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 ...
Sakthis's user avatar
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 ...
Neeti Kulkarni's user avatar
-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 ...
Nagarjuna's user avatar
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. ...
Fi0x's user avatar
  • 144
-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....
techieqa's user avatar
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 ...
Oblivion's user avatar
-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 ...
zonyang's user avatar
  • 884
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 ...
Udara S.S Liyanage's user avatar
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 ...
Ben's user avatar
  • 1
-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 -...
Philip's user avatar
  • 668
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 ...
Colin Lefebvre's user avatar
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 ...
Neo's user avatar
  • 81
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 ...
Ramiro Schettino's user avatar

15 30 50 per page
1
3 4
5
6 7
11