You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2011/06/22 19:22:47 UTC

[jira] [Created] (WW-3653) Struts2 should base on JDK5 and all tests must passing

Struts2 should base on JDK5 and all tests must passing
------------------------------------------------------

                 Key: WW-3653
                 URL: https://issues.apache.org/jira/browse/WW-3653
             Project: Struts 2
          Issue Type: Bug
          Components: Core Actions
    Affects Versions: 2.2.3
            Reporter: Lukasz Lenart
            Assignee: Lukasz Lenart
            Priority: Blocker
             Fix For: 2.3


testFailsOnMethodThatThrowsException(com.opensymphony.xwork2.ognl.OgnlValueStack
Test)

Tests run: 657, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.547s
[INFO] Finished at: Tue Jun 07 10:05:56 EDT 2011
[INFO] Final Memory: 10M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on
project xwork-core: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Documents and Settings\All
Users\Desktop\projects\struts\struts2\trunk\xwork-core\target\surefire-reports
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

jpyeron@reclaimed /projects/struts/struts2/trunk/xwork-core
$

public void testFailsOnMethodThatThrowsException() {
   SimpleAction action = new SimpleAction();
   OgnlValueStack stack = createValueStack();
   stack.push(action);

   action.setThrowException(true);
   try {
       stack.findValue("exceptionMethod1()", true);
       fail("Failed to throw exception on EL method exception");
   } catch (Exception ex) {
       //ok
   }
}


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3653) Struts2 should base on JDK5 and all tests must passing

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053564#comment-13053564 ] 

Maurizio Cucchiara commented on WW-3653:
----------------------------------------

The test was totally wrong since it was order dependant. 
Java 5 with maven (neither Idea nor eclipse fail the test) ran the test in a different order.
The class CompundRootAccessor use a static cache for the invalid methods which is obviously sensitive to the test execution order.
Keep your finger crossed :)


> Struts2 should base on JDK5 and all tests must passing
> ------------------------------------------------------
>
>                 Key: WW-3653
>                 URL: https://issues.apache.org/jira/browse/WW-3653
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.3
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 2.3
>
>
> testFailsOnMethodThatThrowsException(com.opensymphony.xwork2.ognl.OgnlValueStack
> Test)
> Tests run: 657, Failures: 1, Errors: 0, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 38.547s
> [INFO] Finished at: Tue Jun 07 10:05:56 EDT 2011
> [INFO] Final Memory: 10M/37M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on
> project xwork-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\Documents and Settings\All
> Users\Desktop\projects\struts\struts2\trunk\xwork-core\target\surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> jpyeron@reclaimed /projects/struts/struts2/trunk/xwork-core
> $
> public void testFailsOnMethodThatThrowsException() {
>    SimpleAction action = new SimpleAction();
>    OgnlValueStack stack = createValueStack();
>    stack.push(action);
>    action.setThrowException(true);
>    try {
>        stack.findValue("exceptionMethod1()", true);
>        fail("Failed to throw exception on EL method exception");
>    } catch (Exception ex) {
>        //ok
>    }
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3653) Struts2 should base on JDK5 and all tests must passing

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053978#comment-13053978 ] 

Maurizio Cucchiara commented on WW-3653:
----------------------------------------

Otherwise we could also consider using the  Animal Sniffer Maven Plugin [1]
Take also a look at [2]
[1] http://mojo.codehaus.org/animal-sniffer-maven-plugin/examples/checking-signatures.html
[2] http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html

> Struts2 should base on JDK5 and all tests must passing
> ------------------------------------------------------
>
>                 Key: WW-3653
>                 URL: https://issues.apache.org/jira/browse/WW-3653
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.3
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 2.3
>
>
> testFailsOnMethodThatThrowsException(com.opensymphony.xwork2.ognl.OgnlValueStack
> Test)
> Tests run: 657, Failures: 1, Errors: 0, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 38.547s
> [INFO] Finished at: Tue Jun 07 10:05:56 EDT 2011
> [INFO] Final Memory: 10M/37M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on
> project xwork-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\Documents and Settings\All
> Users\Desktop\projects\struts\struts2\trunk\xwork-core\target\surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> jpyeron@reclaimed /projects/struts/struts2/trunk/xwork-core
> $
> public void testFailsOnMethodThatThrowsException() {
>    SimpleAction action = new SimpleAction();
>    OgnlValueStack stack = createValueStack();
>    stack.push(action);
>    action.setThrowException(true);
>    try {
>        stack.findValue("exceptionMethod1()", true);
>        fail("Failed to throw exception on EL method exception");
>    } catch (Exception ex) {
>        //ok
>    }
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3653) Struts2 should base on JDK5 and all tests must passing

Posted by "Rene Gielen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166092#comment-13166092 ] 

Rene Gielen commented on WW-3653:
---------------------------------

+1 to ditch 1.4 support, yes
                
> Struts2 should base on JDK5 and all tests must passing
> ------------------------------------------------------
>
>                 Key: WW-3653
>                 URL: https://issues.apache.org/jira/browse/WW-3653
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.3
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 3.x
>
>
> testFailsOnMethodThatThrowsException(com.opensymphony.xwork2.ognl.OgnlValueStack
> Test)
> Tests run: 657, Failures: 1, Errors: 0, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 38.547s
> [INFO] Finished at: Tue Jun 07 10:05:56 EDT 2011
> [INFO] Final Memory: 10M/37M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on
> project xwork-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\Documents and Settings\All
> Users\Desktop\projects\struts\struts2\trunk\xwork-core\target\surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> jpyeron@reclaimed /projects/struts/struts2/trunk/xwork-core
> $
> public void testFailsOnMethodThatThrowsException() {
>    SimpleAction action = new SimpleAction();
>    OgnlValueStack stack = createValueStack();
>    stack.push(action);
>    action.setThrowException(true);
>    try {
>        stack.findValue("exceptionMethod1()", true);
>        fail("Failed to throw exception on EL method exception");
>    } catch (Exception ex) {
>        //ok
>    }
> }

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

        

[jira] [Commented] (WW-3653) Struts2 should base on JDK5 and all tests must passing

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053975#comment-13053975 ] 

Maurizio Cucchiara commented on WW-3653:
----------------------------------------

I'm wondering if maven compiler plugin could be useful.
Anyway we cannot definitely continue to use java 5 settings in Jenkins, so if there is no objections, I would be going to restore the original settings. 

> Struts2 should base on JDK5 and all tests must passing
> ------------------------------------------------------
>
>                 Key: WW-3653
>                 URL: https://issues.apache.org/jira/browse/WW-3653
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.3
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 2.3
>
>
> testFailsOnMethodThatThrowsException(com.opensymphony.xwork2.ognl.OgnlValueStack
> Test)
> Tests run: 657, Failures: 1, Errors: 0, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 38.547s
> [INFO] Finished at: Tue Jun 07 10:05:56 EDT 2011
> [INFO] Final Memory: 10M/37M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on
> project xwork-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\Documents and Settings\All
> Users\Desktop\projects\struts\struts2\trunk\xwork-core\target\surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> jpyeron@reclaimed /projects/struts/struts2/trunk/xwork-core
> $
> public void testFailsOnMethodThatThrowsException() {
>    SimpleAction action = new SimpleAction();
>    OgnlValueStack stack = createValueStack();
>    stack.push(action);
>    action.setThrowException(true);
>    try {
>        stack.findValue("exceptionMethod1()", true);
>        fail("Failed to throw exception on EL method exception");
>    } catch (Exception ex) {
>        //ok
>    }
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3653) Struts2 should base on JDK5 and all tests must passing

Posted by "Rene Gielen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13165473#comment-13165473 ] 

Rene Gielen commented on WW-3653:
---------------------------------

I'm not sure we should require Java 6 for users currently. Been to various BigCos recently, lot's are still nailed to J5, regardless it's support has ended. What are your experiences?
                
> Struts2 should base on JDK5 and all tests must passing
> ------------------------------------------------------
>
>                 Key: WW-3653
>                 URL: https://issues.apache.org/jira/browse/WW-3653
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.3
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 3.x
>
>
> testFailsOnMethodThatThrowsException(com.opensymphony.xwork2.ognl.OgnlValueStack
> Test)
> Tests run: 657, Failures: 1, Errors: 0, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 38.547s
> [INFO] Finished at: Tue Jun 07 10:05:56 EDT 2011
> [INFO] Final Memory: 10M/37M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on
> project xwork-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\Documents and Settings\All
> Users\Desktop\projects\struts\struts2\trunk\xwork-core\target\surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> jpyeron@reclaimed /projects/struts/struts2/trunk/xwork-core
> $
> public void testFailsOnMethodThatThrowsException() {
>    SimpleAction action = new SimpleAction();
>    OgnlValueStack stack = createValueStack();
>    stack.push(action);
>    action.setThrowException(true);
>    try {
>        stack.findValue("exceptionMethod1()", true);
>        fail("Failed to throw exception on EL method exception");
>    } catch (Exception ex) {
>        //ok
>    }
> }

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

        

[jira] [Commented] (WW-3653) Struts2 should base on JDK5 and all tests must passing

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054317#comment-13054317 ] 

Lukasz Lenart commented on WW-3653:
-----------------------------------

Ok, lets switch and discuss on dev@ ML

> Struts2 should base on JDK5 and all tests must passing
> ------------------------------------------------------
>
>                 Key: WW-3653
>                 URL: https://issues.apache.org/jira/browse/WW-3653
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.3
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 2.3
>
>
> testFailsOnMethodThatThrowsException(com.opensymphony.xwork2.ognl.OgnlValueStack
> Test)
> Tests run: 657, Failures: 1, Errors: 0, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 38.547s
> [INFO] Finished at: Tue Jun 07 10:05:56 EDT 2011
> [INFO] Final Memory: 10M/37M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on
> project xwork-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\Documents and Settings\All
> Users\Desktop\projects\struts\struts2\trunk\xwork-core\target\surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> jpyeron@reclaimed /projects/struts/struts2/trunk/xwork-core
> $
> public void testFailsOnMethodThatThrowsException() {
>    SimpleAction action = new SimpleAction();
>    OgnlValueStack stack = createValueStack();
>    stack.push(action);
>    action.setThrowException(true);
>    try {
>        stack.findValue("exceptionMethod1()", true);
>        fail("Failed to throw exception on EL method exception");
>    } catch (Exception ex) {
>        //ok
>    }
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3653) Struts2 should base on JDK5 and all tests must passing

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13055656#comment-13055656 ] 

Hudson commented on WW-3653:
----------------------------

Integrated in Struts2 #328 (See [https://builds.apache.org/job/Struts2/328/])
    

> Struts2 should base on JDK5 and all tests must passing
> ------------------------------------------------------
>
>                 Key: WW-3653
>                 URL: https://issues.apache.org/jira/browse/WW-3653
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.3
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 2.3
>
>
> testFailsOnMethodThatThrowsException(com.opensymphony.xwork2.ognl.OgnlValueStack
> Test)
> Tests run: 657, Failures: 1, Errors: 0, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 38.547s
> [INFO] Finished at: Tue Jun 07 10:05:56 EDT 2011
> [INFO] Final Memory: 10M/37M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on
> project xwork-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\Documents and Settings\All
> Users\Desktop\projects\struts\struts2\trunk\xwork-core\target\surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> jpyeron@reclaimed /projects/struts/struts2/trunk/xwork-core
> $
> public void testFailsOnMethodThatThrowsException() {
>    SimpleAction action = new SimpleAction();
>    OgnlValueStack stack = createValueStack();
>    stack.push(action);
>    action.setThrowException(true);
>    try {
>        stack.findValue("exceptionMethod1()", true);
>        fail("Failed to throw exception on EL method exception");
>    } catch (Exception ex) {
>        //ok
>    }
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3653) Struts2 should base on JDK5 and all tests must passing

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053963#comment-13053963 ] 

Maurizio Cucchiara commented on WW-3653:
----------------------------------------

Now the xwork module passes every tests.
There are some troubles with gxp and embedded jsp plugins:
the former depends on google gxp library which was compiled with Java 6, the latter uses the javax.tools package, introduced also with Java 6.
For the gxp plugin, considering the external dependency, there is no way to be compiled with Java 5.

Any thoughts?


