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.
1,919,170
questions
0
votes
0
answers
21
views
Design Pattern to use when return type and params are different between 2 similar/extendable class
I am creating a logs crawler which takes data from a log storage and then processes it.
I have such a structure:
interface ILogService{
LogResponse getLogs(LogRequest request){}
}
class ...
0
votes
0
answers
9
views
AWS - Elastic Beanstalk Java deployment
Deployment Fails on Elastic Beanstalk with Application Load Balancer
Environment:
Elastic Beanstalk: Corretto 21 on 64-bit Amazon Linux 2023
Load Balancer: Application Load Balancer (ALB)
Previous ...
0
votes
1
answer
15
views
Previous Objects in the List of Objects are getting modified on adding the last object to the list
My question to you is why the previous objects get updated when last element is added in the list.
I am creating the objects inside the loop, setting their properties, adding them to their list.
But ...
0
votes
0
answers
12
views
material3 TextInputLayout actual text overlaps with prefix when it's inside recycler view
I'm using TextInputLayout and TextInputEditText as item layout inside a recycler view. the recycler view has 9 items, the first 4 items that are shown have no problem, the problem is within items 5,6,...
0
votes
0
answers
4
views
Wait for broadcast to complete before starting process in Flink
I have a BroadcastProcessFunction in flink with the process method implemented more or less as such:
@Override
public void processElement(String raw, ReadOnlyContext ctx, Collector<F> ...
0
votes
0
answers
8
views
android 14 execution of binary files raise error=2, No such file or directory
I have several binary files in /data/data/[package_name]/bin/ which are busybox, sshpass ...
Now when i execute the binary files on android <14, the files executed successfully, but when i executes ...
0
votes
2
answers
21
views
getting error - Cannot invoke "org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(java.sql.SQLException, String)" is null
I made by own local project in spring boot 3 using java 21, and oracle 21c. Getting problem while connecting I guess. The error is "java.lang.NullPointerException: Cannot invoke "org....
0
votes
0
answers
20
views
IntelliJ IDE Cannot Find javax.annotation.processing.Generated Symbol While mvn test Works Correctly
I am having a problem with my project configuration and running the program and unit test. When running with mvn test the JUnit test executes propertly, but when executing from within the IntelliJ IDE,...
0
votes
0
answers
4
views
DataNucleus for RDBMS Setup Issue: Meta-Data Not Enhanced or Multiple Persistence API JARs in CLASSPATH
What is the correct way to use Datanucleus for RDBMS (Database)?
My project setup is throwing this error:
SEVERE: Found Meta-Data for class org.example.core.project.model.Project but this class is ...
-5
votes
0
answers
35
views
Cannot resolve system - this was my error after writing my first Java code [closed]
When I have written my first Java code in intelliJ hello world,then an error occurs that is cannot resolve system
I had taken help of YouTube and chatgpt but I am not able to grab a complete solution ...
2
votes
1
answer
25
views
Algorithm for parse formula excel from original cell to destination cell
I am trying to parse formula in excel with 3 params: Formula, original cell address, destination cell address.
Example, with some rules:
Formula
Original Address
Destination Address
Result Expected
...
0
votes
0
answers
19
views
Miui Remove Permission Android Java Programtically
How to removes this bottom 3 permission if permission allow by user in miui
How to set only show on lock screen permission allow and other permission if allowed by user then auto denied that ...
1
vote
1
answer
24
views
JOptionPane drop down menu doesn't show any values
I am trying to make a Map that will map a dogs name to the dog object, it then prints out the list of available dogs and should show a drop down menu asking the user to select from one of the above ...
0
votes
0
answers
7
views
Getting BadCiphertextException while doing Envelope Encryption with AWS Encryption SDK for Java
I am working on a proof of concept.
Created a KMSkeyring with public and private key.
Public key is in Secrets Manager.
Private Key is in KMS
Use the public key to do encryption and use the ...
0
votes
2
answers
20
views
registerForActivityResult(ActivityResultContracts.RequestMultiplePermissions()) in fragment not working correctly
I use registerForActivityResult to request permissions in a fragment as follows
private var mediaLauncher =
registerForActivityResult(ActivityResultContracts.RequestMultiplePermissions()) { ...