openjdk-11

java.util.jar.jarfile.init() method takes too long to execute

蹲街弑〆低调 提交于 2020-01-04 04:17:26
问题 Story: I am resolving some performance issues on my Web Application Application background: This Application is written in Java , with Velocity Template Engine , and front-end javaScript using Tomcat9 server. Problem: When i leave the application running, for 10-15 min, the application slows down, So i tried to do VisualVM profiling, and found some traces, that i want to share with you people. UPDATE I debug it more, and find the main reason of redundant calls to Open function in

Production code + Test module-info = Unpossible?

萝らか妹 提交于 2020-01-01 16:54:53
问题 I have a mock class with a trivial implementation of a service I provide from a module. I'm using OpenJDK 11.03, gradle 5.2.1 and IntelliJ 2019.2. In /main/code/myPackage/myService.java I have: package myPackage; class myService { public abstract void someFunction(); } And in my test/code/somePackage/myMockService I have package myPackage; // no import, they're in the same package. class myMockService extends myService { @Override public void someFunction() { System.out.prinln("Hello World");

Jetty upgrade 8 to 9

♀尐吖头ヾ 提交于 2019-12-24 16:58:59
问题 When I am trying to migrate to Jetty 9.4.18 from Jetty 8.1.12, I am getting errors because of following issues. we are using org.eclipse.jetty.server.AsyncContinuation. Which is not present in Jetty 9.4.18 We are using AbstractHttpConnection. specifically AbstractHttpConnection.getCurrentConnection() method. Which is not present in Jetty 9.4.18. We are using org.eclipse.jetty.security.MappedLoginService which is not present in Jetty 9.4.18. we are using connector.getConnection() method. which

dependency not resolved: DocumentBuilderFactory class need dependency of javax.xml.parsers in openJDK 11

让人想犯罪 __ 提交于 2019-12-24 15:15:55
问题 Advance thanks to, whom, will going to help me, rather down vote the question :) Story: I was using JDK8 and IVY as dependency manager with ANT Builder. everything was fine. My DocumentBuilderFactory class able to find javax.xml.parsers dependency. Issue: Now I am shifted to Open JDK11, Now DocumentBuilderFactory not able to find javax.xml.parsers dependency. Eclipse gives me suggestions to import, but when i Import nothing happens, and already import says the import javax.xml.parsers

package sun.awt does not exist

↘锁芯ラ 提交于 2019-12-07 07:14:44
问题 When compiling with ant , calls to sun.awt.AppContext work, however the same code compiled with IntelliJ fails using AdoptOpenJDK11. sun.awt.AppContext with Oracle JDK8 works with IntelliJ sun.awt.AppContext with AdoptOpenJDK11 does NOT work with IntelliJ Although Sun/Oracle has warned for a while about avoiding the sun.* packages, there are certain features (bugs?) in Java that still require them and stranger, the command line seems happy. Sample code: package test; import javax.print

package sun.awt does not exist

做~自己de王妃 提交于 2019-12-05 16:58:53
When compiling with ant , calls to sun.awt.AppContext work, however the same code compiled with IntelliJ fails using AdoptOpenJDK11. sun.awt.AppContext with Oracle JDK8 works with IntelliJ sun.awt.AppContext with AdoptOpenJDK11 does NOT work with IntelliJ Although Sun/Oracle has warned for a while about avoiding the sun.* packages, there are certain features (bugs?) in Java that still require them and stranger, the command line seems happy. Sample code: package test; import javax.print.PrintService; import javax.print.PrintServiceLookup; import sun.awt.AppContext; public class Main { public