2 Replies Latest reply on Sep 22, 2010 1:13 PM by Brian Holland

    Unable to run Jboss Cache demo

    Akshat Saxena Newbie

      Hi,

       

      I have downloaded  the Jboss Cache demo from the link provided in http://jbosscache.blogspot.com/2008/01/gui-demo-for-jboss-cache.html. First of all I didn't find anything to run demo on windows so I created run.bat based on run.sh. Below is my run.bat:

      ***************************************************************************************************************************************************************

      set classpath=./lib/asm.jar;./lib/asm-commons.jar;./lib/asm-tree.jar;./lib/c3p0.jar;./lib/commons-logging.jar;./lib/forms.jar;./lib/forms_rt.jar;./lib/jbosscache-core.jar;./lib/jboss-common-core.jar;./lib/jboss-common-logging-spi.jar;./lib/jboss-javaee.jar;./lib/jcip-annotations.jar;./lib/jdbm.jar;./lib/jdom.jar;./lib/je.jar;./lib/jgroups.jar;./lib/log4j.jar;

      set classpath=%classpath%;jbosscache-demo.jar;

      set JVM_PARAMS="-Dbind.address=172.18.67.59 -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=./etc/log4j.xml"

      java -cp %classpath% %JVM_PARAMS% org.jboss.cache.demo.JBossCacheDemo

      **************************************************************************************************************************************************************

       

      Using this I can start the Demo but when I click on "Start Cache" button, I am getting exception below:

      *************************************************************************************************************************************************************

      2010-05-06 12:56:21,198 WARN  [GenericTransactionManagerLookup] (pool-1-thread-1) Falling back to DummyTransactionManager from JBossCache
      2010-05-06 12:56:27,558 FATAL [UDP] (pool-1-thread-1) failed getting bind_addr
      java.net.UnknownHostException: 172.18.67.59 -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=./etc/log4j.xml
              at java.net.InetAddress.getAllByName0(InetAddress.java:1133)
              at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
              at java.net.InetAddress.getAllByName(InetAddress.java:1061)
              at java.net.InetAddress.getByName(InetAddress.java:958)
              at org.jgroups.util.Util.getBindAddress(Util.java:2065)
              at org.jgroups.protocols.TP.setProperties(TP.java:619)
              at org.jgroups.protocols.UDP.setProperties(UDP.java:147)
              at org.jgroups.stack.Protocol.setPropertiesInternal(Protocol.java:95)
              at org.jgroups.stack.Configurator$ProtocolConfiguration.createLayer(Configurator.java:699)
              at org.jgroups.stack.Configurator$ProtocolConfiguration.access$000(Configurator.java:595)
              at org.jgroups.stack.Configurator.createProtocols(Configurator.java:375)
              at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:58)
              at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:205)
              at org.jgroups.JChannel.init(JChannel.java:1400)
              at org.jgroups.JChannel.<init>(JChannel.java:248)
              at org.jgroups.JChannel.<init>(JChannel.java:231)
              at org.jboss.cache.CacheImpl.initialiseChannelAndRpcDispatcher(CacheImpl.java:2899)
              at org.jboss.cache.CacheImpl.internalStart(CacheImpl.java:606)
              at org.jboss.cache.CacheImpl.start(CacheImpl.java:544)
              at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:277)
              at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:96)
              at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:68)
              at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:61)
              at org.jboss.cache.demo.JBossCacheDemo$14.run(JBossCacheDemo.java:524)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
              at java.lang.Thread.run(Thread.java:595)
      org.jgroups.ChannelException: unable to setup the protocol stack
              at org.jgroups.JChannel.init(JChannel.java:1403)
              at org.jgroups.JChannel.<init>(JChannel.java:248)
              at org.jgroups.JChannel.<init>(JChannel.java:231)
              at org.jboss.cache.CacheImpl.initialiseChannelAndRpcDispatcher(CacheImpl.java:2899)
              at org.jboss.cache.CacheImpl.internalStart(CacheImpl.java:606)
              at org.jboss.cache.CacheImpl.start(CacheImpl.java:544)
              at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:277)
              at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:96)
              at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:68)
              at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:61)
              at org.jboss.cache.demo.JBossCacheDemo$14.run(JBossCacheDemo.java:524)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
              at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.IllegalArgumentException: the following properties in UDP are not recognized: {oob_thread_pool.enabled=true, thread_pool.enabled=true, loopback=false, thread_pool.rejection_policy=Run, max_bundle_timeout=30, thread_pool.queue_
      10, oob_thread_pool.min_threads=1, oob_thread_pool.keep_alive_time=10000, oob_thread_pool.rejection_policy=Run, thread_naming_pattern=pl, thread_pool.queue_enabled=true, max_bundle_size=64000, enable_bundling=false, thread_pool.max_threads=25, use
      _packet_handler=true, thread_pool.keep_alive_time=30000, oob_thread_pool.queue_max_size=10, use_concurrent_stack=true, discard_incompatible_packets=true, enable_diagnostics=true, oob_thread_pool.max_threads=4, thread_pool.min_threads=1, oob_thread
      ue_enabled=true}
              at org.jgroups.stack.Configurator$ProtocolConfiguration.createLayer(Configurator.java:700)
              at org.jgroups.stack.Configurator$ProtocolConfiguration.access$000(Configurator.java:595)
              at org.jgroups.stack.Configurator.createProtocols(Configurator.java:375)
              at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:58)
              at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:205)
              at org.jgroups.JChannel.init(JChannel.java:1400)
              ... 13 more
      Exception in thread "pool-1-thread-1" java.lang.NullPointerException
              at org.jboss.cache.CacheImpl.initialiseChannelAndRpcDispatcher(CacheImpl.java:2911)
              at org.jboss.cache.CacheImpl.internalStart(CacheImpl.java:606)
              at org.jboss.cache.CacheImpl.start(CacheImpl.java:544)
              at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:277)
              at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:96)
              at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:68)
              at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:61)
              at org.jboss.cache.demo.JBossCacheDemo$14.run(JBossCacheDemo.java:524)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
              at java.lang.Thread.run(Thread.java:595)

      *************************************************************************************************************************************************************

      Please suggest.

       

      Regards,

      Akshat

        • 1. Re: Unable to run Jboss Cache demo
          Akshat Saxena Newbie

          Yes. I fixed it. I missed to remove the semicolons from JVM_PARAMS values .

          • 2. Re: Unable to run Jboss Cache demo
            Brian Holland Newbie

            How did you fix it exactly? I'm having the same issues. There are no semicolons in the JVM_PARAM values above. I copied what is above and I am getting the following errors.

             

            Exception in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/jboss/
            logging/Logger
                    at org.jboss.util.xml.JBossEntityResolver.<clinit>(JBossEntityResolver.j
            ava:57)
                    at org.jboss.cache.config.parsing.RootElementBuilder.<clinit>(RootElemen
            tBuilder.java:48)
                    at org.jboss.cache.config.parsing.XmlConfigurationParser.<init>(XmlConfi
            gurationParser.java:93)
                    at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.j
            ava:75)
                    at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.j
            ava:71)
                    at org.jboss.cache.demo.JBossCacheDemo$14.run(JBossCacheDemo.java:524)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
            )
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at java.lang.Thread.run(Unknown Source)
            Caused by: java.lang.ClassNotFoundException: org.jboss.logging.Logger
                    at java.net.URLClassLoader$1.run(Unknown Source)
                    at java.security.AccessController.doPrivileged(Native Method)
                    at java.net.URLClassLoader.findClass(Unknown Source)
                    at java.lang.ClassLoader.loadClass(Unknown Source)
                    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
                    at java.lang.ClassLoader.loadClass(Unknown Source)
                    ... 9 more

            Exception in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/jboss/

            logging/Logger

                    at org.jboss.util.xml.JBossEntityResolver.<clinit>(JBossEntityResolver.j

            ava:57)

                    at org.jboss.cache.config.parsing.RootElementBuilder.<clinit>(RootElemen

            tBuilder.java:48)

                    at org.jboss.cache.config.parsing.XmlConfigurationParser.<init>(XmlConfi

            gurationParser.java:93)

                    at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.j

            ava:75)

                    at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.j

            ava:71)

                    at org.jboss.cache.demo.JBossCacheDemo$14.run(JBossCacheDemo.java:524)

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source

            )

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                    at java.lang.Thread.run(Unknown Source)

            Caused by: java.lang.ClassNotFoundException: org.jboss.logging.Logger

                    at java.net.URLClassLoader$1.run(Unknown Source)

                    at java.security.AccessController.doPrivileged(Native Method)

                    at java.net.URLClassLoader.findClass(Unknown Source)

                    at java.lang.ClassLoader.loadClass(Unknown Source)

                    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

                    at java.lang.ClassLoader.loadClass(Unknown Source)

                    ... 9 more