简体   繁体   中英

Fuseki Upload Connection Refused

I am trying to upload an RDF Model to my Jena/Fuseki (runs in docker container).

public void sendToJena() {
    DatasetAccessor accessor = DatasetAccessorFactory
            .createHTTP("http://localhost:3030/test/");
    accessor.putModel(model);
}

The code above runs insinde an Payara Application Server (also in docker container).

Everytime the method gets executed I recieve connection refused:

StandardWrapperValve[Jersey Web Application]: Servlet.service() for servlet Jersey Web Application threw exception

java.net.ConnectException: Connection refused (Connection refused)

Any ideas or thoughts on this? Thanks, Jakob

EDIT:

Already tried to pass the createHTTP() method a custom HTTP client, did not work as well.

解决方案是查找Fuseki Docker容器的IP地址,并用它替换localhost。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM