Java Plugin Will Not Execute - NullPointerException in PluginClassLoader (Doc ID 1379562.1)

Last updated on SEPTEMBER 14, 2016

Applies to:

Oracle Internet Directory - Version 11.1.1.5.0 and later
Information in this document applies to any platform.
***Checked for relevance on 12-Dec-2013***

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:192.168.137.10 ConnDN:cn=orcladmin
INFO : gslfmrADoModRdn * dn (cn=newuser001, cn=Users,dc=ptl,dc=oracle,dc=com) newrdn (cn=olduser001) deloldrdn (0)
2011-11-22T12:39:21 * gslfmrADoModRdn: conn=158 op=1 MODRDN dn="cn=newuser001, cn=Users,dc=ptl,dc=oracle,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: sso10143im11g.vm.oracle.com] [pid: 8296] [tid: 9] [ecid: 004g^ZVNvrp7i4YFLrbQ8A00021c00002P,0] ServerWorker (REG):[[
BEGIN
ConnID:158 mesgID:2 OpID:1 OpName:modrdn ConnIP:::ffff:192.168.137.10 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

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms