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.
178
questions
0
votes
0
answers
9
views
Static member 'null.R2.id' accessed via instance reference
I changed from R to R2 but the ID underlines it with the following text:
Static member 'null.R2.id' accessed via instance reference
and when I try running the code it throws this error:
java.lang....
-10
votes
0
answers
95
views
Do C#, Java, and other MSLs have use-before-initialized and use-after-destroyed type safety problems? [closed]
Based on the article they do:
C#, Java, and other MSLs still have use-before-initialized and use-after-destroyed type safety problems too: They guarantee not accessing memory outside its allocated ...
0
votes
0
answers
11
views
Why I can't nullify many-to-one attribute with EclipseLink?
I'm working on SpringBoot-based platform which uses EclipseLink as ORM.
In my main entity there is a attribute represents ManyToOne association with another entity. Attribute has the following ...
-2
votes
0
answers
14
views
Springboot API project in openshift - How to access with Postman [closed]
I've created an example Springboot project where I use a Postgresql database which is hosted online with Aiven. The whole project is deployed with OpenShift and so far everything works as planned. The ...
0
votes
1
answer
12
views
Supported Kubernetes Versions for Each Kubernetes Client JAR Version
One of our spark containers uses a jar called "kubernetes-client-4.12.0.jar". Is there a document available mentioning its respective Kubernetes version support. Currently we have Kubernetes ...
0
votes
0
answers
32
views
Code working in emulator but no on physical device
Hey guys I am trying to get user's phone number with consent in my app but the problem is that the following code is working on an emulator but not on a physical device. I am using subscriptionManager ...
0
votes
1
answer
18
views
Flink KeyedProcessFunction Creation Count
I am new to Flink and trying to understand if the number of created KeyedProcessFunction instances change depending on where I created the function.
MyProcessFunction myFunction = new ...
0
votes
1
answer
42
views
Kotlin data structure for efficient lookup of nested data
I am currently working on an application that needs to create a mapping between document pdfs and corresponding JSON data files. The files are coming from a third party so I have no control over their ...
0
votes
0
answers
21
views
@JoinColumn "occurs out of order" with spring-boot-3.3.2 (Hibernate 6.5.2 )
I am getting the error:
Caused by: org.hibernate.AnnotationException: Referenced column 'sub_categoryvid' mapped by target property 'id' occurs out of order in the list of '@JoinColumn's
at ...
0
votes
1
answer
23
views
Getting Data from a Jacksonised Object duing unit test
I'm trying to mock out RestServer calls, but It's not generating parseable JSON:
A Simple Class like so:
@SuperBuilder
@Data
@Setter
@Jacksonized
@JsonIgnoreProperties(ignoreUnknown = true)
Public ...
0
votes
1
answer
62
views
Not able extract all the tags from pdf using iText-8 getAllFormField Method
As per the iText 8 version migration from iText 5.5.
We are unable to extract the tag from PDF by using new iText 8 code but able to extract using old iText 5.5 code.
Below is the code to get the tags....
-1
votes
0
answers
24
views
Errors with Java application distribution for MacOS with ProcessBuilder and jspawnhelper
I have a Java application I'm distributing with jpackage for MacOS.
The runtime is delivered with the application, and it is JDK version 22.
When the application tries to execute an external command ...
1
vote
0
answers
12
views
Quarkus3 - JasperReports got java.sql.SQLException: Enlisted connection used without active transaction
we updated our application to Quarkus 3 recently and our report module started to crash on SQLException: Enlisted connection used without active transaction.
2024-07-22T21:24:13.597381608Z executor-...
-2
votes
2
answers
55
views
Java 8: How to filter the map from a list of list Ids and generate new List using Streams [duplicate]
Firstly This is not a duplicate question.
I have list of List<Integer> and Map of Integer Ids and Employee Object as below:
List<List<Integer>> ids=new ArrayList<new ArrayList<...
0
votes
0
answers
23
views
Best way to retrieve the activity's ViewModel for second time
This is how the guides recommend retrieving the ViewModel of an activity for the first time, which normally happens inside the onCreate:
public class FooActivity extends AppCompatActivity {
@...