java.lang.StackOverflowError:null at mchange.v2.resourcepool.BasicResourcePool

时间:2015-09-06 07:12:42

标签: java

有很多这样的错误:也许

  1. jvm的init配置 - -xxsm应该更高吗?
  2. com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:616)代码错了?
  3. 2015-09-06 12:55:52.537 [tourPromotionCalcListenerTaskExecutor-8] WARN  c.t.j.d.c.DynamicConsumeMessageListenerContainer -Execution of JMS message listener failed, and no ErrorHandler has been set.
    java.lang.StackOverflowError: null
        at java.lang.Object.toString(Object.java:219) ~[na:1.6.0_30]
        at java.lang.String.valueOf(String.java:2826) ~[na:1.6.0_30]
        at java.lang.StringBuilder.append(StringBuilder.java:115) ~[na:1.6.0_30]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:616) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:633) ~[c3p0-0.9.5-pre8.jar:0.9.5-pre8]
    

    有些专家可以帮帮我吗? TKS

1 个答案:

答案 0 :(得分:0)

检查你的方法它的循环本身没有中断

 public void prelimCheckoutResource() {
      ....
      ....
      prelimCheckoutResource()
 }

public void methodA()
{
  methodB();
}

public void methodB()
{
 methodA();
}

另请参阅:What is a StackOverflowError