You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David J. M. Karlsen (JIRA)" <ji...@codehaus.org> on 2006/04/30 16:27:19 UTC

[jira] Laget: (MSUREFIRE-95) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
-------------------------------------------------------------------------------------

         Key: MSUREFIRE-95
         URL: http://jira.codehaus.org/browse/MSUREFIRE-95
     Project: Maven 2.x Surefire Plugin
        Type: Bug

    Versions: 2.1.4    
 Environment: Windows XP / Sun JDK 1.5.0_06
    Reporter: David J. M. Karlsen


java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
Exception in thread "main"

is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-85:
---------------------------------

    Fix Version/s:     (was: 2.0 (2.2 plugin))
                   2.6

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>             Fix For: 2.6
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Stefan Sieber (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250348#action_250348 ] 

Stefan Sieber commented on SUREFIRE-85:
---------------------------------------

In our case we were able to resolve the issue by cleaning the local maven cache. But probably this just made the Surefire plugin happy so that it didn't try to throw an exception which thereupon causes the NoClassDefFoundError.

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>             Fix For: Backlog
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MSUREFIRE-95) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSUREFIRE-95?page=all ]
     
Carlos Sanchez closed MSUREFIRE-95:
-----------------------------------

     Resolution: Fixed
    Fix Version: 2.1.4

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>          Key: MSUREFIRE-95
>          URL: http://jira.codehaus.org/browse/MSUREFIRE-95
>      Project: Maven 2.x Surefire Plugin
>         Type: Bug

>     Versions: 2.1.4
>  Environment: Windows XP / Sun JDK 1.5.0_06
>     Reporter: David J. M. Karlsen
>     Assignee: Carlos Sanchez
>      Fix For: 2.1.4

>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Connolly updated SUREFIRE-85:
-------------------------------------

    Fix Version/s:     (was: 2.6)
                   Backlog

Moving to backlog until we are provided with a sample test case

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>             Fix For: Backlog
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=248977#action_248977 ] 

Kristian Rosenvold commented on SUREFIRE-85:
--------------------------------------------

I am not entitrely sure if all "me toos" on this thread have seen the same stacktrace or just the same message. 
There's a large hole were this exception can occur, which has been there all along but is a lot easier to see on the current trunk:

The booter starts with ForkedBooter#main method. When this method is invoked, surefire-api is NOT on the classpath.  All the way into runSuitesInProcess, the exception is not on the classpath. Technically classloader switch happens on "provider.invoke", at which point the context classloader is switched. 

Although restructured, the logic & flow of this code is unchanged from a LONG time back, so this is the likely source of this problem. For example the catch blocks in the SurefireStarter#invokeProvider method simply will not work.

The solution to this is either to make sure that the surefire exceptions do not propagate into the code running in the system classloader, or to add surefire-api to the boot classpath, or to split the api module into several different modules, one which has to be on the boot classpath. The latter solution effectively means permanently accepting that surefire-api changes are hard, but I am not sure if it changes the current reality much.

I will looking into fixing this issue. 

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>             Fix For: Backlog
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-85:
---------------------------------

    Affects Version/s: 2.0 (2.2 plugin)
        Fix Version/s: 2.0 (2.2 plugin)

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>         Assigned To: Carlos Sanchez
>             Fix For: 2.0 (2.2 plugin)
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Reopened: (MSUREFIRE-95) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSUREFIRE-95?page=all ]
     
Carlos Sanchez reopened MSUREFIRE-95:
-------------------------------------


Found the problem, booter should include the exception

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>          Key: MSUREFIRE-95
>          URL: http://jira.codehaus.org/browse/MSUREFIRE-95
>      Project: Maven 2.x Surefire Plugin
>         Type: Bug

>     Versions: 2.1.4
>  Environment: Windows XP / Sun JDK 1.5.0_06
>     Reporter: David J. M. Karlsen
>     Assignee: Carlos Sanchez

>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Reopened: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carlos Sanchez reopened SUREFIRE-85:
------------------------------------

      Assignee:     (was: Carlos Sanchez)

reopened per previous comments

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>             Fix For: 2.0 (2.2 plugin)
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold updated SUREFIRE-85:
---------------------------------------

    Comment: was deleted

