ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ognen Duzlevski <ognen.duzlev...@gmail.com>
Subject Bug in 1.2.0/1.3.4 or fix after 1.1.0?
Date Sat, 08 Aug 2015 16:10:56 GMT
Hello all,

I am trying to figure out an issue that is preventing me from upgrading
from 1.1.0. Namely, a basic SQL query that used to work in 1.1.0 is failing
in 1.2.0 and 1.3.0.

I can see the following classes deployed in the cache (via putting a fat
jar in ignite/libs):

[11:00:50,806][INFO][ignite-#19%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class com.datascience.socialnetworkpollers.Post
[11:00:50,809][INFO][ignite-#19%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class com.datascience.socialnetworkpollers.TrackedClient
[11:00:50,811][INFO][ignite-#19%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class com.datascience.socialnetworkpollers.PostAttribute
[11:00:50,825][INFO][ignite-#19%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class scala.Some
[11:00:50,828][INFO][ignite-#19%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class scala.collection.immutable.List$SerializationProxy
[11:00:50,864][INFO][ignite-#19%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class scala.collection.immutable.ListSerializeEnd$
[11:00:50,865][INFO][ignite-#19%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class org.joda.time.DateTime
[11:00:50,866][INFO][ignite-#19%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class org.joda.time.chrono.ISOChronology$Stub
[11:00:50,867][INFO][ignite-#19%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class org.joda.time.DateTimeZone$Stub
[11:00:50,896][INFO][ignite-#19%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class scala.None$
[11:00:50,915][INFO][ignite-#20%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class com.datascience.socialnetworkpollers.CountPoint
[11:00:51,067][INFO][ignite-#25%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class com.datascience.socialnetworkpollers.CommentData
[11:00:51,072][INFO][ignite-#25%sys-null%][GridDeploymentLocalStore] Class
locally deployed: class com.datascience.socialnetworkpollers.GenderData

I can see my cache get loaded with the sample data I have. When I run a
simple select query, I get the following (lengthy) stack trace. Any ideas?
The code (which I cannot post fully) runs just fine in 1.1.0 - which gives
me at least two possibilities - 1) bug is introduced or 2) bug was fixed in
1.2.0 that still exists in 1.1.0 ;)

Thanks!
Ognen

Read/wrote 1174 posts from/to file
Committed to Ignite Cache
[error] (run-main-0) javax.cache.CacheException: Failed to run reduce query
locally.
javax.cache.CacheException: Failed to run reduce query locally.
       at
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.query(GridReduceQueryExecutor.java:553)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$2.iterator(IgniteH2Indexing.java:777)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$3.iterator(IgniteH2Indexing.java:811)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.getAll(QueryCursorImpl.java:71)

       at
com.shoutlet.datascience.socialnetworkpollers.Test$.main(Test.scala:304)
       at
com.shoutlet.datascience.socialnetworkpollers.Test.main(Test.scala)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

       at java.lang.reflect.Method.invoke(Method.java:497)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
execute SQL query.
       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.executeSqlQuery(IgniteH2Indexing.java:657)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.executeSqlQueryWithTimer(IgniteH2Indexing.java:675)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.query(GridReduceQueryExecutor.java:531)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$2.iterator(IgniteH2Indexing.java:777)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$3.iterator(IgniteH2Indexing.java:811)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.getAll(QueryCursorImpl.java:71)

       at com.datascience.socialnetworkpollers.Test$.main(Test.scala:304)
       at com.datascience.socialnetworkpollers.Test.main(Test.scala)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

       at java.lang.reflect.Method.invoke(Method.java:497)
Caused by: org.h2.jdbc.JdbcSQLException: General error:
"javax.cache.CacheException: class
org.apache.ignite.IgniteCheckedException: Failed to find class with given c
lass loader for unmarshalling (make sure same version of all classes are
available on all nodes or enable peer-class-loading):
org.apache.ignite.internal.processors.c
ache.GridCacheDeploymentManager$CacheClassLoader@5f72aaed"; SQL statement:
SELECT
   __C0 _KEY,
   __C1 _VAL
FROM __Z0() [50000-175]
       at
org.h2.message.DbException.getJdbcSQLException(DbException.java:332)
       at org.h2.message.DbException.get(DbException.java:161)
       at org.h2.message.DbException.convert(DbException.java:284)
       at org.h2.command.Command.executeQuery(Command.java:208)
       at
org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:106)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.executeSqlQuery(IgniteH2Indexing.java:654)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.executeSqlQueryWithTimer(IgniteH2Indexing.java:675)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.query(GridReduceQueryExecutor.java:531)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$2.iterator(IgniteH2Indexing.java:777)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$3.iterator(IgniteH2Indexing.java:811)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.getAll(QueryCursorImpl.java:71)

       at com.datascience.socialnetworkpollers.Test$.main(Test.scala:304)
       at com.datascience.socialnetworkpollers.Test.main(Test.scala)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

       at java.lang.reflect.Method.invoke(Method.java:497)
Caused by: javax.cache.CacheException: class
org.apache.ignite.IgniteCheckedException: Failed to find class with given
class loader for unmarshalling (make sure same
version of all classes are available on all nodes or enable
peer-class-loading):
org.apache.ignite.internal.processors.cache.GridCacheDeploymentManager$CacheClassLoad
er@5f72aaed
       at
org.apache.ignite.internal.processors.query.h2.twostep.GridResultPage$1.next(GridResultPage.java:94)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridResultPage$1.next(GridResultPage.java:76)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndexUnsorted$1.next(GridMergeIndexUnsorted.java:86)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndexUnsorted$1.next(GridMergeIndexUnsorted.java:59)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndex$IteratorCursor.next(GridMergeIndex.java:283)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndex$FetchingCursor.next(GridMergeIndex.java:313)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndex$FetchingCursor.next(GridMergeIndex.java:333)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor$4.readRow(GridReduceQueryExecutor.java:926)

       at org.h2.tools.SimpleResultSet.next(SimpleResultSet.java:351)
       at
org.h2.index.FunctionCursorResultSet.next(FunctionCursorResultSet.java:60)
       at org.h2.index.IndexCursor.next(IndexCursor.java:274)
       at org.h2.table.TableFilter.next(TableFilter.java:359)
       at org.h2.command.dml.Select.queryFlat(Select.java:527)
       at org.h2.command.dml.Select.queryWithoutCache(Select.java:632)
       at org.h2.command.dml.Query.query(Query.java:297)
       at org.h2.command.dml.Query.query(Query.java:284)
       at org.h2.command.dml.Query.query(Query.java:36)
       at org.h2.command.CommandContainer.query(CommandContainer.java:91)
       at org.h2.command.Command.executeQuery(Command.java:196)
       at
org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:106)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.executeSqlQuery(IgniteH2Indexing.java:654)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.executeSqlQueryWithTimer(IgniteH2Indexing.java:675)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.query(GridReduceQueryExecutor.java:531)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$2.iterator(IgniteH2Indexing.java:777)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$3.iterator(IgniteH2Indexing.java:811)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.getAll(QueryCursorImpl.java:71)

       at com.datascience.socialnetworkpollers.Test$.main(Test.scala:304)
       at com.datascience.socialnetworkpollers.Test.main(Test.scala)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

       at java.lang.reflect.Method.invoke(Method.java:497)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to find
class with given class loader for unmarshalling (make sure same version of
all classes are a
vailable on all nodes or enable peer-class-loading):
org.apache.ignite.internal.processors.cache.GridCacheDeploymentManager$CacheClassLoader@5f72aaed
       at
org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:242)

       at
org.apache.ignite.internal.processors.cacheobject.IgniteCacheObjectProcessorImpl.unmarshal(IgniteCacheObjectProcessorImpl.java:89)

       at
org.apache.ignite.internal.processors.cache.CacheObjectImpl.finishUnmarshal(CacheObjectImpl.java:103)

       at
org.apache.ignite.internal.processors.query.h2.twostep.msg.GridH2CacheObject.value(GridH2CacheObject.java:69)

       at
org.apache.ignite.internal.processors.query.h2.twostep.msg.GridH2ValueMessageFactory.fillArray(GridH2ValueMessageFactory.java:125)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridResultPage$1.next(GridResultPage.java:91)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridResultPage$1.next(GridResultPage.java:76)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndexUnsorted$1.next(GridMergeIndexUnsorted.java:86)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndexUnsorted$1.next(GridMergeIndexUnsorted.java:59)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndex$IteratorCursor.next(GridMergeIndex.java:283)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndex$FetchingCursor.next(GridMergeIndex.java:313)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndex$FetchingCursor.next(GridMergeIndex.java:333)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor$4.readRow(GridReduceQueryExecutor.java:926)

       at org.h2.tools.SimpleResultSet.next(SimpleResultSet.java:351)
       at
org.h2.index.FunctionCursorResultSet.next(FunctionCursorResultSet.java:60)
       at org.h2.index.IndexCursor.next(IndexCursor.java:274)
       at org.h2.table.TableFilter.next(TableFilter.java:359)
       at org.h2.command.dml.Select.queryFlat(Select.java:527)
       at org.h2.command.dml.Select.queryWithoutCache(Select.java:632)
       at org.h2.command.dml.Query.query(Query.java:297)
       at org.h2.command.dml.Query.query(Query.java:284)
       at org.h2.command.dml.Query.query(Query.java:36)
       at org.h2.command.CommandContainer.query(CommandContainer.java:91)
       at org.h2.command.Command.executeQuery(Command.java:196)
       at
org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:106)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.executeSqlQuery(IgniteH2Indexing.java:654)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.executeSqlQueryWithTimer(IgniteH2Indexing.java:675)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.query(GridReduceQueryExecutor.java:531)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$2.iterator(IgniteH2Indexing.java:777)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$3.iterator(IgniteH2Indexing.java:811)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.getAll(QueryCursorImpl.java:71)

       at com.datascience.socialnetworkpollers.Test$.main(Test.scala:304)
       at com.datascience.socialnetworkpollers.Test.main(Test.scala)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

       at java.lang.reflect.Method.invoke(Method.java:497)
Caused by: java.lang.ClassNotFoundException: Failed to load class
[name=scala.Some, ctx={}]
       at
org.apache.ignite.internal.processors.cache.GridCacheDeploymentManager$CacheClassLoader.findClass(GridCacheDeploymentManager.java:830)

       at
org.apache.ignite.internal.processors.cache.GridCacheDeploymentManager$CacheClassLoader.loadClass(GridCacheDeploymentManager.java:787)

       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:7911)
       at
org.apache.ignite.internal.MarshallerContextAdapter.getClass(MarshallerContextAdapter.java:177)

       at
org.apache.ignite.marshaller.optimized.OptimizedMarshallerUtils.classDescriptor(OptimizedMarshallerUtils.java:252)

       at
org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:246)

       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
       at
org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:419)

       at
org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:507)

       at
org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:751)

       at
org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:252)

       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
       at
org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:419)

       at
org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:507)

       at
org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:751)

       at
org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:252)

       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
       at
org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:236)

       at
org.apache.ignite.internal.processors.cacheobject.IgniteCacheObjectProcessorImpl.unmarshal(IgniteCacheObjectProcessorImpl.java:89)

       at
org.apache.ignite.internal.processors.cache.CacheObjectImpl.finishUnmarshal(CacheObjectImpl.java:103)

       at
org.apache.ignite.internal.processors.query.h2.twostep.msg.GridH2CacheObject.value(GridH2CacheObject.java:69)

       at
org.apache.ignite.internal.processors.query.h2.twostep.msg.GridH2ValueMessageFactory.fillArray(GridH2ValueMessageFactory.java:125)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridResultPage$1.next(GridResultPage.java:91)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridResultPage$1.next(GridResultPage.java:76)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndexUnsorted$1.next(GridMergeIndexUnsorted.java:86)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndexUnsorted$1.next(GridMergeIndexUnsorted.java:59)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndex$IteratorCursor.next(GridMergeIndex.java:283)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndex$FetchingCursor.next(GridMergeIndex.java:313)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridMergeIndex$FetchingCursor.next(GridMergeIndex.java:333)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor$4.readRow(GridReduceQueryExecutor.java:926)

       at org.h2.tools.SimpleResultSet.next(SimpleResultSet.java:351)
       at
