Open source software supply chain lighting plan, waiting for you>>>
Caused by: java.io.StreamCorruptedException: invalid stream header: 00000000
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:857) ~[?:1.8.0_144]
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:349) ~[?:1.8.0_144]
at net.sf.ehcache.util.PreferTCCLObjectInputStream.<init>(PreferTCCLObjectInputStream.java:39) ~[ehcache-core-2.5.0.jar!/:?]
at net.sf.ehcache.store.disk.DiskStorageFactory.read(DiskStorageFactory.java:375) ~[ehcache-core-2.5.0.jar!/:?]
at net.sf.ehcache.store.disk.DiskStorageFactory.retrieve(DiskStorageFactory.java:936) ~[ehcache-core-2.5.0.jar!/:?]
at net.sf.ehcache.store.disk.Segment.decode(Segment.java:167) ~[ehcache-core-2.5.0.jar!/:?]
at net.sf.ehcache.store.disk.Segment.put(Segment.java:444) ~[ehcache-core-2.5.0.jar!/:?]
at net.sf.ehcache.store.disk.DiskStore.put(DiskStore.java:475) ~[ehcache-core-2.5.0.jar!/:?]
at net.sf.ehcache.store.FrontEndCacheTier.put(FrontEndCacheTier.java:221) ~[ehcache-core-2.5.0.jar!/:?]
at net.sf.ehcache.Cache.putInternal(Cache.java:1492) ~[ehcache-core-2.5.0.jar!/:?]
at net.sf.ehcache.Cache.put(Cache.java:1417) ~[ehcache-core-2.5.0.jar!/:?]
at net.sf.ehcache.Cache.put(Cache.java:1382) ~[ehcache-core-2.5.0.jar!/:?]
at org.apache.shiro.cache.ehcache.EhCache.put(EhCache.java:102) ~[shiro-ehcache-1.2.6.jar!/:1.2.6]
... 62 more
Note: because the default configuration of ehache is persistent hard disk, and the cache repositories of the two projects are the same, an error occurs during deserialization
solution: if the cache repository is set differently or ehcache.xml is modified, set the diskpersistent of the default cache to false
Similar Posts:
- XML(xsd):Failed to read schema document [How to Solve]
- [Solved] Zookeeper reads data error: Exception in thread “main” org.I0Itec.zkclient.exception.ZkMarshallingError…
- How to Solve the login error of Spring + Shiro CacheManager
- Jenkins SVN auto release scripts always prompt for solutions that need to store passwords
- There are offline or missing virtual drivers with preserved cache
- [Solved] java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core
- You have not completed the merge: You have not concluded your merge (MERGE_HEAD exists)
- How to Solve Mysql Error 1206: The total number of locks exceeds the lock table size
- [Solved] Gitlab-runner Error: ERROR: Could not create cache adapter error=cache factory not found: factory for cache adapter “” was not registered
- Solution to the cache problem of JVM DNS