[JBoss JIRA] (GTNPORTAL-3517) Cannot start Gatein Portal with MySQL in UTF-8
by Trong Tran (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3517?page=com.atlassian.jira.pl... ]
Trong Tran updated GTNPORTAL-3517:
----------------------------------
Fix Version/s: 3.9.0.Final
> Cannot start Gatein Portal with MySQL in UTF-8
> ----------------------------------------------
>
> Key: GTNPORTAL-3517
> URL: https://issues.jboss.org/browse/GTNPORTAL-3517
> Project: GateIn Portal
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Affects Versions: 3.5.10.Final
> Reporter: Tran Trung Thanh
> Fix For: 3.9.0.Final
>
>
> If we want to use Gatein Portal in UTF-8 mode with MySQL, even if we configure the dialect to mysql-utf8, we get issues of type:
> {code}
> Caused by: org.jboss.cache.CacheException: Unable to start cache loaders
> at org.jboss.cache.loader.CacheLoaderManager.startCacheLoader(CacheLoaderManager.java:470) ~[jbosscache-core-3.2.7.GA.jar:3.2.7.GA]
> ... 81 common frames omitted
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 1000 bytes
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.6.0_45]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) ~[na:1.6.0_45]
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) ~[na:1.6.0_45]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513) ~[na:1.6.0_45]
> at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) ~[mysql-connector-java-5.1.19.jar:na]
> at com.mysql.jdbc.Util.getInstance(Util.java:386) ~[mysql-connector-java-5.1.19.jar:na]
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052) ~[mysql-connector-java-5.1.19.jar:na]
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4098) ~[mysql-connector-java-5.1.19.jar:na]
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4030) ~[mysql-connector-java-5.1.19.jar:na]
> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2490) ~[mysql-connector-java-5.1.19.jar:na]
> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2651) ~[mysql-connector-java-5.1.19.jar:na]
> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2671) ~[mysql-connector-java-5.1.19.jar:na]
> at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1749) ~[mysql-connector-java-5.1.19.jar:na]
> at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1666) ~[mysql-connector-java-5.1.19.jar:na]
> at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228) ~[tomcat-dbcp.jar:7.0.42]
> at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228) ~[tomcat-dbcp.jar:7.0.42]
> at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:228) ~[tomcat-dbcp.jar:7.0.42]
> at org.jboss.cache.loader.AdjListJDBCCacheLoader.start(AdjListJDBCCacheLoader.java:300) ~[jbosscache-core-3.2.7.GA.jar:3.2.7.GA]
> at org.jboss.cache.loader.JDBCCacheLoader.start(JDBCCacheLoader.java:396) ~[jbosscache-core-3.2.7.GA.jar:3.2.7.GA]
> at org.exoplatform.services.jcr.impl.core.lock.jbosscache.ControllerCacheLoader.start(ControllerCacheLoader.java:312) ~[exo.jcr.component.core-1.15.8-GA-SNAPSHOT.jar:1.15.8-GA-SNAPSHOT]
> at org.jboss.cache.loader.CacheLoaderManager.startCacheLoader(CacheLoaderManager.java:464) ~[jbosscache-core-3.2.7.GA.jar:3.2.7.GA]
> {code}
> NB: The db schema has been created using the next command:
> {code}
> CREATE DATABASE plf_jcr_utf8 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin;
> {code}
> To make Gatein Portal work with MySQL in UTF-8, we need [JCR-2312|https://jira.exoplatform.org/browse/JCR-2312] and add new parameter introduced from JCR issue in the configuration of the lock manager which is infinispan-cl-cache.jdbc.dialect in case of infinispan and jbosscache-cl-cache.jdbc.dialect in case of JBC.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 3 months
[JBoss JIRA] (GTNPORTAL-3522) Failed testRemoteGadget when build gatein portal-3.5.x with unstable internet connection
by Trong Tran (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3522?page=com.atlassian.jira.pl... ]
Trong Tran reassigned GTNPORTAL-3522:
-------------------------------------
Assignee: Trong Tran
> Failed testRemoteGadget when build gatein portal-3.5.x with unstable internet connection
> ----------------------------------------------------------------------------------------
>
> Key: GTNPORTAL-3522
> URL: https://issues.jboss.org/browse/GTNPORTAL-3522
> Project: GateIn Portal
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Reporter: Tran Trung Thanh
> Assignee: Trong Tran
> Fix For: 3.9.0.Final
>
>
> In some cases, when the internet connection is not stable, build failure gatein 3.5
> {noformat}
> Test set: org.exoplatform.application.gadget.TestGadgetRegistryService
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 19.27 sec <<< FAILURE!
> testRemoteGadget(org.exoplatform.application.gadget.TestGadgetRegistryService) Time elapsed: 5.102 sec <<< ERROR!
> java.io.IOException
> at org.exoplatform.application.gadget.GadgetImporter.doImport(GadgetImporter.java:93)
> at org.exoplatform.application.gadget.TestGadgetRegistryService$TestGadgetImporter.doImport(TestGadgetRegistryService.java:176)
> at org.exoplatform.application.gadget.TestGadgetRegistryService.testRemoteGadget(TestGadgetRegistryService.java:84)
> {noformat}
> The problem comes from link http://www.labpixies.com/campaigns/weather/weather.xml in *testRemoteGadget* function of *TestGadgetRegistryService* class, sometime I can't access to this link.
> {noformat}
> [11:51:23-451][INFO] GadgetImporter Importing gadget name=local_test description=__MSG_description__ thumbnail=http://www.labpixies.com/campaigns/weather/images/thumbnail.jpg title=http://www.labpixies.com/campaigns/weather/images/thumbnail.jpg title=__MSG_gTitle__
> [11:51:23-475][INFO] TestGadgetRegistryService Unit test testLocalGadget completed
> [11:51:23-479][INFO] TestGadgetRegistryService Running unit test:testRemoteGadget
> [11:51:28-526][SEVERE] GadgetImporter Cannot import gadget http://www.labpixies.com/campaigns/weather/weather.xml because its data could not be found
> [11:51:28-527][SEVERE] TestGadgetRegistryService Unit test testRemoteGadget did not complete java.io.IOException
> at org.exoplatform.application.gadget.GadgetImporter.doImport(GadgetImporter.java:93)
> at org.exoplatform.application.gadget.TestGadgetRegistryService$TestGadgetImporter.doImport(TestGadgetRegistryService.java:176)
> at org.exoplatform.application.gadget.TestGadgetRegistryService.testRemoteGadget(TestGadgetRegistryService.java:84)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 3 months
[JBoss JIRA] (GTNPORTAL-3522) Failed testRemoteGadget when build gatein portal-3.5.x with unstable internet connection
by Trong Tran (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3522?page=com.atlassian.jira.pl... ]
Trong Tran updated GTNPORTAL-3522:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> Failed testRemoteGadget when build gatein portal-3.5.x with unstable internet connection
> ----------------------------------------------------------------------------------------
>
> Key: GTNPORTAL-3522
> URL: https://issues.jboss.org/browse/GTNPORTAL-3522
> Project: GateIn Portal
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Reporter: Tran Trung Thanh
> Fix For: 3.9.0.Final
>
>
> In some cases, when the internet connection is not stable, build failure gatein 3.5
> {noformat}
> Test set: org.exoplatform.application.gadget.TestGadgetRegistryService
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 19.27 sec <<< FAILURE!
> testRemoteGadget(org.exoplatform.application.gadget.TestGadgetRegistryService) Time elapsed: 5.102 sec <<< ERROR!
> java.io.IOException
> at org.exoplatform.application.gadget.GadgetImporter.doImport(GadgetImporter.java:93)
> at org.exoplatform.application.gadget.TestGadgetRegistryService$TestGadgetImporter.doImport(TestGadgetRegistryService.java:176)
> at org.exoplatform.application.gadget.TestGadgetRegistryService.testRemoteGadget(TestGadgetRegistryService.java:84)
> {noformat}
> The problem comes from link http://www.labpixies.com/campaigns/weather/weather.xml in *testRemoteGadget* function of *TestGadgetRegistryService* class, sometime I can't access to this link.
> {noformat}
> [11:51:23-451][INFO] GadgetImporter Importing gadget name=local_test description=__MSG_description__ thumbnail=http://www.labpixies.com/campaigns/weather/images/thumbnail.jpg title=http://www.labpixies.com/campaigns/weather/images/thumbnail.jpg title=__MSG_gTitle__
> [11:51:23-475][INFO] TestGadgetRegistryService Unit test testLocalGadget completed
> [11:51:23-479][INFO] TestGadgetRegistryService Running unit test:testRemoteGadget
> [11:51:28-526][SEVERE] GadgetImporter Cannot import gadget http://www.labpixies.com/campaigns/weather/weather.xml because its data could not be found
> [11:51:28-527][SEVERE] TestGadgetRegistryService Unit test testRemoteGadget did not complete java.io.IOException
> at org.exoplatform.application.gadget.GadgetImporter.doImport(GadgetImporter.java:93)
> at org.exoplatform.application.gadget.TestGadgetRegistryService$TestGadgetImporter.doImport(TestGadgetRegistryService.java:176)
> at org.exoplatform.application.gadget.TestGadgetRegistryService.testRemoteGadget(TestGadgetRegistryService.java:84)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 3 months
[JBoss JIRA] (GTNPORTAL-3522) Failed testRemoteGadget when build gatein portal-3.5.x with unstable internet connection
by Trong Tran (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3522?page=com.atlassian.jira.pl... ]
Trong Tran updated GTNPORTAL-3522:
----------------------------------
Fix Version/s: 3.9.0.Final
> Failed testRemoteGadget when build gatein portal-3.5.x with unstable internet connection
> ----------------------------------------------------------------------------------------
>
> Key: GTNPORTAL-3522
> URL: https://issues.jboss.org/browse/GTNPORTAL-3522
> Project: GateIn Portal
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Reporter: Tran Trung Thanh
> Fix For: 3.9.0.Final
>
>
> In some cases, when the internet connection is not stable, build failure gatein 3.5
> {noformat}
> Test set: org.exoplatform.application.gadget.TestGadgetRegistryService
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 19.27 sec <<< FAILURE!
> testRemoteGadget(org.exoplatform.application.gadget.TestGadgetRegistryService) Time elapsed: 5.102 sec <<< ERROR!
> java.io.IOException
> at org.exoplatform.application.gadget.GadgetImporter.doImport(GadgetImporter.java:93)
> at org.exoplatform.application.gadget.TestGadgetRegistryService$TestGadgetImporter.doImport(TestGadgetRegistryService.java:176)
> at org.exoplatform.application.gadget.TestGadgetRegistryService.testRemoteGadget(TestGadgetRegistryService.java:84)
> {noformat}
> The problem comes from link http://www.labpixies.com/campaigns/weather/weather.xml in *testRemoteGadget* function of *TestGadgetRegistryService* class, sometime I can't access to this link.
> {noformat}
> [11:51:23-451][INFO] GadgetImporter Importing gadget name=local_test description=__MSG_description__ thumbnail=http://www.labpixies.com/campaigns/weather/images/thumbnail.jpg title=http://www.labpixies.com/campaigns/weather/images/thumbnail.jpg title=__MSG_gTitle__
> [11:51:23-475][INFO] TestGadgetRegistryService Unit test testLocalGadget completed
> [11:51:23-479][INFO] TestGadgetRegistryService Running unit test:testRemoteGadget
> [11:51:28-526][SEVERE] GadgetImporter Cannot import gadget http://www.labpixies.com/campaigns/weather/weather.xml because its data could not be found
> [11:51:28-527][SEVERE] TestGadgetRegistryService Unit test testRemoteGadget did not complete java.io.IOException
> at org.exoplatform.application.gadget.GadgetImporter.doImport(GadgetImporter.java:93)
> at org.exoplatform.application.gadget.TestGadgetRegistryService$TestGadgetImporter.doImport(TestGadgetRegistryService.java:176)
> at org.exoplatform.application.gadget.TestGadgetRegistryService.testRemoteGadget(TestGadgetRegistryService.java:84)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 3 months
[JBoss JIRA] (GTNPORTAL-3533) Support loading custom validator in system properties if no configuration.properties file
by Vu Viet Phuong (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3533?page=com.atlassian.jira.pl... ]
Vu Viet Phuong updated GTNPORTAL-3533:
--------------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 3.9.0.Final
Resolution: Done
> Support loading custom validator in system properties if no configuration.properties file
> -----------------------------------------------------------------------------------------
>
> Key: GTNPORTAL-3533
> URL: https://issues.jboss.org/browse/GTNPORTAL-3533
> 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
> Priority: Minor
> Fix For: 3.9.0.Final
>
>
> We have UserConfigurableValidator class, that allow to validate UIForm input components. This validator allow developer to define their own validator by adding config into TOMCAT/gatein/conf/configuration.properties
> The file name "configuration.properties" is currently hard-code. People may want to load configuration from other resource. We should make it more flexible by allowing to load configuration from system properties when that file is not exists
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 3 months
[JBoss JIRA] (GTNPORTAL-3533) Support loading custom validator in system properties if no configuration.properties file
by Vu Viet Phuong (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3533?page=com.atlassian.jira.pl... ]
Vu Viet Phuong updated GTNPORTAL-3533:
--------------------------------------
Description:
We have UserConfigurableValidator class, that allow to validate UIForm input components. This validator allow developer to define their own validator by adding config into TOMCAT/gatein/conf/configuration.properties
The file name "configuration.properties" is currently hard-code. People may want to load configuration from other resource. We should make it more flexible by allowing to load configuration from system properties when that file is not exists
was:
We have UserConfigurableValidator class, that allow to validate UIForm input components. This validator allow developer to define their own validator by adding config into TOMCAT/gatein/conf/configuration.properties
The file name "configuration.properties" is currently hard-code. We should make it more flexible by allowing to load configuration from system properties when that file is not exists
> Support loading custom validator in system properties if no configuration.properties file
> -----------------------------------------------------------------------------------------
>
> Key: GTNPORTAL-3533
> URL: https://issues.jboss.org/browse/GTNPORTAL-3533
> 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
> Priority: Minor
>
> We have UserConfigurableValidator class, that allow to validate UIForm input components. This validator allow developer to define their own validator by adding config into TOMCAT/gatein/conf/configuration.properties
> The file name "configuration.properties" is currently hard-code. People may want to load configuration from other resource. We should make it more flexible by allowing to load configuration from system properties when that file is not exists
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 3 months
[JBoss JIRA] (GTNPORTAL-3533) Support loading custom validator in system properties if no configuration.properties file
by Vu Viet Phuong (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3533?page=com.atlassian.jira.pl... ]
Vu Viet Phuong updated GTNPORTAL-3533:
--------------------------------------
Description:
We have UserConfigurableValidator class, that allow to validate UIForm input components. This validator allow developer to define their own validator by adding config into TOMCAT/gatein/conf/configuration.properties
The file name "configuration.properties" is currently hard-code. We should make it more flexible by allowing to load configuration from system properties when that file is not exists
was:
We have UserConfigurableValidator class, that allow to validate UIForm input components. This validator allow developer to define their own validator by adding config into TOMCAT/gatein/conf/configuration.properties
We should make it more flexible by allowing to load configuration from system properties when that file is not exists
> Support loading custom validator in system properties if no configuration.properties file
> -----------------------------------------------------------------------------------------
>
> Key: GTNPORTAL-3533
> URL: https://issues.jboss.org/browse/GTNPORTAL-3533
> 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
> Priority: Minor
>
> We have UserConfigurableValidator class, that allow to validate UIForm input components. This validator allow developer to define their own validator by adding config into TOMCAT/gatein/conf/configuration.properties
> The file name "configuration.properties" is currently hard-code. We should make it more flexible by allowing to load configuration from system properties when that file is not exists
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 3 months