benbahrenburg/Securely — pull request #6 by barbelith (2014-03-31 07:52:40+00:00)
Title: Fix error "attempt to use Deflater after calling end" when serializing an object in android

In android 4.4.2 if the streams are not closed in the same order that are created it produces an expection and does not save the property value

[WARN] W/System.err: java.lang.IllegalStateException: attempt to use Deflater after calling end
[WARN] W/System.err:	at java.util.zip.Deflater.checkOpen(Deflater.java:476)
[WARN] W/System.err:	at java.util.zip.Deflater.deflateImpl(Deflater.java:236)
[WARN] W/System.err:	at java.util.zip.Deflater.deflate(Deflater.java:232)
[WARN] W/System.err:	at java.util.zip.DeflaterOutputStream.flush(DeflaterOutputStream.java:193)
[WARN] W/System.err:	at java.io.FilterOutputStream.flush(FilterOutputStream.java:88)
[WARN] W/System.err:	at java.io.DataOutputStream.flush(DataOutputStream.java:63)
[WARN] W/System.err:	at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:462)
[WARN] W/System.err:	at java.io.ObjectOutputStream.close(ObjectOutputStream.java:337)
[WARN] W/System.err:	at bencoding.securely.Converters.serializeObjectToString(Converters.java:45)
[WARN] W/System.err:	at bencoding.securely.PropertiesProxy.setObject(PropertiesProxy.java:299)
[WARN] W/System.err:	at org.appcelerator.kroll.runtime.v8.V8Object.nativeCallProperty(Native Method)
[WARN] W/System.err:	at org.appcelerator.kroll.runtime.v8.V8Object.callProperty(V8Object.java:69)
[WARN] W/System.err:	at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1121)
[WARN] W/System.err:	at android.os.Handler.dispatchMessage(Handler.java:98)
[WARN] W/System.err:	at android.os.Looper.loop(Looper.java:136)
[WARN] W/System.err:	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)