java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hello, My datastore increase (8Go). The Jackrabbit's datastore garbage failed because data are store in filesystem not in a database (i had configure for file system because I have some big file like 250Mo so MySQL doesn't work) I see the artifactory log file and i have an exception : =================================================== Jun 11, 2009 4:57:40 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8180 Jun 11, 2009 4:57:40 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 26839 ms 2009-06-11 16:58:36,881 [ERROR] (o.a.j.JcrServiceImpl:787) - Jackrabbit's datastore garbage collector execution failed. java.lang.ClassCastException: org.apache.jackrabbit.core.data.FileDataStore cannot be cast to org.artifactory.jcr.jackrabbit.ArtifactoryDbDataStoreImpl at org.artifactory.jcr.jackrabbit.ArtifactoryGarbageCollector.<init>(ArtifactoryGarbageCollector.java:95) [artifactory-core-2.0.6.jar:na] at org.apache.jackrabbit.core.GarbageCollectorFactory.createDataStoreGarbageCollector(GarbageCollectorFactory.java:68) [artifactory-core-2.0.6.jar:na] at org.artifactory.jcr.JcrServiceImpl.garbageCollect(JcrServiceImpl.java:769) [artifactory-core-2.0.6.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_12] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_12] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_12] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_12] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) [spring-aop-2.5.5.jar:2.5.5] at $Proxy18.garbageCollect(Unknown Source) [na:na] at org.artifactory.jcr.schedule.JcrGarbageCollector.onExecute(JcrGarbageCollector.java:37) [artifactory-core-2.0.6.jar:na] at org.artifactory.jcr.schedule.JcrGarbageCollector.onExecute(JcrGarbageCollector.java:30) [artifactory-core-2.0.6.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:42) [artifactory-core-2.0.6.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-1.6.3.jar:1.6.3] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_12] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_12] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_12] ================================================= artifactory.system.properties : _______________________________ #artifactory.ajaxRefreshMillis=10000 #artifactory.lockTimeoutSecs=120 #artifactory.failFastLockTimeoutSecs=5 #artifactory.authenticationCacheIdleTimeSecs=300 #artifactory.jcr.fixConsistency=false #artifactory.search.maxResults=500 #artifactory.maven.suppressPomConsistencyChecks=false #artifactory.jcr.configPath=null #artifactory.spring.configPath=null #artifactory.repo.key.subst.<original_repo_name>=<new_repo_name> #org.apache.jackrabbit.core.cluster.node_id=node1 #derby.storage.pageCacheSize=500 # MODIF VD DU 09/02/2009 storage in a file system artifactory.jcr.configPath=repo/filesystem ________________________________________ Regards Vincent
    via by Vincent DABURON,
  • Hello, My datastore increase (8Go). The Jackrabbit's datastore garbage failed because data are store in filesystem not in a database (i had configure for file system because I have some big file like 250Mo so MySQL doesn't work) I see the artifactory log file and i have an exception : =================================================== Jun 11, 2009 4:57:40 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8180 Jun 11, 2009 4:57:40 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 26839 ms 2009-06-11 16:58:36,881 [ERROR] (o.a.j.JcrServiceImpl:787) - Jackrabbit's datastore garbage collector execution failed. java.lang.ClassCastException: org.apache.jackrabbit.core.data.FileDataStore cannot be cast to org.artifactory.jcr.jackrabbit.ArtifactoryDbDataStoreImpl at org.artifactory.jcr.jackrabbit.ArtifactoryGarbageCollector.<init>(ArtifactoryGarbageCollector.java:95) [artifactory-core-2.0.6.jar:na] at org.apache.jackrabbit.core.GarbageCollectorFactory.createDataStoreGarbageCollector(GarbageCollectorFactory.java:68) [artifactory-core-2.0.6.jar:na] at org.artifactory.jcr.JcrServiceImpl.garbageCollect(JcrServiceImpl.java:769) [artifactory-core-2.0.6.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_12] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_12] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_12] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_12] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) [spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) [spring-aop-2.5.5.jar:2.5.5] at $Proxy18.garbageCollect(Unknown Source) [na:na] at org.artifactory.jcr.schedule.JcrGarbageCollector.onExecute(JcrGarbageCollector.java:37) [artifactory-core-2.0.6.jar:na] at org.artifactory.jcr.schedule.JcrGarbageCollector.onExecute(JcrGarbageCollector.java:30) [artifactory-core-2.0.6.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:42) [artifactory-core-2.0.6.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-1.6.3.jar:1.6.3] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_12] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_12] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_12] ================================================= artifactory.system.properties : _______________________________ #artifactory.ajaxRefreshMillis=10000 #artifactory.lockTimeoutSecs=120 #artifactory.failFastLockTimeoutSecs=5 #artifactory.authenticationCacheIdleTimeSecs=300 #artifactory.jcr.fixConsistency=false #artifactory.search.maxResults=500 #artifactory.maven.suppressPomConsistencyChecks=false #artifactory.jcr.configPath=null #artifactory.spring.configPath=null #artifactory.repo.key.subst.<original_repo_name>=<new_repo_name> #org.apache.jackrabbit.core.cluster.node_id=node1 #derby.storage.pageCacheSize=500 # MODIF VD DU 09/02/2009 storage in a file system artifactory.jcr.configPath=repo/filesystem ________________________________________ Regards Vincent
    via by Vincent DABURON,
    • java.lang.ClassCastException: org.apache.jackrabbit.core.data.FileDataStore cannot be cast to org.artifactory.jcr.jackrabbit.ArtifactoryDbDataStoreImpl at org.artifactory.jcr.jackrabbit.ArtifactoryGarbageCollector.<init>(ArtifactoryGarbageCollector.java:95)[artifactory-core-2.0.6.jar:na] at org.apache.jackrabbit.core.GarbageCollectorFactory.createDataStoreGarbageCollector(GarbageCollectorFactory.java:68)[artifactory-core-2.0.6.jar:na] at org.artifactory.jcr.JcrServiceImpl.garbageCollect(JcrServiceImpl.java:769)[artifactory-core-2.0.6.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_12] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_12] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_12] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_12] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)[spring-aop-2.5.5.jar:2.5.5] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)[spring-aop-2.5.5.jar:2.5.5] at $Proxy18.garbageCollect(Unknown Source)[na:na] at org.artifactory.jcr.schedule.JcrGarbageCollector.onExecute(JcrGarbageCollector.java:37)[artifactory-core-2.0.6.jar:na] at org.artifactory.jcr.schedule.JcrGarbageCollector.onExecute(JcrGarbageCollector.java:30)[artifactory-core-2.0.6.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:42)[artifactory-core-2.0.6.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[quartz-1.6.3.jar:1.6.3] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[na:1.6.0_12] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[na:1.6.0_12] at java.lang.Thread.run(Thread.java:619)[na:1.6.0_12]
    No Bugmate found.