Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

How to Download a JSP Page as a DOC File in Spring MVC?

I want to provide an option to download this generated JSP page as a .doc file. How can I achieve this in Spring MVC? <%@ page import="java.text.SimpleDateFormat, java.util.Date" %> ...
Lipika Sahoo's user avatar
0 votes
0 answers
4 views

Why isn't my website working? I load the servlet, and it loads incorrectly in Eclipse

Basically, I have a simple servlet. Let me explain. I have Eclipse 2025-03. I have Tomcat 11. The project is a web project, but it's updated with Maven. I run the servlet and it opens this website: ...
Tefa's user avatar
  • 1
0 votes
0 answers
6 views

How to create custom button class in android that wouldn not change visual?

Before that, I used the standard android buttons, but I needed to make a custom button and I wrote such a class. public class MyButton extends androidx.appcompat.widget.AppCompatButton { private ...
TEILabs's user avatar
0 votes
0 answers
9 views

Apache Activemq classic scheduled send seems to be bugged with Spring Boot JMS

Unless I'm misreading the apache activeMQ docs, it appears that the use of AMQ_SCHEDULED_DELAY, AMQ_SCHEDULED_PERIOD, and AMQ_SCHEDULED_REPEAT is bugged when they are used together when sending ...
fantasyTeapot's user avatar
0 votes
0 answers
7 views

Why swagger @Encode annotation isn't applied to multiple parameters at Controller level?

I have a problem with OpenAPI curl generation. I have to create POST method with three parameters: application/json, text/plain and multipart/form-data medium types. So curl that is going to be ...
tidik's user avatar
  • 1
0 votes
0 answers
6 views

Error: "Mapped superclass 'BaseClass' may not specify a @Table" when using only orm.xml mapping (no annotations in Java class) - Hibernate 5.x to 6.6

I am currently upgrading my project from Spring Boot 2.x to 3.x, and as part of this, I am also upgrading from Hibernate 5.x to 6.6. The issue I’m facing occurs with a mapped-superclass that’s only ...
JavaEnthusiast's user avatar
0 votes
0 answers
10 views

Tracing per endpoint using springboot and micrometer

What I would like to achieve, details about my goal: I would like to have tracing per business endpoint for a springboot web app using micrometer. Background I have a rest api which exposes two ...
PatPanda's user avatar
  • 5,110
0 votes
0 answers
4 views

Java : Redis Lettuce Mode : OR Conjunction Condition is not wrapping self and chained condition within parenthesis

Sample condition import com.redis.lettucemod.search.SearchOptions; import com.redis.lettucemod.search.SearchResults; import com.redis.lettucemod.search.Limit; import com.redis.lettucemod.search....
JBourne's user avatar
  • 344
0 votes
0 answers
7 views

Spring Jersey API: 400 Bad Request when Importing Document to Outline API

I am working on a Spring Jersey application where I need to import a document into Outline using their API. However, when I send the POST request to /documents.import, I receive a 400 Bad Request ...
Nobil Gautam's user avatar
0 votes
1 answer
24 views

How to ensure an iterator with a read lock will unlock even if it doesn't finish?

I have a collection. Many threads should be able to read from it at a time, but only one thread should be able to write to it at a time, and only when it's not being read. Java's ...
Stephen Ware's user avatar
0 votes
1 answer
28 views

How do I host a java file using Apache Tomcat in xampp?

I downloaded xampp and java. I compiled a java program, added it to the directory(C:\xampp\tomcat\webapps\ROOT\WEB-INF/StinkyApp.class), and opened localhost:8080 in my browser. But I got an error ...
user30097622's user avatar
1 vote
1 answer
22 views

How to sort a column by data from another column in JTable

I need to sort the column with "File creation date", but if the column "File type" == FyleType.DIRECTORY this row should be at the top. That is, first sorting should be by type, ...
Starkvell's user avatar
7 votes
2 answers
90 views

Increased memory consumption due to String Constant Pool behavior after upgrading from Java 17 to Java 21

While upgrading our project from Java 17 to Java 21, we noticed an increase in memory consumption. After dumping the heap and analyzing the differences, I found that there are thousands of empty ...
Voyinno's user avatar
  • 93
0 votes
0 answers
21 views

While Executing Script To Execute a Query getting can't read "1207": no such variable

#!/bin/bash # Set paths and variables JAVAPATH=/usr/java/latest/bin/java PRESTO_JAR_PATH=/data2/pqr/presto/trino PRESTO_SERVER=https://a.b.c.d:9443 USER=pqrxyz PASSWORD="pwdenb\$1207" # ...
Azmat Hayat's user avatar
0 votes
0 answers
17 views

Error initializing database using Quarkus

Here's the error stack trace: Caused by: java.lang.IllegalStateException: No current Vertx context found at io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations.vertxContext(...
lsd's user avatar
  • 1
0 votes
0 answers
18 views

Gradle composite build with convention plugins and platform

Is it possible to use Gradle Platform also for convention plugins? I have a project using gradle with the following structure Projects: ------------------------------------------------------------ ...
entikore's user avatar
-1 votes
0 answers
18 views

The problem is that when new messages occur, the scrolling does not work properly/the size of text area do not update properly, i don't understand it

import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; ...
GaMeR's GAMES's user avatar
0 votes
0 answers
26 views

A Star Algorithm not finding single complete path

I have an implementation of Astar but it seems to plot an odd path to the target. It appears to evaluate node correctly, but I'm not sure if it is working right because the path list at the end ...
Brett Ezra's user avatar
-1 votes
0 answers
16 views

Status 200 with error in Whatsapp API, what to do? [closed]

I'm trying to use the WhatsApp Meta API through a code written in Java, with the simple purpose of sending messages to certain numbers, as a test. However, the code returns status 200, but the message ...
Bruno Butzke Bruno's user avatar
1 vote
1 answer
33 views

Why doesn't INET_NTOA work in ColumnTransformer?

I have a MySQL table that stores information about label printers: ip port nickname 181012304 9100 PRLMA213 181012370 9100 PRLMA212 181012398 9100 PRLMA211 181012559 9100 PRLMA210 There is a ...
Cardinal System's user avatar
-1 votes
0 answers
28 views

How to send a post request Multipart/form-data (restTemplate) in Java returns insufficient data written

I'm trying to add an attachment (PDF) to a card to Leankit. The request worked before an update from the server. After searching I saw (when using Postman) there's: ----WebKitFormBoundary in the ...
Laurence29's user avatar
0 votes
0 answers
19 views

NoResourceFoundException in Spring Boot Oauth flow after spring boot 3 upgrade

I've recently upgraded spring boot from 2.x.x version to 3.3.3 and spring security v.6.4.3 and faced an issue when calling my /api/v1/authentication/login endpoint. When the user is authenticated with ...
KonradK's user avatar
  • 53
0 votes
0 answers
15 views

How can i get the Yaw Pitch and Roll values from the Camera Pose of the ARCore?

I have this Java code using the ARCore Pose : private void updateCameraPose(Pose pose) { /float[] quaternion = new float[4]; /pose.getRotationQuaternion(quaternion, 0); ...
Tom3652's user avatar
  • 2,977
0 votes
0 answers
16 views

How to Manually Set Up a Spring MVC Project in IntelliJ or Eclipse Without GitHub Access?

I want to set up a Web Application project in IntelliJ IDEA using the following: Spring Web MVC framework JavaServer Pages Standard Tag Library (JSTL) MySQL Connector Java (JDBC) Apache Tomcat ...
Xuan Lam's user avatar
0 votes
0 answers
26 views

Java Sping in container can't connect to external oracle database

I have a java spring boot inside docker a container which has to connect to an external Oracle database, i have set the db properties in the application.yml file. The connection shouldn't require TLS/...
CCC's user avatar
  • 200
0 votes
0 answers
11 views

Tomcat10 Apache Commons Daemon - CreateJavaVM Failed

I'm trying to update a legacy application to Tomcat10/Java21 and ran into a block while debugging the windows service. This service is installed using tomcat itself: tomcat10.exe /IS/myservice --...
Horst's user avatar
  • 373
1 vote
1 answer
62 views

Jackson XML & JSON serialization of enum with value

I am using Jackson Marshaller for generating both XML and JSON from an object, but the JSON serialization of enum values always happens in capital letters. I expected {"handDrive": right} ...
sensen ol's user avatar
0 votes
0 answers
27 views

Performance difference with springboot run and normal running the java class application.java

i am seeing significant performance difference when running my camunda spring boot project via just running application.java vs running through mvn:spring-boot:run when running through application....
aryanknp's user avatar
  • 1,167
0 votes
1 answer
15 views

Lettuce: AWS Elasticache: JSON MGET behaviour

We are using Lettuce java client to connect to AWS Elasticache (Valkey engine, Serverless, version 8.0) from Java springboot application (JDK 17 & springboot version 3.2.5) Below is the method ...
alex's user avatar
  • 177
0 votes
0 answers
24 views

Error while migrating to Spring Boot 3.1.8 - UnsatisfiedDependencyException

We are encountering the following error while migrating our project to Spring Boot 3.1.8: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name '...
Vipin Nemade's user avatar
-2 votes
1 answer
93 views

A way to use variable without reassigning inside if block

int min = nums[i + 1]; /<-- initial declaration for (int j = i+2; j <nums.length ; j++) { if (nums[j] < min) { min = nums[j]; /<--reassigning } ...
Lyrk's user avatar
  • 2,042
0 votes
0 answers
39 views

Potential race condition in Java 17's AbstractQueuedSynchronizer.cleanQueue() method [closed]

I've been analyzing the cleanQueue() method in Java 17's AbstractQueuedSynchronizer class and identified what appears to be a potential race condition that could break the queue structure under ...
math-chen's user avatar
-1 votes
1 answer
50 views

How can I end a Java process regularly [closed]

On Ubuntu I start a Java Application called Sterling Pdf with a .desktop file. Exec=sh -c "java -jar /home/claus/sterlingpdf/Stirling-PDF-with-login.jar & while ! nc -z localhost 8080; do ...
Claus Neumayer's user avatar
0 votes
0 answers
22 views

How to customize the "413 Payload Too Large" response in Quarkus with multipart/form-data requests?

How to customize the "413 Payload Too Large" response in Quarkus with multipart/form-data requests? I'm working with a Java 21 Quarkus (3.18.1) API that uses the quarkus.http.limits.max-form-...
Mad's user avatar
  • 41
-1 votes
0 answers
31 views

spring boot 2.7.1 send request by restTemplate take a lot of time

I have a system consisting of several rest api projects. Each rest api project is responsible for a specific topic in the project. To my surprise, I discovered that accessing via rest api takes an ...
user3274100's user avatar
0 votes
0 answers
48 views

Create runnable jar with without repackaging dependencies

How to create a runnable jar (UberJar, FatJar) with Maven that contains alls dependencies as origin jar files can be executed by just calling 'java -jar myapp.jar' ? TL;DR: I am currently working on ...
Guardian667's user avatar
-9 votes
0 answers
62 views

I try to open the npm start file on my Windows OS computer and nothing happens [closed]

The service requires determining and fixing an issue preventing a cryptocurrency website from starting up, particularly while executing the 'npm start' command on Windows. Additionally, the website ...
Balkishan Dhaker's user avatar
0 votes
0 answers
46 views

JUnit not recognized in VS Code anymore after reopening project (no green triangle icons)

I'm trying to run JUnit tests in Visual Studio Code without using Maven or Gradle, just using plain .java files and .jar libraries. Project Setup: I'm using VS Code with the Java Extension Pack, and ...
Crescenzo De Marco's user avatar
0 votes
1 answer
40 views

Cancel running task on separate when user clicks on cancel button

I have implemented an API /transferFile that downloads a file from a server and writes it to a specific location. To ensure the file transfer runs in the separate thread, I am using ExecutorService ...
Amit K.'s user avatar
  • 31
0 votes
1 answer
59 views

Rebuild kafka Container after each change

I am trying to test Zookeeper to Kraft migration on my machine that later needs to done on dev env. I have created ZK and kafka images using podman and started them. Now one step in the migration is ...
BloodFury's user avatar
0 votes
0 answers
25 views

While creating maverick-synergy-client, getting an error "Unable to locate a cryptographic provider"

I'm using kotlin 19 and JVM 21. We recently moved to maverick-synergy-client 3.1.2 (upgraded from 3.0.11 where everything worked well). This issue occurs without any additional dependencies. Also ...
Tamir Mayblat's user avatar
0 votes
1 answer
54 views

Hibernate generate wrong SQL query

I try to use criteria of Hibernate to get data from user search input but it didn't success. I got this error: SEVERE: Invalid column name 'y1_'. This is query that Hibernate create in log: ...
Nguyễn Phú Khang's user avatar
0 votes
2 answers
33 views

Any way to stub multiple methods to return the same thing

Is there a simpler/better way to write the following? @Mock Dog dog; / Dog is a record when(dog.tail()).thenReturn(Optional.empty); when(dog.paw()).thenReturn(Optional.empty); when(dog.nose())....
S.Dan's user avatar
  • 1,926
0 votes
0 answers
23 views

Db2 to Alloy-db conversion

I want to convert hundreds of DB2 queries to AlloyDB(postgresql) queries. Can I achieve this by writing an utility in java ? Can anyone help on how to achieve this using java?
Bala Praveen's user avatar
0 votes
0 answers
14 views

How to implement conditions on choco-solver?

I'm reading this paper: https://hal.science/hal-01092574/ They use CP programing to find diferential characteristic for AES cipher. I am curious to know how we can implement this functionality using ...
Huy By's user avatar
  • 23
0 votes
1 answer
46 views

Why does my custom ClassLoader implementation cause deadlock between threads?

I have a class loader LoaderX that inherits from URLClassLoader. This class loader implements the following methods: override fun loadClass(name: String, resolve: Boolean): Class<*> { try { ...
user27909701's user avatar
-1 votes
0 answers
23 views

GLSL ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point

I am working on debugging this error ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point Though I am not seeing in my code anywhere that I am missing an entry point. ...
CelticIdan's user avatar
1 vote
1 answer
28 views

How would I get a timer to continuously move the car after pressing the start button

How would I make it so that the car repaints continuously after pressing the start button and the start button doesn't have to be clicked multiple times for the car to move. / Initialize the timer ...
Aejt's user avatar
  • 11
0 votes
0 answers
23 views

Set RTL in one Layout but not in others in the same app?

AppCompatDelegate.setApplicationLocales(LocaleListCompat.create(Locale.forLanguageTag(sLang))); is nice to set RTL layouts in apps, works fine. But I have an Android app with a TabLayout with pagers ...
Jan Bergström's user avatar
1 vote
1 answer
38 views

Proper way to handle JOINS with CrudRepository REST

I am new to developing REST using CrudRepository. I was wondering the proper way to handle JOINs? I have three classes, three repo classes and three service classes. Stress, Mood, User. StressRepo, ...
letsCode's user avatar
  • 3,074

1
2 3 4 5
38402

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant