You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Konstantinov (JIRA)" <ji...@apache.org> on 2015/06/03 06:24:49 UTC

[jira] [Comment Edited] (IGNITE-471) Change marshaller interface to work with ByteBuffer instead of byte array

    [ https://issues.apache.org/jira/browse/IGNITE-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14570251#comment-14570251 ] 

Pavel Konstantinov edited comment on IGNITE-471 at 6/3/15 4:24 AM:
-------------------------------------------------------------------

Today I was repeating data replication tests and got another exception with related with portable:
{code}
class org.gridgain.grid.portables.PortableException: Object is not portable: [class=class org.apache.ignite.cache.affinity.AffinityKey]
        at org.gridgain.grid.internal.util.portable.GridPortableWriterImpl.marshal(GridPortableWriterImpl.java:147)
        at org.gridgain.grid.internal.util.portable.GridPortableWriterImpl.doWriteObject(GridPortableWriterImpl.java:427)
        at org.gridgain.grid.internal.util.portable.GridPortableWriterImpl.writeObjectField(GridPortableWriterImpl.java:885)
        at org.gridgain.grid.internal.util.portable.GridPortableClassDescriptor$FieldInfo.write(GridPortableClassDescriptor.java:888)
        at org.gridgain.grid.internal.util.portable.GridPortableClassDescriptor.write(GridPortableClassDescriptor.java:461)
        at org.gridgain.grid.internal.util.portable.GridPortableWriterImpl.marshal(GridPortableWriterImpl.java:184)
        at org.gridgain.grid.internal.util.portable.GridPortableMarshaller.marshal(GridPortableMarshaller.java:197)
        at org.gridgain.grid.internal.processors.portable.GridCacheObjectProcessor.marshalToPortable(GridCacheObjectProcessor.java:448)
        at org.gridgain.grid.internal.processors.portable.GridCacheObjectProcessor.toPortable(GridCacheObjectProcessor.java:758)
        at org.gridgain.grid.internal.processors.portable.GridCacheObjectProcessor.toCacheObject(GridCacheObjectProcessor.java:705)
        at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.addData(DataStreamerImpl.java:491)
        at org.gridgain.visor.tester.VisorTesterLauncher$$anonfun$populateCityDS$1.apply(VisorTesterLauncher.scala:499)
        at org.gridgain.visor.tester.VisorTesterLauncher$$anonfun$populateCityDS$1.apply(VisorTesterLauncher.scala:493)
        at scala.collection.immutable.Range.foreach(Range.scala:160)
        at org.gridgain.visor.tester.VisorTesterLauncher$.populateCityDS(VisorTesterLauncher.scala:493)
        at org.gridgain.visor.tester.VisorTesterLauncher$.org$gridgain$visor$tester$VisorTesterLauncher$$populateCache1(VisorTesterLauncher.scala:749)
        at org.gridgain.visor.tester.VisorTesterLauncher$$anonfun$populateCache$2$$anon$3.run(VisorTesterLauncher.scala:815)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        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:745)
{code}


was (Author: pkonstantinov):
Today I repeated data replication tests and got another exception with related with portable:
{code}
class org.gridgain.grid.portables.PortableException: Object is not portable: [class=class org.apache.ignite.cache.affinity.AffinityKey]
        at org.gridgain.grid.internal.util.portable.GridPortableWriterImpl.marshal(GridPortableWriterImpl.java:147)
        at org.gridgain.grid.internal.util.portable.GridPortableWriterImpl.doWriteObject(GridPortableWriterImpl.java:427)
        at org.gridgain.grid.internal.util.portable.GridPortableWriterImpl.writeObjectField(GridPortableWriterImpl.java:885)
        at org.gridgain.grid.internal.util.portable.GridPortableClassDescriptor$FieldInfo.write(GridPortableClassDescriptor.java:888)
        at org.gridgain.grid.internal.util.portable.GridPortableClassDescriptor.write(GridPortableClassDescriptor.java:461)
        at org.gridgain.grid.internal.util.portable.GridPortableWriterImpl.marshal(GridPortableWriterImpl.java:184)
        at org.gridgain.grid.internal.util.portable.GridPortableMarshaller.marshal(GridPortableMarshaller.java:197)
        at org.gridgain.grid.internal.processors.portable.GridCacheObjectProcessor.marshalToPortable(GridCacheObjectProcessor.java:448)
        at org.gridgain.grid.internal.processors.portable.GridCacheObjectProcessor.toPortable(GridCacheObjectProcessor.java:758)
        at org.gridgain.grid.internal.processors.portable.GridCacheObjectProcessor.toCacheObject(GridCacheObjectProcessor.java:705)
        at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.addData(DataStreamerImpl.java:491)
        at org.gridgain.visor.tester.VisorTesterLauncher$$anonfun$populateCityDS$1.apply(VisorTesterLauncher.scala:499)
        at org.gridgain.visor.tester.VisorTesterLauncher$$anonfun$populateCityDS$1.apply(VisorTesterLauncher.scala:493)
        at scala.collection.immutable.Range.foreach(Range.scala:160)
        at org.gridgain.visor.tester.VisorTesterLauncher$.populateCityDS(VisorTesterLauncher.scala:493)
        at org.gridgain.visor.tester.VisorTesterLauncher$.org$gridgain$visor$tester$VisorTesterLauncher$$populateCache1(VisorTesterLauncher.scala:749)
        at org.gridgain.visor.tester.VisorTesterLauncher$$anonfun$populateCache$2$$anon$3.run(VisorTesterLauncher.scala:815)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        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:745)
{code}

> Change marshaller interface to work with ByteBuffer instead of byte array
> -------------------------------------------------------------------------
>
>                 Key: IGNITE-471
>                 URL: https://issues.apache.org/jira/browse/IGNITE-471
>             Project: Ignite
>          Issue Type: Task
>          Components: general
>    Affects Versions: sprint-2
>            Reporter: Valentin Kulichenko
>            Assignee: Denis Magda
>            Priority: Blocker
>             Fix For: sprint-5
>
>         Attachments: tester.rar
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)