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

I'm trying to make a Maven project that connects to an H2 database. In an IDE this works fine, but when executing the compiled project in the terminal, or when building the project into a JAR file and ...
Lucy's user avatar
  • 83
0 votes
0 answers
52 views

WSO2 EI 6.6.0 is configured and run together with ActiveMq 5.16.4. Sending and receiving JMS messages works fine but time to time following error occurs at run time. To solve it, it is necessary to ...
Antonn Karolk aertonsena's user avatar
-1 votes
0 answers
25 views

We have a popup functionality that works fine on AEM as a Cloud in Dev and Local environments, but it’s not working in Stage and Prod. Here’s the setup: We are using Sling Model Exporter and an AEM ...
Naveen.P's user avatar
0 votes
1 answer
92 views

I follow the book Cloud Native Spring in Action and I encountered this error. I used the Paketo Buildpacks to build the image using ./gradlew bootBuildImage. Full source code: https://github.com/...
Arkadi's user avatar
  • 29
Advice
2 votes
3 replies
101 views

Spring Boot 4.0 and Spring Framework 7.0 were recently released, and I’m considering upgrading my project. However, my application uses Thymeleaf, specifically the thymeleaf-spring6 integration module,...
Sven's user avatar
  • 2,603
Best practices
0 votes
2 replies
44 views

A CSV file needs to be processed using Spring Batch where multiple rows could be grouped based on a field value. In the below sample, two lines in the CSV have the same GROUP_NAME with the value ...
pradhan's user avatar
  • 43
0 votes
1 answer
64 views

A Maven dependency is loaded, expected types are present in the jar in .m2, yet IntelliJ paints the import in red. I tried deleting the dependency directory and loading it again, it didn't help. <?...
Sergey Zolotarev's user avatar
0 votes
0 answers
71 views

To be able to send SQL queries for Axon queries to a database reader instance and SQL queries for Axon commands to a database writer instance I need to run Axon query handlers within a read only ...
MatterOfFact's user avatar
  • 1,725
0 votes
0 answers
62 views

I'm migrating from field injection (@Autowired) to constructor-based injection in a Spring Boot application (Java 21), but I'm running into a BeanCreationException when Spring tries to instantiate my ...
Andrea's user avatar
  • 1
0 votes
2 answers
100 views

I am developing an Eclipse plugin (OSGi environment) and trying to use OkHttp 4.11.0 to send HTTP requests. However, I get the following runtime error: java.lang.ClassNotFoundException: okio.Buffer ...
kiruba T's user avatar
Best practices
0 votes
1 replies
37 views

Spring 5.3 Use case: I’ve got an annotation public @interface MyInject { String region(); String type(); } I want to use this annotation in a similar fashion to @Resource(“beanName”) but ...
St.Antario's user avatar
  • 27.7k
1 vote
0 answers
87 views

I have a Spring Boot 3 application with a global exception handler that works perfectly when I run it locally, but when I deploy the same code to Render, the exception handling stops working — I only ...
Nicolas Medeiros Cascaes's user avatar
1 vote
1 answer
29 views

I've been working on creating a game using libGDX for a few months now, and so far I've successfully implemented the main gameplay loop inside a stage which uses fitviewport, which functions as ...
Lolliker 1's user avatar
1 vote
1 answer
54 views

I am using Drools 10.1.0 (drools-xml-support) with Spring Boot, and I have a kmodule.xml with two KBases, each pointing to a different folder. In IntelliJ/IDE everything works perfectly. But when I ...
JavaLearner's user avatar
0 votes
1 answer
67 views

I have this OpenSearch code: import org.opensearch.client.opensearch.OpenSearchClient; import org.opensearch.client.opensearch.core.GetResponse; private OpenSearchClient client; private Optional<...
Peter Penzov's user avatar
  • 1,104
0 votes
0 answers
70 views

I've got the following swig file: %module test %ignore Stats; %typemap(jstype) Stats* "" %typemap(javain) Stats* "0" void initialize(Stats* s); I would like to suppress ...
Gojita's user avatar
  • 610
0 votes
0 answers
65 views

