VinothCM
Contributor
Contributor

VIM25.jar Support Java17

Greetings Team,

                        We are migrating our application from Java11 to Java17 and for virtualization I am using vim25.jar which is internally using axis-1.4.1 jar and is throwing below exception:

 

Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider java.base/java.lang.Class.getDeclaredConstructors0(Native Method) java.base/java.lang.Class.privateGetDeclaredConstructors(Unknown Source) java.base/java.lang.Class.getConstructor0(Unknown Source) java.base/java.lang.Class.getConstructor(Unknown Source) org.apache.commons.discovery.tools.ClassUtils.newInstance(ClassUtils.java:159) org.apache.axis.AxisProperties$1.run(AxisProperties.java:181) java.base/java.security.AccessController.doPrivileged(Unknown Source) org.apache.axis.AxisProperties.newInstance(AxisProperties.java:164) org.apache.axis.components.net.SocketFactoryFactory.getFactory(SocketFactoryFactory.java:76) org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:186) org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:403) org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:137) org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) org.apache.axis.client.Call.invokeEngine(Call.java:2782) org.apache.axis.client.Call.invoke(Call.java:2765) org.apache.axis.client.Call.invoke(Call.java:2443) org.apache.axis.client.Call.invoke(Call.java:2366) org.apache.axis.client.Call.invoke(Call.java:1812) com.vmware.vim25.VimBindingStub.retrieveServiceContent(VimBindingStub.java:55605)  

 


Root cause: com/sun/net/ssl/internal/ssl/Provider support is removed in Java17 and I need alternative for this provider specifically for Java17.

 

Is there any latest vim or any other vmware api jar available which is compatible with Java17?

 

I would appreciate your quick response!


Thank You.

Vinoth

Reply
0 Kudos
doskiran
Enthusiast
Enthusiast

Hi @VinothCM ,

Which version of SDK(vSphere Management SDK) you are using? Also, share the steps followed to reproduce this issue?

Because vim25.jar is generated from 1.8 java, and it should work with the LTS version of Java. (8/11/17).



- Kiran

Reply
0 Kudos