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

Why does JDK 15's time API have increased precision on Linux, but not on macOS?

java.time.OffsetDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME) on OpenJDK 15 (build 36) on Linux has a 9 digit precision after the second: 2020-10-20T13:23:03.079208368+02:00 But the same command on macOS (same JDK version) only has 6…
neu242
  • 15,796
  • 20
  • 79
  • 114
0
votes
0 answers

Selenium Grid: Displaying "Could not start new session" after executing some test cases

We are using Selenium Grid, Hub and node configuration for parallel execution. Probelm: After executing some test scripts(execution duration is 54 min), getting below exception. org.openqa.selenium.SessionNotCreatedException: Could not start a new…
0
votes
1 answer

pom.xml file is showing these yellow color warnings in IntelliJIDEA while I can run the project just fine

I am using Appium 2.0.0-beta66, Java Client 8.5.0, node 18.xx, Selenium-java 4.9.1, Selenium Server 3.141.59, TestNG 7.7.1, and JDK 1.15.0-02, what is the next long term JDK I can go for ? BTW, I am seeing these yellow color highlights in pom.xml…
PraNuta
  • 629
  • 3
  • 12
  • 33
0
votes
1 answer

Apache Netbeans 15 is not opening on windows 10

I have been working on a Java project using Apache NetBeans for a long time now. Today I opened Apache Netbeans IDE, it started pretty normally the first time showing the "starting modules" screen, but soon after it just vanished. I restarted the…
0
votes
1 answer

What is the purpose explicitly specifying a sub-class as non-sealed?

In the following example why do I explicitly need to specify a class Square as non-sealed? Isn't public class Square extends Shape {...} more intuitive? package com.example.geometry; public abstract sealed class Shape permits Circle, Rectangle,…
visha1
  • 9
  • 1
0
votes
1 answer

How to solve " Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException"

How to solve " Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException" When I run the same code with Java 15, at runtime I get errors indicating that Exception in thread "main" java.lang.NoClassDefFoundError:…
Gökhan
  • 3
  • 4
0
votes
3 answers

Inserting String variable into JSON which is in a form of String

I have a JSON payload saved as a String String jsonBody = “{\n” + ” \“example\“: {\n” + ” \“example\“: [\n” + ” {\n” + ” \“example\“: 100,\n” + ” \“this_is_example_json_key\“:…
Adam
  • 33
  • 5
0
votes
0 answers

Intermitent "Received RST_STREAM: Not an error" observed when calling send on java.net.http.HttpClient

I've noticed recently a weird, intermittent error: "Received RST_STREAM: Not an error" which seems to come from java when calling send on java.net.http.HttpClient. Googling it, I found similar errors but not exactly with the same message. Any idea…
Yonoss
  • 1,242
  • 5
  • 25
  • 41
0
votes
1 answer

Javascript Validation in Java 15+ JUnit Test

Now that Nashorn has been deprecated & removed in JDK 15 what is the best approach to validate that a String is valid Javascript in a JUnit test? Previous Code: private void validateJavascript(final String js) throws ScriptException { …
Patrick Bray
  • 552
  • 2
  • 7
  • 20
0
votes
0 answers

GroupBy in Webflux

I am getting the response in java using the following code List Dtos = myConsignmentDao.fetchMyData(myConsignmentRequest); if(!Dtos.isEmpty()){ List myDetails = Dtos.stream() …
0
votes
0 answers

SocketException when calling setNetworkInterface on a MulticastSocket with an IPv4-only interface

After updating the Java version from 12 to 15, this code now throws a rather non-descriptive SocketException on Windows, but only if IPv6 is disabled on the NetworkInterface: NetworkInterface networkInterface =…
appnic
  • 344
  • 1
  • 10
0
votes
0 answers

java -version looking at wrong location and not showing correct java version macOS

I guess I have messed up big time with my java installation and am now not able to correct this. Ok, so first, /usr/libexec/java_home -V tells me Matching Java Virtual Machines (1): 15, x86_64: "Java SE 15" …
gulgulu
  • 105
  • 1
  • 5
0
votes
1 answer

java command no returning anything in CMD

I just installed the JDK for 15.0.2 and added the bin to my path. When I type java in the command prompt, nothing happens. Can anyone help?
Elliott Weiss
  • 159
  • 1
  • 1
  • 3
0
votes
2 answers

flutter doctor --android-licenses shows error message

how to solve this error I show many video on it but that can not works. I tried also JDK 8 but it doesn't works. Currently running on JDK 15. Installed java 15 ** flutter doctor -v ** [√] Flutter (Channel dev, 2.3.0-0.1.pre, on Microsoft Windows…
0
votes
0 answers

I need some help to solve this error: invalid flag: .\App.class

//I man new to java and using VS code for it. I keep on facing this problem and i don't know how to fix it. It keeps showing me error: invalid flag: .\App.class The code was working fine yesterday, now suddenly it is showing this error. I tried…