private StorageClient getStorageClient() {
try{
TrackerClient tracker = new TrackerClient();
System.out.println("tracker:{}"+tracker.toString());
TrackerServer trackerServer = tracker.getConnection();
System.out.println(trackerServer);
return new StorageClient(trackerServer, null);
}catch (Exception e){
}
}
我的文件系统部署在远程主机上,本地idea调试的时候可以上传文件。但是将项目打包成jar包部署到远程主机(同一台主机)上的时候,上传文件的时候在这一步报了NullPionterExcellent。
TrackerServer trackerServer = tracker.getConnection();
配置文件如下:
connect_timeout = 30
network_timeout = 30
charset = UTF-8
http.tracker_http_port = 80
http.anti_steal_token = true
tracker_server = 远程主机的外网地址:22122