Getting errors when starting Data Power

Document ID : KB000123484
Last Modified Date : 02/01/2019
Show Technical Document Details
Issue:
On starting the Data Power 4.0 agent,,seeing these errors 

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/wily/field/dpmon/DataPowerMonitor : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:648)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:272)
at java.net.URLClassLoader.access$000(URLClassLoader.java:68)
at java.net.URLClassLoader$1.run(URLClassLoader.java:207)
at java.net.URLClassLoader$1.run(URLClassLoader.java:201)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:200)
at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:296)
at java.lang.ClassLoader.loadClass(ClassLoader.java:270)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:406)

The next error was the following:
2/21/18 04:14:46 AM EST [INFO] [com.wily.field.dpmon.DataPowerMonitor] Starting Introscope Datapower Agent...
javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
        at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:991)
        at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:847)
        at com.sun.crypto.provider.PBES1Core.doFinal(PBES1Core.java:416)
        at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(PBEWithMD5AndDESCipher.java:316)
        at javax.crypto.Cipher.doFinal(Cipher.java:2164)
        at com.wily.field.dpmon.cfg.CommonEncryptionProvider.runPBECipher(CommonEncryptionProvider.java:115)
        at com.wily.field.dpmon.cfg.CommonEncryptionProvider.decryptLevel1(CommonEncryptionProvider.java:86)
        at com.wily.field.dpmon.cfg.CommonEncryptionProvider.decrypt(CommonEncryptionProvider.java:71)
        at com.wily.field.dpmon.cfg.DeviceImpl.getPassword(DeviceImpl.java:111)
        at com.wily.field.dpmon.cfg.ConfigurationImpl.postProcess(ConfigurationImpl.java:190)
        at com.wily.field.dpmon.cfg.ConfigurationImpl.postProcess(ConfigurationImpl.java:170)
        at com.wily.field.dpmon.cfg.JakartaDigesterConfigurationBuilder.build(JakartaDigesterConfigurationBuilder.java:54)
        at com.wily.field.dpmon.cfg.AbstractConfigurationBuilder.build(AbstractConfigurationBuilder.java:41)
        at com.wily.field.dpmon.DataPowerMonitor.init(DataPowerMonitor.java:173)
Environment:
APM 10.7 with Data Power 4.0
Cause:
Unsupported Java Release. No certificate on the appliance.
Resolution:
Upgrade to Java 1.8 Install a certificate on the appliance.