java.lang.ClassCastException: org.apache.jackrabbit.core.data.FileDataStore cannot be cast to org.artifactory.jcr.jackrabbit.ArtifactoryDbDataStoreImpl

JFrog JIRA | Vincent DABURON | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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

    JFrog JIRA | 8 years ago | Vincent DABURON
    java.lang.ClassCastException: org.apache.jackrabbit.core.data.FileDataStore cannot be cast to org.artifactory.jcr.jackrabbit.ArtifactoryDbDataStoreImpl
  2. 0

    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

    JFrog JIRA | 8 years ago | Vincent DABURON
    java.lang.ClassCastException: org.apache.jackrabbit.core.data.FileDataStore cannot be cast to org.artifactory.jcr.jackrabbit.ArtifactoryDbDataStoreImpl
  3. 0

    Help:basic RMI question

    Google Groups | 2 decades ago | Paolo De Lutiis
    java.lang.ClassCastException: serverPackage.ServerClass_Stub at clientPackage.myApplet.init(myApplet.java:line#) at sun.applet.AppletPanel.run(AppletPanel.java:273) at java.lang.Thread.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Shared hosting Bungeecord problems.

    GitHub | 3 years ago | Arksenu
    java.lang.ClassCastException: bka cannot be cast to fs All my servers are set to onlinemode: false Here is my config.yml groups: arksenu: - admin disabled_commands: - find player_limit: -1 stats: 347d1d62-6fb6-4869-bd43-7d0745de8e3c permissions: default: - bungeecord.command.server - bungeecord.command.list admin: - bungeecord.command.ip - bungeecord.command.alert - bungeecord.command.end - bungeecord.command.reload listeners: - max_players: 18 fallback_server: hub host: 0.0.0.0:35289 bind_local_address: true ping_passthrough: false tab_list: GLOBAL_PING default_server: hub forced_hosts: pvp.md-5.net: hub tab_size: 60 force_default_server: true motd: ’Network’ query_enabled: false query_port: 25565 timeout: 30000 connection_throttle: 4000 servers: hub: address: 108.170.8.146:35289 restricted: false motd: test UvGames: address: 66.85.165.170:26200 restricted: false motd: test UvPrison: address: 66.85.128.90:25928 restricted: false motd: test ip_forward: false online_mode: true And here is my console message -> UpstreamBridge has disconnected disconnected with: Exception Connecting:RuntimeException : Server is online mode! @ net.md_5.bungee.ServerConnector:188
  6. 0

    Shared hosting Bungeecord problems.

    GitHub | 3 years ago | Arksenu
    java.lang.ClassCastException: bka cannot be cast to fs All my servers are set to onlinemode: false Here is my config.yml groups: arksenu: - admin disabled_commands: - find player_limit: -1 stats: 347d1d62-6fb6-4869-bd43-7d0745de8e3c permissions: default: - bungeecord.command.server - bungeecord.command.list admin: - bungeecord.command.ip - bungeecord.command.alert - bungeecord.command.end - bungeecord.command.reload listeners: - max_players: 18 fallback_server: hub host: 0.0.0.0:35289 bind_local_address: true ping_passthrough: false tab_list: GLOBAL_PING default_server: hub forced_hosts: pvp.md-5.net: hub tab_size: 60 force_default_server: true motd: ’Network’ query_enabled: false query_port: 25565 timeout: 30000 connection_throttle: 4000 servers: hub: address: 108.170.8.146:35289 restricted: false motd: test UvGames: address: 66.85.165.170:26200 restricted: false motd: test UvPrison: address: 66.85.128.90:25928 restricted: false motd: test ip_forward: false online_mode: true And here is my console message -> UpstreamBridge has disconnected disconnected with: Exception Connecting:RuntimeException : Server is online mode! @ net.md_5.bungee.ServerConnector:188

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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>()
    2. org.artifactory.jcr
      ArtifactoryGarbageCollector.<init>
      1. org.artifactory.jcr.jackrabbit.ArtifactoryGarbageCollector.<init>(ArtifactoryGarbageCollector.java:95)[artifactory-core-2.0.6.jar:na]
      1 frame
    3. Jackrabbit Core
      GarbageCollectorFactory.createDataStoreGarbageCollector
      1. org.apache.jackrabbit.core.GarbageCollectorFactory.createDataStoreGarbageCollector(GarbageCollectorFactory.java:68)[artifactory-core-2.0.6.jar:na]
      1 frame
    4. org.artifactory.jcr
      JcrServiceImpl.garbageCollect
      1. org.artifactory.jcr.JcrServiceImpl.garbageCollect(JcrServiceImpl.java:769)[artifactory-core-2.0.6.jar:na]
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_12]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_12]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_12]
      4. java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_12]
      4 frames
    6. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)[spring-aop-2.5.5.jar:2.5.5]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)[spring-aop-2.5.5.jar:2.5.5]
      2 frames
    7. Unknown
      $Proxy18.garbageCollect
      1. $Proxy18.garbageCollect(Unknown Source)[na:na]
      1 frame
    8. org.artifactory.jcr
      JcrGarbageCollector.onExecute
      1. org.artifactory.jcr.schedule.JcrGarbageCollector.onExecute(JcrGarbageCollector.java:37)[artifactory-core-2.0.6.jar:na]
      2. org.artifactory.jcr.schedule.JcrGarbageCollector.onExecute(JcrGarbageCollector.java:30)[artifactory-core-2.0.6.jar:na]
      2 frames
    9. org.artifactory.schedule
      QuartzCommand.execute
      1. org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:42)[artifactory-core-2.0.6.jar:na]
      1 frame
    10. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)[quartz-1.6.3.jar:1.6.3]
      1 frame
    11. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[na:1.6.0_12]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[na:1.6.0_12]
      3. java.lang.Thread.run(Thread.java:619)[na:1.6.0_12]
      3 frames