无法销毁线程组org.codehaus.mojo.exec.ExecJavaMojo $ IsolatedThreadGroup [name = SitemapCheck.SitemapAction,maxpri = 10] [英] couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=SitemapCheck.SitemapAction,maxpri=10]

查看:407
本文介绍了无法销毁线程组org.codehaus.mojo.exec.ExecJavaMojo $ IsolatedThreadGroup [name = SitemapCheck.SitemapAction,maxpri = 10]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个java maven项目,在我的计算机上运行正常,但是当我将该项目上载到ubuntu服务器并尝试使用以下命令在命令行上运行它时,会给我错误.

I have java maven project which is working fine in my computer but when i upload this project to the ubuntu server and trying to run it on command line using following command its give me error.

命令行代码:

mvn exec:java -Dexec.mainClass=SitemapCheck.SitemapAction

它给我类似的错误

[WARNING] NOTE: 2 thread(s) did not finish despite being asked to  via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied.
[WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=SitemapCheck.SitemapAction,maxpri=10]
java.lang.IllegalThreadStateException
        at java.lang.ThreadGroup.destroy(ThreadGroup.java:778)
        at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:321)
        at

在互联网上搜索后,我找到了一种解决方案,但不幸的是,它无法正常工作

After search on the internet i found one solution but unfortunately its not working

 cleanupDaemonThreads = false

有人可以建议我如何解决该错误吗?

Can anyone please suggest me how can i fixed the error?

推荐答案

我与此org.codehaus.mojo软件包(其中也包含java.lang.IllegalThreadStateException)存在相同的线程警告问题,并且此命令对我有用:

I was having the same thread warning issue with that org.codehaus.mojo package that also included a java.lang.IllegalThreadStateException and this command worked for me:

mvn compile exec:java -Dexec.cleanupDaemonThreads=false

这篇关于无法销毁线程组org.codehaus.mojo.exec.ExecJavaMojo $ IsolatedThreadGroup [name = SitemapCheck.SitemapAction,maxpri = 10]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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