Spectrum OneClick is not showing any alarms and the events are showing: Error formatting event java.lang.NullPointerException

Document ID : KB000117712
Last Modified Date : 17/10/2018
Show Technical Document Details
Issue:
After bringing up the OneClick client the customer is not seeing any alarms and when clicking on the events they are seeing the following message: Error formatting event java.lang.NullPointerException The following exception can be seen in the catalina.out file or stdout.log file: 
 
java.lang.IllegalArgumentException: com.aprisma.spectrum.app.jecds.cache.DirectoryFileCache.DIRECTORY_NOT_EXIST:$SPECROOT/custom/Events/CsEvFormat/EventTables
	at com.aprisma.spectrum.app.jecds.cache.DirectoryFileCache.setFilePathList(DirectoryFileCache.java:142)
	at com.aprisma.spectrum.app.jecds.cache.DirectoryFileCache.<init>(DirectoryFileCache.java:47)
	at com.aprisma.spectrum.app.jecds.event.EventEnumManager.<init>(EventEnumManager.java:59)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.aprisma.spectrum.app.util.context.ContextFactory.constructContextObject(ContextFactory.java:396)
	at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:159)
	at com.aprisma.spectrum.app.jecds.event.LocalEventEnumHelper.<init>(LocalEventEnumHelper.java:54)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.aprisma.spectrum.app.util.context.ContextFactory.constructContextObject(ContextFactory.java:396)
	at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:159)
	at com.aprisma.spectrum.app.jecds.client.EventFormatHelper.start(EventFormatHelper.java:248)
	at com.aprisma.spectrum.app.util.context.ContextFactory.threadSafeStartContextObject(ContextFactory.java:260)
	at com.aprisma.spectrum.app.util.context.ContextFactory.getContextObject(ContextFactory.java:164)
	at com.aprisma.spectrum.app.ec.web.ECConfigBackEnd.start(ECConfigBackEnd.java:113)
	at com.aprisma.spectrum.app.ec.web.ECServlet.init(ECServlet.java:69)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1269)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1182)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1072)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5362)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5660)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1015)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:991)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1296)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2038)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Environment:
CA Spectrum 10.2.X
Cause:
The permissions on the $SPECROOT/custom/Events/CsEvFormat directory on the SPECTRUM OneClick server was set to read/write for owner and read for the group( rw- r). 
Resolution:
Change the permissions on the $SPECROOT/custom/Events/CsEvFormat directory on the SPECTRUM OneClick server to read/write/execute for the owner and read for the group and restarted the tomcat server