Bug #697
test failures for d1-java
100%
Description
Hi Chad,
I'm getting failures still on three tests for d1-java. Nine of the tests pass, auth seems to work, etc, but these 3 tests fail:
Failed tests:
testListObjects(org.dataone.client.D1ClientTest)
testGetSystemMetadata(org.dataone.client.D1ClientTest)
testUpdate(org.dataone.client.D1ClientTest)
The errors are all HTTP code 500, such as this one:
java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/knb/meta/knb:testid:201017505341675?sessionid=6C76697FBF9BCEE2343C4D19FFF6E377
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1269)
at org.dataone.client.D1Client.sendRequest(D1Client.java:740)
at org.dataone.client.D1Client.getSystemMetadata(D1Client.java:437)
at org.dataone.client.D1ClientTest.testGetSystemMetadata(D1ClientTest.java:191)
This is on a new checkout of metacat, cleanly built and upgraded from 1.9.2 (although I had to fix the database upgrade script, which had problems with dropping non-existent tables -- see my related checkin on this). The problem seems to be associated with getting the system metadata objects in all of the cases.
I had the same problem the other day on my Mac OS X install, but this one is a totally independent build on a separate Ubuntu 10.04 VM. Can you try this on an independent machine from yours that has never had Metacat 1.10 installed to verify that the tests are working for you? Thanks,
History
#1 Updated by Matthew Jones over 14 years ago
- Status changed from New to Closed
Test failures have been fixed. The problem stemmed from the method by which metacat was installed -- in this case as an upgrade from Metacat 1.9.2, which failed to register the dataone xsd schemas that were needed. Adding the two SQL INSERT statements to the upgrade script fixed the problem.