java.lang.IllegalArgumentException: Not serializable: class com.x.y.ext.JSONMapSerializer$2

Google Groups | Aaron Weber | 10 months ago
  1. 0

    custom serializer issue

    Google Groups | 10 months ago | Aaron Weber
    java.lang.IllegalArgumentException: Not serializable: class com.x.y.ext.JSONMapSerializer$2
  2. 0

    ClientListener error : IllegalArgumentException

    GitHub | 3 years ago | Sharath-24
    java.lang.IllegalArgumentException: com.hazelcast.impl.ClientEndpoint is not Serializable.
  3. 0

    Consuming data from Kafka queue using Storm Toplology

    Stack Overflow | 12 months ago | SriniReddy M
    java.lang.IllegalStateException: Couldn't initialize the topology
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h3. Problem When upgrading a Confluence cluster, the cache file in the home directory is not modified at all: <confluence_home>/config/confluence-coherence-cache-config-clustered.xml. This is a problem because page diffs will fail after the upgrade to 3.5.x or 4.1.x. Another related consequence is that notifications on page edits will not be sent to watchers, since the page diff cannot be generated. h3. More details A vanilla install of 3.5.x cluster cache configs shows the following: {code} <cache-mapping> <cache-name>com.atlassian.confluence.diffs</cache-name> <scheme-name>local:default</scheme-name> </cache-mapping> {code} However, users who upgrade from 3.4.x or below to 3.5.x will not have this in their confluence-coherence-cache-config-clustered.xml, thus encountering the stacktrace described in CONF-22548 when trying to do a page diff. Additional to that, a vanilla Confluence 4.1.x cluster has the following: {code} <cache-mapping> <cache-name>com.atlassian.confluence.html.diffs</cache-name> <scheme-name>local:default</scheme-name> </cache-mapping> {code} Again, because this would be missing in an upgraded 4.1.x cluster, page diffs will fail with a similar stacktrace: {code} 2012-06-11 10:12:42,996 ERROR [http-8080-9] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action -- url: /wiki/pages/diffpages.action | userName: us340392 | referer: http://example.com/wiki/display/DS/Home java.lang.IllegalArgumentException: Resource is not serializable: Key=com.atlassian.confluence.diff.DiffKey@459b8c14, Value=com.atlassian.util.concurrent.SettableFuture@c90883e at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.updateResource(ReplicatedCache.CDB:7) at com.tangosol.coherence.component.util.CacheHandler.put(CacheHandler.CDB:11) at com.tangosol.coherence.component.util.CacheHandler.put(CacheHandler.CDB:1) at com.tangosol.coherence.component.util.SafeNamedCache.put(SafeNamedCache.CDB:1) at com.atlassian.confluence.cache.tangosol.TangosolCache.put(TangosolCache.java:41) at com.atlassian.confluence.diff.DaisyHtmlDiffer.createOrGetFutureDiff(DaisyHtmlDiffer.java:137) at com.atlassian.confluence.diff.DaisyHtmlDiffer.diff(DaisyHtmlDiffer.java:95) at com.atlassian.confluence.diff.WikiConvertingHtmlDiffer.diff(WikiConvertingHtmlDiffer.java:31) at com.atlassian.confluence.pages.actions.AbstractDiffPagesAction.execute(AbstractDiffPagesAction.java:83) {code} h3. Workaround For customers that upgraded to 3.5.x, add the following to your <confluence_home>/config/confluence-coherence-cache-config-clustered.xml, inside the <caching-scheme-mapping> tags: {code} <cache-mapping> <cache-name>com.atlassian.confluence.diffs</cache-name> <scheme-name>local:default</scheme-name> </cache-mapping> {code} For customers that upgraded to 4.1.x or higher, you will need to add the following, inside the <caching-scheme-mapping> tags: {code} <cache-mapping> <cache-name>com.atlassian.confluence.diffs</cache-name> <scheme-name>local:default</scheme-name> </cache-mapping> <cache-mapping> <cache-name>com.atlassian.confluence.html.diffs</cache-name> <scheme-name>local:default</scheme-name> </cache-mapping> {code} In both cases, all nodes of the cluster should be restarted after making the changes.

    Atlassian JIRA | 4 years ago | Robert Chang [Atlassian]
    java.lang.IllegalArgumentException: Resource is not serializable: Key=com.atlassian.confluence.diff.DiffKey@459b8c14, Value=com.atlassian.util.concurrent.SettableFuture@c90883e
  6. 0

    Java.lang.ClassNotFoundException: scala.reflect.ManifestFactory$$anon$2.class

    Stack Overflow | 5 months ago | Pan Dazhao
    com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: Class is not registered: scala.reflect.ManifestFactory$$anon$2 Note: To register this class use: kryo.register(scala.reflect.ManifestFactory$$anon$2.class); Serialization trace: evidence$1 (org.apache.spark.util.collection.CompactBuffer)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Not serializable: class com.x.y.ext.JSONMapSerializer$2

      at org.mapdb.SerializerBase.assertSerializable()
    2. mapdb
      DB$HTreeMapMaker.makeOrGet
      1. org.mapdb.SerializerBase.assertSerializable(SerializerBase.java:1482)
      2. org.mapdb.DB.createHashMap(DB.java:415)
      3. org.mapdb.DB$HTreeMapMaker.make(DB.java:216)
      4. org.mapdb.DB$HTreeMapMaker.makeOrGet(DB.java:222)
      4 frames