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

ScalaCacheQuery fails with jdkMarshaller in the mixed cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.5.0.final
    • 1.5.0.final
    • general
    • None
    • Apache Ignite 1.5.0 build #40

    Description

      ---------------------------------------------
      STEPS FOR REPRODUCE
      ---------------------------------------------

      1. Build examples project in IDE (oracle-java7)
      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.marshaller.jdk.JdkMarshaller"/>
                </property>
        
      3. Run ExampleNodeStartup under alternative jdk ibm-java7
      4. Run ScalaCacheQueryExample (oracle-java7)
        ---------------------------------------------
        ACTUAL RESULT
        ---------------------------------------------
        Example is failed with exception:
        [17:34:48,979][ERROR][tcp-disco-msg-worker-#2%null][TcpDiscoverySpi] Failed to unmarshal discovery custom message.
        class org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading): sun.misc.Launcher$AppClassLoader@76ed5528
        	at org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:108)
        	at org.apache.ignite.marshaller.AbstractMarshaller.unmarshal(AbstractMarshaller.java:68)
        	at org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryCustomEventMessage.message(TcpDiscoveryCustomEventMessage.java:78)
        	at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processCustomMessage(ServerImpl.java:4257)
        	at org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2125)
        	at org.apache.ignite.spi.discovery.tcp.ServerImpl$MessageWorkerAdapter.body(ServerImpl.java:5382)
        	at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
        Caused by: java.lang.ClassNotFoundException: org.apache.ignite.scalar.examples.Organization
        	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        	at java.lang.Class.forName0(Native Method)
        	at java.lang.Class.forName(Class.java:348)
        	at org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8137)
        	at org.apache.ignite.marshaller.jdk.JdkMarshallerObjectInputStream.resolveClass(JdkMarshallerObjectInputStream.java:54)
        	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613)
        	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
        	at java.io.ObjectInputStream.readClass(ObjectInputStream.java:1484)
        	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1334)
        	at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1707)
        	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1345)
        	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
        	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
        	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
        	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
        	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
        	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
        	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
        	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
        	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
        	at java.util.ArrayList.readObject(ArrayList.java:791)
        	at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:497)
        	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
        	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1900)
        	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
        	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
        	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
        	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
        	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
        	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
        	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
        	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
        	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
        	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
        	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
        	at org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:102)
        	... 6 more
        

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

      5. Isn't reproducible for simple oracle-java7 cluster
      6. Reproducible for another mixed cluster: oracle-java8 + oracle-java7

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: