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.

  • 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}
    via by Yannick Marcon,
  • 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}
    via by Yannick Marcon,
    • 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)
    No Bugmate found.