[
https://issues.apache.org/jira/browse/DERBY-5775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Myrna van Lunteren updated DERBY-5775:
--------------------------------------
Attachment: DERBY-5775.diff
attaching a patch for possible fix for this.
With this patch in place, if I take my machine off the network and run the
tests, I get this for output:
ALARM: IOException connecting to location:
http://svn.apache.org/repos/asf/db/derby/jars/10.0.2.1, msg: 'svn.apache.org'.
Upgrade tests can NOT be run!
java.net.UnknownHostException: svn.apache.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:225)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:539)
at java.net.Socket.connect(Socket.java:488)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:408)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:543)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:247)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:337)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:982)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:848)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1184)
at java.net.URLConnection.getContent(URLConnection.java:712)
at java.net.URL.getContent(URL.java:1036)
at
org.apache.derbyTesting.functionTests.tests.upgradeTests.UpgradeClassLoader.createClassLoader(UpgradeClassLoader.java:223)
at
org.apache.derbyTesting.functionTests.tests.upgradeTests.UpgradeClassLoader.access$000(UpgradeClassLoader.java:42)
at
org.apache.derbyTesting.functionTests.tests.upgradeTests.UpgradeClassLoader$3.run(UpgradeClassLoader.java:97)
at
java.security.AccessController.doPrivileged(AccessController.java:202)
at
org.apache.derbyTesting.functionTests.tests.upgradeTests.UpgradeClassLoader.makeClassLoader(UpgradeClassLoader.java:93)
at
org.apache.derbyTesting.functionTests.tests.upgradeTests.UpgradeRun.suite(UpgradeRun.java:75)
at
org.apache.derbyTesting.functionTests.tests.upgradeTests._Suite.suite(_Suite.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126)
at junit.textui.TestRunner.start(TestRunner.java:184)
at junit.textui.TestRunner.main(TestRunner.java:143)
If this is acceptable, we can commit it and backport it.
> Upgrade tests should print full IOException stack trace when it fails to
> access old versions
> ---------------------------------------------------------------------------------------------
>
> Key: DERBY-5775
> URL: https://issues.apache.org/jira/browse/DERBY-5775
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Priority: Trivial
> Labels: derby_triage10_10
> Attachments: DERBY-5775.diff
>
>
> When the Upgrade tests fail to access the oldVersions due to an IOException
> the message is not very clear as to what the IOException was. e,g. can output
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
> Time: 0.008
> OK (0 tests)
> The code in OldVersions.getVersions()
> }
> } catch (IOException ioe) {
> alarm("Error reading from file: " + oldVersionsPath +
> ioe.getMessage());
> }
>
> should print the exception stack trace or possibly even fail on IOException.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira