Building/Testing Trunk

5 messages Options
Embed this post
Permalink
mraible

Building/Testing Trunk

Reply Threaded More More options
Print post
Permalink
Hello all,

Since I'm the only one that's been building AppFuse lately, I want to make sure it's possible to build w/ all the changes I've made.

If possible, please take 10 minutes and try to build the latest version from trunk.

Steps:

1. Install Maven 2.1.0 if you don't already have it. http://maven.apache.org/download.html
2. Install an SMTP server. http://appfuse.org/display/APF/Installing+an+SMTP+Server
3. Checkout AppFuse trunk: svn co https://appfuse.dev.java.net/svn/appfuse/trunk (username: guest, password: (blank) if you don't have a developer account)
4. cd appfuse;mvn install

Thanks!

Matt
David Whitehurst

Re: Building/Testing Trunk

Reply Threaded More More options
Print post
Permalink
I failed but I'm going to drop the database and the repo and run again.  I'm having issues with my laptop where everything has worked but on my hosted server the e.g. javadoc plugin wouldn't download.

I'll drop the database and the entire .m2/repository.  I'll report those results too.

David

61K downloaded  (subethasmtp-smtp-1.2.jar)
[INFO] [compiler:testCompile]
[INFO] Compiling 9 source files to /Users/dlwhitehurst/Me/Java/Working/trunk/service/target/test-classes
[INFO] [dbunit:operation {execution: default}]
[INFO] [surefire:test]
[INFO] Surefire report directory: /Users/dlwhitehurst/Me/Java/Working/trunk/service/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.appfuse.util.DateConverterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.103 sec
Running org.appfuse.service.UserExistsExceptionTest
DEBUG - UserExistsExceptionTest.testAddExistingUser(26) | entered 'testAddExistingUser' method
DEBUG - UserDaoHibernate.saveUser(49) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(100) | SQL Error: 1467, SQLState: HY000
ERROR - JDBCExceptionReporter.logExceptions(101) | Failed to read auto-increment value from storage engine
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.081 sec <<< FAILURE!
Running org.appfuse.service.impl.LookupManagerImplTest
DEBUG - LookupManagerImplTest.testGetAllRoles(28) | entered 'testGetAllRoles' method
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec
Running org.appfuse.service.impl.UserManagerImplTest
WARN - UserManagerImpl.saveUser(89) | PasswordEncoder not set, skipping password encryption...
WARN - UserManagerImpl.saveUser(89) | PasswordEncoder not set, skipping password encryption...
DEBUG - UserManagerImpl.removeUser(109) | removing user: 5
WARN - UserManagerImpl.saveUser(89) | PasswordEncoder not set, skipping password encryption...
WARN - UserManagerImpl.saveUser(96) |
DEBUG - UserManagerImplTest.testUserExistsException(136) | expected exception: User 'admin' already exists!
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.091 sec
Running org.appfuse.util.DateUtilTest
DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Tue May 05 19:15:32 EDT 2009
DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 05/05/2009
DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime' method
DEBUG - DateUtilTest.testGetDateTime(62) | 19:15
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec
Running org.appfuse.service.UserManagerTest
DEBUG - UserManagerTest.testGetUser(24) | org.appfuse.model.User@b5b632[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER]
DEBUG - UserManagerTest.testSaveUser(33) | saving user with updated phone number: org.appfuse.model.User@282b42[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER]
DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(49) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(100) | SQL Error: 1467, SQLState: HY000
ERROR - JDBCExceptionReporter.logExceptions(101) | Failed to read auto-increment value from storage engine
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.887 sec <<< FAILURE!
Running org.appfuse.service.impl.UserSecurityAdviceTest
WARN - UserSecurityAdvice.before(71) | Access Denied: 'user' tried to modify 'admin'!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change their role(s)!
WARN - UserSecurityAdvice.before(92) | Access Denied: 'user' tried to change their role(s)!
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.332 sec
Running org.appfuse.service.MailEngineTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.625 sec

Results :

Tests in error:
  testAddExistingUser(org.appfuse.service.UserExistsExceptionTest)
  testAddAndRemoveUser(org.appfuse.service.UserManagerTest)

Tests run: 26, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /Users/dlwhitehurst/Me/Java/Working/trunk/service/target/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 46 seconds
[INFO] Finished at: Tue May 05 19:15:34 EDT 2009
[INFO] Final Memory: 31M/61M
[INFO] ------------------------------------------------------------------------
david-whitehursts-macbook-pro-15:trunk dlwhitehurst$


On Tue, May 5, 2009 at 4:45 PM, Matt Raible <[hidden email]> wrote:
Hello all,

Since I'm the only one that's been building AppFuse lately, I want to make sure it's possible to build w/ all the changes I've made.

If possible, please take 10 minutes and try to build the latest version from trunk.

Steps:

1. Install Maven 2.1.0 if you don't already have it. http://maven.apache.org/download.html
2. Install an SMTP server. http://appfuse.org/display/APF/Installing+an+SMTP+Server
3. Checkout AppFuse trunk: svn co https://appfuse.dev.java.net/svn/appfuse/trunk (username: guest, password: (blank) if you don't have a developer account)
4. cd appfuse;mvn install

Thanks!

Matt

David Whitehurst

Re: Building/Testing Trunk

Reply Threaded More More options
Print post
Permalink
In reply to this post by mraible
Second pass, no db, no repo:

