5 Replies Latest reply on May 21, 2015 10:40 AM by Justin Bertram

    Issue in HornetQ:java.lang.IllegalStateException: Invalid logic on buffer allocation

    Khaleel Ibrahim Newbie

      Hi,

       

      I am using Hornetq 2.0.0.GA as my JMS server. Once I start using it, sometimes I am geting aa runtime esception as follows.

       

      java.lang.IllegalStateException: Invalid logic on buffer allocation         at org.hornetq.core.journal.impl.JournalImpl.appendRecord(JournalImpl.java:2820)         at org.hornetq.core.journal.impl.JournalImpl.appendAddRecordTransactional(JournalImpl.java:968)         at org.hornetq.core.persistence.impl.journal.JournalStorageManager.storeMessageTransactional(JournalStorageManager.java:567)         at org.hornetq.core.postoffice.impl.PostOfficeImpl.processRoute(PostOfficeImpl.java:900)         at org.hornetq.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:665)         at org.hornetq.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:539)         at org.hornetq.core.paging.impl.PagingStoreImpl.onDepage(PagingStoreImpl.java:1006)         at org.hornetq.core.paging.impl.PagingStoreImpl.readPage(PagingStoreImpl.java:698)         at org.hornetq.core.paging.impl.PagingStoreImpl.access$200(PagingStoreImpl.java:64)         at org.hornetq.core.paging.impl.PagingStoreImpl$DepageRunnable.run(PagingStoreImpl.java:1181)         at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:96)         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)         at java.lang.Thread.run(Thread.java:662)

       

      Also I have faced another issue where I got deployement error. The application was running fine and when I try to restart, I am getting the error. Then I need to clear some data folder from the server which result in pending data getting lost.

      Please see the logs below.

       

       

      [main] 13:31:08,733 INFO [org.hornetq.integration.bootstrap.HornetQBootstrapServer]  Starting HornetQ Server

      [main] 13:31:10,608 INFO [org.hornetq.core.server.impl.HornetQServerImpl]  live server is starting..

      [main] 13:31:10,657 WARNING [org.hornetq.core.persistence.impl.journal.JournalStorageManager]  AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal

      [main] 13:31:10,657 INFO [org.hornetq.core.persistence.impl.journal.JournalStorageManager]  Using NIO Journal

      [main] 13:31:10,689 WARNING [org.hornetq.core.server.impl.HornetQServerImpl]  Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.

      [main] 13:31:11,478 WARNING [org.hornetq.core.journal.impl.JournalImpl]  Temporary files were left unnatended after a crash on journal directory, deleting invalid files now

      [main] 13:31:11,478 WARNING [org.hornetq.core.journal.impl.JournalImpl]  Deleting unnatended file hornetq-data-101668.hq.cmp

      [main] 13:31:11,588 SEVERE [org.hornetq.integration.bootstrap.HornetQBootstrapServer]  Failed to start server

      1. java.lang.IllegalStateException: Incompletely deployed:

       

      DEPLOYMENTS IN ERROR:

        Deployment "JMSServerManager" is in error due to: java.nio.BufferUnderflowException

       

      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)

      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)

      at org.hornetq.integration.bootstrap.HornetQBootstrapServer.bootstrap(HornetQBootstrapServer.java:159)

      at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83)

      at org.hornetq.integration.bootstrap.HornetQBootstrapServer.run(HornetQBootstrapServer.java:117)

      at org.hornetq.integration.bootstrap.HornetQBootstrapServer.main(HornetQBootstrapServer.java:73)

      Exception in thread "main" java.lang.IllegalStateException: Incompletely deployed:

       

      DEPLOYMENTS IN ERROR:

        Deployment "JMSServerManager" is in error due to: java.nio.BufferUnderflowException

       

      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)

      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)

      at org.hornetq.integration.bootstrap.HornetQBootstrapServer.bootstrap(HornetQBootstrapServer.java:159)

      at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83)

      at org.hornetq.integration.bootstrap.HornetQBootstrapServer.run(HornetQBootstrapServer.java:117)

      at org.hornetq.integration.bootstrap.HornetQBootstrapServer.main(HornetQBootstrapServer.java:73)

       

       

       

      R's

      Khaleel