camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <>
Subject [jira] [Created] (CAMEL-4067) Test failures in camel-hdfs on windows as Streams are not closed correctly
Date Tue, 07 Jun 2011 16:11:59 GMT
Test failures in camel-hdfs on windows as Streams are not closed correctly

                 Key: CAMEL-4067
             Project: Camel
          Issue Type: Bug
          Components: camel-hdfs
    Affects Versions: 2.7.2
         Environment: Windows
            Reporter: Christian Schneider
            Assignee: Christian Schneider
             Fix For: 2.8.0

On windows some hdfs tests fail as the streams are not correctly being closed. 

The first stacktrace looks like below. This is a bit misleading as in fact the problem is
that not all exchanges could be processed. The reason is that the file component canĀ“t rename
the file as it is still open. This is because an inputStream is opened for the file but never

junit.framework.AssertionFailedError: expected:<40> but was:<12>
	at junit.framework.Assert.failNotEquals(
	at junit.framework.Assert.assertEquals(
	at junit.framework.Assert.assertEquals(
	at junit.framework.Assert.assertEquals(
	at org.apache.camel.component.hdfs.HdfsProducerFileWriteTest.testSimpleWriteFile(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(
	at org.junit.internal.runners.statements.RunBefores.evaluate(
	at org.junit.internal.runners.statements.RunAfters.evaluate(
	at org.junit.rules.TestWatchman$1.evaluate(
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(
	at org.junit.runners.ParentRunner$
	at org.junit.runners.ParentRunner$1.schedule(
	at org.junit.runners.ParentRunner.runChildren(
	at org.junit.runners.ParentRunner.access$000(
	at org.junit.runners.ParentRunner$2.evaluate(
	at org.junit.internal.runners.statements.RunAfters.evaluate(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message