org.h2.index.FunctionCursorResultSet.next(FunctionCursorResultSet.java:60)
       at org.h2.index.IndexCursor.next(IndexCursor.java:274)
       at org.h2.table.TableFilter.next(TableFilter.java:359)
       at org.h2.command.dml.Select.queryFlat(Select.java:527)
       at org.h2.command.dml.Select.queryWithoutCache(Select.java:632)
       at org.h2.command.dml.Query.query(Query.java:297)
       at org.h2.command.dml.Query.query(Query.java:284)
       at org.h2.command.dml.Query.query(Query.java:36)
       at org.h2.command.CommandContainer.query(CommandContainer.java:91)
       at org.h2.command.Command.executeQuery(Command.java:196)
       at
org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:106)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.executeSqlQuery(IgniteH2Indexing.java:654)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.executeSqlQueryWithTimer(IgniteH2Indexing.java:675)

       at
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.query(GridReduceQueryExecutor.java:531)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$2.iterator(IgniteH2Indexing.java:777)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$3.iterator(IgniteH2Indexing.java:811)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:59)

       at
org.apache.ignite.internal.processors.cache.QueryCursorImpl.getAll(QueryCursorImpl.java:71)

       at com.datascience.socialnetworkpollers.Test$.main(Test.scala:304)
       at com.datascience.socialnetworkpollers.Test.main(Test.scala)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

       at java.lang.reflect.Method.invoke(Method.java:497)
[trace] Stack trace suppressed: run last compile:run for the full output.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message