简体   繁体   English

执行Java类时发生异常。 java.lang.InterruptedException

[英]An exception occured while executing the Java class. java.lang.InterruptedException

I get my Apache Storm from http://mirror.symnds.com/software/Apache/storm/apache-storm-0.9.3/apache-storm-0.9.3.tar.gz 我从http://mirror.symnds.com/software/Apache/storm/apache-storm-0.9.3/apache-storm-0.9.3.tar.gz获取了Apache Storm

I never modified any thing in the /home/user/storm/examples/storm-starter/ directory. 我从未修改/ home / user / storm / examples / storm-starter /目录中的任何内容。

When I run this command 当我运行此命令

mvn exec:java -D storm.topology=storm.starter.WordCountTopology

in the /home/user/storm/examples/storm-starter/, it gives the error as below: 在/ home / user / storm / examples / storm-starter /中,它显示以下错误:

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project storm-starter: An exception occured while executing the Java class. java.lang.InterruptedException -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
MojoExecutionException - Apache Maven - Apache Software Foundation
cwiki.apache.org

Anyone know what is the problem & how to solve it? 任何人都知道问题出在哪里以及如何解决? I wish can provide me a detail solution as I am a newbie. 我是新手,希望能为我提供详细的解决方案。 Thank you. 谢谢。

Try this 尝试这个

Go to the path where your pom.xml file exists and run this command 转到pom.xml文件所在的路径并运行此命令

mvn -e -f pom.xml compile exec:java -D storm.topology=storm.starter.WordCountTopology

Try adding this to your pom.xml and run the above command. 尝试将其添加到pom.xml并运行上面的命令。

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>exec-maven-plugin</artifactId>
    <version>1.2.1</version>
    <executions>
      <execution>
        <goals>
          <goal>exec</goal>
        </goals>
      </execution>
    </executions>
    <configuration>
      <executable>java</executable>
      <includeProjectDependencies>true</includeProjectDependencies>
      <includePluginDependencies>true</includePluginDependencies>
      <classpathScope>compile</classpathScope>
      <mainClass>${storm.topology}</mainClass>
    </configuration>
</plugin>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 执行 Apache HttpClient 时出现 java.lang.InterruptedException - java.lang.InterruptedException while executing Apache HttpClient 未处理的异常:java.lang.InterruptedException - Unhandled Exception: java.lang.InterruptedException 运行批处理文件时出现 java.lang.InterruptedException - java.lang.InterruptedException while running a batch file 使用swingworker的java.lang.InterruptedException - java.lang.InterruptedException using swingworker Azure MobileService EasyApi java.lang.interruptedException - Azure MobileService EasyApi java.lang.interruptedException 引起原因:java.lang.RuntimeException:java.lang.InterruptedException - Caused by: java.lang.RuntimeException: java.lang.InterruptedException 使用Process.waitFor()和java.lang.InterruptedException的Java多线程 - java multithreading using Process.waitFor() and java.lang.InterruptedException 睡眠中断异常:java.lang.InterruptedException:睡眠中断 - 如何让浏览器超时 40 分钟 - Sleep Interupt Exception: java.lang.InterruptedException: sleep interrupted - How to give timeout for browser for 40mins SpringApplication.exit() retuns java.lang.InterruptedException: null - SpringApplication.exit() retuns java.lang.InterruptedException: null java.lang.InterruptedException导致Web应用程序无法部署 - java.lang.InterruptedException causes web application not deploy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM