TimeoutTest and JPATimeoutTest fail against Sybase
--------------------------------------------------
Key: HSEARCH-999
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-999
Project: Hibernate Search
Issue Type: Bug
Components: tests
Affects Versions: 4.0.0.CR2
Reporter: Hardy Ferentschik
Assignee: Hardy Ferentschik
Fix For: 4.0.0.Final
The exception is :
{noformat}
org.hibernate.exception.GenericJDBCException: Message empty.
at
org.hibernate.exception.internal.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:148)
at
org.hibernate.exception.internal.SQLStateConverter.convert(SQLStateConverter.java:136)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
at
org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:129)
at
org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81)
at $Proxy23.executeQuery(Unknown Source)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1978)
at org.hibernate.loader.Loader.doQuery(Loader.java:829)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:289)
at org.hibernate.loader.Loader.doList(Loader.java:2463)
at org.hibernate.loader.Loader.doList(Loader.java:2449)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2279)
at org.hibernate.loader.Loader.list(Loader.java:2274)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:122)
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1483)
at org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:374)
at
org.hibernate.search.query.hibernate.impl.CriteriaObjectsInitializer.initializeObjects(CriteriaObjectsInitializer.java:107)
at
org.hibernate.search.query.hibernate.impl.QueryLoader.executeLoad(QueryLoader.java:91)
at org.hibernate.search.query.hibernate.impl.AbstractLoader.load(AbstractLoader.java:72)
at
org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.list(FullTextQueryImpl.java:211)
at
org.hibernate.search.test.query.timeout.TimeoutTest.testEnoughTime(TimeoutTest.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at org.hibernate.search.test.SearchTestCase.runTest(SearchTestCase.java:348)
at org.hibernate.search.test.SearchTestCase.runBare(SearchTestCase.java:396)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
at $Proxy0.invoke(Unknown Source)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
Caused by: com.sybase.jdbc4.jdbc.SybSQLException: Message empty.
at com.sybase.jdbc4.tds.Tds.a(Unknown Source)
at com.sybase.jdbc4.tds.Tds.nextResult(Unknown Source)
at com.sybase.jdbc4.jdbc.ResultGetter.nextResult(Unknown Source)
at com.sybase.jdbc4.jdbc.SybStatement.nextResult(Unknown Source)
at com.sybase.jdbc4.jdbc.SybStatement.nextResult(Unknown Source)
at com.sybase.jdbc4.jdbc.SybStatement.queryLoop(Unknown Source)
at com.sybase.jdbc4.jdbc.SybStatement.executeQuery(Unknown Source)
at com.sybase.jdbc4.jdbc.SybPreparedStatement.executeQuery(Unknown Source)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:122)
... 43 more
{noformat}
Log:
{noformat}
16:03:26,462 (main) DEBUG ConfigContext:307 - Setting Lucene compatibility to Version
LUCENE_CURRENT
16:03:26,462 (main) DEBUG ConfigContext:209 - Using default similarity implementation:
org.apache.lucene.search.DefaultSimilarity
16:03:26,463 (main) DEBUG LuceneIndexingParameters:94 - Set index writer parameter
max_buffered_docs to value : 1000
16:03:26,464 (main) DEBUG LuceneIndexingParameters:94 - Set index writer parameter
merge_factor to value : 100
16:03:26,464 (main) DEBUG WorkspaceFactory:43 - Starting workspace for index
org.hibernate.search.test.query.timeout.Clock using an exclusive index strategy
16:03:26,468 (main) INFO AvroSerializationProvider:73 - HSEARCH000079: Serialization
protocol version 1.0
16:03:26,479 (main) DEBUG DocumentBuilderIndexedEntity:331 - Found JPA id and using it as
document id
16:03:26,480 (main) DEBUG DocumentBuilderIndexedEntity:205 - Field selection in
projections is set to true for entity org.hibernate.search.test.query.timeout.Clock.
16:03:26,481 (main) DEBUG FullTextIndexEventListener:147 - Hibernate Search event
listeners activated
16:03:26,481 (main) DEBUG FullTextIndexEventListener:150 - Hibernate Search dirty checks
enabled
16:03:26,493 (main) ERROR SchemaExport:426 - HHH000389: Unsuccessful: drop table Clock
16:03:26,494 (main) ERROR SchemaExport:427 - Cannot drop the table 'Clock',
because it doesn't exist in the system catalogs.
16:03:28,960 (main) DEBUG SharingBufferReaderProvider:66 - Opening IndexReader for
directoryProvider org.hibernate.search.test.query.timeout.Clock
16:03:28,973 (main) DEBUG MultiReaderFactory:70 - Closing MultiReader:
CacheableMultiReader(ReadOnlyDirectoryReader(segments_2 _0(3.4):C1000))
16:03:28,974 (main) DEBUG SharingBufferReaderProvider:81 - Closing IndexReader:
ReadOnlyDirectoryReader(segments_2 _0(3.4):C1000)
16:03:29,007 (main) WARN SqlExceptionHelper:143 - SQL Error: 7738, SQLState: null
16:03:29,008 (main) ERROR SqlExceptionHelper:144 - Message empty.
16:03:29,008 (main) WARN SqlExceptionHelper:143 - SQL Error: 7738, SQLState: null
16:03:29,009 (main) ERROR SqlExceptionHelper:144 - Message empty.
16:03:29,009 (main) WARN SqlExceptionHelper:143 - SQL Error: 7738, SQLState: null
16:03:29,009 (main) ERROR SqlExceptionHelper:144 - Message empty.
16:03:29,010 (main) WARN SqlExceptionHelper:143 - SQL Error: 7738, SQLState: null
16:03:29,010 (main) ERROR SqlExceptionHelper:144 - Message empty.
16:03:29,010 (main) WARN SqlExceptionHelper:143 - SQL Error: 7738, SQLState: null
16:03:29,010 (main) ERROR SqlExceptionHelper:144 - Message empty.
16:03:29,011 (main) WARN SqlExceptionHelper:143 - SQL Error: 7738, SQLState: null
16:03:29,011 (main) ERROR SqlExceptionHelper:144 - Message empty.
...
{noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira