incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Capriolo <edlinuxg...@gmail.com>
Subject Re: Does Cassandra support IBM JDK?
Date Sat, 09 Feb 2013 15:13:45 GMT
At this point I think the project should just officially state which
major and minor versions they develop and test with.

If we are using 'unsafe' all over the place it is not a surprise that
c* is not working on most JVMs.
org.apache.cassandra.utils.FastByteComparisons$LexicographicalComparerHolder$UnsafeComparer.compareTo(FastByteComparisons.java:223)

Also the init scripts shouldjust blow up and say "C* uses unsafe
functions likely not to work outside of JVM X version Y.

On Sat, Feb 9, 2013 at 7:07 AM, Deependra Ariyadewa <deependra@gmail.com> wrote:
> Cassandra latest version ( 1.2.1) has the same issue when it runs on IBM
> JDK.
>
>
> NULL
> 1XMTHDINFO     All Thread Details
> NULL           ------------------
> NULL
> 2XMFULLTHDDUMP Full thread dump J9 VM (J2RE 6.0 IBM J9 2.4 Linux amd64-64
> build jvmxa6460sr5-20090519_3574320090519_035743_LHdSMr, native threads):
> 3XMTHREADINFO      "main" TID:0x00007F708402F600,
> j9thread_t:0x00007F7084006E10, state:R, prio=5
> 3XMTHREADINFO1            (native thread ID:0x5040, native priority:0x5,
> native policy:UNKNOWN)
> 4XESTACKTRACE          at
> org/apache/cassandra/utils/FastByteComparisons$LexicographicalComparerHolder$UnsafeComparer.compareTo(FastByteComparisons.java:177)
> 4XESTACKTRACE          at
> org/apache/cassandra/utils/FastByteComparisons$LexicographicalComparerHolder$UnsafeComparer.compareTo(FastByteComparisons.java:110)
> 4XESTACKTRACE          at
> org/apache/cassandra/utils/FastByteComparisons.compareTo(FastByteComparisons.java:41)
> 4XESTACKTRACE          a
>
>
> On Sat, Feb 9, 2013 at 3:03 PM, Kasun Weranga <kasunw@wso2.com> wrote:
>>
>> Hi all,
>>
>> I tested Cassandra 1.1.3 version on IBM JDK 1.6 in Linux. But I got
>> following issue when inserting data to Cassandra.
>>
>> This is the exception
>>
>>  ERROR {org.apache.cassandra.thrift.CustomTThreadPoolServer} -  Error
>> occurred during processing of message.
>> java.lang.NullPointerException
>> at
>> org.apache.cassandra.utils.FastByteComparisons$LexicographicalComparerHolder$UnsafeComparer.compareTo(FastByteComparisons.java:223)
>> at
>> org.apache.cassandra.utils.FastByteComparisons$LexicographicalComparerHolder$UnsafeComparer.compareTo(FastByteComparisons.java:110)
>> at
>> org.apache.cassandra.utils.FastByteComparisons.compareTo(FastByteComparisons.java:41)
>> at
>> org.apache.cassandra.utils.FBUtilities.compareUnsigned(FBUtilities.java:184)
>> at
>> org.apache.cassandra.utils.ByteBufferUtil.compareUnsigned(ByteBufferUtil.java:82)
>> at
>> org.apache.cassandra.db.marshal.BytesType.bytesCompare(BytesType.java:58)
>> at org.apache.cassandra.db.marshal.BytesType.compare(BytesType.java:48)
>> at org.apache.cassandra.db.marshal.BytesType.compare(BytesType.java:30)
>> at java.util.TreeMap.cmp(TreeMap.java:4467)
>> at java.util.TreeMap.putImpl(TreeMap.java:4509)
>> at java.util.TreeMap.put(TreeMap.java:4489)
>> at
>> org.apache.cassandra.db.TreeMapBackedSortedColumns.addColumn(TreeMapBackedSortedColumns.java:95)
>> at
>> org.apache.cassandra.db.AbstractColumnContainer.addColumn(AbstractColumnContainer.java:109)
>> at
>> org.apache.cassandra.db.AbstractColumnContainer.addColumn(AbstractColumnContainer.java:104)
>> at org.apache.cassandra.db.ColumnFamily.addColumn(ColumnFamily.java:214)
>> at org.apache.cassandra.db.ColumnFamily.addColumn(ColumnFamily.java:175)
>> at org.apache.cassandra.db.RowMutation.add(RowMutation.java:218)
>> at
>> org.apache.cassandra.db.RowMutation.addColumnOrSuperColumn(RowMutation.java:360)
>> at
>> org.apache.cassandra.thrift.CassandraServer.internal_batch_mutate(CassandraServer.java:572)
>> at
>> org.apache.cassandra.thrift.CassandraServer.batch_mutate(CassandraServer.java:590)
>> at
>> org.apache.cassandra.thrift.Cassandra$Processor$batch_mutate.getResult(Cassandra.java:3176)
>> at
>> org.apache.cassandra.thrift.Cassandra$Processor$batch_mutate.getResult(Cassandra.java:3164)
>> at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
>> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
>> at
>> org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:186)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> at java.lang.Thread.run(Thread.java:735)
>>
>> In the documentation it says Cassandra supports IBM JDK. But it seems not.
>> Is there any workaround for this issue?
>>
>> Thanks,
>> Kasun.
>
>
>
>
> --
> voice box : +17076763337
>
> http://www.myperl.org
> http://risenfall.wordpress.com/
>
>  --  ubuntu - The Choice of a New Generation --

Mime
View raw message