Questions tagged [java-17]
Java 17 is a Java language implementation released on September 14, 2021 and includes sealed classes, Vector API, new macOS functionality, foreign function & memory API, enhanced pseudo-random number generators, and other features. Java 17 is the second Java long-term support (LST) release. Use this tag only for questions specific to Java 17 and its features. For generic Java programming questions, the [java] tag should be used.
java-17
1,261
questions
-1
votes
0
answers
14
views
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'dept_name'
I am building Microservice project where I am using Spring Boot application , DB is MS SQL 2022, I am using ready DB table which create some application, I want get data from DB table in my table I ...
0
votes
0
answers
13
views
Log Springboot 3.3.1 applications logs in Azure application Insight
I need to store the all the application logs to azure applications insights. Im using springboot3.3.1 and Jdk 17 version. I tried whatever there in azure documentation but still its not working
0
votes
0
answers
11
views
Yocto | Poky | Dunfell | ARM | Java 17 | Segmentation fault
Good afternoon, everyone, I’m trying to update a Yocto layer, that was working with Java-8 and it’s required to update to Java-17.
The device that I’m trying to flash it’s an arm7 (arm on poky) and ...
0
votes
0
answers
19
views
Unable to access resources/public/images from grails 5.3.6 and jdk 17
Unable to access resources/public/images from grails 5.3.6 and jdk 17
This is a plugin which resides under WEB-INF/lib
The files under resources should be accessible with the URL
http://localhost:1507/...
-1
votes
0
answers
35
views
Necessary JVM arguments when using AspectJ
Is it necessary to pass the following flag --add-opens", "java.base/java.lang=ALL-UNNAMED when using AspectJ on JDK-17. If I don't include this flag, I get the following error.
[...
0
votes
1
answer
38
views
Upgrading appenging app with legacy bundled services from java 8 to java 17 runtime fails to deploy
We have an appengine standard java web app which uses appengine sdk extensively for almost all the key APIs of appengine e.g. datastore, search api, memcache, bigquery, cloudstorage etc. This runs on ...
0
votes
0
answers
13
views
Implement Task execution with a timespan with Springboot 3, Java 17
I am looking for small design implementation suggestion
At some point in my existing REST endpoint
SERVICE_1 calls another service SERVICE_2 for a task(say TASK_1), that call takes about 5 minutes ...
0
votes
0
answers
11
views
JPA: How to join OR get fields from custom function in JPQL
So, i have some configuration
public class MyPostgreSQL9Dialect extends PostgreSQL94Dialect {
public MyPostgreSQL9Dialect() {
super();
registerFunction("cust_func", new ...
0
votes
0
answers
39
views
unable to access rest API from windows environment which is deployed on Linux environment using VM
Unable to access the rest API from my windows 11 Pro OS, where the API is deployed on Linux via Virtual Machine with Apache tomcat server.
I have installed Apache tomcat(10) and deployed my basic ...
-1
votes
1
answer
49
views
Why am I getting java.lang.NoClassDefFoundError: java/sql/Driver when using a custom class loader?
This works with Java 8:
public class Test {
public static void main(String[] args) throws Exception {
URLClassLoader loader = new URLClassLoader(new URL[0], null);
System.out.println("&...
0
votes
0
answers
31
views
Flink 1.18 runtime java 17 support
I have a Kinesis stream on AWS, and the runtime I'm using is Flink 1.18. When I tried to compile my application code in Java 17 and start the stream, I encountered the following error:
Caused by: java....
0
votes
0
answers
54
views
Can I use yield as a variable name in Java 17 when yield is a reserved keyword?
I have an existing Java codebase where I use yield as a variable name. With the upgrade to Java 17, where yield has become a reserved keyword due to the new switch expression feature, I'm concerned ...
1
vote
0
answers
33
views
AwsParameterStoreEnvironmentRepositoryFactory bean is not available after updating to Spring boot 3.3.1
Recently I have updated the Spring boot 3.3.1 from Spring boot 2.7.18. Using my application I am trying to fetch some data storeed in AWS but just after updating I am getting below exception.
'org....
-4
votes
0
answers
27
views
@Mock is not working after migrated to java 17 [closed]
We was having code with java 11 and powermickito. We have migrated it to java 17. SO @Mock is giving null everywhere.
I need to use Mockito instead of powermockito. We are using internal framework for ...
0
votes
1
answer
24
views
ContextResolver Not Working After Migrating from Jersey 1.x to 2.x
While updating my project from JDK 8 to 17, I found that jersey-server 1.19.2 is not compatible with JDK 17. Therefore, I tried updating it to 2.43 (if I go beyond 2.x, I'll also have to update javax ...