(was: I am not entitrely sure if all "me toos" on this thread have seen the same stacktrace or just the same message. 
There's a large hole were this exception can occur, which has been there all along but is a lot easier to see on the current trunk:

The booter starts with ForkedBooter#main method. When this method is invoked, surefire-api is NOT on the classpath.  All the way into runSuitesInProcess, the exception is not on the classpath. Technically classloader switch happens on "provider.invoke", at which point the context classloader is switched. 

Although restructured, the logic & flow of this code is unchanged from a LONG time back, so this is the likely source of this problem. For example the catch blocks in the SurefireStarter#invokeProvider method simply will not work.

The solution to this is either to make sure that the surefire exceptions do not propagate into the code running in the system classloader, or to add surefire-api to the boot classpath, or to split the api module into several different modules, one which has to be on the boot classpath. The latter solution effectively means permanently accepting that surefire-api changes are hard, but I am not sure if it changes the current reality much.

I will looking into fixing this issue. )

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>             Fix For: Backlog
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231051#action_231051 ] 

Stephen Connolly commented on SUREFIRE-85:
------------------------------------------

we really need to see a sample test case to reproduce the issue

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>             Fix For: 2.6
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Federico Tomassetti (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207023#action_207023 ] 

Federico Tomassetti commented on SUREFIRE-85:
---------------------------------------------

I still have the problem...
I attach a log.

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>            Assignee: Carlos Sanchez
>             Fix For: 2.0 (2.2 plugin)
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MSUREFIRE-95) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSUREFIRE-95?page=all ]
     
Carlos Sanchez closed MSUREFIRE-95:
-----------------------------------

     Assign To: Carlos Sanchez
    Resolution: Cannot Reproduce

Latest snapshot in repo has that class
http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/surefire/surefire/1.5.4-SNAPSHOT/surefire-1.5.4-20060420.014652-3.jar

Anyway there's no much info in this issue

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>          Key: MSUREFIRE-95
>          URL: http://jira.codehaus.org/browse/MSUREFIRE-95
>      Project: Maven 2.x Surefire Plugin
>         Type: Bug

>     Versions: 2.1.4
>  Environment: Windows XP / Sun JDK 1.5.0_06
>     Reporter: David J. M. Karlsen
>     Assignee: Carlos Sanchez

>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-85:
---------------------------------

    Fix Version/s:     (was: Backlog)
    
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>            Assignee: Kristian Rosenvold
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=248888#action_248888 ] 

Kristian Rosenvold commented on SUREFIRE-85:
--------------------------------------------

I had a variation of this issue today with maven-3.0.1 and the staged version of surefire 2.7. 

When I deleted the local repository and rebuilt the whole thing it was ok, which seems to indicate corrupt artifact or metadata. 

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>             Fix For: Backlog
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold updated SUREFIRE-85:
---------------------------------------

    Component/s: classloading

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>             Fix For: Backlog
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold updated SUREFIRE-85:
---------------------------------------

    Comment: was deleted

(was: I had a variation of this issue today with maven-3.0.1 and the staged version of surefire 2.7. 

When I deleted the local repository and rebuilt the whole thing it was ok, which seems to indicate corrupt artifact or metadata. )

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>             Fix For: Backlog
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Federico Tomassetti (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Federico Tomassetti updated SUREFIRE-85:
----------------------------------------

    Attachment: log.txt

Executing mvn -U install -e I obtained the output reported in the log

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>            Assignee: Carlos Sanchez
>             Fix For: 2.0 (2.2 plugin)
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold closed SUREFIRE-85.
--------------------------------------

    Resolution: Cannot Reproduce
      Assignee: Kristian Rosenvold

After a review of the classloader code wrt this error, I am fairly certain this must be happening due to corrupt pom or jar files in the local repository. Purging local repositories seems to be solving this issue, which backs this up.

There are a lot of things that can be done to avoid this:
1. Turn on strict checksumming in downloads (-C)
2. Make sure you use the latest versions of all plugins and preferably maven too.
   * There are several threading bugs in older maven versions/plugins that could contribute to corrupting local artifacts.

If this issue re-surfaces and is *not* fixable by purging local repository, I suggest a new issue is created, preferably with a link to this issue, including stacktraces and all relevant information (minimum -X log files).


> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>            Assignee: Kristian Rosenvold
>             Fix For: Backlog
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-85) java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException

Posted by "Anton Tagunov (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207495#action_207495 ] 

Anton Tagunov commented on SUREFIRE-85:
---------------------------------------

me too

just had it today with
Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
and latest surefire

> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> -------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-85
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-85
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: Windows XP / Sun JDK 1.5.0_06
>            Reporter: David J. M. Karlsen
>             Fix For: 2.0 (2.2 plugin)
>
>         Attachments: log.txt
>
>
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/util/NestedCheckedException
> Exception in thread "main"
> is thrown during execution of the maven-surefire-plugin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira