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

    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