[concurrency-interest] Java 6 support in backport-concurrent

Greg Luck gluck at gregluck.com
Tue Aug 14 00:29:00 EDT 2007


Dhanji

Ehcache uses backport-concurrent. The package names are backport  
concurrent. I could change to JDK 1.5 j.u.c  by not using backport- 
concurrent but then lose JDK1.4 support.


On 14/08/2007, at 2:26 PM, Dhanji R. Prasanna wrote:

> It's obviously not a version mismatch bug (6 can play 5 bins), but  
> still a bytecode verification error (some kind of corruption...).
> Is there a reason this person can't use the j.u.c packages within  
> the core SDK ( i.e. shipped with java 6)?
>
> Just curious--sorry if it's not a real soln =)
>
> Dhanji.
>
> On 8/14/07, Greg Luck < gluck at gregluck.com> wrote:
> Guys
>
> I have an issue reported where someone is trying to use ehcache with
> Java 6 and backport-concurrent is throwing a VerifyError.
>
> I checked the doco and there is no mention of Java 6 support. Is it
> coming?
>
> This is the result of using a clustered config, Java 6 and backport  
> for
> Java 5:
>
> Caused by: java.lang.VerifyError: class
> edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicInteger
> overrides final method lazySet.(I)V
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
> 124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$000 (URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at
> edu.emory.mathcs.backport.java.util.concurrent.Executors
> $DefaultThreadFacto
> ry.<clinit>(Executors.java:528)
> at
> edu.emory.mathcs.backport.java.util.concurrent.Executors.defaultThread 
> Fa
> cto
> ry(Executors.java:288)
> at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor .<in 
> it>
> (Th
> readPoolExecutor.java:1042)
> at
> edu.emory.mathcs.backport.java.util.concurrent.Executors.newCachedThre 
> ad
> Poo
> l(Executors.java:150)
> at
> net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver.init
> (Multic
> astKeepaliveHeartbeatReceiver.java:81)
> at
> net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init
> (Multi
> castRMICacheManagerPeerProvider.java:89)
> at net.sf.ehcache.CacheManager.init (CacheManager.java:221)
> at net.sf.ehcache.CacheManager.<init>(CacheManager.java:179)
>
> Regards
>
> Greg Luck
>
> web: http://gregluck.com
> skype: gregrluck
> yahoo: gregrluck
> mobile: +61 408 061 622
>
>
>
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest
>

Regards

Greg Luck

web: http://gregluck.com
skype: gregrluck
yahoo: gregrluck
mobile: +61 408 061 622



-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20070814/567b8f04/attachment.html 


More information about the Concurrency-interest mailing list