Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/366.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java StackOverflowerr错误如何解决此问题? public Boolean updatecontrol2(){ page2=fbclient.fetchObject(数据[sayfasayisi][0],Page.class); pageposts7=fbclient.fetchConnection(page2.getId()+“/feed”, Post.class,参数带(“自”,“05-12-2013”),参数带(“类型”,“职位”); pageposts5=fbclient.fetchConnection(page2.getId()+“/feed”, Post.class,参数带(“自”,“05-12-2013”),参数带(“类型”,“职位”); pageposts9=fbclient.fetchConnection(page2.getId()+“/feed”, Post.class,参数带(“自”,“05-12-2013”),参数带(“类型”,“职位”); //一些获取操作如下所示: 更新[i-r][0][sayfasayisi]=pageposts5.getData().get(yukarıgecii2.getMessage(); //这里有一些控制操作 如果(sayfasayisi==boyut){ sayfasayisi=0; long finishdate=System.currentTimeMillis(); 长结果=finishdate-datestart; 如果(result_Java_Stack Overflow - Fatal编程技术网

Java StackOverflowerr错误如何解决此问题? public Boolean updatecontrol2(){ page2=fbclient.fetchObject(数据[sayfasayisi][0],Page.class); pageposts7=fbclient.fetchConnection(page2.getId()+“/feed”, Post.class,参数带(“自”,“05-12-2013”),参数带(“类型”,“职位”); pageposts5=fbclient.fetchConnection(page2.getId()+“/feed”, Post.class,参数带(“自”,“05-12-2013”),参数带(“类型”,“职位”); pageposts9=fbclient.fetchConnection(page2.getId()+“/feed”, Post.class,参数带(“自”,“05-12-2013”),参数带(“类型”,“职位”); //一些获取操作如下所示: 更新[i-r][0][sayfasayisi]=pageposts5.getData().get(yukarıgecii2.getMessage(); //这里有一些控制操作 如果(sayfasayisi==boyut){ sayfasayisi=0; long finishdate=System.currentTimeMillis(); 长结果=finishdate-datestart; 如果(result

Java StackOverflowerr错误如何解决此问题? public Boolean updatecontrol2(){ page2=fbclient.fetchObject(数据[sayfasayisi][0],Page.class); pageposts7=fbclient.fetchConnection(page2.getId()+“/feed”, Post.class,参数带(“自”,“05-12-2013”),参数带(“类型”,“职位”); pageposts5=fbclient.fetchConnection(page2.getId()+“/feed”, Post.class,参数带(“自”,“05-12-2013”),参数带(“类型”,“职位”); pageposts9=fbclient.fetchConnection(page2.getId()+“/feed”, Post.class,参数带(“自”,“05-12-2013”),参数带(“类型”,“职位”); //一些获取操作如下所示: 更新[i-r][0][sayfasayisi]=pageposts5.getData().get(yukarıgecii2.getMessage(); //这里有一些控制操作 如果(sayfasayisi==boyut){ sayfasayisi=0; long finishdate=System.currentTimeMillis(); 长结果=finishdate-datestart; 如果(result,java,stack-overflow,Java,Stack Overflow,这是一个递归函数,但没有可返回的基本情况。换句话说,你有一个返回布尔值的代码,但你永远不会返回实际的布尔值,你只返回函数本身。看起来你试图迭代地做一些事情,但你没有退出条件……基本上是一个无限循环。thanx bro,我理解我的错误,但我仍然想问,如果我使用void类型方法,我只写“updatecontrol2()”而不是返回updatecontrol2())方法结束。发生任何堆栈溢出错误?您将得到相同的结果。您在方法结束时调用同一个方法,从不返回/退出,因为函数调用本身总是最后一件事,导致堆栈

这是一个递归函数,但没有可返回的基本情况。换句话说,你有一个返回布尔值的代码,但你永远不会返回实际的布尔值,你只返回函数本身。看起来你试图迭代地做一些事情,但你没有退出条件……基本上是一个无限循环。

thanx bro,我理解我的错误,但我仍然想问,如果我使用void类型方法,我只写“updatecontrol2()”而不是返回updatecontrol2())方法结束。发生任何堆栈溢出错误?您将得到相同的结果。您在方法结束时调用同一个方法,从不返回/退出,因为函数调用本身总是最后一件事,导致堆栈溢出。花费这么长时间的唯一原因是您有一个Thread.sleep调用。
       public Boolean UpdateKontrol2() {
       page2 = fbclient.fetchObject(data[sayfasayisi][0], Page.class);

       pageposts7 = fbclient.fetchConnection(page2.getId() + "/feed",
                    Post.class, Parameter.with("since", "05-12-2013"), Parameter.with("type", "post"));
       pageposts5 = fbclient.fetchConnection(page2.getId()  + "/feed",
                    Post.class, Parameter.with("since", "05-12-2013"), Parameter.with("type", "post"));

       pageposts9 = fbclient.fetchConnection(page2.getId()  + "/feed",
                    Post.class, Parameter.with("since", "05-12-2013"), Parameter.with("type", "post")); 
       // some fetch operations like this :
       update[i - r][0][sayfasayisi] = pageposts5.getData().get(yukarıgecici2).getMessage();
       // some control operations here
        if (sayfasayisi == boyut) {
        sayfasayisi = 0;
        long finishdate = System.currentTimeMillis();
        long result =finishdate - datestart ;
        if (result<3600000) {
            try {
                Thread.sleep(3600000-result);
            } catch (InterruptedException ex) {
                Logger.getLogger(UpdateDeneme.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }
    return UpdateKontrol2();