As jason pointed out using a hash code isn't portable. This is a
known problem in Howl and IIRC they added an optional flag in howl to
use a specified hash algorithm. Anyway, please create a JIRA (http://
issues.apache.org/jira/browse/GERONIMO) for this issue.
-dain
On Jun 9, 2006, at 3:32 AM, Udovichenko, Nellya wrote:
Hello,
I have launched Geronimo on Sun JDK. Then I’ve tried to run it with
Harmony class library
and IBM VM j9. I’ve got the error log below. Also I’ve got the same
result when launched
Geronimo on Harmony and then - on Sun JDK.
There is a bug in HOWL repaired in howl-1.0.1 by the new parameter
(adler32Checksum)
adding. At Geronimo startup it checks the log files' validity if
they exist. One of verified
parameters is the file content control sum. One value of this sum
is read from file header
and another is calculated by function java.nio.ByteBuffer.hashCode
(). So if the algorithms of
hash code functions of the JDKs are different Geronimo doesn’t
startup.
If the parameter adler32Checksum value is false the control sum is
calculated by function
java.nio.ByteBuffer.hashCode() otherwise it is calculated using
ADLER-32 algorithm.
Therefore, I think, it would be correct to add this parameter to
configs/j2ee-server/src/plan/plan.xml
and to gbean org.apache.geronimo.transaction.log.HOWLLog with value
'true'.
Any thoughts?
Thanks,
Nellya Udovichenko,
Intel Middleware Products Division
Error log:
$ java -jar bin/server.jar
Booting Geronimo Kernel (in Java 1.4.2_01)...
Starting Geronimo Application Server v1.1-20060607
[**> ] 11% 6s Starting geronimo/j2ee-server/
1...14:23:30,3
19 ERROR [GBeanInstanceState] Error while starting; GBean is now in
the FAILED s
tate: abstractName="geronimo/j2ee-server/1.1-20060607/car?
ServiceModule=geronimo
/j2ee-server/1.1-20060607/
car,j2eeType=TransactionLog,name=HOWLTransactionLog"
org.objectweb.howl.log.InvalidLogBufferException: CHECKSUM
Class: org.objectweb.howl.log.BlockLogBuffer
workerID: ffffffff
LogFile: C:\Nellya\geronimo-1.1\var\txlog\howl_1.log
HEADER
HEADER_ID: 0x484f574c
bsn: 0x1
size: 0x8000 should be: 0x8000
data used: 0x4f
checkSum: 0x2227d
tod: 0x10bb850e3b1
crlf: 0xd0a
FOOTER
FOOTER_ID: 0x4c574f48
bsn: 0x1
tod: 0x10bb850e3b1
crlf: 0xd0a
at org.objectweb.howl.log.BlockLogBuffer.read
(BlockLogBuffer.java:460)
at org.objectweb.howl.log.LogFileManager.init
(LogFileManager.java:821)
at org.objectweb.howl.log.Logger.open(Logger.java:314)
at org.objectweb.howl.log.xa.XALogger.open(XALogger.java:893)
at org.apache.geronimo.transaction.log.HOWLLog.doStart
(HOWLLog.java:217)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanI
nstance.java:981)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart
(GBeanInstanceState.java:267)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInsta
nceState.java:102)
at org.apache.geronimo.gbean.runtime.GBeanInstance.start
(GBeanInstance.j
ava:526)
at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GB
eanDependency.java:111)
at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDepe
ndency.java:146)
at org.apache.geronimo.gbean.runtime.GBeanDependency
$1.running(GBeanDepe
ndency.java:120)
at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEve
nt(BasicLifecycleMonitor.java:173)
at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(Bas
icLifecycleMonitor.java:41)
at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor
$RawLifecycleBr
oadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart
(GBeanInstanceState.java:292)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInsta
nceState.java:102)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(G
BeanInstanceState.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanI
nstance.java:540)
at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(Basi
cKernel.java:379)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
nGBeans(ConfigurationUtil.java:374)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(Ke
rnelConfigurationManager.java:187)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
figuration(SimpleConfigurationManager.java:512)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
figuration(SimpleConfigurationManager.java:493)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastCla
ssByCGLIB$$ce77a924.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke
(GBeanOperatio
n.java:122)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke
(GBeanInstance.
java:817)
at org.apache.geronimo.gbean.runtime.RawInvoker.invoke
(RawInvoker.java:5
7)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat
ionInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro
xyMethodInterceptor.java:96)
at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$Enhan
cerByCGLIB$$ff5cf4ac.startConfiguration(<generated>)
at org.apache.geronimo.system.main.Daemon.doStartup
(Daemon.java:297)
at org.apache.geronimo.system.main.Daemon.<init>
(Daemon.java:74)
at org.apache.geronimo.system.main.Daemon.main(Daemon.java:
377)
[**> ] 11% 6s Startup failed
...
Server shutdown begun Startup failed
Server shutdown completed
[**> ] 11% 7s Startup failed