GMU Error - java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder
search cancel

GMU Error - java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder

book

Article ID: 242442

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

We get below error when we try to run the GMU locally from a Gateway.

 

bash-4.2$ ./GatewayMigrationUtility.sh browse -z Some.properties
Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder
        at com.ca.gateway.rest.commandline.command.d.d(Unknown Source)
        at com.ca.gateway.rest.commandline.command.d.a(Unknown Source)
        at com.ca.gateway.rest.commandline.command.GatewayCommand.getPassword(Unknown Source)
        at com.ca.gateway.rest.commandline.command.GatewayCommand.setClientConfig(Unknown Source)
        at com.ca.gateway.rest.commandline.command.GatewayCommand.init(Unknown Source)
        at com.ca.gateway.rest.commandline.command.BrowseCommand.init(Unknown Source)
        at com.ca.gateway.rest.commandline.command.Command.init(Unknown Source)
        at com.ca.gateway.rest.commandline.Main.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Decoder
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        ... 8 more

 

Environment

Release : 10.1

Component :

Resolution

Utilize the 10.1 equivalent GMU 1.8 which should be compliant with JDK11.

The mentioned class sun/misc/BASE64Decoder was removed in jdk 9+ which is utilized in gmu 1.7 and below. So you need to ensure version currency with the GMU tool running the equivalent version to the JDK and Gateway you are running with.