isetbio / RemoteDataToolbox

Matlab utilities for managing reading and writing of data files stored on a remote web server.
6 stars 6 forks source link

RDT does not work with Java 13.0.1 #90

Open Zhenyi-Liu opened 4 years ago

Zhenyi-Liu commented 4 years ago

RDT does not work with Java 13.0.1, which is the default version if people just run brew cask install java Instead, I used the following command to install Java 8.0, which makes the RDT worked for me. brew tap adoptopenjdk/openjdk brew cask install adoptopenjdk8

DavidBrainard commented 4 years ago

Yes, this is a known pathology that we don't really know the cause of.

Out of curiosity, is the RDT working for you using the "guest" login with blank password? We are having troubles with the Jenkins validation server and RDT, and one theory is that it was some sort of firewall problem. But if it is working for you from China, that theory is not very good.

Zhenyi-Liu commented 4 years ago

piPBRTList gave me errors as below when I logged in as "guest":

Error using matlab.internal.webservices.HTTPConnector/copyContentToByteArray (line 396)
The server returned the status 500 with message "Server Error" in response to the request to URL
http://brainard-archiva.psych.upenn.edu/restServices/archivaServices/searchService/searchArtifacts.

Error in readContentFromWebService (line 46)
        byteArray = copyContentToByteArray(connection);

Error in webwrite (line 139)
    [varargout{1:nargout}] = readContentFromWebService(connection, options);

Error in rdtRequestWeb (line 112)
        responseText = webwrite(requestUrl, requestBody, options);

Error in rdtListArtifacts (line 76)
response = rdtRequestWeb(configuration, resourcePath, 'requestBody', searchRequest);

Error in RdtClient/listArtifacts (line 176)
                artifacts = rdtListArtifacts(obj.configuration, ...

Error in piPBRTList (line 67)
artifacts = rdt.listArtifacts('print',p.Results.print);
DavidBrainard commented 4 years ago

So, it works when you use an actual account on the archiva server (with a password) but not when you try to read as "guest"?

Zhenyi-Liu commented 4 years ago

Yes.