我正在尝试在本地构建我的应用并收到以下错误:
**Unable to load realm mapping info from SCDynamicStore**
2012-12-03 18:13:23.910 java[1172:707] *** Terminating app due to uncaught exception 'JavaNativeException', reason: 'KrbException: Could not load configuration from SCDynamicStore'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff919c30a6 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff894ea3f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff91a57229 -[NSException raise] + 9
3 JavaNativeFoundation 0x0000000104260c3f JNFCallStaticVoidMethod + 213
4 libjava.jnilib 0x00000001042b0169 Java_sun_security_krb5_SCDynamicStoreConfig_installNotificationCallback + 450
5 JavaNativeFoundation 0x0000000104263182 JNFPerformEnvBlock + 86
6 SystemConfiguration 0x00007fff9327f12d rlsPerform + 116
7 CoreFoundation 0x00007fff91942101 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
8 CoreFoundation 0x00007fff91941a25 __CFRunLoopDoSources0 + 245
9 CoreFoundation 0x00007fff91964dc5 __CFRunLoopRun + 789
10 CoreFoundation 0x00007fff919646b2 CFRunLoopRunSpecific + 290
11 java 0x000000010394c843 java + 18499
12 java 0x000000010394c29a java + 17050
13 java 0x0000000103949a98 java + 6808
14 ??? 0x0000000000000008 0x0 + 8
)
libc++abi.dylib: terminate called throwing an exception
/bin/sh: line 1: 1172 Abort trap: 6 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -XX:+HeapDumpOnOutOfMemoryError -Xmx512M -XX:MaxPermSize=128M -jar /opt/pose/core/target/surefire/surefirebooter7934174390972693745.jar /opt/pose/core/target/surefire/surefire5395873653031509674tmp /opt/pose/core/target/surefire/surefire_01183106063530311982tmp
Results :
Tests run: 305, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.RuntimeException: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.close(ForkClient.java:245)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:282)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:116)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:695)
at.........
在我将系统升级到OS X 10.8.2后,这种情况开始发生。我也改变了我的hadoop-env.sh来获得这个值:
export HADOOP_OPTS =“ - Djava.security.krb5.realm = OX.AC.UK -Djava.security.krb5.kdc = kdc0.ox.ac.uk:kdc1.ox.ac.uk”
并将hbase-env.sh更新为:
export HBASE_OPTS =“ - ea -XX:+ UseConcMarkSweepGC -XX:+ CMSIncrementalMode -Djava.security.krb5.realm = -Djava.security.krb5.kdc =”
我还安装了最新的Xcode,一切都没用。
答案 0 :(得分:0)
export MAVEN_OPTS =“ - Djava.security.krb5.realm = OX.AC.UK -Djava.security.krb5.kdc = kdc0.ox.ac.uk:kdc1.ox.ac.uk”