1,917,505 questions
-2
votes
0
answers
24
views
Java program not correctly identifying palindrome number [duplicate]
I am trying to write a Java program to check whether a given number is a palindrome or not. A palindrome number remains the same when its digits are reversed (for example, 121 or 1331).
I wrote the ...
-3
votes
0
answers
31
views
How to print statement size pdf in java [closed]
I have 8.5x5.5 pdf I want to print it silently (without any dialog box) using java. I am using pdfbox 3.0.6. No matter how I tried it always prints in sideways.
-2
votes
0
answers
26
views
Best practices for managing shared models across 40+ microservices to avoid breaking changes [closed]
We are currently managing a microservice architecture with 40+ services that communicate internally. Our current approach to sharing data models/contracts is causing significant stability issues.
...
1
vote
0
answers
17
views
How can I reason over swrl built-ins using OWLAPI and Pellet in Java?
I’m a bit confused and hope someone can help.
I’m working on a project that uses SWRL rules and Pellet. In my rules I rely on specific built-ins such as:
swrlb:addDayTimeDurationToDateTime
temporal:...
Tooling
1
vote
1
replies
15
views
Local network scanning packages for kotlin
Are there packages related to scanning for local devices connected to a network and displaying the name and network information of connected devices? I'm trying to build an application that can scan ...
-3
votes
0
answers
54
views
Write a code on Add button for Hospital Management System project [closed]
enter image description here
I am working on a Java Swing application with MySQL.
When I click the Add button, the patient data should be inserted into the database.
However, the data is not being ...
1
vote
1
answer
42
views
Wrapping IOBluetooth/CoreBluetooth with JNA/FFM
As the current (as of 2026) situation concerning Java and Bluetooth is a complete disaster, I am trying to wrap macOS’s bluetooth functionality with JNA/FFM, but as central elements of these APIs are ...
-4
votes
0
answers
45
views
How to send a stomp error frame from a channel iterceptor in case of invalid subscribe requests (Spring WebSocket)
I am using Spring WebSocket with STOMP in a Java application and have configured a message broker with a ChannelInterceptor via configureClientInboundChannel.
What I’m trying to do
I want to validate ...
Advice
0
votes
0
replies
33
views
New software using the idea of JEi from minecraft to make coding python gui not pure code
I’m building an open-source project called TCB (The Crying Blocks):
https://github.com/surbris/TCB
The idea is to let people build real Python (and later Java, etc.) code by dragging and connecting ...
0
votes
1
answer
57
views
Connecting to Exchange 365 via SMTP OAuth
For sending emails on a server application without user interaction I am trying to replace my basic auth connection to Exchange 365 with an OAuth 2.0 connection.
I know that there is an alternative ...
Best practices
0
votes
3
replies
55
views
How to handle multiple dependencies in TDD with Java?
I'm practicing TDD in Java and my test setup is becoming too complex when a class has multiple dependencies.
Scenario:
For example, my PaymentProcessingService depends on a validator, payment gateway, ...
0
votes
0
answers
42
views
Spring Boot 4 with SAML gives InResponseTo validation errors when logging in again after log out
I am using Spring Boot 4 with OpemSaml 5. i have set up for global log out with Okta. Both the log in and the log out works great. However, after a global logout if I try to log in again after an ...
0
votes
1
answer
94
views
Truncate String in an @Entity class prevents SQL exception when inserting a long string [closed]
This topic has been answered multiple times here and there, but none of the suggested solutions look elegant and requires too much boilerplate code + work to add the suggested solutions into your ...
Best practices
2
votes
2
replies
30
views
Is it better to reuse spring boot PasswordEncoder for hashing different users passowrds?
In spring boot we hash password like this.
BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(16);
String hashed = passwordEncoder.encode(plainTextPassword);
Is it a good idea to store ...
1
vote
1
answer
61
views
In Spring Boot 4.0.2 SAML properties cannot be read from the YAML file
I am seeing a weird problem. My SAML application which was working great in 3.5.9 has problems reading SAML properties from the application.yml file.
I changed to the most basic SAML configuration and ...