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
1 vote
2 answers
9k views

JaxWsDynamicClientfactory + java.lang.RuntimeException: Cannot create a secure XMLInputFactory

My CXF JaxWs Endpoint is hosted on a weblogic through a war. I'm trying to access an operation from a Stand-alone JaxWsDynamicClient. The Client is getting created but the following exception is ...
0 votes
1 answer
10 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 ...
0 votes
0 answers
9 views

cannot access class com.sun.tools.javac.api.JavacTrees (in module jdk.compiler)

I have customized an annotation handler using java21. The pom file of the project where the annotation processor is located is shown below: <project xmlns="http://maven.apache.org/POM/4.0.0&...
0 votes
2 answers
55 views

How to use viewHolder pattern to keep UI elements on scroll in listView?

I am looking into using the viewHolder pattern for making my UI elements not get reset to the default when my listview is scrolled. After looking into it I'm not sure how to go about this. I'm not ...
0 votes
0 answers
10 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<...
-1 votes
0 answers
10 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 ':...
0 votes
0 answers
16 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 ...
0 votes
0 answers
5 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....
-11 votes
0 answers
45 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: # ...
0 votes
0 answers
34 views

Accessing native DLL during runtime at specific location in Jar

I'm working on a Java project using nar-maven-plugin to build a native library in another module, and then I'm using maven to copy that NAR file over to the module I'd like to use it in via JNA. I've ...
0 votes
0 answers
22 views

How to test DKIM signature of simple email that yahoo is failing

Yahoo DKIM Failure I have a java DKIM signature creator for emails. The correct records are in dns. Example emails from yahoo emails have proven the hash algo to be correct. The java signature code ...
0 votes
0 answers
8 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 ...
-1 votes
0 answers
5 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(...
0 votes
0 answers
8 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 ...
0 votes
0 answers
5 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 ...

15 30 50 per page
1
2 3 4 5
128004