我正在运行基于Maven的Java测试自动化框架。当我在Windows上运行它时,它运行良好,但是当我在Debian OS上运行时,它显示堆栈溢出错误。错误(几行快照)如下所示。 Windows上的Eclipse是2018-09,而Debian是-Neon.1a版本(4.6.1)。我在两者上都使用Java SE 1.8。 Java代码如何在Windows上正常工作,但相同的代码在Debian上引发错误?我们如何调试stackoverflow错误?
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at Framework.Framework.run(Framework.java:217)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.StackOverflowError
at sun.util.calendar.ZoneInfo.getOffsets(ZoneInfo.java:236)
at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2340)
at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2312)
at java.util.Calendar.setTimeInMillis(Calendar.java:1804)
at java.util.Calendar$Builder.build(Calendar.java:1508)
at sun.util.locale.provider.CalendarProviderImpl.getInstance(CalendarProviderImpl.java:88)
at java.util.Calendar.createCalendar(Calendar.java:1666)
at java.util.Calendar.getInstance(Calendar.java:1613)
at com.aventstack.extentreports.ExtentObservable.collectRunInfo(ExtentObservable.java:441)
at com.aventstack.extentreports.ExtentObservable.addLog(ExtentObservable.java:309)
at com.aventstack.extentreports.ExtentTest.addLog(ExtentTest.java:359)
at com.aventstack.extentreports.ExtentTest.log(ExtentTest.java:308)
at com.aventstack.extentreports.ExtentTest.log(ExtentTest.java:333)
at Framework.Reporter.ReportError(Reporter.java:231)
at Framework.Browser$1.initialValue(Browser.java:156)
at Framework.Browser$1.initialValue(Browser.java:1)
at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
at java.lang.ThreadLocal.get(ThreadLocal.java:170)
at Framework.Browser.getDriver(Browser.java:172)
at Framework.Reporter.ReportError(Reporter.java:237)
at Framework.Browser$1.initialValue(Browser.java:156)
at Framework.Browser$1.initialValue(Browser.java:1)
at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
at java.lang.ThreadLocal.get(ThreadLocal.java:170)
at Framework.Browser.getDriver(Browser.java:172)
at Framework.Reporter.ReportError(Reporter.java:237)
at Framework.Browser$1.initialValue(Browser.java:156)
at Framework.Browser$1.initialValue(Browser.java:1)