1,919,664 questions
0
votes
0
answers
14
views
java processbuilder arguments with quotes on windows
In git bash i am running this command, which runs fine
./script.sh -s "run:3-20-1-10000;10000;" mq
I need to pass this exact command in git bash through java on windows
I am doing this
...
0
votes
0
answers
8
views
Fix "org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.sqlExceptionHelper()" is null exception
After updating the Hibernate libraries. During startup, this exception is shown
java.lang.NullPointerException: Cannot invoke "org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(java.sql....
0
votes
0
answers
15
views
ListView List.add is delayed until an update of the activity
I defined a unique simple Activity. In the middle of the layout I added a ListView which seems to be the solution for scroll lists.
<ListView
android:id="@+id/listView"
android:...
0
votes
0
answers
5
views
Java class using SikuliAPI not working after Windows update
After migrating to windows 11 a sikuli API code which was working fine in Windows 10 giving below error.
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.sikuli.script....
1
vote
0
answers
9
views
Bi-directional HTTP1 full duplex streaming on Android
I have an http1 API that I have written (in Golang) code ex here that I have gotten to work perfectly on iOS code ex here
But I cannot seem how to figure out how to implement it on Android.
The API is ...
-1
votes
0
answers
11
views
Super methods in service class In Floating Pop up
public void onReceive(final Context context, final Intent intent) {
Log.v(LOG_TAG, "Receieved notification about network status");
WindowManager wm = (WindowManager) context....
0
votes
0
answers
9
views
Saving Multiple CachedRowset row changes to Database
I am writing a simple program that updates records in a CachedRowset. For some reason it will only save a rowset with only one record. If the rowset contains more than one record when I iterate ...
0
votes
0
answers
6
views
Is there an xjc argument '-nexclude' equivalent in jaxb-maven-plugin
I'm replacing cxf-codegen-plugin with jaxb-maven-plugin. While using the cxf-codegen-plugin, they were using -nexclude argument to exclude certain package in a namespace from generating. I'm trying to ...
0
votes
0
answers
7
views
NoClassDefFoundError: com/sun/jna/NativeLibrary
Running a Java sample file under Eclipse in a Maven project using libsdl4j-2.28.4-1.6. Getting a NoClassDefFoundError.
Here is the error stack :
Exception in thread "main" java.lang....
0
votes
0
answers
9
views
WebIdentityTokenCredentialsProvider: To use assume role profiles the aws-java-sdk-sts module must be on the class path
Running a pod in AWS EKS using the WebIdentityTokenCredentials (which the service account provides) only works, if the STS module of the SDK is in the classpath.
Java version 2 -
<dependency>
...
0
votes
0
answers
13
views
JavaFX - remove node from pane - weird behaviour
I am working on a complex application that requires removing a line from a pane and then updating the positions of the remaining lines. For illustration, the application looks like this before ...
0
votes
0
answers
9
views
Hibernate Multitenancy: change tenant in session (discriminator column approach)
I am developing a springboot application which serves data for multiple tenants. To separate data between tenants I am using hibernates integrated multitenancy features for discriminator column-based ...
0
votes
0
answers
9
views
How do I migrate Eclipse Classpath File Entries to Gradle or Intellij?
I'm working on this new project where the eclipse .classpath file is stored in the repo. I imported my project into IntelliJ as a gradle project as there is a build.gradle file. When I build the ...
-1
votes
0
answers
14
views
Issues Running Unit Tests in Quarkus
I’m trying to start unit testing, but I’m encountering some errors when executing any test:
@QuarkusTest
class AccountResourceTest {
@BeforeEach
void setUp() {
}
@Test
void ...
0
votes
1
answer
18
views
I have a java webapp hosted in tomcat using JAX-RS that i get a 404 when trying to access endpoint
I have a webapp where I am deploying the war file to a tomcat server. I am always getting a 404. In the catalina.out, i see the deployment but get no error.
The app runs fine as an exploded war on my ...
0
votes
0
answers
6
views
How to retry playwrigth tests with Java?
We are using playwrigth for some UI tests which are flaky. So I want to retry each test a couple of times before marking it as failed. So I created my own JUnit 5 extension. But unfortunatelly it ...
0
votes
1
answer
25
views
Why is the Gradle build failing?
My build failed after following with the following message
Task :extensions:superuser-seed:compileJava FAILED /home/joba/MinimumViableDataspace/extensions/superuser-seed/src/main/java/org/eclipse/...
0
votes
0
answers
7
views
Submitting flink job in remoteEnvironment
I have a jobmanager, taskmanger running in docker.And in separate java program/Micro service1, i created a flink job jar with all the dependencies and conf.yaml. From another MicroService2, i need to ...
0
votes
0
answers
11
views
How to Perform XML String Transformation and XPath Extraction in a Non-Camel Web Service?
I’m working on a web service that processes SOAP responses (in XML format), and I need to:
Take the original payload.
Perform conditional replacements on the XML content:
If the body contains the ...
0
votes
0
answers
8
views
Android JNI failing to create file but will open if created in kotlin
JNI is failing to create file with simple fopen. (it does create it, it seems, every once in a while, specially if I rename the filename inside the jni befor calling fopen)
If I simply create the file ...
0
votes
1
answer
19
views
How to handle closing ExecutorService when used with Spring Integration Flows?
I am using an executor service to ensure that incoming jms messages are acknowledged after I write them to my database - (Using XA datasources and distributed transaction is not an option we have ...
0
votes
0
answers
9
views
log4j and JsonTemplateLayout
Recently, I had a problem with log4j that ended up being a dependency conflict, but as part of that, I used the log4j2.xml from https://logging.apache.org/log4j/2.x/manual/getting-started.html
<?...
1
vote
0
answers
19
views
Provide different java libraries to javax.tools.JavaCompiler classpath
I am trying to parse this code with a JDK17 javax.tools.JavaCompiler compiler:
public class TestClass {
void foo() {
var x = java.nio.file.Path.of("SomePath").resolve("foo&...
0
votes
1
answer
11
views
org.hibernate.MappingException: Unknown entity: org.example.Person
I am trying to save a record of Person class into mySql database using pure java and hibernate but I get this error. these are my classes. I appreciate any help why this error is raised.
With these ...
0
votes
0
answers
29
views
How to load a thumbnail in Java?
I am trying to create a video gallery in Java, but I've tried many methods to load thumbnails and have encountered a lot of errors. I've used several libraries, but I’m not sure if I installed them ...
0
votes
3
answers
46
views
How to convert RAW column with Java-Object-Streams to plaintext VARCHAR2
I am working in a project where in the past they have chosen to store lists of country codes as a Java-Object-Stream using the RAW datatype in the Oracle DB.
So for example, ['AW'] would be saved as ...
0
votes
0
answers
41
views
Semantic versioning and the experimental API element
I version my APIs (of various types: REST, Java, etc.) according to the rules of semantic versioning (for REST API specifying the version in the OAS in the version field of the Info Object; for Java ...
0
votes
0
answers
20
views
MongoDB query on Spring data and PropertyReferenceException
Our app uses Spring boot 3.3.6 and have the following scenario:
Model:
@Document(collection = "STORAGE_CLASS")
public class StorageClass {
@Field("STATUS")
private String ...
0
votes
0
answers
21
views
pdfbox 3 encoding exception
I have a simple pdf file with an editable field and I should populate it with the info. Everything works perfectly fine when I use english characters but I have some fields that contains turkish ...
0
votes
0
answers
17
views
Using an Asynchronous Task Executor with an ItemStream Reader
Disclaimer:
The code i am sharing has been anonymised.
Hello Community,
In my project we are using several spring batch jobs and have this warning in our log every time we start the spring ...
-1
votes
0
answers
17
views
Claude Intellij Integration
I am trying to integrate ClaudeMind on intellij, i have a Anthropic account with free tier and have generated the API key as recommended on the site, i have installed the plugin and entered the key ...
1
vote
1
answer
20
views
How to exclude a Folder in AdvancedSecurity in Azure in a Java project
We use Azure Devops and build our Java project there. We also use the AdvancedSecurity. Now i try to exclude a folder from the Scanner.
I have found in AdvancedSecurity-Codeql-Init@1 the parameter &...
0
votes
0
answers
38
views
Facing issue with classpath variable in Java
/home/thiru/VS Code Files/Java Files
├── F
│ ├── test.class
│ └── test.java
└── G
├── c.class
└── c.java
c.java imports F package and has main function
When I use javac and java :
:~/VS ...
3
votes
1
answer
64
views
Strange Java regex matching behavior regarding negation via ^
In Java 8, the following script prints true
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args) {
String regex = &...
2
votes
1
answer
68
views
When I call stream() where is the inner Iterator or inner Spliterator?
The classes implementing the collection interface have the stream() method, and I see that it returns the stream interface when the stream() method is called. I know there will be some internal ...
0
votes
1
answer
33
views
Should Lombok annotations be written before others on a class, method, etc.?
I believe I read somewhere that Lombok annotations should typically be placed before any others on a class or other code element, because they should be applied first. That way, code generated by ...
0
votes
1
answer
26
views
Java spring boot jpa and oracle db is slow
I have question regarding slowly retrieving data from a database using java spring boot jpa - jbdc driver. I am new java programmer, so take it easy please :)
In DBeaver, simple select (without joins) ...
0
votes
0
answers
15
views
Recycler View Item automatically starting an action after the previous item has finished its action
I am making a music app where in one fragment the user can mash two songs together. To do this , I have created some items using the recyclerview. Now , these items contain a play button and a slider.
...
0
votes
0
answers
26
views
What are the best practices for using repositories and service classes in a Java service layer? [closed]
In my Java application, I am trying to determine the optimal approach for structuring my service layer. Specifically, I have two main inquiries:
Should I directly use repository classes within my ...
0
votes
0
answers
11
views
Using Docx4j Combine 2 Document
I want to combine two documents into a single file. For example, if my first document contains 2 pages and my second document contains 3 pages, I want to merge them into one document without mixing ...
0
votes
0
answers
10
views
How to access encrypted assertions after migrating to spring-security-saml2-service-provider 6.4
Background
In an application where spring-security-saml2-service-provider was upgraded from 6.3.x to 6.4.1, I am experiencing a change in behaviour where I'm struggling to access the list of encrypted ...
-1
votes
1
answer
26
views
I am trying to deploy a Spring Boot WAR file to a server, but the application is not starting correctly, and I am encountering errors
I am trying to host my java spring boot api project on a cloud server with below configurations-
Spring Boot Version: 3.2.1
Tomcat Version: 10.1.7
Java Version: 21.0.4
But after deploying my war file ...
0
votes
0
answers
17
views
Installing java server on cpanel
I want to run a java code for backend in cpanel domain service but my host only supports PHP. How can I install java on my cpanel domain?
I search about it on internet but I don't find anything about ...
0
votes
0
answers
18
views
Is there a way to exclude classes with same package name, but are present in different folders from JaCoCo code coverage report?
This is my folder structure:
- src
- main
- java
- com.chintan.project
- src-gen
- com.chintan.project
Is there a way to exclude the classes of package com.chintan.project which ...
0
votes
0
answers
20
views
Does Oracle WebLogic WLS 14c support Java 17?
Wikipedia says Weblogic latest version only supports Java 11.
But why does this prevent me from installing Java 17 (or even Java 21)?
Is it not the case, that Java is downward compatible?
Can anyone ...
-1
votes
1
answer
24
views
Caused by: org.hibernate.type.SerializationException: could not deserialize Caused by: java.io.EOFException: null
I have a generic hibernate exception:
Caused by: org.hibernate.type.SerializationException: could not deserialize
at org.hibernate.internal.util.SerializationHelper.doDeserialize(...
-4
votes
0
answers
36
views
Is there any ways to edit or update data in a Excel file? [closed]
I want to get data in an Excel file and show the data on the web. If I want to update or edit the data on the web and sync that data in that Excel file again, can I do it or not, if not, please ...
-4
votes
0
answers
25
views
This issue has been triaged in IDEA-342187, and the fix is planned to be in the 2024.3.1 release [closed]
The recommended solutions are:
include <version>${lombok.version}</version> against lombok annotation processor configuration in your pom.xml :
<plugin>
<groupId>org....
0
votes
0
answers
21
views
How to assign test point to a tester in Azure DevOps with API
According to Points - Update from Microsoft's own documentation, in api ver 7.1, we can assign testers to test points by updating test point like:
PATCH
https://dev.azure.com/{organization}/{project}/...
0
votes
1
answer
26
views
Liquibase: java.nio.file.InvalidPathException: Illegal char <:> at index when not in classpath
My project structure is as follows:
project
|___project-web
|___project-service
|___project-database
project-web is a spring boot project where the application class is. Project-database is not a ...