java.lang.ClassCastException: java.io.File

AppFuse JIRA | Roman Kuzmin | 10 years ago
  1. 0

    It crashes with the exception during mvn integration-test Exception is following: [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] java.io.File [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.ClassCastException: java.io.File at org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:269) at org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:162) at java.io.Reader.read(Reader.java:122) at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212) at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200) at org.apache.maven.plugin.resources.ResourcesMojo.copyFile(ResourcesMojo.java:249) at org.apache.maven.plugin.resources.ResourcesMojo.copyResources(ResourcesMojo.java:172) at org.apache.maven.plugin.resources.TestResourcesMojo.execute(TestResourcesMojo.java:53) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Attached you may find complete log file. What could be the reason?

    AppFuse JIRA | 10 years ago | Roman Kuzmin
    java.lang.ClassCastException: java.io.File
  2. 0

    It crashes with the exception during mvn integration-test Exception is following: [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] java.io.File [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.ClassCastException: java.io.File at org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:269) at org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:162) at java.io.Reader.read(Reader.java:122) at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212) at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200) at org.apache.maven.plugin.resources.ResourcesMojo.copyFile(ResourcesMojo.java:249) at org.apache.maven.plugin.resources.ResourcesMojo.copyResources(ResourcesMojo.java:172) at org.apache.maven.plugin.resources.TestResourcesMojo.execute(TestResourcesMojo.java:53) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Attached you may find complete log file. What could be the reason?

    AppFuse JIRA | 10 years ago | Roman Kuzmin
    java.lang.ClassCastException: java.io.File
  3. 0

    tiny mce js throwing maven build type conversion error

    Stack Overflow | 4 years ago | vaibhav
    java.lang.ClassCastException: org.apache.maven.project.MavenProject cannot be cast to java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    BOL randomly failing

    Oracle Community | 9 years ago | 633147
    java.lang.ClassCastException: java.io.File
  6. 0

    Validation of XMl DOC fails while using SAX Parser though XML DOC is correc

    Oracle Community | 1 decade ago | 843834
    java.lang.ClassCastException: java.io.File

    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

      java.io.File

      at org.codehaus.plexus.util.InterpolationFilterReader.read()
    2. Plexus Common Utilities
      InterpolationFilterReader.read
      1. org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:269)
      2. org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:162)
      2 frames
    3. Java RT
      Reader.read
      1. java.io.Reader.read(Reader.java:122)
      1 frame
    4. Plexus Common Utilities
      IOUtil.copy
      1. org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212)
      2. org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200)
      2 frames
    5. org.apache.maven
      TestResourcesMojo.execute
      1. org.apache.maven.plugin.resources.ResourcesMojo.copyFile(ResourcesMojo.java:249)
      2. org.apache.maven.plugin.resources.ResourcesMojo.copyResources(ResourcesMojo.java:172)
      3. org.apache.maven.plugin.resources.TestResourcesMojo.execute(TestResourcesMojo.java:53)
      3 frames
    6. Maven Plugin
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
      1 frame
    7. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
      8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
      8 frames
    8. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    10. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames