Troubleshooting
Problem
ORG.APACHE.COMMONS.JSON.JSONEXCEPTION WHEN RUNNING IBM FILENET DEPLOYMENT MANAGER ON A LINUX/UNIX SYSTEM
Symptom
IBM FileNet Deployment Manager log shows the following error:
ERROR [ExportManifestConsumer] imex.LoggingStream - The export process is stopping because an exception is being thrown classId=Folder&objectId={204BA352-0000-C61A-B1FF-8C662EB1A04D}&objectStore={62BA5D1B-E189-406D-87E3-322ECA36AC89}
com.filenet.api.exception.EngineRuntimeException: FNRCE0066E: E_UNEXPECTED_EXCEPTION: An unexpected exception occurred. Message was: com.filenet.deployment.modules.EntryTemplateModule (initialization failure)
at com.filenet.imex.impl.threads.ExportManager.interruptNow(ExportManager.java:325)
at com.filenet.imex.impl.threads.ExportManifestConsumer.run(ExportManifestConsumer.java:94)
at java.security.AccessController.doPrivileged(AccessController.java:456)
at javax.security.auth.Subject.doAs(Subject.java:572)
at com.filenet.apiimpl.util.J2EEUtil.doAs(J2EEUtil.java:79)
at com.filenet.imex.impl.threads.ActionExecutor.run(ActionExecutor.java:58)
at java.lang.Thread.run(Thread.java:798)
Caused by:
java.lang.NoClassDefFoundError: com.filenet.deployment.modules.EntryTemplateModule (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:175)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:256)
at com.filenet.deployment.common.ModuleLoader.registerObjectMappers(Unknown Source)
at com.filenet.deployment.common.Executor.getModuleLoader(Unknown Source)
at com.filenet.deployment.common.ImexExportController.preWrite(Unknown Source)
at com.filenet.imex.impl.ExportContext$PerfInterceptorExportController.preWrite(ExportContext.java:701)
at com.filenet.imex.impl.ImexVisitorImpl.writeWork(ImexVisitorImpl.java:192)
at com.filenet.imex.impl.ImexVisitorImpl.write(ImexVisitorImpl.java:121)
at com.filenet.imex.impl.ObjectGraphWalker.walk(ObjectGraphWalker.java:197)
at com.filenet.imex.impl.threads.ExportManifestConsumer.consume(ExportManifestConsumer.java:112)
at com.filenet.imex.impl.threads.ExportManifestConsumer.run(ExportManifestConsumer.java:81)
... 5 more
Caused by:
java.lang.NoClassDefFoundError: org.apache.commons.json.JSONException
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:94)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:169)
at com.filenet.deployment.modules.EntryTemplateModule.<clinit>(Unknown Source)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:235)
... 16 more
Caused by:
java.lang.ClassNotFoundException: org.apache.commons.json.JSONException
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:731)
... 22 more
Cause
The MANIFEST.MF that ships with IBM Content Platform Engine 5.2.1.2 has a lower case spelling where Linux/Unix systems are case sensitive run into an issue with this.
Environment
Linux/Unix
Diagnosing The Problem
Review the FDM log for errors.
Resolving The Problem
1. Stop FDM.
2. Edit the MANIFEST.MF file ....plugins\org.apache.commons.json_1.0.0
Go from 'Bundle-ClassPath: JSON4j_Apache.jar' to 'Bundle-ClassPath: JSON4J_Apache.jar'
3. Manually delete the four folders above and run deployment manager again (without -clean).
\ContentEngine\tools\deploy\configuration\org.eclipse.core.runtime
\ContentEngine\tools\deploy\configuration\org.eclipse.equinox.app
\ContentEngine\tools\deploy\configuration\org.eclipse.osgi
\ContentEngine\tools\deploy\configuration\org.eclipse.update
An alternative solution is to install the IBM FileNet Content Platform Engine tools (FDM) on a Windows system and run it from there.
Related Information
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21987091