小编ast*_*ack的帖子

分叉的虚拟机终止而没有说再见.VM崩溃或System.exit调用

请帮我解决这个问题.我不完全理解日志中的错误意味着什么.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.749s
[INFO] Finished at: Thu Apr 24 10:10:20 IST 2014
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project samples.simpleforwarding: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
[ERROR] Command wascmd.exe /X /C ""C:\Program Files\Java\jdk1.7.0_55\jre\bin\java" -Xmx1024m -XX:MaxPermSize=256m -jar E:\OpenDayLight\controller\opendaylight\samples\simpleforwarding\target\surefire\surefirebooter53410321571238933.jar E:\OpenDayLight\controller\opendaylight\samples\simpleforwarding\target\surefire\surefire86076271125218001tmp E:\OpenDayLight\controller\opendaylight\samples\simpleforwarding\target\surefire\surefire_01846991116135903536tmp"
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full …
Run Code Online (Sandbox Code Playgroud)

java maven-surefire-plugin opendaylight

154
推荐指数
20
解决办法
12万
查看次数

Maven MojoExecutionException

我正面临这个问题,当我使用Maven部署我的应用程序时,请提出一些解决方案.

错误日志,

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.790s
[INFO] Finished at: Wed Apr 23 10:44:13 IST 2014
[INFO] Final Memory: 54M/131M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project clustering.services: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre7\..\lib\tools.jar -> [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 …
Run Code Online (Sandbox Code Playgroud)

java maven opendaylight

9
推荐指数
2
解决办法
6万
查看次数

想要设置由枚举填充的JComboBox中选择的默认值

如果条件不起作用,请在下面说明如何设置JComboBox由ENUM填充的所选项目的解决方案.

      public enum EbayContryEnum 
        {
        AT    (3),
        AU    (4),
        BE    (5),
        CA    (7),
        CH    (14),
        DE    (11),
        ES    (13),
        FR    (10),
        IE    (2),
        IT    (12),
        NL    (16),
        UK    (15),
        US    (1);
        }
Run Code Online (Sandbox Code Playgroud)

对于前: -

if(country.equals("FR"))
                      {
                      cbImportCountry.setSelectedItem("FR");
                      }
Run Code Online (Sandbox Code Playgroud)

但它不起作用..

java enums swing jcombobox

7
推荐指数
2
解决办法
3万
查看次数

在java中实现hashmap数据结构

我正在进行一次技术测试,下面给出了问题陈述,我不知道我到底要做什么,请通过提供一些示例代码来帮助我.

Implement a hash-map data structure from scratch , where both key and value are of string data type.
The details of how a hash works can be found in Chapter 11 of the book "Introduction to
Algorithms" by Cormen, Leiserson, Rivest. You should also refer to Section 3.7 of "The
Algorithm Design Manual" by Steven Skiena. For the required hash-map implementation,
the following conditions hold true:
1. The key is made up of lower-case english alphabets only (a,b,c...z). It …
Run Code Online (Sandbox Code Playgroud)

java hash hashtable collision-detection hashmap

6
推荐指数
1
解决办法
3万
查看次数

REST API,关于403错误代码?

我们使用软件应用程序将推文发布到来自同一IP地址的多个帐户.在twitter的回应中,我们得到403错误代码,我们使用的API是REST API.

是否对IP地址有任何限制,因为我们肯定没有跨越为REST API提到的API后限.

我们也不会超过140个字符.

等待回复..

提前致谢..

java twitter4j twitter-oauth

5
推荐指数
1
解决办法
3016
查看次数

Struts 2框架演示

在服务器上部署应用程序时出现错误日志

Dec 19, 2013 5:26:00 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Dell\DW WLAN Card;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Java\jdk1.7.0_25\bin;C:\Program Files\TortoiseSVN\bin;C:\MATLAB7\bin\win32;C:\Program Files\MATLAB\R2011a\runtime\win64;C:\Program Files\MATLAB\R2011a\bin;.
    Dec 19, 2013 5:26:01 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:StrutsDemo' did not find a matching property.
    Dec 19, 2013 5:26:01 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    Dec …
Run Code Online (Sandbox Code Playgroud)

java jsp struts2

4
推荐指数
1
解决办法
4846
查看次数

恢复中断的线程

我想恢复中断线程的工作,请让我知道一些可能的解决方案.

class RunnableDemo implements Runnable 
{

   public void run() 
   {
    while(thread.isInterrupted())
        {
        try{}
                catch(Exception e){ //exception caught}
        }

   }

}
Run Code Online (Sandbox Code Playgroud)

如果捕获到异常,则线程被中断,但即使遇到异常,我也希望线程继续工作,所以请建议我一些方法来解决这个问题.

提前致谢

java multithreading

1
推荐指数
1
解决办法
6983
查看次数

即使计算机进入睡眠模式,应用程序也必须正在运行

即使计算机进入睡眠模式,我也想保持我的应用程序运行.我在我的应用程序中使用了线程,它在特定的间隔后执行一些任务.

计算机睡眠时是否可以执行程序?

如果是,请提供一些解决方案或Java类.

java multithreading power-management

0
推荐指数
1
解决办法
3649
查看次数