Home > front end >  NullPointerException Fastdfs_ tracker. GetConnection ()
NullPointerException Fastdfs_ tracker. GetConnection ()

Time:09-24

 private StorageClient getStorageClient () {
Try {
TrackerClient tracker=new TrackerClient ();
System. The out. Println (" tracker: {} "+ tracker. The toString ());
TrackerServer TrackerServer=tracker. GetConnection ();
System. The out. Println (trackerServer);
Return new StorageClient (trackerServer, null);
} the catch (Exception e) {
}
}

File system deployed on the remote host, I debug in the local idea is can upload the file, but will be deployed to the same project after the remote host, is unable to upload files, log in
 TrackerServer TrackerServer=tracker. GetConnection (); 

When a NullPointerException,
Fdfs_client. Conf file as follows:
 
Connect_timeout=30
Network_timeout=30
Charset=utf-8
HTTP. Tracker_http_port=80
HTTP. Anti_steal_token=true
Tracker_server=remote host web address: 22122
  • Related