[Hibernate-JIRA] Created: (HHH-5229) org.hibernate.test.hql.ScrollableCollectionFetchingTest.testScrollingJoinFetchesEmptyResultSet() fails on sybase
by Strong Liu (JIRA)
org.hibernate.test.hql.ScrollableCollectionFetchingTest.testScrollingJoinFetchesEmptyResultSet() fails on sybase
----------------------------------------------------------------------------------------------------------------
Key: HHH-5229
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5229
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.5.2, 3.5.1
Reporter: Strong Liu
Assignee: Strong Liu
Fix For: 3.5.x, 3.6
{quote}
Result set is IDLE as you are not currently accessing a row.
Description: The application has called one of the ResultSet.getXXX column-data retrieval methods, but there is no current row; the application has not called ResultSet.next(), or ResultSet.next() returned "false" to indicate that there is no data.
Action: Check that rs.next() is set to "true" before calling rs.getXXX.
{quote}
org.hibernate.exception.GenericJDBCException: could not perform sequential read of results (forward)
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.loader.Loader.loadSequentialRowsForward(Loader.java:420)
at org.hibernate.impl.FetchingScrollableResultsImpl.next(FetchingScrollableResultsImpl.java:83)
at org.hibernate.test.hql.ScrollableCollectionFetchingTest.testScrollingJoinFetchesEmptyResultSet(ScrollableCollectionFetchingTest.java:67)
Caused by: java.sql.SQLException: JZ0R1: Result set is IDLE as you are not currently accessing a row.
at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(Unknown Source)
at com.sybase.jdbc3.jdbc.SybResultSet.checkIfReadableRow(Unknown Source)
at com.sybase.jdbc3.jdbc.SybResultSet.getColumn(Unknown Source)
at com.sybase.jdbc3.jdbc.SybResultSet.getLong(Unknown Source)
at com.sybase.jdbc3.jdbc.SybResultSet.getLong(Unknown Source)
at org.hibernate.type.LongType.get(LongType.java:51)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:184)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:173)
at org.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:1120)
at org.hibernate.loader.Loader.loadSequentialRowsForward(Loader.java:409)
... 31 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months
[Hibernate-JIRA] Created: (HHH-5329) NoClassDefFoundError when using Hibernate 3.5 with J2SE 1.4 because of a wrong catch block
by Francesco Poli (JIRA)
NoClassDefFoundError when using Hibernate 3.5 with J2SE 1.4 because of a wrong catch block
------------------------------------------------------------------------------------------
Key: HHH-5329
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5329
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.5.3, 3.5.2, 3.5.1, 3.5.0-Final
Environment: Hibernate 3.5, Java SE 1.4 or J2EE 1.3
Reporter: Francesco Poli
Priority: Blocker
In org.hibernate.impl.SessionFactoryImpl is done this check when looking for concurrent classes during the creation of the SessionFactory:
Statistics concurrentStatistics = null;
try {
Class concurrentStatsClass = ReflectHelper.classForName("org.hibernate.stat.ConcurrentStatisticsImpl");
Constructor constructor = concurrentStatsClass.getConstructor(new Class[]{SessionFactoryImplementor.class});
concurrentStatistics = (Statistics) constructor.newInstance(new Object[]{this});
log.trace("JDK 1.5 concurrent classes present");
} catch (Exception noJava5) {
log.trace("JDK 1.5 concurrent classes missing");
}
But what is thrown is a NoClassDefFoundError, which is not an Exception.
As a consequence, the catch block won't work and the error is propagated to the upper levels of the application.
I suggest to modify the catch arguments to match the correct type of the thrown object.
Thank you.
Bye
Francesco Poli
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months
[Hibernate-JIRA] Created: (HV-339) ^ not allowed in Email
by Tim (JIRA)
^ not allowed in Email
----------------------
Key: HV-339
URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-339
Project: Hibernate Validator
Issue Type: Bug
Components: validators
Affects Versions: 4.1.0.CR1
Environment: hibernate-validator-4.1.0.CR1
Reporter: Tim
Assignee: Hardy Ferentschik
Priority: Minor
The email validator rejects emails with ^ in them. According to the rfc-2822 spec they should be allowed.
http://www.faqs.org/rfcs/rfc2822.html
I believe the regex is incorrect.
>From file org.hibernate.validator.constraints.impl.EmailValidator (line 17)
private static String ATOM = "[^\\x00-\\x1F^\\(^\\)^\\<^\\>^\\@^\\,^\\;^\\:^\\\\^\\\"^\\.^\\[^\\]^\\s]";
There should only be one ^ all the others are not needed and cause the ^ character to be invalid.
I believe it should be:
private static String ATOM = "[^\\x00-\\x1F\\(\\)\\<\\>\\@\\,\\;\\:\\\\\\\"\\.\\[\\]\\s]";
// ======== Test Case =========
import junit.framework.TestCase;
import org.hibernate.validator.constraints.impl.EmailValidator;
import org.junit.Test;
public class TestEmailValidator extends TestCase {
@Test
public void testAccent(){
EmailValidator emailValidator = new EmailValidator();
boolean result = emailValidator.isValid("Test^Email(a)example.com", null);
assertTrue(result);
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months
[Hibernate-JIRA] Created: (HHH-5304) Deploying Hibernate 3.5 in isolated classloader in AS 5.1 fails
by Galder Zamarreno (JIRA)
Deploying Hibernate 3.5 in isolated classloader in AS 5.1 fails
---------------------------------------------------------------
Key: HHH-5304
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5304
Project: Hibernate Core
Issue Type: Bug
Affects Versions: 3.5.2
Reporter: Galder Zamarreno
Deploying Hibernate 3.5 within an isolated deployment in AS 5.1, where Hibernate 3.3 or 3.4 runs, fails with:
3:29:34,255 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=InfiniSeam-ear.ear/InfiniSeam-ejb.jar#InfiniSeam
13:29:34,305 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=InfiniSeam-ear.ear/InfiniSeam-ejb.jar#InfiniSeam state=Create
java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
Taking in account that org.hibernate.ejb.HibernatePersistence extends javax.persistence.spi.PersistenceProvider, this would appear to be an issue of the first class being loaded with a CL and the second one with a different one.
Since org.hibernate.ejb.HibernatePersistence is something that's defined in the persistence.xml, there might be a change that this class is loaded from the wrong place rather than the .ear file (This is just a hunch though):
<provider>org.hibernate.ejb.HibernatePersistence</provider>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 10 months
[Hibernate-JIRA] Created: (HHH-5330) Informix requires colon between catalog and table name
by Ranieri J D Severiano (JIRA)
Informix requires colon between catalog and table name
------------------------------------------------------
Key: HHH-5330
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5330
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.3.1
Environment: Hibernate 3.3.1.GA, IBM Informix Dynamic Server Version 10.00.UC5
Reporter: Ranieri J D Severiano
I have two databases in an Informix server:
* payment
* security
Payment database has the following tables:
+ employee
+ income
Security database has the following tables:
+ user
+ role
If I connect to the payment database, I can select security database with the syntax below:
select * from security:user where username='john.connor'
But hibernate cannot generate such statement. I find the method
org.hibernate.mapping.Table.qualify(String catalog, String schema, String table)
which necessarily append dot (".") between catalog/schema and table name.
I suggest delegate such concatenation to the Dialect.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 10 months