Description
If the thread calling ReviewService doesn't have a disposer defined (for example didn't come through CrucibleFilter), calling some methods of ReviewService will cause an exception.
java.lang.IllegalStateException: a disposer has not been initialized for this thread at com.cenqua.fisheye.util.Disposer.threadInstance(Disposer.java:100) at com.cenqua.fisheye.rep.RepositoryHandle.acquireEngine(RepositoryHandle.java:477) at com.cenqua.crucible.revision.source.RepositorySource.<init>(RepositorySource.java:111) at com.cenqua.crucible.revision.source.DefaultSourceFactory.makeRepositorySource(DefaultSourceFactory.java:99) at com.cenqua.crucible.revision.source.DefaultSourceFactory.makeSource(DefaultSourceFactory.java:95) at com.cenqua.crucible.revision.source.DefaultSourceFactory.getSource(DefaultSourceFactory.java:71) at com.atlassian.crucible.spi.impl.DefaultReviewService$6.doInTransaction(DefaultReviewService.java:581) at com.atlassian.crucible.spi.impl.DefaultReviewService$6.doInTransaction(DefaultReviewService.java:574) at com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:126) at com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:114) ... at com.atlassian.crucible.spi.impl.DefaultReviewService.addChangesetsToReview(DefaultReviewService.java:574) ...
A workaround is to manage the Disposer manually, but that's not api nor should it be exposed to the user.
Attachments
Issue Links
- mentioned in
-
Page Loading...