> Struts2 should base on JDK5 and all tests must passing
> ------------------------------------------------------
>
>                 Key: WW-3653
>                 URL: https://issues.apache.org/jira/browse/WW-3653
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.3
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 2.3
>
>
> testFailsOnMethodThatThrowsException(com.opensymphony.xwork2.ognl.OgnlValueStack
> Test)
> Tests run: 657, Failures: 1, Errors: 0, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 38.547s
> [INFO] Finished at: Tue Jun 07 10:05:56 EDT 2011
> [INFO] Final Memory: 10M/37M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on
> project xwork-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\Documents and Settings\All
> Users\Desktop\projects\struts\struts2\trunk\xwork-core\target\surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> jpyeron@reclaimed /projects/struts/struts2/trunk/xwork-core
> $
> public void testFailsOnMethodThatThrowsException() {
>    SimpleAction action = new SimpleAction();
>    OgnlValueStack stack = createValueStack();
>    stack.push(action);
>    action.setThrowException(true);
>    try {
>        stack.findValue("exceptionMethod1()", true);
>        fail("Failed to throw exception on EL method exception");
>    } catch (Exception ex) {
>        //ok
>    }
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WW-3653) Struts2 should base on JDK5 and all tests must passing

Posted by "Lukasz Lenart (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart updated WW-3653:
------------------------------

    Fix Version/s:     (was: 2.3.1)
                   3.x

We should consider switching to JDK 1.6
                
> Struts2 should base on JDK5 and all tests must passing
> ------------------------------------------------------
>
>                 Key: WW-3653
>                 URL: https://issues.apache.org/jira/browse/WW-3653
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.3
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 3.x
>
>
> testFailsOnMethodThatThrowsException(com.opensymphony.xwork2.ognl.OgnlValueStack
> Test)
> Tests run: 657, Failures: 1, Errors: 0, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 38.547s
> [INFO] Finished at: Tue Jun 07 10:05:56 EDT 2011
> [INFO] Final Memory: 10M/37M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on
> project xwork-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\Documents and Settings\All
> Users\Desktop\projects\struts\struts2\trunk\xwork-core\target\surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> jpyeron@reclaimed /projects/struts/struts2/trunk/xwork-core
> $
> public void testFailsOnMethodThatThrowsException() {
>    SimpleAction action = new SimpleAction();
>    OgnlValueStack stack = createValueStack();
>    stack.push(action);
>    action.setThrowException(true);
>    try {
>        stack.findValue("exceptionMethod1()", true);
>        fail("Failed to throw exception on EL method exception");
>    } catch (Exception ex) {
>        //ok
>    }
> }

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

        

[jira] [Commented] (WW-3653) Struts2 should base on JDK5 and all tests must passing

Posted by "Lukasz Lenart (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13165512#comment-13165512 ] 

Lukasz Lenart commented on WW-3653:
-----------------------------------

With the current company we're using 1.6, in the previous company 1.4 ;-)

At least we should discard support for 1.4
                
> Struts2 should base on JDK5 and all tests must passing
> ------------------------------------------------------
>
>                 Key: WW-3653
>                 URL: https://issues.apache.org/jira/browse/WW-3653
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.3
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 3.x
>
>
> testFailsOnMethodThatThrowsException(com.opensymphony.xwork2.ognl.OgnlValueStack
> Test)
> Tests run: 657, Failures: 1, Errors: 0, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 38.547s
> [INFO] Finished at: Tue Jun 07 10:05:56 EDT 2011
> [INFO] Final Memory: 10M/37M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on
> project xwork-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\Documents and Settings\All
> Users\Desktop\projects\struts\struts2\trunk\xwork-core\target\surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> jpyeron@reclaimed /projects/struts/struts2/trunk/xwork-core
> $
> public void testFailsOnMethodThatThrowsException() {
>    SimpleAction action = new SimpleAction();
>    OgnlValueStack stack = createValueStack();
>    stack.push(action);
>    action.setThrowException(true);
>    try {
>        stack.findValue("exceptionMethod1()", true);
>        fail("Failed to throw exception on EL method exception");
>    } catch (Exception ex) {
>        //ok
>    }
> }

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