Questions tagged [java-15]

Use this tag for questions specific to Java 15, which is version 15 of the Java platform, released on September 15, 2020. In most cases you should also specify the java tag.

This release is the Reference Implementation of version 15 of the Java SE Platform, as specified by JSR 390 in the Java Community Process.

111 questions
1
vote
0 answers

Java 15 - unsupportedoperationexception: can't get field offset on a hidden class

Java 15, java-driver-core 4.15.0 and cassandra-unit 4.3.1.0 is used in the test. When I trying to prepare statement in my test using cqlSession from EmbeddedCassandraServerHelper - I get 'com.datastax.oss.driver.api.core.AllNodesFailedException'…
Andriy
  • 1,981
  • 1
  • 12
  • 9
1
vote
1 answer

Jackson serialise property based on other property value

I'm looking for a solution to serialize a POJO object property based on some other property value within the same POJO using Jackson. If a property value matches some criteria then other property values should be changed as per requirement. For…
1
vote
2 answers

The import java.text.SimpleDateFormat cannot be resolved

I use Java 15 for my example. I used Eclipse IDE for Java Developers - 2020-12. I got an error shown below when I define SimpleDateFormat to handle with formating a date object. import java.text.SimpleDateFormat; // error -> The import…
S.N
  • 2,157
  • 3
  • 29
  • 78
1
vote
0 answers

Java 15 - Adding Customisable Text to my canvas produces scaling/position issue

I am jumping back into an old bunch of code and my Java is very rough. Please be kind. Problem: I have an application that draws on the canvas. The placement of the screen objects works well. Even Text attached to other objects. However when I…
BChin B
  • 11
  • 2
1
vote
1 answer

How to find which maven dependency is downloading a jar?

I am facing an issue in a spring boot mongodb application, where I am getting the following exception java.lang.NoSuchMethodError:…
Ann
  • 137
  • 1
  • 11
1
vote
1 answer

JCEPolicy:38 - Exception caught while trying to open JCE via reflection java.lang.NoSuchFieldException: modifier?

I am migrating my application from open JDK 11 to open JDK 15. Maven build was successful, but when I try to run the springboot application, I get this JCE policy exception. Could you please help. I am using spring-data-mongodb-encrypt 1.3.0 The…
Ann
  • 137
  • 1
  • 11
1
vote
0 answers

IllegalFormatConversionException when installing a certificate with keytool and Java 15

I'am having a weird problem installing a certificate in the Java cacerts. My JDK is a 15.0.2 version, running in a Windows machine. The given certificate is correct and I was able to install it in a Docker container based in this image:…
1
vote
1 answer

Nifi Registry 0.8 throws java.lang.IllegalStateException: Unable to load cache item

I am trying to run Nifi Registry 0.8 on Windows Server 2019 using Amazon Corretto 15. I am aware that Nifi Registry is not officially support on Windows but some sources say it should run. Nifi Registry should also support Java 15. Both the path to…
tmlai
  • 372
  • 1
  • 8
1
vote
0 answers

Fetching SRV using InitialDirContext failing on Java 14 and below

We are making use of getAttributes method on javax.naming.directory.InitialDirContext for SRV record, this is being attempted from local laptop connected to company VPN through Global Protect 5.2.6-87 version. The below lines of code works…
Arun
  • 11
  • 1
1
vote
1 answer

Java 15 ModuleFinder encounters Error reading module

I am trying to programmatically load a project that is using Java Platform Module System, so I can analyze how many modules exist and what are the relationships. I wrote the following code: public void retrieveModules() throws IOException { …
1
vote
1 answer

How to select using CONTAINS instead of LIKE with JPA

I'm developing small java applications to school projects with PostgreSQL. Using the JDBC driver I could select a field using the ~ operator to act as CONTAINING instead of concatenating the filter using LIKE. Let me give you an example: SELECT *…
1
vote
1 answer

HttpClient hits timeout but server is available and working flawlessly

My problem is that the HttpClient never makes its way to the target. The target is on the same network (so I need no proxy) and it is definitely up. And the timeout was set quite high (120 seconds), the server is able to respond in less than a…
Marged
  • 10,577
  • 10
  • 57
  • 99
1
vote
1 answer

Android Studio with JDK 15

I was trying to build my first Android APP in Android Studio. I used IntelliJ alot, so the IDE wasnt something entirely new. I downloaded the newest Studio Version and updated the AndroidSDK and NDK. Then i created a new Basic Activity and changed…
Schesam
  • 583
  • 5
  • 19
1
vote
0 answers

How to replace sun.awt.AppContext used to shutdown ExecutorService instances when context is disposed?

One of our Java based Swing applications has a class which creates an java.util.concurrent.ExecutorService instance used to run SwingWorkers. Before the executor service is returned, a custom PropertyChangeListener is added to the instance of…
Andreas N
  • 804
  • 7
  • 18
1
vote
1 answer

Java JTS Polygon contains Another Polgyon

I am trying to use JTS to tell if one Polygon contains another Polygon. I have resources here. How do I utilize the syntax? this is giving me errors. The next step is to apply contains. If anyone has experience with JTS, it would be…
mattsmith5
  • 540
  • 4
  • 29
  • 67