Kevan Miller wrote:
>
>
> On Mar 14, 2008, at 6:25 AM, Tomasz Mazan wrote:
>
>>
>> Hi Guys
>> I got very ugly (and blocking) issue with HOWL.
>> After processing 20k request to my webservice whose are translated
>> to ~120k
>> XA transactions (postgres + jms) Geronimo hangs up and does not
>> respond on
>> requests via HTTP, request to JMS engine (from HermesJMS) and
>> ignores tries
>> to shutdown server.
>>
>> I stopped Geronimo with kill -9 and tried to start it again and got
>> exception:
>>
>> Module 11/69 org.apache.geronimo.configs/activemq-ra/2.1-SNAPSHOT/car
>> 10:22:15,325 ERROR [GBeanInstanceState] Error while starting; GBean
>> is now
>> in the FAILED state:
>> abstractName="org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/
>> car?ServiceModule=org.apache.geronimo.configs/transaction/2.1-
>> SNAPSHOT/car,j2eeType=TransactionLog,name=HOWLTransactionLog"
>> java.lang.IllegalArgumentException: Negative position
>> at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:613)
>> at
>> org.objectweb.howl.log.BlockLogBuffer.read(BlockLogBuffer.java:412)
>> at
>> org.objectweb.howl.log.LogFileManager.read(LogFileManager.java:641)
>
> Hi Beniamin,
> Looks like we're configuring HOWL to create an infinite number of
> blocks in the tx log files. I think we need to limit this to prevent
> this IllegalArgumentException. Try adding this to your config.xml:
>
> <module name="org.apache.geronimo.configs/transaction/2.1-
> SNAPSHOT/car">
> <gbean name="HOWLTransactionLog">
> <attribute name="maxBlocksPerFile">65534</attribute>
> </gbean>
> </module>
>
> By my calculations, 65,535 blocks * 32 kbytes per block = 2**31 - 1. I
> believe HOWL stores a file header in each log file. So, need to leave
> some room for that, also...
>
> Actually, might make sense to knock the maxBlocksPerFile size down
> even further for testing purposes... Also, would be great if you could
> run these tests with the latest AMQ and OpenEJB fixes to avoid the
> IllegalStateException's.
>
> I'm not entirely sure why your server became unresponsive. So, we may
> have some additional work to do...
>
> --kevan
>
>
>
Kevan
I got new exception on startup
<pre>
Module 14/67 org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car
11:30:19,196 ERROR [GBeanInstanceState] Error while starting; GBean is now
in the FAILED state:
abstractName="org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car,j2eeType=TransactionLog,name=HOWLTransactionLog"
org.objectweb.howl.log.LogConfigurationException: Configured file size
[65534] blocks not equal previous file size [2147483647] blocks
at
org.objectweb.howl.log.LogFileManager.validateFileHeader(LogFileManager.java:1072)
at
org.objectweb.howl.log.LogFileManager.init(LogFileManager.java:901)
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:224)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:998)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:541)
at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
at
org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:294)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555)
at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:448)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:534)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$d77a4e8.startConfiguration(<generated>)
at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:156)
at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
at
org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
Server Startup failed
org.apache.geronimo.kernel.config.LifecycleException: start of
org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car failed
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$d77a4e8.startConfiguration(<generated>)
at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:156)
at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
at
org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown
start exception
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:514)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:534)
... 16 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
Configuration org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car
failed to start due to the following reasons:
The service
ServiceModule=org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car,j2eeType=JCAConnectionTracker,name=ConnectionTracker
did not start because
org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car,j2eeType=JTAResource,name=TransactionManager
did not start.
The service
ServiceModule=org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car,j2eeType=JCAWorkManager,name=DefaultWorkManager
did not start because
org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car,j2eeType=JTAResource,name=TransactionManager
did not start.
The service
ServiceModule=org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car,j2eeType=TransactionLog,name=HOWLTransactionLog
did not start because Configured file size [65534] blocks not equal previous
file size [2147483647] blocks
The service
ServiceModule=org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car,j2eeType=JTAResource,name=TransactionManager
did not start because
org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/car,j2eeType=TransactionLog,name=HOWLTransactionLog
did not start.
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:477)
... 18 more
</pre>
-----
thanks
Beniamin
--
View this message in context:
http://www.nabble.com/HOWL-exception-tp16047940s134p16698500.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.