Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.IllegalArgumentException: Unsupported key or value:

snidely_whiplashFeb 9 2009 — edited Jul 10 2010
Why was I getting this exception? I did a destroy and it started working afterwards but it seems like it should have worked to begin with, no?

Map (Replicated!ficve): map four

Member(Id=4, Timestamp=2009-02-09 10:20:54.942, Address=192.168.10.167:8091, MachineId=25255, Location=machine:box2,process:4348, Role=CoherenceConsole)
SafeCacheService: ReplicatedCache{Name=ReplicatedCache, State=(SERVICE_STARTED), Id=2, Version=3.0, OldestMemberId=1}

Map (Replicated!four): put c charlie
2009-02-09 10:27:22.215/388.015 Oracle Coherence GE 3.4.1/407 <Error> (thread=ReplicatedCache, member=4): Terminating ReplicatedCache due to unhandled exception: java.lang.IllegalArgumentException
2009-02-09 10:27:22.215/388.015 Oracle Coherence GE 3.4.1/407 <Error> (thread=ReplicatedCache, member=4):
java.lang.IllegalArgumentException: Unsupported key or value: Key=c, Value=charlie
at com.tangosol.net.cache.BinaryMemoryCalculator.calculateUnits(BinaryMemoryCalculator.java:43)
at com.tangosol.net.cache.OldCache$Entry.calculateUnits(OldCache.java:2052)
at com.tangosol.net.cache.OldCache$Entry.onAdd(OldCache.java:1765)
at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
at com.tangosol.net.cache.OldCache.put(OldCache.java:253)
at com.tangosol.coherence.component.util.CacheHandler.onLeaseUpdate(CacheHandler.CDB:42)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.performUpdate(ReplicatedCache.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.onLeaseUpdateRequest(ReplicatedCache.CDB:22)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache$LeaseUpdateRequest.onReceived(ReplicatedCache.CDB:5)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:130)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.onNotify(ReplicatedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:37)
at java.lang.Thread.run(Unknown Source)
null
2009-02-09 10:27:22.215/388.015 Oracle Coherence GE 3.4.1/407 <D5> (thread=ReplicatedCache, member=4): Service ReplicatedCache left the cluster

Map (Replicated!four): put d delta
2009-02-09 10:27:32.497/398.297 Oracle Coherence GE 3.4.1/407 <Info> (thread=main, member=4): Restarting NamedCache: four
2009-02-09 10:27:32.497/398.297 Oracle Coherence GE 3.4.1/407 <Info> (thread=main, member=4): Restarting Service: ReplicatedCache
2009-02-09 10:27:32.509/398.309 Oracle Coherence GE 3.4.1/407 <D5> (thread=ReplicatedCache, member=4): Service ReplicatedCache joined the cluster with senior service member 1
2009-02-09 10:27:32.514/398.314 Oracle Coherence GE 3.4.1/407 <D5> (thread=ReplicatedCache, member=4): Creating a temporary map: 4
2009-02-09 10:27:32.518/398.318 Oracle Coherence GE 3.4.1/407 <Error> (thread=ReplicatedCache, member=4): Terminating ReplicatedCache due to unhandled exception: java.lang.IllegalArgumentException
2009-02-09 10:27:32.518/398.318 Oracle Coherence GE 3.4.1/407 <Error> (thread=ReplicatedCache, member=4):
java.lang.IllegalArgumentException: Unsupported key or value: Key=d, Value=delta
at com.tangosol.net.cache.BinaryMemoryCalculator.calculateUnits(BinaryMemoryCalculator.java:43)
at com.tangosol.net.cache.OldCache$Entry.calculateUnits(OldCache.java:2052)
at com.tangosol.net.cache.OldCache$Entry.onAdd(OldCache.java:1765)
at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
at com.tangosol.net.cache.OldCache.put(OldCache.java:253)
at com.tangosol.coherence.component.util.CacheHandler.onLeaseUpdate(CacheHandler.CDB:42)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.performUpdate(ReplicatedCache.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.onLeaseUpdateRequest(ReplicatedCache.CDB:22)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache$LeaseUpdateRequest.onReceived(ReplicatedCache.CDB:5)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:130)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.onNotify(ReplicatedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:37)
at java.lang.Thread.run(Unknown Source)
null
2009-02-09 10:27:32.518/398.318 Oracle Coherence GE 3.4.1/407 <D5> (thread=ReplicatedCache, member=4): Service ReplicatedCache left the cluster

Map (Replicated!four): whoami
SafeCacheService: ReplicatedCache{Name=ReplicatedCache, State=(SERVICE_STOPPED), Id=2, Version=3.0}
2009-02-09 10:27:51.348/417.148 Oracle Coherence GE 3.4.1/407 <Info> (thread=main, member=4): Restarting Service: ReplicatedCache
2009-02-09 10:27:51.361/417.161 Oracle Coherence GE 3.4.1/407 <D5> (thread=ReplicatedCache, member=4): Service ReplicatedCache joined the cluster with senior service member 1
2009-02-09 10:27:51.365/417.165 Oracle Coherence GE 3.4.1/407 <D5> (thread=ReplicatedCache, member=4): Creating a temporary map: 4
MemberSet(Size=7, BitSetCount=2
Member(Id=1, Timestamp=2009-02-09 08:41:26.454, Address=192.168.10.167:8088, MachineId=25255, Location=machine:box2,process:1056, Role=CoherenceServer)
Member(Id=2, Timestamp=2009-02-09 08:42:15.521, Address=192.168.10.167:8089, MachineId=25255, Location=machine:box2,process:4144, Role=CoherenceServer)
Member(Id=3, Timestamp=2009-02-09 08:44:00.618, Address=192.168.10.25:8088, MachineId=25113, Location=process:4800, Role=CoherenceServer)
Member(Id=4, Timestamp=2009-02-09 10:20:54.942, Address=192.168.10.167:8091, MachineId=25255, Location=machine:box2,process:4348, Role=CoherenceConsole)
Member(Id=7, Timestamp=2009-02-09 10:02:24.738, Address=192.168.10.25:8089, MachineId=25113, Location=process:5776, Role=CoherenceConsole)
Member(Id=8, Timestamp=2009-02-09 10:08:17.321, Address=192.168.10.16:8088, MachineId=25104, Location=process:2484, Role=CoherenceServer)
Member(Id=9, Timestamp=2009-02-09 10:08:17.393, Address=192.168.10.16:8089, MachineId=25104, Location=process:888, Role=CoherenceServer)
)

Thanks,
Andrew
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2010
Added on Feb 9 2009
4 comments
3,507 views