Why method is not running in JavaScript?

时间:2015-07-29 00:24:17

标签: javascript

I just runnung method getNewMessagesLong() in longPolling way:

double elapsedSeconds = (endTime - startTime) / (double)(CLOCKS_PER_SEC);
cout << elapsedSeconds << endl;

but line with pollingFishingEnds() is not running// and line with console.log() is runnig ok

1 个答案:

答案 0 :(得分:1)

The Session session = createSSHSession(); ChannelExec channelExec = null; channelExec = (ChannelExec)session.openChannel("exec"); channelExec.setCommand("hdfs dfs -mkdir -p hdfs://user/19491/testfolder"); channelExec.connect(); BufferedReader br=new BufferedReader(new InputStreamReader(channelExec.getInputStream())); String text; while((text=br.readLine())!=null) { System.out.println("Text is:"+text); } int exitStatus = channelExec.getExitStatus(); System.out.println("Exit status:"+exitStatus); you have is url. This doesn't seem correct. If the url is not correct, then the ajax will never succeed and thus the success method will never fire.