IBM Support

Error 500: java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder accessing IBM i Access for Web

Troubleshooting


Problem

This document addresses a cause of the message "Error 500: java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder", which is received from IBM i Access for Web.

Resolving The Problem

When you connect to the IBM i OS with IBM i Access for Web, the error message "Error 500: java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder" is shown in the browser session.
It was found that the application server used for IBM i Access for Web had Java home set to /QOpenSys/QIBM/ProdData/JavaVM/jdk11/64bit (Java 11).
This setting can be found by going into IBM Web Administration (http://hostname:2001/HTTPAdmin) and follow the steps:
  1. Select "Application Servers" Tab
  2. Use the pull-down at "Server:" to select the IBM i Access for Web Application Server
  3. At the left pane, select "Properties"
  4. At the right pane, select "JRE" tab
Changing this Java home to Java 8 (/QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit) and restart of the application server resolved the problem.
The following example screen capture shows the correct parameter:
image-20230123090532-1
IBM i Access for Web does not support Java 11 and with its withdrawal from support on September 30, 2023 it will never support Java 11.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSB2FY","label":"IBM i Access Family"},"ARM Category":[{"code":"a8m0z0000000CU4AAM","label":"IBM i Access-\u003EAccess for Web"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Document Information

Modified date:
15 February 2023

UID

ibm16856967