Eclipse氧气释放(4.7.0) - 操作系统:Win7 - jdk1.8.0_131 VM中的GlassFish Server开源版3.1(版本43) - 操作系统:Ubuntu - 以“-Xdebug -Xrunjdwp:transport = dt_socket,server = y,suspend = n,address = 9009”开头
我想使用“远程Java应用程序”进行调试,但是我收到了这个错误:
!ENTRY org.eclipse.core.jobs 4 2 2017-08-21 14:18:27.530
!MESSAGE An internal error occurred during: "Launching OutletResource".
!STACK 0
java.lang.NullPointerException
at org.eclipse.core.runtime.Path.<init>(Path.java:206)
at org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:145)
at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.getProjectOfExternalFolder(JDIDebugTarget.java:1557)
at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.addReferencedProjects(JDIDebugTarget.java:1508)
at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.collectReferencedJavaProjects(JDIDebugTarget.java:1481)
at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.prepareBreakpointsSearchScope(JDIDebugTarget.java:394)
at org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget.<init>(JDIDebugTarget.java:361)
at org.eclipse.jdt.debug.core.JDIDebugModel$1.run(JDIDebugModel.java:201)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
at org.eclipse.jdt.debug.core.JDIDebugModel.newDebugTarget(JDIDebugModel.java:205)
at org.eclipse.jdt.debug.core.JDIDebugModel.newDebugTarget(JDIDebugModel.java:152)
at org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:146)
at org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:85)
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:56)
有人可以帮忙吗?谢谢Dirk
答案 0 :(得分:0)
我解决了这个问题。 在PROJECT下 - &gt;属性 - &gt; Java构建路径 - &gt;图书馆 空文件夹(如“VM_HOME - U:\”)会产生此异常。 Eclipse版本比Oxygen更深入,可以使用此属性。