java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception

Icesoft | wbossons | 9 years ago
  1. 0

    Re:Trouble integrating icefaces in javaee5 application...

    Icesoft | 9 years ago | wbossons
    java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
  2. 0

    Security issues after upgrading to Spring 3.2.8

    Stack Overflow | 2 years ago | Aurelio Di Pasquale
    java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
  3. 0

    After upgrading to Rails 3.2 my rake tasks are broken | ruby-on-rails - ruby - ruby-on-rails-3.2

    solutionscore.com | 1 year ago
    java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    mvn sonar:sonar -e + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'sonar'. [INFO] ------------------------------------------------------------------------ [INFO] Building Test V4 [INFO] task-segment: [sonar:sonar] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [sonar:sonar {execution: default-cli}] [INFO] Sonar host: http://10.10.152.74:8083/sonar [INFO] Sonar version: 1.10.1 [INFO] [sonar-core:internal {execution: default-internal}] [INFO] Sonar branch: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Can not execute Sonar Embedded error: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41) 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:597) 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) Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) ... 17 more Caused by: java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) at org.picocontainer.adapters.InstanceAdapter.start(InstanceAdapter.java:113) at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:171) at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:134) at org.picocontainer.behaviors.Stored.start(Stored.java:111) at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:916) at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:664) at org.sonar.batch.BatchMojo.createMainContainer(BatchMojo.java:179) at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:150) at org.sonar.batch.BatchMojo.execute(BatchMojo.java:145) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82) ... 21 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Sun Sep 27 14:17:07 CST 2009 [INFO] Final Memory: 8M/15M [INFO] ------------------------------------------------------------------------

    SonarSource JIRA | 7 years ago | Yang
    org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar
  6. 0

    GitHub comment 2#196665450

    GitHub | 9 months ago | xak2000
    java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception

    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.lang.NoClassDefFoundError cannot be cast to java.lang.Exception

      at edu.harvard.hmdc.vdcnet.web.servlet.VDCFacesServlet.service()
    2. edu.harvard.hmdc
      VDCFacesServlet.service
      1. edu.harvard.hmdc.vdcnet.web.servlet.VDCFacesServlet.service(VDCFacesServlet.java:89)
      1 frame
    3. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
      2. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
      3. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      3 frames
    4. edu.harvard.hmdc
      TermsOfUseFilter.doFilter
      1. edu.harvard.hmdc.vdcnet.web.servlet.TermsOfUseFilter.doFilter(TermsOfUseFilter.java:174)
      1 frame
    5. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      2 frames
    6. edu.harvard.hmdc
      LoginFilter.doFilter
      1. edu.harvard.hmdc.vdcnet.web.servlet.LoginFilter.doFilter(LoginFilter.java:178)
      1 frame
    7. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      2 frames
    8. com.sun.rave
      UploadFilter.doFilter
      1. com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:225)
      1 frame
    9. Glassfish Core
      StandardPipeline.doInvoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
      4. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
      5. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
      6. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      7. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      7 frames
    10. Glassfish
      WebPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      1 frame