Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-1718

ScalaPrimeExample fails with "Not enough data to read the value" error when it's running with portableMarshaller

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.0.final
    • 1.5.0.final
    • general
    • None
    • Ubuntu 14.04, community 1.5.0 build #319

    Description

      ---------------------------------------------
      DESCRIPTION
      ---------------------------------------------
      When default optimizedMarshaller is changed into portableMarshaller in example-ignite.xml then ScalarPrimeExample doesn't start with exception "Not enough data to read the value"
      ---------------------------------------------
      STEPS FOR REPRODUCE
      ---------------------------------------------
      1. Build examples project in IDE
      2.In the example-ignite.xml change property from:

      <property name="marshaller">
                  <bean class="org.apache.ignite.marshaller.optimized.OptimizedMarshaller"> -->
                      <!-- Set to false to allow non-serializable objects in examples, default is true. -->
                      <!-- <property name="requireSerializable" value="false"/>
                  </bean>
              </property>
      

      to

      <property name="marshaller">
                  <bean class=" org.apache.ignite.internal.portable.api.PortableMarshaller"/>
              </property>
      

      3. Run ExampleNodeStartup
      4. Run ScalarPrimeExample
      ---------------------------------------------
      ACTUAL RESULT
      ---------------------------------------------
      Example is failed with exception:

      Exception in thread "ignite-#21%sys-null%" class org.apache.ignite.internal.portable.api.PortableException: Not enough data to read the value [position=18, requiredBytes=1, remainingBytes=0]
      	at org.apache.ignite.internal.portable.streams.PortableAbstractInputStream.ensureEnoughData(PortableAbstractInputStream.java:288)
      	at org.apache.ignite.internal.portable.streams.PortableAbstractInputStream.readByte(PortableAbstractInputStream.java:32)
      	at org.apache.ignite.internal.portable.PortableReaderExImpl.doReadByte(PortableReaderExImpl.java:1895)
      	at org.apache.ignite.internal.portable.PortableReaderExImpl.doReadClass(PortableReaderExImpl.java:2986)
      	at org.apache.ignite.internal.portable.PortableReaderExImpl.readObjectTypeId(PortableReaderExImpl.java:211)
      	at org.apache.ignite.internal.portable.PortableReaderExImpl.deserialize(PortableReaderExImpl.java:2142)
      	at org.apache.ignite.internal.portable.GridPortableMarshaller.deserialize(GridPortableMarshaller.java:274)
      	at org.apache.ignite.internal.portable.api.PortableMarshaller.unmarshal(PortableMarshaller.java:328)
      	at org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:762)
      	at org.apache.ignite.internal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:995)
      	at org.apache.ignite.internal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1219)
      	at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:811)
      	at org.apache.ignite.internal.managers.communication.GridIoManager.access$1500(GridIoManager.java:106)
      	at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:774)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
      	at java.lang.Thread.run(Thread.java:809)
      

      ---------------------------------------------
      EXPECTED RESULT
      ---------------------------------------------
      Example is passed without any exceptions

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vsidorova Vasilisa Sidorova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: