Skip to main content

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 vote
0 answers
23 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....
Sumit Sood's user avatar
-4 votes
0 answers
23 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 ...
Jyoti's user avatar
  • 1
0 votes
0 answers
14 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 ...
CodeRager99's user avatar
0 votes
0 answers
16 views

Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'kaptGenerateStubsDebugKotlin' (17)

I have tried all of the listed solutions I can find on the Internet and am stumped. I'm updating to Java 17 from 1.8, and I am getting the error: Inconsistent JVM-target compatibility detected for ...
petestmart's user avatar
0 votes
0 answers
31 views

How to Migrate from Java 11 to 17 for a plugin with jars in classpath and packages are exported

We have a plugin named mockito and it has cglib-nodep-2.2.2.jar, hamcrest-core-1.3.jar, mockito-core-1.10.19.jar, objenesis-2.4.jar, jmockit-1.49.jar in it's bundle-classpath and have exported all the ...
Paul-E's user avatar
  • 95
0 votes
1 answer
31 views

How can I specify --add-exports during execution of java

I have jar package complied with java 1.8. Now migrated to java 17. Ksh file contain the java command /etc/alternatives/jre_1.8.0/bin/java $JAVA_OPTS -DDB_INFO_FILE=$DB_INFO_FILE -DRCFILE=$RCFILE -...
userLearner's user avatar
0 votes
0 answers
15 views

JDK 17 corretto & Spring 6.1 migration

I am upgrading an application in Open JDK 11 corretto with Spring 4.3 to JDK 17 corretto Spring 6.1 got the below exception:- Caused by: org.apache.catalina.LifecycleException: Failed to start ...
Jinoy Pl's user avatar
1 vote
0 answers
64 views

javax.smartcardio cannot be resolved after updating Maven project to Java 17

I recently updated my Maven project from Java 8 to Java 17. After the update, I encountered an issue where Eclipse cannot resolve javax.smartcardio.* imports in my project. I found a workaround by ...
Sajed Hamdan's user avatar
-1 votes
2 answers
40 views

Java cannot find main class despite it being specified in project settings and manifest

In Netbeans 14, I created a new project. The IDE created it with the main class automatically populated. Once built, the JAR does not run, be it in Linux or Windows. Package name: com.Myself....
BusterZo's user avatar
-1 votes
0 answers
26 views

Model and DTOs with Hibernate states

We have two architecture definitions: A Spring service Bean can only comunicate with its own repository or other services beans; A database model object cannot be exposed outside the service bean, it ...
Philippe Gioseffi's user avatar
0 votes
0 answers
37 views

IBM WebSphere deployment error - Servlet name for the servlet mapping /TestInjection could not be found

We are migrating from Java 8 to Zulu OpenJDK 17. Our application uses IBM WebSphere Application Server 9.0.0.6 and JSF 2.2. We can install the EAR file successfully on the IBM WebSphere server, but ...
Revansh2006's user avatar
-1 votes
0 answers
23 views

Spark on Java 17 gives cannot access class sun.nio.ch.DirectBuffer error [duplicate]

I am running spark on java 17. I got the following error Exception in thread "main" java.lang.IllegalAccessError: class org.apache.spark.storage.StorageUtils$ (in unnamed module @0x56620197) ...
anoop's user avatar
  • 53
-1 votes
1 answer
31 views

XmlMapper cannot read an XML content

I am trying to read XML content but it gives me the following error: Unrecognized field "Blob" (class com.example.blobstorage.dto.Blobs), not marked as ignorable (one known property: "...
ilhan's user avatar
  • 8,893
-3 votes
1 answer
68 views

Issue with Java SimpleDateFormat while converting ZONES [closed]

I had a method like public String format(long epochTimeInMS, String timeZone) { Date d = new Date(epochTimeInMS); SimpleDateFormat formatter = new SimpleDateFormat("HH:mm z"); ...
robin's user avatar
  • 1,925
0 votes
0 answers
24 views

Spring Batch 5 and JDK17 Job Execution Context Dao Deserialize Error

While upgrading the SpringBatch to version 5 (with JDK17) the batch job runs are failing with deserialize error from the second execution onwards. We are using a custom serializer using XStream (1.4....
Balu R's user avatar
  • 87

15 30 50 per page
1
2 3 4 5
84