esults :

Tests in error:
  testAddExistingUser(org.appfuse.service.UserExistsExceptionTest)
  testAddAndRemoveUser(org.appfuse.service.UserManagerTest)

Tests run: 26, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /Users/dlwhitehurst/Me/Java/Working/appfuse/service/target/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 25 seconds
[INFO] Finished at: Tue May 05 19:26:01 EDT 2009
[INFO] Final Memory: 31M/55M
[INFO] ------------------------------------------------------------------------
david-whitehursts-macbook-pro-15:appfuse dlwhitehurst$

I'll look in the reports directory and try to figure out what's wrong.


David

On Tue, May 5, 2009 at 4:45 PM, Matt Raible <[hidden email]> wrote:
Hello all,

Since I'm the only one that's been building AppFuse lately, I want to make sure it's possible to build w/ all the changes I've made.

If possible, please take 10 minutes and try to build the latest version from trunk.

Steps:

1. Install Maven 2.1.0 if you don't already have it. http://maven.apache.org/download.html
2. Install an SMTP server. http://appfuse.org/display/APF/Installing+an+SMTP+Server
3. Checkout AppFuse trunk: svn co https://appfuse.dev.java.net/svn/appfuse/trunk (username: guest, password: (blank) if you don't have a developer account)
4. cd appfuse;mvn install

Thanks!

Matt

David Whitehurst

Re: Building/Testing Trunk

Reply Threaded More More options
Print post
Permalink
I hate this problem.

java.sql.SQLException: Failed to read auto-increment value from storage engine
    at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83)

It seems intermittent.  I don't always see this.  But ... I am now.

I've been having issues with MySQL so I'll take it down, bring it back up and test again.


David

On Tue, May 5, 2009 at 7:27 PM, David Whitehurst <[hidden email]> wrote:
Second pass, no db, no repo:


esults :

Tests in error:
  testAddExistingUser(org.appfuse.service.UserExistsExceptionTest)
  testAddAndRemoveUser(org.appfuse.service.UserManagerTest)

Tests run: 26, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /Users/dlwhitehurst/Me/Java/Working/appfuse/service/target/surefire-reports for the individual test results.

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 25 seconds
[INFO] Finished at: Tue May 05 19:26:01 EDT 2009
[INFO] Final Memory: 31M/55M
[INFO] ------------------------------------------------------------------------
david-whitehursts-macbook-pro-15:appfuse dlwhitehurst$

I'll look in the reports directory and try to figure out what's wrong.


David

On Tue, May 5, 2009 at 4:45 PM, Matt Raible <[hidden email]> wrote:
Hello all,

Since I'm the only one that's been building AppFuse lately, I want to make sure it's possible to build w/ all the changes I've made.

If possible, please take 10 minutes and try to build the latest version from trunk.

Steps:

1. Install Maven 2.1.0 if you don't already have it. http://maven.apache.org/download.html
2. Install an SMTP server. http://appfuse.org/display/APF/Installing+an+SMTP+Server
3. Checkout AppFuse trunk: svn co https://appfuse.dev.java.net/svn/appfuse/trunk (username: guest, password: (blank) if you don't have a developer account)
4. cd appfuse;mvn install

Thanks!

Matt


dusty

Re: Building/Testing Trunk

Reply Threaded More More options
Print post
Permalink
In reply to this post by David Whitehurst
Some javascript/style in this post has been disabled (why?)
Those tests failed for me last night and I worked out that it was a MySQL version issue and negative ids from sample data.  I changed the ids to positive and it worked.  Then I upgraded MySQL to .34 from .24 (I think) and the negative ids worked again.

The struts 2.1 issue is the convention plugin.  There are a few workarounds that I am not thrilled with but will play with it tonight.

I am not seeing the security issue Matt described in struts but I did notice a web test in jsf failed like it couldn't authenticate when I tried the full build.  I have kept my builds to the struts module since then.

-D

On May 5, 2009, at 4:27 PM, David Whitehurst <[hidden email]> wrote:

Second pass, no db, no repo:

esults :

Tests in error:
  testAddExistingUser(org.appfuse.service.UserExistsExceptionTest)
  testAddAndRemoveUser(org.appfuse.service.UserManagerTest)

Tests run: 26, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /Users/dlwhitehurst/Me/Java/Working/appfuse/service/target/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 25 seconds
[INFO] Finished at: Tue May 05 19:26:01 EDT 2009
[INFO] Final Memory: 31M/55M
[INFO] ------------------------------------------------------------------------
david-whitehursts-macbook-pro-15:appfuse dlwhitehurst$

I'll look in the reports directory and try to figure out what's wrong.


David

On Tue, May 5, 2009 at 4:45 PM, Matt Raible <[hidden email]> wrote:
Hello all,

Since I'm the only one that's been building AppFuse lately, I want to make sure it's possible to build w/ all the changes I've made.

If possible, please take 10 minutes and try to build the latest version from trunk.

Steps:

1. Install Maven 2.1.0 if you don't already have it. http://maven.apache.org/download.html
2. Install an SMTP server. http://appfuse.org/display/APF/Installing+an+SMTP+Server
3. Checkout AppFuse trunk: svn co https://appfuse.dev.java.net/svn/appfuse/trunk (username: guest, password: (blank) if you don't have a developer account)
4. cd appfuse;mvn install

Thanks!

Matt