You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2014/11/11 03:08:34 UTC

[jira] [Resolved] (CAMEL-8015) camel-aws - Has an unit test failure

     [ https://issues.apache.org/jira/browse/CAMEL-8015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-8015.
---------------------------------
    Resolution: Fixed

The test failure is caused by recent change of camel-aws, I already committed a quick fix for it.

> camel-aws - Has an unit test failure
> ------------------------------------
>
>                 Key: CAMEL-8015
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8015
>             Project: Camel
>          Issue Type: Test
>          Components: camel-aws
>    Affects Versions: 2.15.0
>            Reporter: Claus Ibsen
>            Assignee: Willem Jiang
>             Fix For: 2.15.0
>
>
> This test fails on master
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.14 sec <<< FAILURE! - in org.apache.camel.component.aws.s3.S3ComponentFileTest
> sendFileAndKeep(org.apache.camel.component.aws.s3.S3ComponentFileTest)  Time elapsed: 1.073 sec  <<< ERROR!
> org.apache.camel.TypeConversionException: Error during type conversion from type: java.lang.String to the required type: java.lang.String with value [Body is instance of java.io.InputStream] due java.lang.NullPointerException
> 	at com.amazonaws.internal.SdkFilterInputStream.close(SdkFilterInputStream.java:90)
> 	at sun.nio.cs.StreamDecoder.implClose(StreamDecoder.java:377)
> 	at sun.nio.cs.StreamDecoder.close(StreamDecoder.java:192)
> 	at java.io.InputStreamReader.close(InputStreamReader.java:199)
> 	at java.io.BufferedReader.close(BufferedReader.java:517)
> 	at org.apache.camel.util.IOHelper.close(IOHelper.java:326)
> 	at org.apache.camel.converter.IOConverter.toString(IOConverter.java:308)
> 	at org.apache.camel.converter.IOConverter.toString(IOConverter.java:290)
> 	at org.apache.camel.converter.IOConverter.toString(IOConverter.java:351)
> 	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:606)
> 	at org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:1002)
> 	at org.apache.camel.impl.converter.StaticMethodTypeConverter.convertTo(StaticMethodTypeConverter.java:59)
> 	at org.apache.camel.impl.converter.BaseTypeConverterRegistry.doConvertTo(BaseTypeConverterRegistry.java:276)
> 	at org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:114)
> 	at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:72)
> 	at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:47)
> 	at org.apache.camel.component.aws.s3.S3ComponentFileTest.assertResultExchange(S3ComponentFileTest.java:125)
> 	at org.apache.camel.component.aws.s3.S3ComponentFileTest.sendFileAndKeep(S3ComponentFileTest.java:86)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)