Mac OS X 64bitでSOAP UIを起動させるために
切っ掛けは不明ですが、数ヶ月前は普通に使えていたSOAP UIが起動できなくなってしまいました。
OSのバージョンを上げたときに、使ってるJVMが変わったかな?OSのバージョンはOS X 10.8.2。
エラー内容
こんなエラーがでます。
java.lang.Exception: Object owner or JVM pointer are not correct
$soapui.sh ================================ = = SOAPUI_HOME = /Applications/soapui-4.5.1 = ================================ Configuring log4j from [/Applications/soapui-4.5.1/bin/soapui-log4j.xml] 10:54:33,746 INFO [DefaultSoapUICore] initialized soapui-settings from [/Applications/soapui-4.5.1/soapui-settings.xml] 10:54:34,667 INFO [WorkspaceImpl] Loading workspace from [/Applications/soapui-4.5.1/bin/../../TestPBE-workspace.xml] 10:54:34,753 INFO [WsdlProject] Loaded project from [file:/Users/sogo/Documents/soapui/NewWSDLFile-soapui-project.xml] 10:54:35,229 INFO [SoapUI] Used java version: 1.6.0_37 objc[38025]: Class MessageLoopView is implemented in both /private/var/folders/xp/3j0nqcx93sbgs2zxszylhcnh0000gn/T/jxbrowser-3.0.Build.Unknown/libjniw.jnilib and /private/var/folders/xp/3j0nqcx93sbgs2zxszylhcnh0000gn/T/jxbrowser-3.0.Build.Unknown/libjniwrap.jnilib. One of the two will be used. Which one is undefined. objc[38025]: Class MessageLoopView is implemented in both /private/var/folders/xp/3j0nqcx93sbgs2zxszylhcnh0000gn/T/jxbrowser-3.0.Build.Unknown/libjniw.jnilib and /var/folders/xp/3j0nqcx93sbgs2zxszylhcnh0000gn/T/jxbrowser-3.0.Build.Unknown/libjniw.jnilib. One of the two will be used. Which one is undefined. 2012-12-14 10:54:37.717 java[38025:11703] [Java CocoaComponent compatibility mode]: Enabled 2012-12-14 10:54:37.742 java[38025:2517] java.lang.Exception: Object owner or JVM pointer are not correct
解決策
エラー内容からUIの部分が64bitがサポートされてないみたいなので、Javaの起動オプションに-d32を追加すればOKです。
soapui.shを開いて、JAVA_OPTSを探します。
JAVA_OPTS="-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties -Dsoapui.home=$SOAPUI_HOME -d32"