[JBoss JIRA] (GTNPORTAL-3500) testMemoryLeakWithMultiThread fails sometimes
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3500?page=com.atlassian.jira.pl... ]
RH Bugzilla Integration commented on GTNPORTAL-3500:
----------------------------------------------------
Filip Kiss <fkiss(a)redhat.com> changed the Status of [bug 1103304|https://bugzilla.redhat.com/show_bug.cgi?id=1103304] from ON_QA to VERIFIED
> testMemoryLeakWithMultiThread fails sometimes
> ---------------------------------------------
>
> Key: GTNPORTAL-3500
> URL: https://issues.jboss.org/browse/GTNPORTAL-3500
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Peter Palaga
> Assignee: Trong Tran
> Fix For: 3.9.0.Final
>
> Attachments: TestDownloadService.java
>
> Original Estimate: 1 day, 4 hours
> Time Spent: 1 day
> Remaining Estimate: 0 minutes
>
> Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1103304
> org.exoplatform.download.TestDownloadService.testMemoryLeakWithMultiThread() fails in some cases. The stack trace:
> junit.framework.AssertionFailedError
> at junit.framework.Assert.fail(Assert.java:48)
> at junit.framework.Assert.assertTrue(Assert.java:20)
> at junit.framework.Assert.assertTrue(Assert.java:27)
> at org.exoplatform.download.TestDownloadService.testMemoryLeakWithMultiThread(TestDownloadService.java:109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> The line where it fails is
> assertTrue(cache.getCacheSize() <= 10);
> Version-Release number of selected component (if applicable):
> GateIn 3.8.x or 3.9.x
> Reproducible sometimes: 1/10 or even less. Happens both on Jenkins and desktop.
> Steps to Reproduce:
> Not sure. It happens randomly. Perhaps overloading the machine with some CPU-intensive task might help. Just build the exo.portal.component.web.server artifact with tests repeatedly until it fails.
> Actual results:
> Test fails
> Expected results:
> Not sure if the subject under the test is broken or the test itself.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 2 months
[JBoss JIRA] (GTNPORTAL-3530) User with special UTF-8 character in display name appears not correctly in GateIn using MS SQL Server 2008
by Tuyen Nguyen The (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3530?page=com.atlassian.jira.pl... ]
Tuyen Nguyen The commented on GTNPORTAL-3530:
---------------------------------------------
The solution of [PR 895|https://github.com/gatein/gatein-portal/pull/895]:
We add new profile *mssql* for MSSQL server, in this profile we will override hibernate-mapping and force it generates nvarchar column for table jbid_io_attr_text_values
So, when user want to run gatein with MSSQL server, he will have to add profile *mssql* when start gatein. For example in tomcat:
{code}
./gatein-dev.sh -Dexo.profiles=default,mssql run
{code}
> User with special UTF-8 character in display name appears not correctly in GateIn using MS SQL Server 2008
> ----------------------------------------------------------------------------------------------------------
>
> Key: GTNPORTAL-3530
> URL: https://issues.jboss.org/browse/GTNPORTAL-3530
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Tuyen Nguyen The
> Assignee: Tuyen Nguyen The
> Attachments: displayname_nok.png, displayname_ok.png
>
>
> Steps to reproduce:
> - start GateIn using MS SQL Server 2008, instead of HSQL.
> - login as root
> - Click on display name to open user profile dialog
> - Change user info with first name is "Nguyễn", last name is "Thế Tuyến", and display name is "Nguyễn Thế Tuyến"
> - Click save and now "Nguyễn Thế Tuyến" is appeared correctly in display name field on the top-right (See [^displayname_ok.png])
> - Restart Gatein and login with root again
> Problem: Display name appears not correctly. (see [^displayname_nok.png])
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 2 months
[JBoss JIRA] (GTNPORTAL-3529) Make UIContainer creation more flexible
by Vu Viet Phuong (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3529?page=com.atlassian.jira.pl... ]
Vu Viet Phuong updated GTNPORTAL-3529:
--------------------------------------
Description:
In PortalDataMapper, we have this
{code}
if (UITabContainer.TAB_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context, UITabContainer.class, null, null);
} else if (UIColumnContainer.COLUMN_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context, UIColumnContainer.class, null, null);
} else {
...
{code}
- This should be improved by making it more flexible, and extensible. Using ServiceLoader to load the factories class that help to create UIContainer by their factory-id
- The proposed solution is: using factory-id attribute of container model to create corresponding UI container type. And the creation task is delegated to a factory service, that can be loaded via service loader. This design make gatein ui container creation more flexible, it's easy to deploy gatein extension which define a new UI container type with new factory-id
- factory-id has already be used before in gatein, we use it to create UITabContainer, UIColumnContainer... This issue will add interface for factory service: UIComponentFactory and a default implementation for create current gatein build-in container: DefaultUIContainerFactory. It's declared as a service load by java ServiceLoader
- When gatein try to create UI container (from model loaded from database or from xml config file). ServiceLoader will load registered UIComponentFactory services, then delegate creation task with factory-id as argument
- A developer can deploy a jar that declare a new ui factory service, then help to create a new type of UI container easily
was:
In PortalDataMapper, we have this
{code}
if (UITabContainer.TAB_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context, UITabContainer.class, null, null);
} else if (UIColumnContainer.COLUMN_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context, UIColumnContainer.class, null, null);
} else {
...
{code}
This should be improved by making it more flexible, and extensible. Using ServiceLoader to load the factories class that help to create UIContainer by their factory-id
The proposed solution is: using factory-id attribute of container model to create corresponding UI container type. And the creation task is delegated to a factory service, that can be loaded via service loader. This design make gatein ui container creation more flexible, it's easy to deploy gatein extension which define a new UI container type with new factory-id
factory-id has already be used before in gatein, we use it to create UITabContainer, UIColumnContainer... This issue will add interface for factory service: UIComponentFactory and a default implementation for create current gatein build-in container: DefaultUIContainerFactory. It's declared as a service load by java ServiceLoader
When gatein try to create UI container (from model loaded from database or from xml config file). ServiceLoader will load registered UIComponentFactory services, then delegate creation task with factory-id as argument
A developer can deploy a jar that declare a new ui factory service, then help to create a new type of UI container easily
> Make UIContainer creation more flexible
> ---------------------------------------
>
> Key: GTNPORTAL-3529
> URL: https://issues.jboss.org/browse/GTNPORTAL-3529
> Project: GateIn Portal
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: WebUI
> Affects Versions: 3.8.2.Final
> Reporter: Vu Viet Phuong
> Assignee: Vu Viet Phuong
> Fix For: 3.9.0.Final
>
>
> In PortalDataMapper, we have this
> {code}
> if (UITabContainer.TAB_CONTAINER.equals(container.getFactoryId())) {
> uiTempContainer = uiContainer.createUIComponent(context, UITabContainer.class, null, null);
> } else if (UIColumnContainer.COLUMN_CONTAINER.equals(container.getFactoryId())) {
> uiTempContainer = uiContainer.createUIComponent(context, UIColumnContainer.class, null, null);
> } else {
> ...
> {code}
> - This should be improved by making it more flexible, and extensible. Using ServiceLoader to load the factories class that help to create UIContainer by their factory-id
> - The proposed solution is: using factory-id attribute of container model to create corresponding UI container type. And the creation task is delegated to a factory service, that can be loaded via service loader. This design make gatein ui container creation more flexible, it's easy to deploy gatein extension which define a new UI container type with new factory-id
> - factory-id has already be used before in gatein, we use it to create UITabContainer, UIColumnContainer... This issue will add interface for factory service: UIComponentFactory and a default implementation for create current gatein build-in container: DefaultUIContainerFactory. It's declared as a service load by java ServiceLoader
> - When gatein try to create UI container (from model loaded from database or from xml config file). ServiceLoader will load registered UIComponentFactory services, then delegate creation task with factory-id as argument
> - A developer can deploy a jar that declare a new ui factory service, then help to create a new type of UI container easily
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 2 months
[JBoss JIRA] (GTNPORTAL-3529) Make UIContainer creation more flexible
by Vu Viet Phuong (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3529?page=com.atlassian.jira.pl... ]
Vu Viet Phuong updated GTNPORTAL-3529:
--------------------------------------
Description:
In PortalDataMapper, we have this
{code}
if (UITabContainer.TAB_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context, UITabContainer.class, null, null);
} else if (UIColumnContainer.COLUMN_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context, UIColumnContainer.class, null, null);
} else {
...
{code}
This should be improved by making it more flexible, and extensible. Using ServiceLoader to load the factories class that help to create UIContainer by their factory-id
The proposed solution is: using factory-id attribute of container model to create corresponding UI container type. And the creation task is delegated to a factory service, that can be loaded via service loader. This design make gatein ui container creation more flexible, it's easy to deploy gatein extension which define a new UI container type with new factory-id
factory-id has already be used before in gatein, we use it to create UITabContainer, UIColumnContainer... This issue will add interface for factory service: UIComponentFactory and a default implementation for create current gatein build-in container: DefaultUIContainerFactory. It's declared as a service load by java ServiceLoader
When gatein try to create UI container (from model loaded from database or from xml config file). ServiceLoader will load registered UIComponentFactory services, then delegate creation task with factory-id as argument
A developer can deploy a jar that declare a new ui factory service, then help to create a new type of UI container easily
was:
In PortalDataMapper, we have this
{code}
if (UITabContainer.TAB_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context, UITabContainer.class, null, null);
} else if (UIColumnContainer.COLUMN_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context, UIColumnContainer.class, null, null);
} else {
...
{code}
This should be improved by making it more flexible, and extensible. Using ServiceLoader to load the factories class that help to create UIContainer by their factory-id
> Make UIContainer creation more flexible
> ---------------------------------------
>
> Key: GTNPORTAL-3529
> URL: https://issues.jboss.org/browse/GTNPORTAL-3529
> Project: GateIn Portal
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: WebUI
> Affects Versions: 3.8.2.Final
> Reporter: Vu Viet Phuong
> Assignee: Vu Viet Phuong
> Fix For: 3.9.0.Final
>
>
> In PortalDataMapper, we have this
> {code}
> if (UITabContainer.TAB_CONTAINER.equals(container.getFactoryId())) {
> uiTempContainer = uiContainer.createUIComponent(context, UITabContainer.class, null, null);
> } else if (UIColumnContainer.COLUMN_CONTAINER.equals(container.getFactoryId())) {
> uiTempContainer = uiContainer.createUIComponent(context, UIColumnContainer.class, null, null);
> } else {
> ...
> {code}
> This should be improved by making it more flexible, and extensible. Using ServiceLoader to load the factories class that help to create UIContainer by their factory-id
> The proposed solution is: using factory-id attribute of container model to create corresponding UI container type. And the creation task is delegated to a factory service, that can be loaded via service loader. This design make gatein ui container creation more flexible, it's easy to deploy gatein extension which define a new UI container type with new factory-id
> factory-id has already be used before in gatein, we use it to create UITabContainer, UIColumnContainer... This issue will add interface for factory service: UIComponentFactory and a default implementation for create current gatein build-in container: DefaultUIContainerFactory. It's declared as a service load by java ServiceLoader
> When gatein try to create UI container (from model loaded from database or from xml config file). ServiceLoader will load registered UIComponentFactory services, then delegate creation task with factory-id as argument
> A developer can deploy a jar that declare a new ui factory service, then help to create a new type of UI container easily
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 2 months
[JBoss JIRA] (GTNPORTAL-3530) User with special UTF-8 character in display name appears not correctly in GateIn using MS SQL Server 2008
by Tuyen Nguyen The (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3530?page=com.atlassian.jira.pl... ]
Tuyen Nguyen The reassigned GTNPORTAL-3530:
-------------------------------------------
Assignee: Tuyen Nguyen The
> User with special UTF-8 character in display name appears not correctly in GateIn using MS SQL Server 2008
> ----------------------------------------------------------------------------------------------------------
>
> Key: GTNPORTAL-3530
> URL: https://issues.jboss.org/browse/GTNPORTAL-3530
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Tuyen Nguyen The
> Assignee: Tuyen Nguyen The
> Attachments: displayname_nok.png, displayname_ok.png
>
>
> Steps to reproduce:
> - start GateIn using MS SQL Server 2008, instead of HSQL.
> - login as root
> - Click on display name to open user profile dialog
> - Change user info with first name is "Nguyễn", last name is "Thế Tuyến", and display name is "Nguyễn Thế Tuyến"
> - Click save and now "Nguyễn Thế Tuyến" is appeared correctly in display name field on the top-right (See [^displayname_ok.png])
> - Restart Gatein and login with root again
> Problem: Display name appears not correctly. (see [^displayname_nok.png])
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 2 months