Questions tagged [openjdk-12]
18 questions
4
votes
1 answer
Add JPEG encoder/decoder support to installed OpenJDK
I'm trying to scale a JPEG image and save it back using the following code, however, the resulting storage/test/thumbnail.jpg file is just an empty file. I checked the same code with PNG format and it works perfectly. However, for my use case I need…

Emad Omar
- 729
- 9
- 23
2
votes
1 answer
JDK12 memory behavior in docker container
It was my understanding that as of JDK12 the old experimental flag -XX:+UseCGroupMemoryLimitForHeap was removed but going to be baseline e.g. all JDK12 apps would read cgroup memory and set that as -Xms and -Xmx internally by default. However when I…

Jordan Shaw
- 539
- 4
- 9
2
votes
5 answers
lombok annotation is not wokring in intellij19.3
It's seem lombok annotation is not working.
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@Getter
@RequiredArgsConstructor
public class HelloResponseDto {
private final String name;
private final int amount;
}
and here is…

choiasher
- 23
- 4
2
votes
1 answer
How to find replacement packages when migrating from Java 7 to 12?
I am migrating a huge monolith application from java 1.7 to 12 and I want to do it the right way with as little hacks as possible. I keep, rightfully, running into errors such as this :
[ERROR]…

happybuddha
- 1,271
- 2
- 20
- 40
2
votes
1 answer
Junit 5 integration test failed in maven 3.5.2 build
Junit5 integration runs standalone in intellij but fails in maven build with stacktrace as below.
Caused by: java.lang.IllegalAccessError: superinterface check failed: class eu.nets.domain.QueuedMessage$HibernateProxy$1spaQq7T (in module…

Dinesh
- 57
- 2
- 8
1
vote
1 answer
Java multiple generics in interface and classes
I'm working in a complex project with a lot of extensions and a lot generics. We use open jdk 12.
The objects I'm working on are:
public abstract class Node
public abstract class…

Stefania
- 641
- 1
- 12
- 34
1
vote
0 answers
Solution to java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter step-by-step
I'm trying to connect SQL Server to Eclipse and I'm getting Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
After few days of looking into the topic it all boils down to removal of module…

MarioM
- 31
- 1
- 3
1
vote
1 answer
Does New Relic supports openJDK12?
has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at…

Naveen Babu
- 13
- 4
1
vote
0 answers
Netbeans project libraries - Compile-time libs vs Run-time libs
Brief description
In a netbeans project, if I tell Netbeans that a specific jar file is to be made available on the compile-time classpath as a library, then, I understand that Netbeans would also make that jar file available on the run-time…

fountainhead
- 3,584
- 1
- 8
- 17
1
vote
3 answers
Maven surefire plugin 2.22.2 build fails for Junit 5 test cases with errror Unsupported class file major version 56 in spring boot
Junit 5 test cases for a Spring boot application 2.1.7.RELEASE fails build with below error in intelij.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project domain: Execution…

Dinesh
- 57
- 2
- 8
0
votes
1 answer
Versionning with LocalDateTime causing OptimistickLockException
Currently upgrading our java/jsf/primefaces application, I'm facing folowing issue:
I changed the versioning date from Date datatype to LocalDateTime,
since that i'm having a OptimistickLockException when saving an Entity for the second time, on my…

Michael
- 21
- 3
0
votes
1 answer
Testing with Java 12 and Gradle does not work
I'm trying to use testfx, junit and powermock to impl. some tests for my javafx application. When I run the tests from my intellij ide, they work nicely. Running them over the 'test' task of my gradle script. I get following exception:
Failed to…

Alessandro Giusa
- 1,660
- 15
- 11
0
votes
1 answer
XStream - Challenge adding attribute to child element
I am having difficulty adding an attribute to a child element for writing an XML file. The challenge, for me at least, is that the POJO that the element is mapped to is associated with a parent element. I want the XML output to look like…

Randy
- 131
- 1
- 1
- 12
0
votes
0 answers
Why am I not getting a compile error when passing a list of Integer for a list of String parameter?
public class Generic {
public static void main(String[] args) {
Generic g = new Generic();
List integerList = new ArrayList<>();
integerList.add(42);
g.f(integerList);
…

ddreian
- 1,766
- 5
- 21
- 29
0
votes
1 answer
Jar file with hibernate dependency not executable with jdk 9+ (openjdk 12)
I'm not able to run .jar file with: java -jar. I got the exception saying:
Caused by: java.lang.ClassNotFoundException: javax.persistence.Persistence
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
…

Schroedinger
- 301
- 6
- 17