You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Benedict (JIRA)" <ji...@codehaus.org> on 2008/03/12 17:09:28 UTC

[jira] Commented: (SUREFIRE-471) Infinite loop when ERROR is detected

    [ http://jira.codehaus.org/browse/SUREFIRE-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126976 ] 

Paul Benedict commented on SUREFIRE-471:
----------------------------------------

Because I can reproduce this consistently, I will provide an example project for testing.

> Infinite loop when ERROR is detected
> ------------------------------------
>
>                 Key: SUREFIRE-471
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-471
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.4.2
>         Environment: Windows XP, Maven 2.0.8, Spring 1.2.8, JDK 1.6
>            Reporter: Paul Benedict
>
> I can't supply a test case, but I will try to describe in detail exactly what occurs so you can reproduce it:
> My hibernate integration tests are in a separate profile named "itest". My integration tests load Hibernate via Spring. I had a Hibernate mapping configuration error in which my <set> element was missing its <key> element. Now usually a mapping error causes the testing to immediately quit, but here it didn't. Instead it reported the error and reran the whole phase again, and again, etc.
>     <set name="items" inverse="true">
>       <one-to-many class="x.y.z.MyObject" />
>     </set>
> My debug output:
> [DEBUG] Using JVM: D:\jdk1.6.0_01\jre\bin\java
> [INFO] Surefire report directory: D:\workspace\myproject\target\surefire-reports
> Forking command line: cmd.exe /X /C '"D:\jdk1.6.0_01\jre\bin\java -jar c:\temp\surefirebooter4340.jar c:\temp\surefire4338tmp c:\temp\surefire4339tmp"'
> ...... test output.....
> 31876 [main] ERROR org.hibernate.util.XMLHelper  - Error parsing XML: XML InputStream(23) The content of element type "set" must match "(meta*,subselect?,cache?,synchronize*,comment?,key,(element|one-to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?,filter*)"
> ...... test output......
> ......repeat.....

-- 
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