Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

When upgrading H2 to the latest 2.4.240, the H2 specific tests failed with the following errors: insert into posts (content,created_at,slug,status,title,version,id) values (?,?,?,?,?,?,?) [23514-240] ...
Hantsy's user avatar
  • 9,611
-1 votes
0 answers
27 views

I'm designing custom automation report(Playwright with Java using Junit). Encountering issue where I'm unable to implement "auto focus" when I click on the scenario in the table. Focus ...
ShivaShankar163's user avatar
0 votes
0 answers
32 views

I am trying out way to install JRecord and CB2XML in my spring boot application. I tried to use the package through POM xml by mentioning the dependencies. <dependency> <...
ramakrishnar's user avatar
0 votes
0 answers
43 views

Let's assume I have the string "F%c3%bcr%20alle" in a xml file. It should translate to "Für alle". I can do the unescaping with JavaScript: let decoded = decodeURIComponent("F%...
PrfctByDsgn's user avatar
  • 1,062
0 votes
0 answers
52 views

There is a class with an EmbeddedId. @Entity @Getter @Setter @Table(name = "indicator_values") public class IndicatorValue { @EmbeddedId public IndicatorValueId id; @Column(...
Сергей Потапчук's user avatar
2 votes
0 answers
63 views

I use JavaFX 26-ea+6 on Ubuntu 20.04 and it seems that WebView can't show webp images. This is my code: public class TestFx extends Application { @Override public void start(Stage ...
SilverCube's user avatar
  • 1,148
1 vote
0 answers
49 views

I'm working on an Android app where users can add and remove restaurants from their favourites via the RestaurantPage activity. When I access the RestaurantPage activity from the UserFavourites ...
999's user avatar
  • 21
0 votes
1 answer
36 views

In https://github.com/enola-dev/enola/pull/1927 I attempted to add signature validation for WebSocket authentication security to my https://github.com/enola-dev/twilio-conversation-relay-java Java ...
vorburger's user avatar
  • 4,078
Best practices
0 votes
4 replies
71 views

I have a Java library (FIHR) where there are conventions in a bean class hierarchy that were NOT formalized as an interface. For example many subclasses have a getStatus() property but there is no ...
DaBlick's user avatar
  • 988
2 votes
1 answer
52 views

The program below never ends: void main() { try (Fibonacci fibonacci = new Fibonacci()) { IO.println(fibonacci.calculate(9)); } } public static class Fibonacci implements ...
Piotr Walkusz's user avatar
1 vote
1 answer
44 views

When handling user input through Scanner(System.in), you can use System.setIn() to automate user input. Like this: package edu.ntnu.idi.idat; import java.io.ByteArrayInputStream; import java.io....
Lucy's user avatar
  • 95
0 votes
2 answers
96 views

I'm working on a Java project where I need to write a large number of lines to a file. I know BufferedWriter can improve performance compared to writing character by character, but I am unsure about ...
Ahamed Shahif's user avatar
-4 votes
0 answers
63 views

I am trying to solve the "A Very Big Sum" problem on HackerRank using Java. The task is to sum large integers (long values), but my output does not match the expected answer. Here is my ...
Anurag Singh's user avatar
2 votes
1 answer
122 views

I have 2 files: foo.c: #include <stdio.h> int Main(int a) { printf("A%dB",a); } int main() { return Main(1); } bar.c: extern int Main(int); int main() { return Main(2); } ...
Stas Badzi's user avatar
-3 votes
0 answers
38 views

I am integrating the Mesibo Android SDK (version 2.7.19) into my Kotlin application. I need to implement the Mesibo.MessageListener interface to receive real-time messages, but I am facing a ...
user3606728's user avatar
0 votes
0 answers
77 views

My VoIP Android app shows a full-screen incoming call UI using Android’s full-screen intent (FSI). On Samsung Android 16, the FSI works perfectly when installing the debug build — but fails completely ...
Henrik's user avatar
  • 71
1 vote
0 answers
74 views

I am trying to use some Java audio code that worked back in 2019. I am now using the Eclipse IDE with JavaSE-21 running on Windows 11. The following code is not working: AudioFormat af = ...
JavaLatte's user avatar
  • 396
-1 votes
1 answer
83 views

I have two classes: Student and Group. Student attributes: private String registrationNumber; private String firstName; private String lastName; private Date dateOfBirth; private String password; ...
Mohamed Selmi's user avatar
0 votes
0 answers
48 views

I have a Java service that relies on a dependency jar that I have modified. Within the dependency I have updated 2 different sections of code for unrelated functionality. I have updated the version of ...
Timbuck's user avatar
  • 423
2 votes
1 answer
141 views

I am trying to open to open 10K+ connections to a server, but my app stops at 8K connections when looking at the server logs. When using two remote servers, it will struggles when reaching between 8K ...
davidto's user avatar
  • 21
1 vote
0 answers
101 views

I have resurrected a program written in Java using Eclipse: I last worked on it in 2016. I am now using JaveSE-21, and this code no longer works- the returned URL is null. String name = "res/...
JavaLatte's user avatar
  • 396
-4 votes
0 answers
42 views

What are vulnerabilitites can occur by this and prevention tech in code level ?
Aadish's user avatar
  • 1
0 votes
1 answer
67 views

I'm not sure if this is a MongoDB issue, an issue with the mongo-java-driver or if I'm doing something worng. The issue is that MongoDB can behave differently in case there is a $eq operator or if a {...
the's user avatar
  • 361
1 vote
0 answers
65 views

I'm working on a JavaFX application that requires Java 17+, which only supports 64-bit operating systems. I'm using the launch4j-maven-plugin to create an EXE file, and I need to ensure that when ...
Lson's user avatar
  • 327
0 votes
1 answer
84 views

I am trying to make an app for android, just a small little "Hello World" app to assess how it all works. I have tried on numerous occasions to get gradle to wrap the app but I just keep ...
user31958440's user avatar
0 votes
1 answer
64 views

I have something like this: String data = new Gson().toJson(myCoolObject); myCoolObject has a HashMap. The resulting string ends up containing not just the keys and values of the map, but also the ...
Silver Hyangiraikyo's user avatar
1 vote
3 answers
115 views

I am doing the learning on Broadcom's Spring Academy to be up to date with the latest best practices. I bumped Spring Boot to 4.0.0 instead of the 3.0.0 on Spring Academy. But I am having some issues ...
Jeremy Lanssiers's user avatar
-6 votes
1 answer
89 views

In a class that has a bunch of functions, should I be making a separate private method specifically for formatting or should I just be formatting in every function that requires a string to be ...
Fatko's user avatar
  • 1
0 votes
1 answer
43 views

I trying to setup cooperation of gateway and authorization server. help me to find error in the program, when i authenticate me and enter to web authentication form username=admin and password=1 i ...
Snilspefad's user avatar
2 votes
0 answers
69 views

I’m upgrading an old Eclipse setup and ran into a strange issue with m2e workspace resolution. I moved from Eclipse 2021 to Eclipse 2025. I created a completely clean Eclipse installation and ...
toreitc's user avatar
  • 21
0 votes
1 answer
63 views

I’m coming from IntelliJ and I’m used to the “Copy Reference” feature, which lets me copy a fully qualified reference to a method, such as: com.mycompany.project.service.UserService.getUserById I’m ...
Hamza Belmellouki's user avatar
1 vote
0 answers
54 views

I have the below code (whole code is here) that polls a queue for runnables and parks itself if the queue is empty. public void waitAndDrain() throws InterruptedException { throwIfInterrupted(); ...
Kannan J's user avatar
  • 225
0 votes
0 answers
34 views

I'm starting an async-process through a REST request. As soon as the REST requests returns, I'm losing the MDC context inside my async execution code. I tried to "copy" it over with ...
Daniel's user avatar
  • 906
0 votes
0 answers
53 views

I'm using an old version of Android Studio, 3.1.6. This error appears when the gradle project sync failed. I also have a new version of android studio installed, I dont know if this could be related, ...
sii desarrollo2's user avatar
0 votes
1 answer
75 views

A year ago I created an Eclipse project (Eclipse 2020-06, Java 8, Win 10) that uses the GIS LAStools libary to e.g. extract data from a couple of files. I'm now using Win 11 on a different PC and want ...
Neph's user avatar
  • 2,013
3 votes
0 answers
115 views

I have a Java application that calls a native function. That native function contains a loop, and in each iteration it launches 10 threads and waits for them to complete. Each thread performs a number ...
Daniel Junglas's user avatar
0 votes
1 answer
96 views

Thread A performs getfield Stop.flag and the value is false. At a certain point, another thread modifies Stop.flag to true, but Thread A keeps getting false when reading Stop.flag. I don’t understand. ...
杨尚山's user avatar
0 votes
1 answer
82 views

Can you intercept JToggleButton clicks, making the selected property change conditional? If you add ItemListener or ActionListener, you can't veto the change, it's already happened. Switching the ...
Sergey Zolotarev's user avatar
0 votes
1 answer
110 views

I’m building a Spring Boot REST API and I’m stuck on an issue that I can’t figure out. I have a simple POST endpoint that should receive a JSON payload and map it to a DTO, but every time I call the ...
FrJ's user avatar
  • 1
1 vote
1 answer
127 views

With Spring Boot 3, I created a @ConfigurationProperties record with @NotBlank validation to manually set the base URL on the RestClient that is passed to the HttpServiceProxyFactory For example: @...
Wim Deblauwe's user avatar
  • 27.2k
0 votes
0 answers
32 views

I have deployed jasperserver-pro.war in Wildfly deployments folder and trying to start the server. But I am getting lot of WARNING server logs and I am not able to start the server.These are the ...
Sudharshan Reddy's user avatar
0 votes
0 answers
42 views

I'm building an Eclipse plugin for code completion using the Hugging Face API. My plugin sends a prompt to the endpoint: https://router.huggingface.co/hf-inference/v1/chat/completions I replaced the ...
kiruba T's user avatar
0 votes
0 answers
40 views

I’m trying to connect my React frontend (hosted on Azure Static Web Apps) to my Spring Boot backend (hosted on Azure App Service), but the CORS preflight request is failing with HTTP 403. When I run ...
tjDoe's user avatar
  • 1
-3 votes
0 answers
47 views

I have two arrays (one going from 0-49 listing every US state, and another one going from 0-49 listing the US capitals.) and I need to binary search the second array to match a selected US state to ...
Waluigi Apparition's user avatar
-1 votes
0 answers
58 views

ProcessBuilder process3 = new ProcessBuilder( "openssl" , "req", "-new", "-key&...
Sundar D's user avatar
2 votes
1 answer
139 views
+50

I'm writing a custom Maven plugin for building a Flatpak from a Java project. In a Maven mojo I understand we use @Parameter annotations to parse pom.xml file configurations. For example: pom.xml: <...
CraigFoote's user avatar
-3 votes
0 answers
77 views

Im making a presentation as homework about it, there's barely any information of it, i been working with chatgpt and some youtube video, my question is, whenever i write same numbers, for example, ...
AV_Dev's user avatar
  • 1
0 votes
1 answer
76 views

I want to use HTTP Service Clients with Spring Boot 4, but using Protobuf instead of JSON. How can I configure this?
Wim Deblauwe's user avatar
  • 27.2k
0 votes
0 answers
46 views

I'm having random data missing/not showing up in BigQuery issues. I would seemingly write data without issues, but SELECT * would return nothing. The control panel shows no errors. None of the quotas ...
Buffalo's user avatar
  • 4,082
2 votes
1 answer
90 views

I am working on an application where it dynamically generates and executes some Spring Expression Language (SpEL) expressions. I am facing a few performance issues, and after tracking it down a bit, I ...
Manas Ranjan Das's user avatar