SWT XULRunner and CentOS compatibility

原创文章,转载请注明出处:http://qq85609655.iteye.com/blog/2155320

 

kettle 下载pdi-ce-5.2.0.0-209.zip

在centos6.5下打不开,非常纠结,但是在centos5.7下能正常

kettle4.4在两个系统下都正常,初步断定kettle5.2.0在centos6.5下存在兼容性的问题,在查看错误日志:

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x0000000000000000 is an unknown value
RCX=0x0000000000000011 is an unknown value
RDX=0x0000000000000003 is an unknown value
RSP=0x00007fad3f37d600 is pointing into the stack for thread: 0x00007fad38009000
RBP=0x00007fad04bce000: <offset 0> in /usr/lib64/xulrunner/libxul.so at 0x00007fad04bce000
RSI=0x0000000000000000 is an unknown value
RDI=0x00007fad04bf2a4a: <offset 0x24a4a> in /usr/lib64/xulrunner/libxul.so at 0x00007fad04bce000
R8 =0x0000000000256dac is an unknown value
R9 =0x0000000000000000 is an unknown value
R10=0x0000000000000010 is an unknown value
R11=0x00007fad3f37d420 is pointing into the stack for thread: 0x00007fad38009000
R12=0x00000000023e1548 is an unknown value
R13=0x0000000000000000 is an unknown value
R14=0x0000000000000000 is an unknown value
R15=0x00007fad38009000 is a thread


Stack: [0x00007fad3f27f000,0x00007fad3f380000],  sp=0x00007fad3f37d600,  free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [ld-linux-x86-64.so.2+0xe02c]  _dl_fixup+0x11c

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.mozilla.XPCOM._NS_InitXPCOM2(JJJ)I+0
j  org.eclipse.swt.internal.mozilla.XPCOM.NS_InitXPCOM2(JJJ)I+11
j  org.eclipse.swt.browser.Mozilla.initXPCOM(Ljava/lang/String;Z)V+563
j  org.eclipse.swt.browser.Mozilla.create(Lorg/eclipse/swt/widgets/Composite;I)V+192
j  org.eclipse.swt.browser.Browser.<init>(Lorg/eclipse/swt/widgets/Composite;I)V+81
j  org.pentaho.di.ui.spoon.SpoonBrowser.createBrowser()Lorg/eclipse/swt/browser/Browser;+9
j  org.pentaho.di.ui.spoon.SpoonBrowser.<init>(Lorg/eclipse/swt/widgets/Composite;Lorg/pentaho/di/ui/spoon/Spoon;Ljava/lang/String;ZZLorg/eclipse/swt/browser/LocationListener;)V+137
j  org.pentaho.di.ui.spoon.delegates.SpoonTabsDelegate.addSpoonBrowser(Ljava/lang/String;Ljava/lang/String;ZLorg/eclipse/swt/browser/LocationListener;)Z+46
j  org.pentaho.di.ui.spoon.delegates.SpoonTabsDelegate.addSpoonBrowser(Ljava/lang/String;Ljava/lang/String;Lorg/eclipse/swt/browser/LocationListener;)Z+5
j  org.pentaho.di.ui.spoon.Spoon.addSpoonBrowser(Ljava/lang/String;Ljava/lang/String;Lorg/eclipse/swt/browser/LocationListener;)Z+10
j  org.pentaho.di.ui.spoon.Spoon.showWelcomePage()V+102
j  org.pentaho.di.ui.spoon.Spoon.init(Lorg/pentaho/di/trans/TransMeta;)V+772
j  org.pentaho.di.ui.spoon.Spoon.createContents(Lorg/eclipse/swt/widgets/Composite;)Lorg/eclipse/swt/widgets/Control;+10
j  org.eclipse.jface.window.Window.create()V+14
j  org.eclipse.jface.window.Window.open()I+23
j  org.pentaho.di.ui.spoon.Spoon.start()V+6
j  org.pentaho.di.ui.spoon.Spoon.main([Ljava/lang/String;)V+327
v  ~StubRoutines::call_stub
j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+57
j  org.pentaho.commons.launcher.Launcher.main([Ljava/lang/String;)V+453
v  ~StubRoutines::call_stub

 从日志上看是XULRunner版本的问题。。。

 

centos 5.7的版本是

[root@server ~]# xulrunner -v
Mozilla XULRunner 1.9.2.18 - 20110622065727

centos 6.5的版本是

[root@server ~]$ xulrunner -v
Mozilla XULRunner 17.0.10 - 20131029213213

这里还不是很确定,google下一查,还真有兼容性 http://jira.pentaho.com/browse/PDI-8730

有个好心的哥们,回答得挺清楚的

Well it will be:
1) download the xulrunner 1.9.2 from here: http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/2012/03/2012-03-02-03-32-11-mozilla-1.9.2/xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar.bz2.
2) change this line in the spoon.sh
The only change you need is
OPT="$OPT -Dorg.eclipse.swt.browser.DefaultType=mozilla -Dorg.eclipse.swt.browser.XULRunnerPath=/opt/xulrunner-1.9.2"

 

你可能感兴趣的:(centos)