I am working on a Java Spring API where I need to create new relations (tables) that will be stored in a PostgreSQL database. I am creating new tables that add a new column to the existing tables with ...
Njhasty's user avatar
  • 45
-2 votes
0 answers
74 views

For my app it is crucial to display the user with the correct location of the NFC antenna as it interacts with an embedded device and data gets exchanged for a prolonged time, so stable connection is ...
user31937035's user avatar
-1 votes
0 answers
41 views

I am getting the following exception when I hit my API on my local server: java.lang.IllegalStateException: getAttribute: Session already invalidated [INFO ] 2025-11-24 17:32:55.729 [http-nio-8080-...
Nikhil Dubey's user avatar
0 votes
1 answer
30 views

I run a Spring Modulith ApplicationModuleTest in an application that has a Spring Data Rest module with CRUD logic, alongside other Spring Data JDBC modules with "real" domain logic. The ...
dschulten's user avatar
  • 3,197
Tooling
0 votes
2 replies
63 views

The ClamAVScanner class is a Spring service that provides functionality to scan files for viruses using a ClamAV server. It connects to a ClamAV server (configurable host/port, with optional SSL) and ...
Nidhi257's user avatar
  • 997
2 votes
1 answer
132 views

Spring Boot has released new version 4.0.0. They have provided migration guide. I am not able to find to where 'MockBean' annotation is moved. Currently I am importing starter-test, starter-kafka-test ...
Brundha Srinivas's user avatar
1 vote
0 answers
36 views

I have written the rule below to evaluate a very easy use case. rule "WIN_DRL" when $featureMap: Map() $reward: Reward() $rewardSummery : RewardSummery( ...
holeInWater's user avatar
Advice
0 votes
5 replies
145 views

I am new to Java and starting with Spring Boot development. I prefer using lightweight code editors like Zed, Lite-XL and Helix and want to avoid the high resource usage and complexity of full IDEs (...
Mitesh Firake's user avatar
-4 votes
0 answers
44 views

I need to be able to return audio or video from a Spring Boot Api. I cannot find any documentation for this. Could you help me find resources for this topic ?
Hüseyin Çataloğlu's user avatar
0 votes
1 answer
66 views

I have a plain java application that consumes a jsonld structured file, converts it to a Model class from rdf4j framework and then writes it as a string. The demo code is as so: public static void ...
Joe's user avatar
  • 425
0 votes
0 answers
75 views

I’m using androidx.browser.customtabs with a CustomTabsIntent to open a webpage inside my Android app. Chrome shows a minimize button (a small arrow/down icon) in the Custom Tab UI, allowing the user ...
user3561614's user avatar
  • 1,094
1 vote
1 answer
61 views

I would like to implement audio delay controls, which are usually tied to the J and K keys in VLC. Here is a sample program that starts playing a video, then 5 seconds in it adjusts the audio delay. ...
strubin's user avatar
  • 11
-1 votes
0 answers
67 views

I am using IntelliJ Idea with Gradle. Take for example: /** * Make sure to run the runData configuration before starting the client */ could runData there be substituted for something clickable/...
Maksiks's user avatar
  • 114
2 votes
0 answers
71 views

I'm creating an Eclipse batch application that applies source cleanups (equivalent of right-click menu Source -> Clean Up) from a profile file. It's an XML file listing the rules and whether they'...
Sybuser's user avatar
  • 1,604
Best practices
0 votes
3 replies
82 views

I want to implement something like this: Map<String, List<String>> m = new HashMap<>(); for (... in ...) { String key = ...; String val = ...; m.merge(key, Lists....
los's user avatar
  • 61
3 votes
1 answer
114 views

Let's run this straightforward piece of code: import java.io.*; import java.nio.file.*; import java.util.Arrays; public class Main { public static void main(String[] args) throws IOException { ...
Robert Hume's user avatar
  • 1,203
0 votes
1 answer
84 views

I have test method using mockito 5 @Test public void test_increaseUserScore_Successful() throws CannotCreateCachedUserException { when(cachedUserRepository .existsById(...
JZARGO's user avatar
  • 19
0 votes
0 answers
55 views

I’m using PackageManager.getInstallerPackageName() in my Android app to detect the installer source. It usually returns expected installer packages like com.android.vending or com.samsung.android.app....
NDK's user avatar
  • 9
-8 votes
0 answers
113 views

I need to create an arraylist, that contains an array of objects to act as the rows of a table, like this: ArrayList<Object[]> rows = new ArrayList<>(); each of these Object[] arrays will ...
Luna's user avatar
  • 1
1 vote
1 answer
69 views

In Spring Boot 2.6.0 java 8 application configuration class has content: @Configuration public class Internationalization implements WebMvcConfigurer { // localeResolver, localeChangeInterceptor,...
haoz's user avatar
  • 11
0 votes
1 answer
53 views

I started learning the development of REST API using Spring and Neo4J. I am unable to understand how Repositories work, even I looked to the documentation. I have Airport node and LINE relationship. ...
Quaky's user avatar
  • 1
-6 votes
0 answers
65 views

I am trying to implement web push notifications in my project, but none of the approaches I tried are working. I’m not sure whether the issue is on the frontend, backend, service worker, or the push ...
MANOJ V's user avatar
0 votes
1 answer
43 views

Title - MongoTimeoutException in Testcontainers Integration Test : Open Liberty app attempts to connect to Kubernetes FQDNs instead of local alias I am writing integration tests for an Open Liberty-...
VR7's user avatar
  • 112
0 votes
0 answers
41 views

I am using AccessibilityService in AndroidStudio for an app which is going to access an another app. In a view there is not available actions of "ACTION_CLICK". Its sealed and I am getting ...
ronihasan's user avatar
Advice
0 votes
5 replies
96 views

I was trying to read data (chars) from a large text file (~250MB) in 1KB chunks and was very surprised that reading that file using either FileReader or BufferedReader takes exactly the same time, ...
sebkaminski16's user avatar
0 votes
0 answers
36 views

Context: I am trying to build a Spring Boot application and have exposed a REST api endpoint to upload files(as large as 1 GB). Question: Since the data transfer for a multipart file happens in chunks ...
Aakash_Deep's user avatar
1 vote
1 answer
63 views

I'm making a Java app that scans the Windows Recent Files folder and resolves .lnk shorcuts to their actual file paths. I'm doing so using JNA the JNA API and simulating IShellLinkW and IPersistFile. ...
Syed Maroof Hussain's user avatar
0 votes
1 answer
37 views

package com.app_name.app; import com.getcapacitor.BridgeActivity; import android.os.Bundle; import android.graphics.Color; // import android.webkit.WebView; public class ...
Bear Bile Farming is Torture's user avatar
0 votes
0 answers
49 views

I am having trouble wrapping my head around subclass mappings. I have 3 classes: @Data public class Parent { long id; String name; public boolean isEmpty() { return StringUtils.isEmpty(name)...
bkqdad's user avatar
  • 27
1 vote
0 answers
40 views

I’m encountering an issue with possible idempotencyBreachException in a service used by Kafka listener. I’m not entirely sure how to handle this situation correctly. I have a lockExecutor that locks a ...
Bogysh's user avatar
  • 11
0 votes
1 answer
181 views

I recently solved the Merge Sorted Array question on leetcode Here is the part of the code I am having doubts on : while (curr >= 0 && p1 >= 0 && p2 >= 0) { // more TC if ...
Suswetha's user avatar
0 votes
0 answers
40 views

Why the SearchMessages method in TdLib returns one less message than expected. I sent Q1, Q2, Q3. FoundMessages.totalCount = 3, message[Q2, Q1]. If I send a message Q4 FoundMessages.totalCount = 4, ...
Aleksander's user avatar
0 votes
0 answers
55 views

I am upgrading an app to newest Spring Boot 3, and because of that Spring Batch is upgraded to 5.2.3 (from 4.3.10). The application did not persist batch states previously, it was using the "map ...
riskop's user avatar
  • 1,839
0 votes
0 answers
39 views

I'm setting up the environment for a project of the company I work for. It's a multi module backend runing Spring Boot. I didn't have problems with most of the setup, but one of the project's modules, ...
VFMiracle's user avatar