Improvement #862
SVNCR should not rely on presence of WorkUnit on Thread
0%
Description
Leading to such stack traces:
03/26 14:01:05 [29]...nment/webWorker.2800: 03/26 14:01:05 [40]....V130__HelloWorld1000: Lookup prkl
03/26 14:01:05 [29]...nment/webWorker.2800: java.lang.IllegalStateException: failed to initialize java component: com.zfabrik.hadoop/java
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.components.java.JavaComponentImpl$2.run(JavaComponentImpl.java:233)
03/26 14:01:05 [29]...nment/webWorker.2800: at java.security.AccessController.doPrivileged(Native Method)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.components.java.JavaComponentImpl.as(JavaComponentImpl.java:105)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.components.ComponentResourceWrapper.as(ComponentResourceWrapper.java:73)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.resources.ResourceHandleImpl.as(ResourceHandleImpl.java:70)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.components.java.JavaComponentUtil.loadImplementationClassFromJavaComponent(JavaComponentUtil.java:119)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.components.ComponentFactoryImpl.as(ComponentFactoryImpl.java:96)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.components.ComponentResourceWrapper.as(ComponentResourceWrapper.java:73)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.resources.ResourceHandleImpl.as(ResourceHandleImpl.java:70)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.components.ComponentResourceWrapper._load(ComponentResourceWrapper.java:249)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.components.ComponentResourceWrapper._check(ComponentResourceWrapper.java:105)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.components.ComponentResourceWrapper.as(ComponentResourceWrapper.java:69)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.resources.ResourceHandleImpl.as(ResourceHandleImpl.java:70)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.naming.resources.RMNamespaceContext.doLookup(RMNamespaceContext.java:79)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.naming.jndi.provider.util.AbstractContext.lookup(AbstractContext.java:81)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.naming.jndi.provider.util.AbstractContext.lookup(AbstractContext.java:118)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.naming.proxy.ProxyContext.lookup(ProxyContext.java:116)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.naming.jndi.provider.util.AbstractURLContext.lookup(AbstractURLContext.java:86)
03/26 14:01:05 [29]...nment/webWorker.2800: at javax.naming.InitialContext.lookup(InitialContext.java:409)
03/26 14:01:05 [29]...nment/webWorker.2800: at javax.naming.InitialContext.lookup(InitialContext.java:409)
03/26 14:01:05 [29]...nment/webWorker.2800: at db.migration.V130__HelloWorld.migrate(V130__HelloWorld.java:46)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.googlecode.flyway.core.migration.java.JavaMigrationExecutor.migrate(JavaMigrationExecutor.java:77)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.googlecode.flyway.core.migration.DbMigrator$2$1.doInTransaction(DbMigrator.java:213)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.googlecode.flyway.core.migration.DbMigrator$2$1.doInTransaction(DbMigrator.java:210)
03/26 14:01:05 [29]...nment/webWorker.2800: at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.googlecode.flyway.core.migration.DbMigrator$2.run(DbMigrator.java:210)
03/26 14:01:05 [29]...nment/webWorker.2800: at java.lang.Thread.run(Thread.java:679)
03/26 14:01:05 [29]...nment/webWorker.2800: Caused by: java.lang.IllegalStateException: No Work Unit found: Missing initialization of work on thread!
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.work.WorkUnit.getCurrent(WorkUnit.java:76)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.svncr.SVNComponentsRepositoryImpl.getRepoSession(SVNComponentsRepositoryImpl.java:319)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.svncr.SVNComponentsRepositoryImpl.retrieve(SVNComponentsRepositoryImpl.java:378)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.dev.local.DevRepositoryImpl.retrieve(DevRepositoryImpl.java:517)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.components.local.FSRepository.retrieve(FSRepository.java:95)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.components.ComponentsManager.retrieve(ComponentsManager.java:160)
03/26 14:01:05 [29]...nment/webWorker.2800: at com.zfabrik.impl.components.java.JavaComponentImpl$2.run(JavaComponentImpl.java:116)
03/26 14:01:05 [29]...nment/webWorker.2800: ... 26 more
Updated by Henning Blohm about 12 years ago
- Assignee set to Henning Blohm
- Priority changed from High to Normal
- Target version set to 6