Home  >  Forum  >  Spring
Post New Query

org/springframework/util/ConcurrentReferenceHashMap



Asked on October 02, 2013
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/util/ConcurrentReferenceHashMap
at org.springframework.core.GenericTypeResolver.<clinit>(GenericTypeResolver.java:53)
at org.springframework.core.convert.support.GenericConversionService.getRequiredTypeInfo(GenericConversionService.java:260)
at org.springframework.core.convert.support.GenericConversionService.addConverter(GenericConversionService.java:83)
at org.springframework.core.convert.support.DefaultConversionService.addScalarConverters(DefaultConversionService.java:63)
at org.springframework.core.convert.support.DefaultConversionService.addDefaultConverters(DefaultConversionService.java:54)
at org.springframework.core.convert.support.DefaultConversionService.<init>(DefaultConversionService.java:43)
at org.springframework.core.convert.support.ConversionServiceFactory.createDefaultConversionService(ConversionServiceFactory.java:68)
at com.test.TypeConverter.main(TypeConverter.java:9)
Caused by: java.lang.ClassNotFoundException: org.springframework.util.ConcurrentReferenceHashMap
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 8 more
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1200(Unknown Source)
at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)
at java.util.zip.ZipFile$1.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.misc.Resource.getBytes(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
... 14 more


Please help me to resolve the error.



Replied on October 03, 2013
The error you have posted is because of bad jar file. Jar file is corrupt. org/springframework/util/ConcurrentReferenceHashMap class is in spring-core jar. Download once again or if you are using pom.xml then first delete the the exitsing spring-core jar and re run your pom.xml.


Replied on October 31, 2013
it helped me also

Write Answer








©2019 concretepage.com | Privacy Policy | Contact Us