问题描述
||
我在工作时正在构建Spring Roo应用程序,并且远程调试器在那里工作(具有核心2 duo的27 \“ iMac),但是当我尝试在家中以调试模式(mvnDebug)运行maven时,(27 \” iMac与核心i5,也无法在我的11英寸MacBook Air 1.4GHz上运行),在显示“正在侦听地址8000上的传输dt_socket”后,程序立即冻结。
我不认为这是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上的详细信息:
型号标识符:iMac11,3处理器
名称:Intel Core i5处理器
速度:2.8 GHz
处理器:1个
核心:4个二级缓存(每个核心):256 KB
三级缓存:8 MB内存:12 GB
Mac OS X版本10.6.7
Java细节:
Java版本\“ 1.6.0_24 \” Java(TM)SE
运行时环境(内部版本1.6.0_24-b07-334-10M3326)
Java HotSpot(TM)64位服务器VM(内部版本19.1-b02-334,混合模式)
您可以提供的任何帮助将不胜感激。我已经坚持了几天,并且正在使用\“ 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\",they are -rwxr-xr-x .
Permissions differ on \"System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jconsole.jar\",they are -rwxr-xr-x .
Permissions differ on \"System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/management-agent.jar\",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\",they are -rwxr-xr-x .
Permissions differ on \"System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jconsole.jar\",they are -rwxr-xr-x .
Permissions differ on \"System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/management-agent.jar\",they are -rwxr-xr-x .
Permissions differ on \"System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/dt.jar\",they are -rwxr-xr-x .
Permissions differ on \"System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jce.jar\",they are -rwxr-xr-x .
Permissions differ on \"System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jconsole.jar\",they are -rwxr-xr-x .
Permissions differ on \"System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/management-agent.jar\",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\",they are -rwxr-xr-x .
Permissions differ on \"System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/jce.jar\",they are -rwxr-xr-x .
Permissions differ on \"System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/management-agent.jar\",they are -rwxr-xr-x .
Permissions differ on \"System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/security/blacklist\",they are lrwxr-xr-x .
User differs on \"System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries\",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\",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\",they are lrwxr-xr-x .
Permissions differ on \"System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Resources/Java/deploy.jar\",they are lrwxr-xr-x .
Permissions differ on \"System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/Contents/Resources/Java/libdeploy.jnilib\",they are lrwxr-xr-x .
例如,当我修复时:
User differs on \"System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries\",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有关吗???解决方法
我安装了Mac OSX 10.7 \“ Lion \”及其附带的JVM,现在可以使用了。