Details
-
Type:
Bug
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.12.0
-
Fix Version/s: None
-
Component/s: file format issue, Test suite
-
Labels:None
Description
A bizarre case of the file inputstream being closed before reading seems to happen for the following test:
jalview.ws.dbsources.EBIAlphaFoldTest.checkImportPAEToStructure(String, String) fails for just one fileset - a gzipped PAE - that can be imported fine when passed through the StructureSelectionManager and directly loaded in other tests.
ERROR - examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_cmp.json was closed
java.lang.Exception: null
at jalview.ws.dbsources.EBIAlphaFoldTest$1.close(EBIAlphaFoldTest.java:93) ~[test/:?]
at java.io.BufferedInputStream.close(BufferedInputStream.java:489) ~[?:?]
at java.util.zip.InflaterInputStream.close(InflaterInputStream.java:232) ~[?:?]
at java.util.zip.GZIPInputStream.close(GZIPInputStream.java:137) ~[?:?]
at sun.nio.cs.StreamDecoder.implClose(StreamDecoder.java:389) ~[?:?]
at sun.nio.cs.StreamDecoder.close(StreamDecoder.java:194) ~[?:?]
at java.io.InputStreamReader.close(InputStreamReader.java:196) ~[?:?]
at java.io.BufferedReader.close(BufferedReader.java:528) ~[?:?]
at jalview.util.Platform.parseJSON(Platform.java:542) ~[main/:?]
at jalview.ws.dbsources.EBIAlfaFold.parseJSONtoPAEContactMatrix(EBIAlfaFold.java:638) ~[main/:?]
at jalview.ws.dbsources.EBIAlfaFold.importPaeJSONAsContactMatrixToStructure(EBIAlfaFold.java:673) ~[main/:?]
at jalview.ws.dbsources.EBIAlfaFold.importPaeJSONAsContactMatrixToStructure(EBIAlfaFold.java:662) ~[main/:?]
at jalview.ws.dbsources.EBIAlphaFoldTest.checkImportPAEToStructure(EBIAlphaFoldTest.java:104) [test/:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85) [testng.jar:?]
at org.testng.internal.Invoker.invokeMethod(Invoker.java:648) [testng.jar:?]
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:834) [testng.jar:?]
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1142) [testng.jar:?]
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124) [testng.jar:?]
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) [testng.jar:?]
at org.testng.TestRunner.privateRun(TestRunner.java:771) [testng.jar:?]
at org.testng.TestRunner.run(TestRunner.java:621) [testng.jar:?]
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357) [testng.jar:?]
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352) [testng.jar:?]
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310) [testng.jar:?]
at org.testng.SuiteRunner.run(SuiteRunner.java:259) [testng.jar:?]
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) [testng.jar:?]
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) [testng.jar:?]
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1176) [testng.jar:?]
at org.testng.TestNG.runSuitesLocally(TestNG.java:1101) [testng.jar:?]
at org.testng.TestNG.run(TestNG.java:1009) [testng.jar:?]
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115) [testng-remote.jar:?]
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:293) [testng-remote.jar:?]
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:91) [testng-remote.jar:?]
PASSED: checkImportPAEToStructure("examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3.pdb", "examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3_scores.json")
PASSED: checkImportPAEToStructure("examples/AlphaFold/AF-A0A1U8FD60-F1-model_v4.pdb", "examples/AlphaFold/AF-A0A1U8FD60-F1-predicted_aligned_error_v4.json")
PASSED: checkImportPAEToStructure("examples/AlphaFold/AF-Q5VSL9-F1-model_v4.pdb", "examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4.json")
PASSED: checkImportPAEToStructure("examples/AlphaFold/AF-0000000203848083-model_v1.cif", "examples/AlphaFold/AF-0000000203848083-predicted_aligned_error_v1.json")
FAILED: checkImportPAEToStructure("examples/AlphaFold/AF-Q5VSL9-F1-model_v4.pdb", "examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_cmp.json")
java.lang.AssertionError: Exception importing paefile 'examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_cmp.json'
at org.testng.Assert.fail(Assert.java:83)
at jalview.ws.dbsources.EBIAlphaFoldTest.checkImportPAEToStructure(EBIAlphaFoldTest.java:114)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:648)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:834)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1142)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:771)
at org.testng.TestRunner.run(TestRunner.java:621)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1176)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1101)
at org.testng.TestNG.run(TestNG.java:1009)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:293)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:91)
Caused by: java.io.IOException: Stream closed
at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)
at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:342)
at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
at jalview.util.Platform.isGzipStream(Platform.java:602)
at jalview.util.Platform.checkForGzipStream(Platform.java:644)
at jalview.util.Platform.parseJSON(Platform.java:534)
at jalview.ws.dbsources.EBIAlfaFold.parseJSONtoPAEContactMatrix(EBIAlfaFold.java:638)
at jalview.ws.dbsources.EBIAlfaFold.importPaeJSONAsContactMatrixToStructure(EBIAlfaFold.java:673)
at jalview.ws.dbsources.EBIAlfaFold.importPaeJSONAsContactMatrixToStructure(EBIAlfaFold.java:662)
at jalview.ws.dbsources.EBIAlphaFoldTest.checkImportPAEToStructure(EBIAlphaFoldTest.java:104)
... 24 more
jalview.ws.dbsources.EBIAlphaFoldTest.checkImportPAEToStructure(String, String) fails for just one fileset - a gzipped PAE - that can be imported fine when passed through the StructureSelectionManager and directly loaded in other tests.
ERROR - examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_cmp.json was closed
java.lang.Exception: null
at jalview.ws.dbsources.EBIAlphaFoldTest$1.close(EBIAlphaFoldTest.java:93) ~[test/:?]
at java.io.BufferedInputStream.close(BufferedInputStream.java:489) ~[?:?]
at java.util.zip.InflaterInputStream.close(InflaterInputStream.java:232) ~[?:?]
at java.util.zip.GZIPInputStream.close(GZIPInputStream.java:137) ~[?:?]
at sun.nio.cs.StreamDecoder.implClose(StreamDecoder.java:389) ~[?:?]
at sun.nio.cs.StreamDecoder.close(StreamDecoder.java:194) ~[?:?]
at java.io.InputStreamReader.close(InputStreamReader.java:196) ~[?:?]
at java.io.BufferedReader.close(BufferedReader.java:528) ~[?:?]
at jalview.util.Platform.parseJSON(Platform.java:542) ~[main/:?]
at jalview.ws.dbsources.EBIAlfaFold.parseJSONtoPAEContactMatrix(EBIAlfaFold.java:638) ~[main/:?]
at jalview.ws.dbsources.EBIAlfaFold.importPaeJSONAsContactMatrixToStructure(EBIAlfaFold.java:673) ~[main/:?]
at jalview.ws.dbsources.EBIAlfaFold.importPaeJSONAsContactMatrixToStructure(EBIAlfaFold.java:662) ~[main/:?]
at jalview.ws.dbsources.EBIAlphaFoldTest.checkImportPAEToStructure(EBIAlphaFoldTest.java:104) [test/:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85) [testng.jar:?]
at org.testng.internal.Invoker.invokeMethod(Invoker.java:648) [testng.jar:?]
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:834) [testng.jar:?]
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1142) [testng.jar:?]
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124) [testng.jar:?]
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) [testng.jar:?]
at org.testng.TestRunner.privateRun(TestRunner.java:771) [testng.jar:?]
at org.testng.TestRunner.run(TestRunner.java:621) [testng.jar:?]
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357) [testng.jar:?]
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352) [testng.jar:?]
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310) [testng.jar:?]
at org.testng.SuiteRunner.run(SuiteRunner.java:259) [testng.jar:?]
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) [testng.jar:?]
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) [testng.jar:?]
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1176) [testng.jar:?]
at org.testng.TestNG.runSuitesLocally(TestNG.java:1101) [testng.jar:?]
at org.testng.TestNG.run(TestNG.java:1009) [testng.jar:?]
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115) [testng-remote.jar:?]
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:293) [testng-remote.jar:?]
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:91) [testng-remote.jar:?]
PASSED: checkImportPAEToStructure("examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3.pdb", "examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3_scores.json")
PASSED: checkImportPAEToStructure("examples/AlphaFold/AF-A0A1U8FD60-F1-model_v4.pdb", "examples/AlphaFold/AF-A0A1U8FD60-F1-predicted_aligned_error_v4.json")
PASSED: checkImportPAEToStructure("examples/AlphaFold/AF-Q5VSL9-F1-model_v4.pdb", "examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4.json")
PASSED: checkImportPAEToStructure("examples/AlphaFold/AF-0000000203848083-model_v1.cif", "examples/AlphaFold/AF-0000000203848083-predicted_aligned_error_v1.json")
FAILED: checkImportPAEToStructure("examples/AlphaFold/AF-Q5VSL9-F1-model_v4.pdb", "examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_cmp.json")
java.lang.AssertionError: Exception importing paefile 'examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_cmp.json'
at org.testng.Assert.fail(Assert.java:83)
at jalview.ws.dbsources.EBIAlphaFoldTest.checkImportPAEToStructure(EBIAlphaFoldTest.java:114)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:648)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:834)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1142)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:771)
at org.testng.TestRunner.run(TestRunner.java:621)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1176)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1101)
at org.testng.TestNG.run(TestNG.java:1009)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:293)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:91)
Caused by: java.io.IOException: Stream closed
at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)
at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:342)
at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
at jalview.util.Platform.isGzipStream(Platform.java:602)
at jalview.util.Platform.checkForGzipStream(Platform.java:644)
at jalview.util.Platform.parseJSON(Platform.java:534)
at jalview.ws.dbsources.EBIAlfaFold.parseJSONtoPAEContactMatrix(EBIAlfaFold.java:638)
at jalview.ws.dbsources.EBIAlfaFold.importPaeJSONAsContactMatrixToStructure(EBIAlfaFold.java:673)
at jalview.ws.dbsources.EBIAlfaFold.importPaeJSONAsContactMatrixToStructure(EBIAlfaFold.java:662)
at jalview.ws.dbsources.EBIAlphaFoldTest.checkImportPAEToStructure(EBIAlphaFoldTest.java:104)
... 24 more