Skip to main content
0 votes
0 answers
7 views

Access non-static methods from Jasper reports

I was recently tasked to clean an old repo which includes the following Jasper report: <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://...
thmasker's user avatar
  • 660
0 votes
0 answers
15 views

Howto add SSL support for simple Android web server written in Java

I have written a minimalistic http web server in Java. The app works fine for example on my Android phone. When my phone is connected to my local network I can just start the app and use a browser ...
PrfctByDsgn's user avatar
  • 1,060
2 votes
1 answer
29 views

Missing constructor when using SELECT NEW DTO with query Java Persist Query Language

I am using Spring Data JPA with Hibernate 6. I want to fetch a list of cars into a DTO using JPQL SELECT NEW syntax, with LEFT JOIN, GROUP BY, and CASE conditions. I keep getting the following error: ...
Duy Phạm's user avatar
0 votes
0 answers
24 views

RecyclerView Item move animation and strange behavior of on item click

I created a simple RecyclerView in Java and implemented item click handling in the adapter's onBindViewHolder method with this action that the clicked item moves to position 0. @Override public void ...
C.F.G's user avatar
  • 1,523
0 votes
0 answers
36 views

Cannot Find Symbol Error After Renaming Methods

I renamed different things throughout a Java Maven project by appending text in front of "Remarks" text. I did this by searching for remarks and appending the text. I attempted to use ...
Njhasty's user avatar
  • 45
0 votes
1 answer
48 views

JsonTypeInfo for one specific subclass

Code package org.example; public class Container { private Base base; public void setBase(Base newBase) { base = newBase; } public String getName() { return base....
user377486's user avatar
0 votes
1 answer
53 views

CompletableFutures, join() and get() vs thread interruption

In my code (Java 17) I am used to handle exceptions from combined CompletableFutures with get() like this: try { CompletableFuture.allOf(someFuture, someOtherFuture).get(); } catch (...
thevasssa's user avatar
0 votes
0 answers
30 views

What is the best way to return a gRPC response in a Spring Boot REST API (serialization error with protobuf)?

I’m using Spring Boot with gRPC for internal service communication. One of my services exposes a REST endpoint that internally calls another service via gRPC, for example: @GetMapping("/check/{...
Abdeladim Benjabour's user avatar
-1 votes
1 answer
51 views

Source files for Liberica's JavaFX

I want to see JavaFX types' javadocs in IntelliJ IDEA. To do that, I need to download the sources and specify the zip in the sourcepath (Project Structure - SDKs - Sourcepath). I did it. However, once ...
Sergey Zolotarev's user avatar
1 vote
1 answer
22 views

jasper report pdf some line first character is a comma in a paragraphs

When I use Jasper Report to render PDFs in Java, I find that in some paragraphs, the beginning of a line starts with a comma or a parenthesis. I don't want such characters to appear at the beginning ...
hongxu zhu's user avatar
1 vote
0 answers
21 views

JBeret extension to deliver metrics

We want to monitor metrics on our Jakarta Batch jobs processed through JBeret. That means we want to count all invocations of reader/processor/writer, all listeners, all loops executed in Batchlets ...
queeg's user avatar
  • 9,905
1 vote
0 answers
25 views

Axon Framework with postgresql: Using Bytea instead of OID not working

I'm using axon framework 4.12.1 with postgresql (17), flyway and spring boot (3.5.6). Following the recommendations I changed the sql migration files to use bytea instead of oid and configured the ...
MatterOfFact's user avatar
  • 1,615
2 votes
1 answer
63 views

Why the method allOf() in CompletableFuture.java is implemented by using something like balanced tree?

I find that the method allOf() in CompletableFuture.java is implemented by using something like balanced tree. I'm curious why it's implemented like that? Can it be implemented by using something else,...
Chris Hou's user avatar
2 votes
1 answer
64 views

Java requesting focus when window is closed from the taskbar

I am trying to detect when a window is closed by the user, and if necessary, prompt them to save their work. I am currently adding a window listener and implementing windowClosing(). If there is ...
Claire's user avatar
  • 21
0 votes
0 answers
34 views

Protobuf FieldMask doesn't accept * syntax for repeated field masking

I have a protobuf message with a repeated field: message TestRepeatedMask { repeated Inner inner_message = 1; message Inner { optional string first = 1; optional string second = 2; } } ...
Ran Lottem's user avatar

15 30 50 per page
1
2 3 4 5
127912