110 questions from the last 7 days
0
votes
0
answers
12
views
Android AccessibiltyService : How can I enabling perform action on a sealed instance
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 ...
0
votes
0
answers
15
views
What happens when uploading a large file from client browser to my Spring boot server if I delay reading the multipart file from input stream?
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 ...
0
votes
0
answers
26
views
JNA CoCreateInstance returns S_OK but ShellLink/IShellLinkW fails, COM pointer is non-null but object unusable
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.
...
0
votes
0
answers
25
views
Mapstruct and multiple derived classes
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)...
0
votes
2
answers
93
views
Why does using >= increase merge sort time complexity
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 ...
0
votes
0
answers
136
views
How to implement a list with an efficient "index of" operation?
I'm interesting in possible implementation approaches for a quite special variant of a list, with the following requirements:
Efficient inverse lookup ("index of"): "give me an index ...
0
votes
0
answers
21
views
Spring Boot Dashboard in VS Code isn't displaying one of the project's modules
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, ...
-10
votes
0
answers
47
views
what is error in this code ,code get error when i submit in the leedcode [closed]
You are climbing a staircase. It takes n steps to reach the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
class Solution {
public int ...
Advice
0
votes
2
replies
44
views
why java stream api is one time use but reactor's publisher not?
why can we subscribe as may as we want from reactor publisher but just one time from java stream api?What reason is there for stream to be one time use?
Advice
0
votes
1
replies
33
views
BridgeLink 4.6.0: How to validate XML against XSD (with dependent imports) using Lookup Manager? Java access removed
I am working on BridgeLink 4.6.0, and I need to validate XML files (CCD/CCDA) using XSD schemas.
Earlier versions of BridgeLink allowed Java access inside JavaScript (e.g., Java.type, Java.extend, ...
-5
votes
0
answers
48
views
how do captcha solving services get the captcha in order to see the challenge? (in order to solve it) [closed]
How do you even load a captcha from one browser onto another/ even see the problem?
does anyone have code examples how you can sort of stream captchas from a page to a secondary page? or just even ...
-2
votes
0
answers
33
views
Flask/Jinja2 Error: Custom Template Filter Not Found [closed]
Why does my Flask app not recognize the custom filter I created?
0
votes
0
answers
41
views
How to fix "ClassNotFoundException" when running Spring Boot jar built with Maven? [closed]
I built a Spring Boot application using Maven, and the project compiles without any errors. However, when I run the packaged jar using : java -jar target/myapp-0.0.1-SNAPSHOT.jar I get the following ...
Advice
1
vote
1
replies
48
views
Custom overlay when detecting device recording
I am trying to make a custom overlay for my application that will hide the screen if any screen share or unauthorized recording of my app is running.
The problem is, that I am trying to avoid using ...
1
vote
0
answers
38
views
Reading and Writing CustomStructType with Eclipse Milo OPC-UA
I am new to OPC-UA and trying to use Eclipse Milo to read and write Objects but I am getting the following Error:
org.eclipse.milo.opcua.stack.core.UaSerializationException: no codec registered for ...
1
vote
3
answers
83
views
“String value length exceeds maximum allowed” when uploading large file in JSON
I'm building a Spring Boot application where I'm trying to upload files or large content through a REST endpoint. The request is being rejected by Spring Boot with this warning:
...
1
vote
1
answer
32
views
Self-contained java annotation-processing with gradle
I am reading into java compile-time annotation-processing.
I can easily process annotations manually on the commandline, using
javac -d . MyAnnotation.java
javac -d . MyAnnotationProcessor.java
javac -...
Advice
0
votes
3
replies
63
views
Adapting stockfish chess engine in JAVA Application
I have written a java code that replicates a chess game. For UI i have used Vaadin. I'm trying to integrate stockfish to my code.
but from the below links
link 1
link 2
it seems like i have to run a ...
2
votes
1
answer
39
views
Jooq get sequence increment
Maybe there's an easier way to get the Increment with JOOQ?
This one looks more like a crutch:
int increment =
Optional.ofNullable(CUSTOMER_ID_SEQ.getIncrementBy())
.map(Field::getName)
...
0
votes
1
answer
52
views
Problem with injecting value to the static variable
With the entered code here, I am trying to build a project on springboot. I am using AES encryption in my project. I am keeping the password(key) of AES in the application properties. The variable ...
Advice
0
votes
1
replies
152
views
How to authenticate WebSocket connection when access_token is stored in HttpOnly cookies? (Spring Cloud Gateway + STOMP)
I’m building a WebSocket-based microservice architecture using Spring Cloud Gateway and STOMP WebSockets.
Users log in through the frontend, and the backend sets:
access_token (HttpOnly, Secure, ...
-4
votes
1
answer
50
views
Tiktok fetch an access token using an authorizaiton code problems in java spring boot
I am trying to exchange my authorizatoin code for an access token. I keep getting a "request parameters are malformed" error. I can curl the endpoint just fine but for some reason I can't ...
0
votes
0
answers
32
views
How to handle non-numeric input when using scanner.nextInt() in Java [duplicate]
I’m learning Java and testing basic input handling.
I wrote the following simple program:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner ...
1
vote
1
answer
44
views
WildFly Undertow UT000173: Invalid control character [250] in cookie - persists
I'm experiencing a persistent cookie corruption issue with my Java EE web application deployed on WildFly 37.0.1.Final. The error appears immediately when accessing the application URL, even after ...
Best practices
0
votes
5
replies
47
views
Using CheckerFramework (or something else) for detecting easily-swappable-parameters on methods?
I'm having a method that accepts, for example, two long primitives. How can I add checks to prevent the accidental swapping of parameters?
Something like this should be detected.
public void ...