我正在构建Spring Roo应用程序,远程调试器在那里工作(27“iMac带有核心2 duo),但当我尝试在家中以调试模式(mvnDebug)运行maven时,(27”iMac有了核心i5,也没有在我的11“MacBook Air 1.4GHz上工作”,程序在显示“侦听传输dt_socket at address:8000”后立即冻结。
我不相信这是Maven或我的应用程序的问题,因为它在工作中工作正常,当我尝试在调试模式下运行Tomcat时它也会冻结,我尝试构建一个非常基本的Java应用程序(只是输出一个字符串到控制台)它也冻结了。我认为它与Mac OS X或Java有关。
这些是我用来运行调试器的参数:
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
我尝试了很多不同的端口来查看端口是否已被绑定存在问题;事实并非如此。
我尝试从Apple的网站重新安装JavaForMacOSX10.6Update4,但它并没有解决我的问题。
这些是我的Mac上的详细信息:
Java详情:
非常感谢您提供的任何帮助。我已经被困在这几天了,并且正在开发使用“System.out.println”语句来弄清楚我在我的代码中的位置;太可怕了。
编辑:
我似乎有权限问题,我无法解决(磁盘实用程序无法修复它们,并且sudo chmod似乎也无法正常工作):
Permissions differ on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/dt.jar", should be lrwxr-xr-x , they are -rwxr-xr-x .
Permissions differ on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar", should be lrwxr-xr-x , they are -rwxr-xr-x .
Permissions differ on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jconsole.jar", should be lrwxr-xr-x , they are -rwxr-xr-x .
Permissions differ on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/management-agent.jar", should be lrwxr-xr-x , they are -rwxr-xr-x .
Permissions differ on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/dt.jar", should be -rw-r--r-- , they are -rwxr-xr-x .
Permissions differ on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jce.jar", should be -rw-r--r-- , they are -rwxr-xr-x .
Permissions differ on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jconsole.jar", should be -rw-r--r-- , they are -rwxr-xr-x .
Permissions differ on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/management-agent.jar", should be -rw-r--r-- , they are -rwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/dt.jar", should be -rw-r--r-- , they are -rwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jce.jar", should be -rw-r--r-- , they are -rwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jconsole.jar", should be -rw-r--r-- , they are -rwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/management-agent.jar", should be -rw-r--r-- , they are -rwxr-xr-x .
User differs on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib", should be 95, user is 0.
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/dt.jar", should be lrwxr-xr-x , they are -rwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/jce.jar", should be lrwxr-xr-x , they are -rwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/management-agent.jar", should be lrwxr-xr-x , they are -rwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/security/blacklist", should be -rw-r--r-- , they are lrwxr-xr-x .
User differs on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries", should be 95, user is 0.
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Resources/JavaPluginCocoa.bundle", should be drwxr-xr-x , they are lrwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Resources/JavaPluginCocoa.bundle/Contents/Resources/Java/deploy.jar", should be -rw-r--r-- , they are lrwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Resources/JavaPluginCocoa.bundle/Contents/Resources/Java/libdeploy.jnilib", should be -rwxr-xr-x , they are lrwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts", should be -rw-r--r-- , they are lrwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Resources/Java/deploy.jar", should be -rw-r--r-- , they are lrwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Resources/Java/libdeploy.jnilib", should be -rwxr-xr-x , they are lrwxr-xr-x .
例如,当我修复时:
User differs on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries", should be 95, user is 0.
出现新错误:
User differs on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries", should be 0, user is 95.
这可能与Java 6 Update 4 ???
有关答案 0 :(得分:1)
我安装了Mac OSX 10.7“Lion”和随附的JVM,现在可以使用了。