[JBoss JIRA] (GTNPORTAL-2960) Unable to determine Dialect to use [name=EnterpriseDB, majorVersion=9] - for PostgresPlus 9.2
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-2960?page=com.atlassian.jira.pl... ]
RH Bugzilla Integration commented on GTNPORTAL-2960:
----------------------------------------------------
Dominik Pospisil <dpospisi(a)redhat.com> made a comment on [bug 975374|https://bugzilla.redhat.com/show_bug.cgi?id=975374]
Hibernate DialectFactory cannot determine "hibernate.dialect" for PostgresPlus 9.2 (EnterpriseDB).
...
org.hibernate.HibernateException: Unable to determine Dialect to use [name=EnterpriseDB, majorVersion=9]; user must register resolver or explicitly set 'hibernate.dialect'
at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:105) [hibernate-core-4.1.6.Final.jar:4.1.6.Final]
at
...
As a workaroud, IDM datasource dialect may be set manually to "org.hibernate.dialect.PostgresPlusDialect".
> Unable to determine Dialect to use [name=EnterpriseDB, majorVersion=9] - for PostgresPlus 9.2
> ---------------------------------------------------------------------------------------------
>
> Key: GTNPORTAL-2960
> URL: https://issues.jboss.org/browse/GTNPORTAL-2960
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.6.0.Beta02
> Environment: PostgresPlus 9.2 (EnterpriseDB)
> edb-jdbc14.jar
> Reporter: Tomas Kyjovsky
> Labels: JPP61-Test-dev
> Attachments: hibernate-exception.txt
>
>
> Hibernate DialectFactory cannot determine "hibernate.dialect" for PostgresPlus 9.2 (EnterpriseDB).
> ...
> org.hibernate.HibernateException: Unable to determine Dialect to use [name=EnterpriseDB, majorVersion=9]; user must register resolver or explicitly set 'hibernate.dialect'
> at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:105) [hibernate-core-4.1.6.Final.jar:4.1.6.Final]
> at
> ...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months
[JBoss JIRA] (GTNPORTAL-3122) Errors are not handled correctly in UIPortletActionListener.handleErrorResponse
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3122?page=com.atlassian.jira.pl... ]
RH Bugzilla Integration commented on GTNPORTAL-3122:
----------------------------------------------------
Lucas Ponce <lponce(a)redhat.com> made a comment on [bug 973716|https://bugzilla.redhat.com/show_bug.cgi?id=973716]
PR sent by Martin discussed and verified.
> Errors are not handled correctly in UIPortletActionListener.handleErrorResponse
> -------------------------------------------------------------------------------
>
> Key: GTNPORTAL-3122
> URL: https://issues.jboss.org/browse/GTNPORTAL-3122
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: WebUI
> Affects Versions: 3.6.0.Beta02
> Reporter: Martin Weiler
> Assignee: Lucas Ponce
> Attachments: reproducer-for-GTNPORTAL-3122.zip
>
>
> When a portlet is running into a NoClassDefFoundError in processAction method, this error is not handled properly in UIPortletActionListener.handleErrorResponse:
> {code:title=UIPortletActionListener.java|borderStyle=solid}
> private void handleErrorResponse(ErrorResponse response) throws Exception {
> throw (Exception) response.getCause();
> }
> {code}
> This code tries to cast the Throwable to Exception, resulting in a ClassCastException which hides the real error. As a result, it is not possible to see the root cause of the issue in the log file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months