[
https://jira.nuxeo.com/browse/NXP-8675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=110018#comment-110018
]
Florent Guillaume commented on NXP-8675:
----------------------------------------
User changing test tear down stacktrace:
{noformat}
10:38:18,338 ERROR [CoreFeature] org.nuxeo.ecm.core.api.ClientException: Failed
to load repository null
org.nuxeo.ecm.core.api.ClientException: Failed to load repository null
at
org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:106)
at
org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:171)
at
org.nuxeo.ecm.core.api.AbstractSession.createDocumentModelFromTypeName(AbstractSession.java:701)
at
org.nuxeo.ecm.core.api.AbstractSession.createDocumentModel(AbstractSession.java:735)
at
org.nuxeo.ecm.core.test.DefaultRepositoryInit.populate(DefaultRepositoryInit.java:26)
at
org.nuxeo.ecm.core.test.CoreFeature.initializeSession(CoreFeature.java:157)
at
org.nuxeo.ecm.core.test.CoreFeature.beforeMethodRun(CoreFeature.java:95)
at
org.nuxeo.runtime.test.runner.FeaturesRunner.beforeMethodRun(FeaturesRunner.java:148)
at
org.nuxeo.runtime.test.runner.FeaturesRunner$InvokeMethod.evaluate(FeaturesRunner.java:267)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.nuxeo.runtime.test.runner.FeaturesRunner.run(FeaturesRunner.java:220)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception:
java.lang.IllegalArgumentException. message: Repository not found: null
at
org.nuxeo.ecm.core.api.local.LocalSession.lookupRepository(LocalSession.java:147)
at
org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:102)
... 30 more
{noformat}
Async event when shut down stack trace:
{noformat}
13:23:28,156 ERROR [ReconnectedEventBundleImpl] Can not refetch Doc with ref
15417de7-5fe2-4ecd-a29f-e3874ffa56e9
org.nuxeo.ecm.core.api.ClientException: Failed to create document model
at
org.nuxeo.ecm.core.api.AbstractSession.readModel(AbstractSession.java:458)
at
org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:1133)
at
org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.getReconnectedEvents(ReconnectedEventBundleImpl.java:127)
at
org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.iterator(ReconnectedEventBundleImpl.java:225)
at
org.nuxeo.ecm.core.storage.sql.coremodel.BinaryTextListener.handleEvent(BinaryTextListener.java:85)
at
org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$Job.run(AsyncEventExecutor.java:158)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception:
org.nuxeo.ecm.core.api.DocumentException. message:
org.nuxeo.ecm.core.storage.StorageException: Could not select: SELECT "ID",
"ICON", "ICON-EXPANDED", "SIZE" FROM "COMMON" WHERE "ID" IN (?)
at
org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getParent(SQLSession.java:706)
at
org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.getParent(SQLDocumentLive.java:108)
at
org.nuxeo.ecm.core.api.DocumentModelFactory.createDocumentModel(DocumentModelFactory.java:92)
at
org.nuxeo.ecm.core.api.AbstractSession.readModel(AbstractSession.java:456)
... 8 more
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception:
org.nuxeo.ecm.core.storage.StorageException. message: Could not select: SELECT
"ID", "ICON", "ICON-EXPANDED", "SIZE" FROM "COMMON" WHERE "ID" IN (?)
at
org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.getSelectRows(JDBCRowMapper.java:430)
at
org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.readSimpleRows(JDBCRowMapper.java:229)
at
org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.read(JDBCRowMapper.java:195)
at
org.nuxeo.ecm.core.storage.sql.CachingRowMapper.read(CachingRowMapper.java:316)
at
org.nuxeo.ecm.core.storage.sql.PersistenceContext.getFromMapper(PersistenceContext.java:558)
at
org.nuxeo.ecm.core.storage.sql.PersistenceContext.getMulti(PersistenceContext.java:602)
at
org.nuxeo.ecm.core.storage.sql.SessionImpl.getNodesByIds(SessionImpl.java:710)
at
org.nuxeo.ecm.core.storage.sql.SessionImpl.getNodeById(SessionImpl.java:603)
at
org.nuxeo.ecm.core.storage.sql.SessionImpl.getNodeById(SessionImpl.java:619)
at
org.nuxeo.ecm.core.storage.sql.SessionImpl.getParentNode(SessionImpl.java:788)
at
org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getParent(SQLSession.java:704)
... 11 more
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception:
org.h2.jdbc.JdbcSQLException. message: The object is already closed [90007-114]
at org.h2.message.Message.getSQLException(Message.java:105)
at org.h2.message.Message.getSQLException(Message.java:116)
at org.h2.message.Message.getSQLException(Message.java:75)
at org.h2.message.Message.getSQLException(Message.java:151)
at
org.h2.jdbcx.JdbcXAConnection$PooledJdbcConnection.checkClosed(JdbcXAConnection.java:500)
at org.h2.jdbc.JdbcStatement.checkClosed(JdbcStatement.java:871)
at
org.h2.jdbc.JdbcPreparedStatement.checkClosed(JdbcPreparedStatement.java:1416)
at org.h2.jdbc.JdbcStatement.checkClosed(JdbcStatement.java:846)
at org.h2.jdbc.JdbcResultSet.checkClosed(JdbcResultSet.java:2996)
at org.h2.jdbc.JdbcResultSet.next(JdbcResultSet.java:112)
at
org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.getSelectRows(JDBCRowMapper.java:405)
... 21 more
{noformat}
> Test shutdown is sometimes dirty
> --------------------------------
>
> Key: NXP-8675
> URL: https://jira.nuxeo.com/browse/NXP-8675
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Affects Versions: 5.4
> Reporter: Florent Guillaume
> Assignee: Florent Guillaume
> Fix For: 5.6
>
>
> Tests using {{CoreFeature}} and with async events or changing users like
> {{TestFacetedSearchService}} don't shut down cleanly.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets