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

Java bot integration with SO api [closed]

Я разрабатываю Spring Boot приложение на Java 17 и запускаю его через IntelliJ IDEA. Иногда при старте появляется ошибка: \> java.net.BindException: Address already in use: bind Хотя проверка через ...
Gregor Zamza's user avatar
0 votes
0 answers
27 views

GridView is adding my images in center and leaving gaps at the top and bottom of gridview

I have a gridview and when i add an image to the grid view using a baseadapter, the images are being centered with huge gaps at the top and bottom of gridview. I have added an image below of the ui. ...
redoc01's user avatar
  • 2,543
0 votes
0 answers
20 views

Can Envers audit an @Embeddable that contains a @OneToMany relationship?

I'm using Hibernate Envers and would like to audit changes to a structure like the following: @Entity @Audited public class Order { @Id private Long id; @Embedded private OrderSteps ...
Самир Шахмурадлы's user avatar
0 votes
0 answers
20 views

How to disable certain options in a MultiChoiceItems MaterialAlertDialog

Im having trouble disabling certain options in a MaterialAlertDialog when using MultiChoiceItems. The problem that I am having is that I can get them to appear to be disabled, yet they still work ...
Tennis Heal's user avatar
0 votes
0 answers
23 views

Hibernate Envers does not persist foreign key in audit table

I'm using Hibernate Envers to audit a @OneToMany relationship between two entities: ParentEntity and ChildEntity. I am not using @ManyToOne on the ChildEntity side. Instead, I store the foreign key ...
Самир Шахмурадлы's user avatar
0 votes
0 answers
26 views

Jose4j - Getting array out of bound exception

I am using the jose JOSE4j » 0.9.6 library and I am passing a jwt token to jwtConsumer.processToClaims( tokenString) method to the following class org.jose4j.jwt.consumer.JwtConsumer Post which ...
Akshat Rana's user avatar
-5 votes
0 answers
25 views

What causes MultipleBagFetchException in Hibernate? [closed]

I’m working with Spring Boot, Spring Data JPA, and Hibernate. When I try to fetch multiple @OneToMany collections at the same time Hibernate throws a MultipleBagFetchException. What is the root cause ...
Ayoub's user avatar
  • 1
2 votes
0 answers
21 views

@ParameterizedTest with @DatabaseSetup and @ExpectedDatabase

I have the following integration test which is setting up the database with @DatabaseSetup and checking that after doStuffThatAffectsTheDb() executes, the db has been modified as expected with @...
elcye's user avatar
  • 413
0 votes
1 answer
58 views

How do I create a file through JNA

In the java 25 move, we're removing some code that uses reflection in a soon-to-be-disallowed way. Instead, we're looking at using JNA. I need to access a file descriptor (the unix kind) and I thought ...
Erik's user avatar
  • 2,051
Advice
0 votes
1 replies
40 views

Json Jolt Transform

