eclipse和testng发生java.lang.NullPointerException错误

时间:2015-12-07 06:07:45

标签: java eclipse testng-eclipse

我无法使用testNG和eclipse运行我的第一个程序,原因是错误logs.I我第一次使用eclipse和testNG。谢谢。

 java.lang.NullPointerException 
    at 
    org.testng.eclipse.maven.MavenTestNGLaunchConfigurationProvider
   .getVMArgsFromPom(MavenTestNGLaunchConfigurationProvider.java:74)
    at         
    org.testng.eclipse.maven.MavenTestNGLaunchConfigurationProvider.
    getVmArguments(MavenTestNGLaunchConfigurationProvider.java:39)
    at   
    org.testng.eclipse.ui.util.ConfigurationHelper.
    getJvmArgs(ConfigurationHelper.java:166)
    at 
    org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.
    getVMArguments(TestNGLaunchConfigurationDelegate.java:364)
    at
    org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.
    launchTypes(TestNGLaunchConfigurationDelegate.java:158)
    at 
    org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.
    launch(TestNGLaunchConfigurationDelegate.java:90)
    at
    org.eclipse.debug.internal.core.LaunchConfiguration.
    launch(LaunchConfiguration.java:885)
    at 
    org.eclipse.debug.internal.core.LaunchConfiguration.
    launch(LaunchConfiguration.java:739)
    at 
    org.eclipse.debug.internal.ui.DebugUIPlugin.
    buildAndLaunch(DebugUIPlugin.java:1039)
    at 
    org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
    at 
    org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    **Session data**
    eclipse.buildId=4.4.2.M20150204-1700
    java.version=1.8.0_65
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86_64

0 个答案:

没有答案