[gatein-issues] [JBoss JIRA] Commented: (GTNPORTAL-385) Maven Build from FC12 over PowerPC and IBM JDK not working

Matt Wringe (JIRA) jira-events at lists.jboss.org
Tue Mar 2 09:57:10 EST 2010


    [ https://jira.jboss.org/jira/browse/GTNPORTAL-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12517574#action_12517574 ] 

Matt Wringe commented on GTNPORTAL-385:
---------------------------------------

if building GateIn with the IBM jdk (x86_64), you will run into the same annotations errors when running the tests that were brought up in GTNPORTAL-636. This appears to be caused by an IBM jdk bug.

If building GateIn without the tests, then it will build properly. 

It may be possible to get around the jdk annotations issue if we add the jcip annotations jar to the classpath for the tests. 

> Maven Build from FC12 over PowerPC and IBM JDK not working
> ----------------------------------------------------------
>
>                 Key: GTNPORTAL-385
>                 URL: https://jira.jboss.org/jira/browse/GTNPORTAL-385
>             Project: GateIn Portal
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 3.0.0-Beta03
>         Environment: Power PC multi-CPU, FC12 and IBM JDK 1.6 (J9)
>            Reporter: David Calvente
>
> Various problems arises when trying to compile and/or package the whole GateIn:
> TestBoundedBuffer -> testNoLeak() Line 92 assertNotNull(ref2.get());
> TestUserPortalConfigService -> Line 342 -> assertEquals(expectedNavigations, navigations);  returns an additional entry: /groupTest
> ##############  Trunk   ###############  ###############  ############### 
> [INFO] ------------------------------------------------------------------------
> [INFO] Building GateIn Portal Component Scripting
> [INFO]    task-segment: [clean, install]
> [INFO] ------------------------------------------------------------------------
> ...
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.074 sec
> Running org.exoplatform.commons.utils.TestBoundedBuffer
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.66 sec <<< FAILURE!
> Results :
> Failed tests:
>   testNoLeak(org.exoplatform.commons.utils.TestBoundedBuffer)
>  Surefire Report  
> -------------------------------------------------------------------------------
> Test set: org.exoplatform.commons.utils.TestBoundedBuffer
> -------------------------------------------------------------------------------
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.66 sec <<< FAILURE!
> testNoLeak(org.exoplatform.commons.utils.TestBoundedBuffer)  Time elapsed: 0.627 sec  <<< FAILURE!
> junit.framework.AssertionFailedError
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at junit.framework.Assert.assertNotNull(Assert.java:217)
> 	at junit.framework.Assert.assertNotNull(Assert.java:210)
> 	at org.exoplatform.commons.utils.TestBoundedBuffer.testNoLeak(TestBoundedBuffer.java:93)
> ###Workaround in order to go far in the process...
> /*
>    public void testNoLeak()
>    {
>       BoundedBuffer<Object> buffer = new BoundedBuffer<Object>(2);
>       Object o1 = new Object();
>       Object o2 = new Object();
>       Object o3 = new Object();
>       buffer.add(o1);
>       buffer.add(o2);
>       buffer.add(o3);
>       WeakReference<Object> ref1 = new WeakReference<Object>(o1);
>       WeakReference<Object> ref2 = new WeakReference<Object>(o2);
>       WeakReference<Object> ref3 = new WeakReference<Object>(o3);
>       o1 = null;
>       o2 = null;
>       o3 = null;
>       forceGC();
>       assertNull(ref1.get());
>       assertNotNull(ref2.get());
>       assertNotNull(ref3.get());
>    }
> */
> ############################################################################### 
> -------------------------------------------------------------------------------
> Test set: org.exoplatform.portal.config.TestUserPortalConfigService
> -------------------------------------------------------------------------------
> Tests run: 29, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.007 sec <<< FAILURE!
> testRootGetMakableNavigations(org.exoplatform.portal.config.TestUserPortalConfigService)  Time elapsed: 0.288 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<[/organization/communication/marketing, /platform, /organization, /organization/management/executive-board, /customers, /organization/management/human-resources, /platform/guests, /organization/communication, /organization/operations/finances, /organization/management, /platform/administrators, /organization/operations/sales, /organization/operations, /partners, /platform/users, /organization/communication/press-and-media]> but was:<[/organization/communication/marketing, /organization/management/executive-board, /customers, /organization/management/human-resources, /organization/management, /platform/administrators, /partners, /platform/users, /groupTest, /organization, /platform, /platform/guests, /organization/communication, /organization/operations/finances, /organization/operations/sales, /organization/operations, /organization/communication/press-and-media]>
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.failNotEquals(Assert.java:282)
> 	at junit.framework.Assert.assertEquals(Assert.java:64)
> 	at junit.framework.Assert.assertEquals(Assert.java:71)
> 	at org.exoplatform.portal.config.TestUserPortalConfigService$9.execute(TestUserPortalConfigService.java:342)
> 	at org.exoplatform.portal.config.TestUserPortalConfigService$UnitTest.execute(TestUserPortalConfigService.java:883)
> 	at org.exoplatform.portal.config.TestUserPortalConfigService.testRootGetMakableNavigations(TestUserPortalConfigService.java:330)
> It seems like multi-cpu or IBM JDK is not a tested environment..
> I repeated the steps over FC11 in Intel single CPU and worked fine for Beta-03 (Failed Beta-04 but due to another problems..

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

        


More information about the gatein-issues mailing list