Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify backend-service to run on JDK 11 #403

Merged
merged 1 commit into from
Feb 13, 2023
Merged

Conversation

Shalindri
Copy link
Contributor

Purpose

Following error occurs when the Backend-service runs on Java 11.

WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/C:/Users/Lenovo/Downloads/IAM_5.10.Samples-master/IAM_5.10.Samples-master/Access_Delegation_Samples/backend-service.jar) to constructor java.nio.DirectByteBuffer(long,int)
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
at org.wso2.msf4j.internal.router.MicroserviceMetadata.lambda$new$33(MicroserviceMetadata.java:63)
at java.base/java.util.HashMap.forEach(HashMap.java:1336)
at java.base/java.util.Collections$UnmodifiableMap.forEach(Collections.java:1505)
at org.wso2.msf4j.internal.router.MicroserviceMetadata.(MicroserviceMetadata.java:61)
at org.wso2.msf4j.internal.MicroservicesRegistryImpl.updateMetadata(MicroservicesRegistryImpl.java:234)
at org.wso2.msf4j.internal.MicroservicesRegistryImpl.addService(MicroservicesRegistryImpl.java:80)
at org.wso2.msf4j.MicroservicesRunner.deploy(MicroservicesRunner.java:111)
at org.wso2.sample.identity.backend.BackendApplication.main(BackendApplication.java:116)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

Goals

Add dependencies required for JDK 11

@isuruirj
Copy link

resolves #233

@rksk rksk merged commit 5e2b3bd into wso2:master Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants