23,204 questions
0
votes
0
answers
28
views
Wildfly jtds upgrade java gives connection reset using SSL
We have been using wildfly 20 with the old jtds driver for jdbc connection pooling. Any many of our customers have been as well.We just upgraded from jdk 8-265 to jdk 8-462. After the upgrade, nothing ...
0
votes
0
answers
62
views
Why won't my Netbeans 12.4 open on my Macbook M1 Air?
As the title states, my Netbeans refuses to open; it has the opening loading prompt but it closes as soon as the text says "Done loading modules".
I currently have the newest versions of ...
1
vote
1
answer
152
views
java error when trying to compile and execute java programs using intelliJ idea
I am experiencing build failure when trying to compile and execute Java programs using JDK 8 (1.8.0_432). I keep getting the following error from IntelliJ idea:
java: invalid flag: --add-modules
Not ...
0
votes
0
answers
50
views
Springboot 2.2.5 Java8 not exposing GraphQL
My application runs on Java 8 and Springboot 2.2.5.RELEASE and I am using below dependencies to expose a GraphQL service.
<dependency>
<groupId>com.graphql-java-kickstart</...
0
votes
1
answer
79
views
DYLD_LIBRARY_PATH is null [closed]
I'm trying to run a .jnlp file on my Mac, but I keep getting the error:
DYLD_LIBRARY_PATH is null
java.lang.UnsatisfiedLinkError: Can't load /Users/setupuser/Library/Application Support/Oracle/Java/...
0
votes
1
answer
56
views
Doc4j corrupts docx file after inserting paragraph
I am trying to add a simple text paragraph with text ""Hello from Java test!" in an existing simple docx file (contains only one dummy line of text already) using docx4j.
But when I am ...
2
votes
0
answers
102
views
Java web-socket ssl certificate error while cert is valid
Hello I've been facing a weird problem the past few days.
I send out a demo of my app to a few people. however for around 75% of the people the demo didn't work, while for the other 25% it works great....
0
votes
1
answer
50
views
InvalidDataAccessResourceUsageException: could not execute statement [ERROR: column "" is of type jsonb but expression is of type character varying
I am using SpringBoot 3.5, PostgreSQL and Hibernate/JPA as ORM.
While using JSONB column from DB I am having this error.
org.springframework.dao.InvalidDataAccessResourceUsageException: could not ...
2
votes
1
answer
156
views
CharsetDecoder used within InputStream in release Java 8 onwards doesn't seem to honor CodingErrorAction.Replace
Issue can be found in version Java8 onwards. A CharsetDecoder is explicitly configured with CodingErrorAction.REPLACE ; I would expect the replacement character \uFFFD to be applied when decoding ...
1
vote
1
answer
112
views
Why failed when using mockito3 + powermock2 to mock new object
I am trying to mock a constructor method. But failed with messages said unnecessary stubbings.
What modify should I make to succesfully run this unit test? Plus, Better not to modify the version of ...
-2
votes
1
answer
368
views
Can i use spring version 6 and above with Java version 8?
I wanted to upgrade my spring version from 5.3.39 to the 6 series. But when I tried to do that, it didn't compile and threw an error.
This is the error that I'm getting:
Failed to execute goal org....
-4
votes
1
answer
124
views
Is it mandatory to specify the data type of a base class which is declared generic while inheriting?
I'm trying to understand Java generics better. Suppose I have a generic base class like this:
class Base<T> {
T data;
}
Now, if I create a subclass, do I need to mention the parameter type ...
0
votes
0
answers
49
views
java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:1099" "listen,resolve")
Facing issue with RMI Registry.
Inititally my code was developed using java 6 or lower version but recently we have upgrade our java to java 8 and came to understand that it has some tighter Security ...
0
votes
0
answers
64
views
JavaMail running on Oracle 19c database and TLS1.2
Running Oracle 19c with Java 1.8.0_451 and JavaMail 1.6.7. I'm attempting to send emails via SendGrid from a stored procedure on the database referring the the following Java class:
CREATE OR REPLACE ...
0
votes
0
answers
30
views
OpenEJB (for Unit-Tests) not working after Upgrade from 7 to 8
we use OpenEJB 7.0.9 for Unit-Testing with Java 8.
Now we switch our Application to Java 11 and tried to Upgrade OpenEJB to 8.0.16.
But since Version 7.1.4 and 8.0.0 (org.apache.tomee -> openejb-...