Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [java]

Java is a high-level object-oriented programming language. Use this tag when you're having problems using or understanding the language itself. This tag is frequently used alongside other tags for libraries and/or frameworks used by Java developers.

java
0 votes
0 answers
11 views

Android - BillingLogger: Skipped logging since initialization failed

Testing out in app purchases with the following: purchasesUpdatedListener = new PurchasesUpdatedListener() { @Override public void onPurchasesUpdated(BillingResult billingResult, List<...
Carlos Cmd's user avatar
0 votes
0 answers
30 views

Why is a clean Maven project in Netbeans not running

I am setting up a local instance to run a Java webapp. It's been a while since I've done this but I've done it in the past. So far what I've done is installed JDK 22.0.2 and Netbeans 22 on my local ...
Christian Harris's user avatar
0 votes
0 answers
9 views

Hide page count from the go to section of the pdf toolbar when pdf is opened in browser

From java side I am converting tiff images to PDF like below. Rectangle pagesize = new Rectangle(maxWidth, maxHeight); Document document = new Document(pagesize); PdfWriter.getInstance(document, ...
Raju Kumar Shah's user avatar
-1 votes
0 answers
13 views

Springboot quickstart project always gives same error no matter what I do; Could not determine the dependencies of task ':bootRun' [duplicate]

error in question: FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':bootRun'. > Could not resolve all dependencies for configuration ':...
AbdulMoyeed Mohammed's user avatar
0 votes
0 answers
13 views

OkHttp Response doesn't have provided body object on the client side

I am writing REST APIs using okhttp library in Spring Boot. I have my OkHttpClient requesting a GET request(client) from another API(server). Both the client and server uses OkHtttp libraries, so I ...
Sai Madhav's user avatar
-1 votes
0 answers
8 views

WebClient static mock is not working the second time is called in a test

I have the next static mock: try (MockedStatic<WebClient> webClientStatic = Mockito.mockStatic(WebClient.class)) { webClientStatic.when(WebClient::builder).thenReturn(...
rasilvap's user avatar
  • 1,989
-1 votes
1 answer
17 views

Upload an Excel sheet with huge number of records to a MySql database in the form of a JSON

I have a requirement in Spring Boot project, where I have a huge Excel file with 15-20 sheets, each sheet containing 30,000 rows with an average of 15 columns in each sheet. My Database is roughly as ...
Mohammed Tauseef's user avatar
0 votes
0 answers
6 views

Flink GlobalWindow Trigger only process the trigger event

I have datastream keyby by an event property, that is then passed to a globalwindow, trigged when a specific event comes in, the issue is that when the window is trigged to process the events, it only ...
car_dev's user avatar
-1 votes
1 answer
26 views

Spring RestTemplate - How to remove `client_secret` from the logs?

My backend application currently leaks client_secret inside my log file. I would like to keep the log level of DEBUG except for the RestTemplate where I don't want this line to be executed. The log ...
Aleksa Majkic's user avatar
-2 votes
0 answers
19 views

Using a Bean method result in a static context [closed]

I've got a class: public class SomeBean { public String getSomeValue() { return "result"; } } I am using this class as a bean: @Configuration public class ...
Gandalf's user avatar
  • 163
-12 votes
0 answers
61 views

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff8ed191184, pid=51412, tid=0x0000000000009a34 [closed]

I am writing protection for the maincraft cheat in the form of a native and when I added lazy importer I started having such errors # A fatal error has been detected by the Java Runtime Environment: # ...
Максим Шуриков's user avatar
-1 votes
0 answers
18 views

How to Automate Adding Global Libraries in IntelliJ Idea

I'm working on client's Java 8 application in IntelliJ IDEA that requires adding / re-adding two JAR files as Global Libraries to every component in the project after every code change. (Yes, this is ...
PoorInRichfield's user avatar
-1 votes
0 answers
14 views

How to display image from USB camera on old android?

Short question: I'm making an app for android 4.2.2, to display image from USB camera on tablet. The picture is not displayed. Can you please explain why? Thanks! (below is a link to the source code) ...
ghtx280's user avatar
  • 49
-1 votes
0 answers
11 views

Can't download files content-disposition inline with a POST request from my app after activating CORS on a spring boot 3 application on Chrome/Edge

I'm currently working on a java spring boot (3.2) application with Spring MVC and secured with Spring security. I wanted to add a CORS configuration on my app but this add a bug on downloading files ...
milcaepsilon's user avatar
-1 votes
0 answers
25 views

Memory issues after upgrade to Spring boot 3, Java 17 [closed]

We recently upgraded our application from Spring boot 2.2, Java 11 to Spring boot 3.2 Java 17. After the upgrade we observed that the memory progressively increases and then goes down to zero and it ...
balaji G's user avatar

15 30 50 per page
1
2
3 4 5
12