bigdata4u / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

Spymemcached 2.8.0 not compatible with Java 1.5.x #241

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We are currently using spymemcached 2.7.3 and it is working fine with JRockit 
JVM 1.5.0_11.  When upgrading to spymemcached 2.8.0 I am getting class not 
found on:

 net/spy/memcached/DefaultConnectionFactory
 net/spy/memcached/MemcachedClient

When upgrading to Sun 1.6.0_26 the class not found goes away but the following 
error appears in Hibernate Memcached:

java.lang.NoSuchFieldError: NATIVE_HASH
        at com.googlecode.hibernate.memcached.spymemcached.SpyMemcacheClientFactory.getHashAlgorithm(SpyMemcacheClientFactory.java:125)
        at com.googlecode.hibernate.memcached.spymemcached.SpyMemcacheClientFactory.buildDefaultConnectionFactory(SpyMemcacheClientFactory.java:60)
        at com.googlecode.hibernate.memcached.spymemcached.SpyMemcacheClientFactory.getConnectionFactory(SpyMemcacheClientFactory.java:41)
        at com.googlecode.hibernate.memcached.spymemcached.SpyMemcacheClientFactory.createMemcacheClient(SpyMemcacheClientFactory.java:32)
        at com.googlecode.hibernate.memcached.MemcachedCacheProvider.start(MemcachedCacheProvider.java:153)

Original issue reported on code.google.com by lukelap...@gmail.com on 6 Mar 2012 at 7:27

GoogleCodeExporter commented 8 years ago
I'm sorry, but we have to cut with the past someday.  There are no plans to 
support Java 1.5 with spymemcached 2.8.

Are you sure this is related to the JVM version?

Original comment by ingen...@gmail.com on 6 Mar 2012 at 11:42

GoogleCodeExporter commented 8 years ago
I am pretty sure as the only change that was made was I swapped the 2.7.3 jar 
for the 2.8.0 jar

Original comment by lukelap...@gmail.com on 7 Mar 2012 at 3:12