23,197 questions
-2
votes
0
answers
33
views
How to deploy and run era file in intellij using glassfish plugin [closed]
Environment
Java: JDK 8
Application type: Java EE (ear)
Application server: GlassFish 4.1
IDE: IntelliJ IDEA ULTIMATE
OS: Windows
Problem
I successfully deployed a EAR file on GlassFish 4.1 and ...
6
votes
1
answer
253
views
Java Map.computeIfAbsent consuming high memory [duplicate]
I had written a method to update a HashMap, provided an int id value (ex: client id) as key, the method would check if the key is available in the map, if not it would create an entry and associate a ...
0
votes
0
answers
33
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
65
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
153
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
55
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
80
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
58
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
107
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
57
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
161
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
116
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
416
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
125
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
50
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 ...