I want to parse some data from JSON using Jolt Spec. I have JSON data: [ { "ID": "828", "CASE_ID": "33487784", "PIN": "43001005357&...
GuRAm's user avatar
  • 777
-2 votes
0 answers
48 views

Link relational database to a mobile app without a third-party [closed]

I am building an Android mobile app using JavaScript and the app includes a sign up, log in page. All the information needs to be stored in a relational database. How can I do that? Since my project ...
Nessa's user avatar
  • 17
1 vote
0 answers
14 views

Google Chat API 403 Forbidden with Spring Boot on user-specific spaces

I'm using Spring Boot and a Service Account to send Google Chat notifications. In my application, each user provides their own target spaceId in their profile. The app retrieves this ID and sends a ...
Dharmik Vaghela's user avatar
0 votes
0 answers
74 views

Hide inner classes as separate files in Project View in IntelliJ IDEA

I'm facing an issue with IntelliJ IDEA where it displays classes contained within a Java file as separate nodes in the Project View, rather than showing just the single .java file. Problem: In my ...
notabicek's user avatar
-5 votes
0 answers
35 views

Unable to create Connection with Oracle Cloud Database [closed]

Nov 04, 2025 11:27:51 AM org.apache.tomcat.jdbc.pool.ConnectionPool init SEVERE: Unable to create initial connections of pool. java.sql.SQLException: oracle.jdbc.driver.OracleDriver at org.apache....
Rahul Ghadage's user avatar
2 votes
1 answer
42 views

PDFBox 3.0.x external and late signing causes "Signature is invalid"

I am going to implement the external and late signing with PDFBox 3.0.x but the output signed PDF causes "Signature is invalid", please help to fix me out the problem. Thanks a lot. The ...
EricMacau's user avatar
  • 171
1 vote
2 answers
70 views

Spring boot API, receive generic field

I have a spring boot API . The call is as below: @PostMapping("/call-back") public BaseResponse<String> callBack(@RequestBody CallBackDTO callbackRequest) { } the CallBackDTO ...
Rahul SK's user avatar
  • 460
-2 votes
0 answers
74 views

System.setErr() works for redirecting output to one file name, but stops working when I change the name [closed]

I am writing a simple program as part of learning about files and streams in my Java course at school. We are to open a stream, create a file, and redirect the standard output to that stream so that ...
Esme B's user avatar
  • 1
-4 votes
0 answers
50 views

JUnit 5 Tests not generating [closed]

I work at a college where we are teaching Java. Typically we have students use our lab machines where everything is set up for them but sometimes students like using their own computers. I have two ...
Lucas Draper's user avatar
0 votes
1 answer
32 views

How to audit @ElementCollection of Value Objects without ID?

I am trying to audit a @ElementCollection of value objects (@Embeddable) using Hibernate Envers (Hibernate 6.x, ValidityAuditStrategy). Because it's DDD, the value object must not have its own @Id. ...
-1 votes
0 answers
102 views

Java Multithread EventHandling

I'm trying to write an audio player in Java/JavaFX and want to make a playlist play songs automatically. I have a button that triggers a new thread, and everything works fine so far.. but when the ...
Momo Tamura's user avatar
0 votes
0 answers
41 views

How do i create a staggered list with TextViews

I'm trying to create a Masonry View using TextViews but in the image the TextViews are stacking on top of each other: This is my code: Recycler View: package com.balu.datez; import ...
redoc01's user avatar
  • 2,543
0 votes
1 answer
77 views

How to dynamic query in java spring boot

I'm new to MCP and I want to develop a MCP server to access my database. I wrote a tool like this (using JPA specification) @Tool(description = "Find Page of employees with filtering options"...
user31797545's user avatar
-3 votes
0 answers
76 views

How to keep the time low when submitting question on coding Platforms Like Leetcode? [closed]

So I was working on the Longest Palindromic Substring problem, and I thought — let's keep the same O(n^3) logic, but just change the way it’s implemented, not the core idea. I heard from someone that ...
Om kumar's user avatar
0 votes
0 answers
40 views

Opentelemetry with opentracing sending traces to jaeger

There are many services that are migrating one by one to Java 21 and Spring Boot 3.5. This means not all services will be migrated to newer versions at the same time. Opentracing has been abandoned ...
Jarvis's user avatar
  • 414
0 votes
1 answer
56 views

Strange evaluation order of Spring Statemachine

This is my psvm: sendEvent(sm, "not, tomorrah!"); sendEvent(sm, "not, tomorrah!"); sendEvent(sm, "not, tomorrah!"); sendEvent(sm, "tomorrow"); private static ...
Denys Patsera's user avatar
Tooling
0 votes
3 replies
61 views

How do I get Java project code helper settings in VSCode?

I am a user of Eclipse and considering switching over to use VSCode for Java projects. One of the feature we have in Eclipse is code helper. When we type code, we can suggestions, be it methods or ...
Sannu's user avatar
  • 1,276
0 votes
0 answers
35 views

Word Online Fails to Render Diagrams/SmartArt via WOPI: ResReader.ashx 404 Errors

We have integrated Word Online functionality into our web application using the WOPI protocol to allow users to edit, review and approve Word documents. While standard text documents load and co-...
Saturn CAU's user avatar
3 votes
0 answers
41 views

How to get type hierarchy for Java in VSCode extension? prepareTypeHierarchy returns empty

I'm trying to retrieve the type hierarchy for a Java class in my extension, but vscode.prepareTypeHierarchy returns an empty array. However, I can get the correct result using the following command: ...
赵万贺's user avatar
0 votes
0 answers
65 views

VSCode not recognizing JUnit and Javafx [closed]

VSCode on my computer has the java test runner extension downloaded and enabled, but vscode can't resolve the library org.junit, can't find any tests in my junittest file, and the "enable Java ...
EskimoJones's user avatar
2 votes
0 answers
80 views

What does it mean when Eclipse displays a "Login required" dialog window on launch?

May be related to my other question. Eclipse IDE for Java Developers 2025-09 on Windows 10. When launching the IDE, i.e. running file eclipse.exe (in the Eclipse installation folder), one of the ...
Abra's user avatar
  • 21k
Advice
0 votes
7 replies
133 views

Priority of Java's conditional ? : operator

The conditional ? : operator in Java is right-associative. So the expression a<b ? c<d ? 1 : 2 : 3 ; is evaluated as a<b ? (c<d ? 1 : 2) : 3 ; Does this mean that the expression (c<d ?...
Sebastian Mueller's user avatar
2 votes
1 answer
75 views

Quarkus profile-aware config property picked up by different profile

Using Quarkus 3.29.0 my Maven build seems to hardcode a profile-specific property which is picked up by a different profile when not explicitly overridden. The build produces a fast-jar that runs in ...
Mambo's user avatar
  • 103
-5 votes
0 answers
55 views

how to merge an openapi schema object with its parents [closed]

I would need to merge the openapi schema definition of a schema object with its parents. How may I do it ?
user1767316's user avatar
  • 3,695
-4 votes
0 answers
37 views

using maven, how to convert each java file containing spring mvc endpoints into an openapi definition? [closed]

[springdoc-openapi-maven-plugin]https://springdoc.org/#maven-plugin, seems made to generate a single openapi definition for the whole aplication. How to convert each java file containing spring mvc ...
user1767316's user avatar
  • 3,695
-4 votes
0 answers
143 views

Delete a file from one PC to another on the LAN

I use Java 17 on Debian 12.12 and I need to delete a file that resides on another PC in LAN, also with Debian 12.12. This is my test program: package filedelete; import com.hierynomus.smbj.SMBClient; ...
ZioCrick's user avatar
-1 votes
0 answers
70 views

Uploaded a project to my main PC and it won't run (Class not found: javax.swing.JPanel) [closed]

I've been working on a school project mainly on my laptop in IntelliJ Idea, mainly using SwingUi and some SQL queries. I wanted to move the project to my main PC so I could work on it more easily, but ...
cavemanman's user avatar
0 votes
1 answer
71 views

Android autorestart service after app Cleaner

I have an app (graphics + service), and they work perfectly. When the app starts, the service and graphics start. After a phone reboot, the service starts again. However, there's one problem: if I run ...
Jessy James stands with Russia's user avatar
0 votes
0 answers
71 views

FXGL getAssetLoader().loadFont() fails to load TTF font from /assets/ui/fonts/ directory

I'm trying to load a custom TTF font in an FXGL 21.1 game application, but getAssetLoader().loadFont() consistently fails to find the font file, even though it exists in the correct directory ...
MatthewSamaha's user avatar
2 votes
1 answer
104 views

Save and get large objects (BLOB) to postgresql using hibernate and Spring Data JPA

experts! I encountered the following problem: when trying to read a large file from a PostgreSQL database in a Spring Boot application using the Spring Data JPA framework, all the data is loaded into ...
gearbase's user avatar
  • 111
0 votes
0 answers
40 views

Espresso.onIdle() return error java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

After updating Kotlin to 2.2.0, my autotest started failing on the start screen with the following error in Espresso class on compose view: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 ...
Red Cape's user avatar
-4 votes
0 answers
72 views

Why does my CompletableFuture chain behave differently when using thenApply() vs thenCompose() with asynchronous operations? [closed]

Why does my CompletableFuture chain behave differently when using thenApply() vs thenCompose() with asynchronous operations? With thenApply(), the output shows nested futures and the call doesn’t ...
Rahul Ghadage's user avatar
2 votes
2 answers
116 views

JPA recursive hierarchy read - StackOverflowError with FetchType.EAGER but LazyInitializationException with FetchType.LAZY

I'm working with these entities: UserEntity: @Entity @Table (name = "users", uniqueConstraints = @UniqueConstraint(columnNames={"name"})) public class UserEntity { @Id @...
Rikelo's user avatar
  • 23
0 votes
0 answers
43 views

How to rotate AlertDialog correctly?

I'm using this code: @Override protected void onResume() { super.onResume(); AlertDialog d = new AlertDialog.Builder(this) .setTitle("This is the Dialog Title") ...
A.G.'s user avatar
  • 2,217
1 vote
1 answer
54 views

PKCS11 error at KeyStore.getEntry(alias, null) at Java 22 statement

I'm developing SOAP envelope signing code in a Java environment. My code running properly when I use the RSA_SHA256 signature algorithm with proper smart card based pkcs11. I have another smart card ...
Cemil Bozlagan's user avatar
0 votes
0 answers
43 views

Quartz throwing ClassNotFoundException during canary deploys

I am using Quartz jdbcjobstore to manage a set of distributed jobs within a java application. I am having a problem when I deploy code that contains a new org.quartz.Job implementation. When I am ...
Andrew Rueckert's user avatar
3 votes
3 answers
146 views

How to model JPA relationships when users live in Keycloak? [closed]

I couldn't find a definitive best practice for this, so I’m hoping the discussion helps others as well. In a traditional setup (without Keycloak), we keep an application-level User entity with JPA ...
Karl Bauer's user avatar
-2 votes
1 answer
61 views

How to programmatically grant users permissions for actions with queues in Artemis? [closed]

I need to programmatically create users in Artemis and grant them access to some queues. I am currently using JMX for creating users. It works fine, but I cannot determine how to grant a specific user ...
romisup's user avatar
  • 49
0 votes
2 answers
93 views

Out of Memory when deleting comment-classes with childstructure

I use Hibernate for a project. It's a ticket system. For that I created comments with childcomments. But every time I want to delete a comment, hibernate escalates and tries to load just EVERYTHING. ...
LostQuotient117's user avatar
0 votes
1 answer
74 views

How to keep javax.annotation.* classes when adding com.microsoft.graph:microsoft-graph dependency to the project?

I have a legacy multimodule maven project with many dependencies, written in Java 11. I would like to use microsoft graph sdk. After I have added microsoft-graph dependency, some of the old classes ...
fascynacja's user avatar
  • 3,174
7 votes
2 answers
510 views

Why does the Java collator for the Hungarian locale mix E and É?

I want to order a huge list of countries, and I have noticed that, for example, E and É are treated as equals. But in the Hungarian grammar, E comes before É, so a rule should be added, 'E < É'. ...
B.G.'s user avatar
  • 375

1
2 3 4 5
38370