Java Plugin Will Not Execute - NullPointerException in PluginClassLoader
(Doc ID 1379562.1)
Last updated on AUGUST 30, 2023
Applies to:
Oracle Internet Directory - Version 11.1.1.5.0 and laterInformation in this document applies to any platform.
Symptoms
When attempting to deploy and test a JAVA plugin for OID, the following error occurs in the LDAP Server log (oidldapd01sxxxx-0000.log).
Example shown is with Debug level 402653185 for a post ldapmoddn plugin called ModifyDN.jar,
BEGIN
ConnID:158 mesgID:2 OpID:1 OpName:modrdn ConnIP:::ffff:<IP_ADDRESS> ConnDN:cn=orcladmin
INFO : gslfmrADoModRdn * dn (cn=<USERNAME>, cn=Users,dc=<COMPANY>,dc=com) newrdn (cn=<OLD_USERNAME>) deloldrdn (0)
2011-11-22T12:39:21 * gslfmrADoModRdn: conn=158 op=1 MODRDN dn="cn=<NEW_USERNAME>, cn=Users,dc=<COMPANY>,dc=com"
2011-11-22T12:39:21 * SUCCESS * sgslpvm_getJvmEnv * Attach to JVM succeeded
2011-11-22T12:39:21 * ERROR * sgslpip_invokeJPlg * Exception thrown while fetching Plug-in Object
2011-11-22T12:39:21 * ERROR * sgslpex_exceptionHndlr * Exception Message :
ERROR * sgslpex_exceptionHndlr * The Exception Stack Trace :
java.lang.NullPointerException
oracle.ldap.ospf.PluginClassLoader.findClass(PluginClassLoader.java:79)
java.lang.ClassLoader.loadClass(ClassLoader.java:305)
java.lang.ClassLoader.loadClass(ClassLoader.java:246)
oracle.ldap.ospf.PluginClassReader.getServerPluginInstance(PluginClassReader.java:66)
END
]]
[2011-11-22T12:39:21+11:00] [OID] [TRACE:16] [] [OIDLDAPD] [host: <OID_HOSTNAME>] [pid: <PID>] [tid: <TID>] [ecid: <ECID>] ServerWorker (REG):[[
BEGIN
ConnID:158 mesgID:2 OpID:1 OpName:modrdn ConnIP:::ffff:<IP_ADDRESS> ConnDN:cn=orcladmin
ERROR * sgslpmd_moddnJPlugin * Error while invoking Java Plug-in ModifyDN.jar
2011-11-22T12:39:21 * ERROR * gslsbmdModifyDN * Error when executing post_moddn Java plug-in
2011-11-22T12:39:21 * INFO:gsleswrASndResult OPtime=69086 micro sec RESULT=73 tag=109 nentries=0
END
ConnID:158 mesgID:2 OpID:1 OpName:modrdn ConnIP:::ffff:<IP_ADDRESS> ConnDN:cn=orcladmin
INFO : gslfmrADoModRdn * dn (cn=<USERNAME>, cn=Users,dc=<COMPANY>,dc=com) newrdn (cn=<OLD_USERNAME>) deloldrdn (0)
2011-11-22T12:39:21 * gslfmrADoModRdn: conn=158 op=1 MODRDN dn="cn=<NEW_USERNAME>, cn=Users,dc=<COMPANY>,dc=com"
2011-11-22T12:39:21 * SUCCESS * sgslpvm_getJvmEnv * Attach to JVM succeeded
2011-11-22T12:39:21 * ERROR * sgslpip_invokeJPlg * Exception thrown while fetching Plug-in Object
2011-11-22T12:39:21 * ERROR * sgslpex_exceptionHndlr * Exception Message :
ERROR * sgslpex_exceptionHndlr * The Exception Stack Trace :
java.lang.NullPointerException
oracle.ldap.ospf.PluginClassLoader.findClass(PluginClassLoader.java:79)
java.lang.ClassLoader.loadClass(ClassLoader.java:305)
java.lang.ClassLoader.loadClass(ClassLoader.java:246)
oracle.ldap.ospf.PluginClassReader.getServerPluginInstance(PluginClassReader.java:66)
END
]]
[2011-11-22T12:39:21+11:00] [OID] [TRACE:16] [] [OIDLDAPD] [host: <OID_HOSTNAME>] [pid: <PID>] [tid: <TID>] [ecid: <ECID>] ServerWorker (REG):[[
BEGIN
ConnID:158 mesgID:2 OpID:1 OpName:modrdn ConnIP:::ffff:<IP_ADDRESS> ConnDN:cn=orcladmin
ERROR * sgslpmd_moddnJPlugin * Error while invoking Java Plug-in ModifyDN.jar
2011-11-22T12:39:21 * ERROR * gslsbmdModifyDN * Error when executing post_moddn Java plug-in
2011-11-22T12:39:21 * INFO:gsleswrASndResult OPtime=69086 micro sec RESULT=73 tag=109 nentries=0
END
Changes
The issue can be reproduced at will with the following steps:
1. Compile plugin code.
2. Add the java class to a JAR file.
3. Register the plugin in OID using the name of the JAR file.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |