scala.MatchError:java.lang.StackOverflowError(类java.lang.StackOverflowError的) [英] scala.MatchError: java.lang.StackOverflowError (of class java.lang.StackOverflowError)

查看:316
本文介绍了scala.MatchError:java.lang.StackOverflowError(类java.lang.StackOverflowError的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用play scala 2.0开发的项目,并且工作正常,我需要将版本升级到2.3.8.因此,我通过点击此链接 https://www.playframework.com/来迁移了我的应用程序版本. documentation/2.3.x/Migration23 并且我能够在具有8 GB RAM和jdk 1.7.0_25的计算机中以较新版本运行代码,但是当我从具有4 GB RAM的其他某些计​​算机上运行代码时,会引发以下错误

I had a project that was developed using play scala 2.0 and it was working fine and i had a need to upgrade the version to 2.3.8 . So i migrated my application version by following this link https://www.playframework.com/documentation/2.3.x/Migration23 and i am able to run the code in newer version in my machine where i have 8 GB RAM and jdk 1.7.0_25 but when i run the code from some other machines with 4 GB RAM it throws the following error

即使在某些具有8 GB和jdk 1.8的系统中出现故障,我还是感到困惑,无论是由于jdk,内存还是播放2.3.8中的问题所致 有人可以帮我解决这个问题

Even it is breaking in some systems with 8 GB and jdk 1.8 i am getting confused whether the issue is due to jdk or memory or an issue in play 2.3.8 Can somebody help me in getting this issue resolved

附加到我完整的 stacktrace

预先感谢

推荐答案

由于这是一个stackoverflow异常,因此提高堆栈大小对我来说是成功的秘诀:

Since it's a stackoverflow exception, bumping up the stack size did the trick for me:

export SBT_OPTS=-Xss4m

您可以尝试调整数字以查看有效的方法.我仍然不清楚其根本原因,因为它在Java 7和Java 8上都可以再现,并且在编译时也会看到该错误.

You can try adjusting the number to see what works. I'm still not clear on the root cause as it repros on both Java 7 and Java 8, and have seen the error pop up at compile time as well.

这篇关于scala.MatchError:java.lang.StackOverflowError(类java.lang.StackOverflowError的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