1,918,278 questions
0
votes
0
answers
27
views
Java Swing Invisible Image
Context:
I'm trying to make an app with java swing, however when trying to add a background to the Login Page, the image does not show up. It is there and moves other JComponents when adding a layout ...
0
votes
1
answer
33
views
Android Java Surfaceview, declaring and hiding
I have a main activity with a button. When I press the button a hidden Surfaceview get visible and an animation shows. It's working really well. I have two problems. What is the proper way to declare ...
Advice
0
votes
2
replies
25
views
Lower Bounded Wildcards: is it about superType or subType
Oracle documentation mentioned it clearly.
a lower bounded wildcard restricts the unknown type to be a specific type or a super type of that type.
To write the method that works on lists of Integer ...
0
votes
0
answers
9
views
Even when connecting Web3j via WebSocket, I can’t receive blocks instantly
I made sure the RPC URL definitely starts with wss, but Web3j still keeps fetching blocks at specific intervals instead of receiving them in real time.
Do I need to call a different method?
My Web3j ...
0
votes
0
answers
17
views
Firestore only updates when the activity using it is accessed through a specific Android activity [duplicate]
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 ...
0
votes
0
answers
26
views
Why does RestTemplate, starting from Java 21, run on a different thread even without virtual threads and without @Async, and why does MDC get lost?
i recently migrated from java17 to 21. I use logback MDC to log http request and response. each http request may lead to execute several resttemplate sync call. i use mdc to generate UUID as traceId ...
0
votes
0
answers
54
views
How to List pdf filenames [duplicate]
I cannot get a list of files ending with .pdf, I have tried everything, it lists everything else in the folder, except for the pdf's, what is wrong with this. The program then displays the list in a
...
1
vote
0
answers
32
views
Spring WebClient takes too long to process the first request — subsequent calls fast
I'm using Spring WebClient in my Java application to authenticate with Keycloak.
The issue I'm facing is:
The first WebClient request takes a long time (5-9 seconds), but all subsequent requests are ...
-1
votes
0
answers
55
views
Hibernate 7 and H2 2.4.240 compatible issues
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]
...
-1
votes
0
answers
30
views
I'm unable to implement auto focus in Iframe [closed]
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 ...
0
votes
0
answers
44
views
JRecord - Build issues while trying to install package through Maven POM
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>
<...
0
votes
0
answers
48
views
Translate escaped string from XML file
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%...
0
votes
0
answers
60
views
Mapping an entity with an embedded key
There is a class with an EmbeddedId.
@Entity
@Getter
@Setter
@Table(name = "indicator_values")
public class IndicatorValue {
@EmbeddedId
public IndicatorValueId id;
@Column(...
2
votes
0
answers
67
views
Can JavaFX WebView show webp images?
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 ...
0
votes
1
answer
37
views
Twilio Signature validation for ConversationRelay WebSocket with Java SDK
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 ...