java.lang.ClassCastException: org.obiba.opal.fs.security.SecuredFileObject cannot be cast to org.apache.commons.vfs2.provider.DelegateFileObject

JIRA | Yannick Marcon | 4 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

    Steps: * import data * select CSV file * next until last step: archive data * select/create a archive folder * finish, request seems ok: {code} POST {"destination":"pouet","archive":"/home/administrator/archive","files":["/home/administrator/public-data/catchment-area.csv"],"tables":["14b9e08b-8e94-42e1-a1f6-a158d00a1887.areas"]} {code} * job fails: {code} 2013-02-07 14:11:49,502 - ERROR - ell.commands.ImportCommand - Runtime error while importing data java.lang.ClassCastException: org.obiba.opal.fs.security.SecuredFileObject cannot be cast to org.apache.commons.vfs2.provider.DelegateFileObject at org.apache.commons.vfs2.provider.DelegateFileObject.doRename(DelegateFileObject.java:436) at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1102) at org.apache.commons.vfs2.impl.DecoratedFileObject.moveTo(DecoratedFileObject.java:155) at org.obiba.opal.shell.commands.ImportCommand.archive(ImportCommand.java:310) at org.obiba.opal.shell.commands.ImportCommand.importFromTables(ImportCommand.java:226) at org.obiba.opal.shell.commands.ImportCommand.executeImports(ImportCommand.java:93) at org.obiba.opal.shell.commands.ImportCommand.execute(ImportCommand.java:72) at org.obiba.opal.shell.CommandJob.run(CommandJob.java:114) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) {code}

    JIRA | 4 years ago | Yannick Marcon
    java.lang.ClassCastException: org.obiba.opal.fs.security.SecuredFileObject cannot be cast to org.apache.commons.vfs2.provider.DelegateFileObject
  2. 0

    Steps: * import data * select CSV file * next until last step: archive data * select/create a archive folder * finish, request seems ok: {code} POST {"destination":"pouet","archive":"/home/administrator/archive","files":["/home/administrator/public-data/catchment-area.csv"],"tables":["14b9e08b-8e94-42e1-a1f6-a158d00a1887.areas"]} {code} * job fails: {code} 2013-02-07 14:11:49,502 - ERROR - ell.commands.ImportCommand - Runtime error while importing data java.lang.ClassCastException: org.obiba.opal.fs.security.SecuredFileObject cannot be cast to org.apache.commons.vfs2.provider.DelegateFileObject at org.apache.commons.vfs2.provider.DelegateFileObject.doRename(DelegateFileObject.java:436) at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1102) at org.apache.commons.vfs2.impl.DecoratedFileObject.moveTo(DecoratedFileObject.java:155) at org.obiba.opal.shell.commands.ImportCommand.archive(ImportCommand.java:310) at org.obiba.opal.shell.commands.ImportCommand.importFromTables(ImportCommand.java:226) at org.obiba.opal.shell.commands.ImportCommand.executeImports(ImportCommand.java:93) at org.obiba.opal.shell.commands.ImportCommand.execute(ImportCommand.java:72) at org.obiba.opal.shell.CommandJob.run(CommandJob.java:114) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) {code}

    JIRA | 4 years ago | Yannick Marcon
    java.lang.ClassCastException: org.obiba.opal.fs.security.SecuredFileObject cannot be cast to org.apache.commons.vfs2.provider.DelegateFileObject
  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.obiba.opal.fs.security.SecuredFileObject cannot be cast to org.apache.commons.vfs2.provider.DelegateFileObject

      at org.apache.commons.vfs2.provider.DelegateFileObject.doRename()
    2. Commons VFS Core
      DecoratedFileObject.moveTo
      1. org.apache.commons.vfs2.provider.DelegateFileObject.doRename(DelegateFileObject.java:436)
      2. org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1102)
      3. org.apache.commons.vfs2.impl.DecoratedFileObject.moveTo(DecoratedFileObject.java:155)
      3 frames
    3. org.obiba.opal
      CommandJob.run
      1. org.obiba.opal.shell.commands.ImportCommand.archive(ImportCommand.java:310)
      2. org.obiba.opal.shell.commands.ImportCommand.importFromTables(ImportCommand.java:226)
      3. org.obiba.opal.shell.commands.ImportCommand.executeImports(ImportCommand.java:93)
      4. org.obiba.opal.shell.commands.ImportCommand.execute(ImportCommand.java:72)
      5. org.obiba.opal.shell.CommandJob.run(CommandJob.java:114)
      5 frames
    4. Shiro
      SubjectRunnable.run
      1. org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
      2. org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
      2 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      6. java.lang.Thread.run(Thread.java:722)
      6 frames