Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java client报错:getStoreStorage return null #60

Open
GoogleCodeExporter opened this issue Nov 2, 2015 · 0 comments
Open

java client报错:getStoreStorage return null #60

GoogleCodeExporter opened this issue Nov 2, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

ClientGlobal.init("./fdfs_client.conf");
            System.out.println("network_timeout=" + ClientGlobal.g_network_timeout + "ms");
            System.out.println("charset=" + ClientGlobal.g_charset);
            TrackerGroup tg = new TrackerGroup(new InetSocketAddress[]{new InetSocketAddress("192.168.121.49", 22122)});
            TrackerClient trackerClient = new TrackerClient(tg);
            TrackerServer trackerServer = trackerClient.getConnection();
            if (trackerServer == null) {
                System.out.println("getConnection return null");
                return;
            }
            StorageServer storageServer = trackerClient.getStoreStorage(trackerServer);
            if (storageServer == null) {
                System.out.println("getStoreStorage return null");
            }

返回getStoreStorage return 
null,我检查过配置,没有问题了,服务端的192.168.121.49:22122(t
racker)和192.168.121.49:23000(storage)的端口都可以telnet得上
附fdfs_config,如下:
connect_timeout = 2
network_timeout = 30
charset = UTF-8
http.tracker_http_port = 80
http.anti_steal_token = no
http.secret_key = FastDFS1234567890

tracker_server = 192.168.121.49:22122
tracker_server = 192.168.121.49:22122

Original issue reported on code.google.com by [email protected] on 22 Feb 2014 at 11:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant