Hexagon Geospatial
MENU

ERDAS APOLLO Q&A

ERDAS APOLLO provides comprehensive data management and delivery which includes organizing geospatial and business data into a centralized library with cloud or on-premise distribution options.
Showing results for 
Search instead for 
Do you mean 

ApolloCatalogWMS error "java.io.InvalidClassException"

by Technical Evangelist on ‎09-03-2019 11:51 AM (42 Views)

Sometimes when user add image as WMS in data manager, there is no rendering. Also services are empty, not populated (see the following screen copy)

DataManagerServices.PNG

User may also notice a lot of java errors in Tomcat server log: 

 

2019-08-30 00:59:59,751 ERROR (quartzSchedulerFactory_Worker-1)[net.sf.ehcache.distribution.RMISynchronousCacheReplicator] Exception on replication of putNotification. RemoteException occurred in server thread; nested exception is: 
	java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
	java.io.InvalidClassException: net.sf.ehcache.Element; local class incompatible: stream classdesc serialVersionUID = 1098572221246444544, local class serialVersionUID = 3343087714201120157. Continuing...
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
	java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
	java.io.InvalidClassException: net.sf.ehcache.Element; local class incompatible: stream classdesc serialVersionUID = 1098572221246444544, local class serialVersionUID = 3343087714201120157
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:353)
	at sun.rmi.transport.Transport$1.run(Transport.java:177)
	at sun.rmi.transport.Transport$1.run(Transport.java:174)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:283)
	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:260)
	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
	at net.sf.ehcache.distribution.RMICachePeer_Stub.put(Unknown Source)
	at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.replicatePutNotification(RMISynchronousCacheReplicator.java:149)
	at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.notifyElementPut(RMISynchronousCacheReplicator.java:132)
	at net.sf.ehcache.event.RegisteredEventListeners.notifyElementPut(RegisteredEventListeners.java:100)
	at net.sf.ehcache.Cache.notifyPutInternalListeners(Cache.java:1446)
	at net.sf.ehcache.Cache.putInternal(Cache.java:1438)
	at net.sf.ehcache.Cache.put(Cache.java:1367)
	at net.sf.ehcache.Cache.put(Cache.java:1339)
	at com.erdas.apollo.job.JobKeyContainer.add(JobKeyContainer.java:49)
	at com.erdas.apollo.job.JobSchedulerBean$GlobalJobListenerSupport.jobToBeExecuted(JobSchedulerBean.java:644)
	at org.quartz.core.QuartzScheduler.notifyJobListenersToBeExecuted(QuartzScheduler.java:1945)
	at org.quartz.core.JobRunShell.notifyListenersBeginning(JobRunShell.java:324)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:173)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
	java.io.InvalidClassException: net.sf.ehcache.Element; local class incompatible: stream classdesc serialVersionUID = 1098572221246444544, local class serialVersionUID = 3343087714201120157
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:310)
	at sun.rmi.transport.Transport$1.run(Transport.java:177)
	at sun.rmi.transport.Transport$1.run(Transport.java:174)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
Caused by: java.io.InvalidClassException: net.sf.ehcache.Element; local class incompatible: stream classdesc serialVersionUID = 1098572221246444544, local class serialVersionUID = 3343087714201120157
	at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617)
	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
	at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:325)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:307)
	... 10 more

 

The solution will be delete existing ApolloCatalogwms, and run configuration wizard to recreate them. 
[1]Go to http://apolloserver/AdminConsole, delete existing Apollocatalogwms, apollocatalogwmspublic 
[2]backup and delete C:\Program Files\Hexagon\ERDAS APOLLO\configwizard\log.txt 
[3]run configuration wizard 
[4]See if issue remains. 
Check C:\Program Files\Hexagon\ERDAS APOLLO\configwizard\log.txt for any errors.

 

Contributors