<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Unable to run Jboss Cache demo
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/akshatsaxena">Akshat Saxena</a> in <i>JBoss Cache</i> - <a href="http://community.jboss.org/message/541467#541467">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have downloaded  the Jboss Cache demo from the link provided in <a class="jive-link-external-small" href="http://jbosscache.blogspot.com/2008/01/gui-demo-for-jboss-cache.html">http://jbosscache.blogspot.com/2008/01/gui-demo-for-jboss-cache.html</a>. 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:</p><p>***************************************************************************************************************************************************************</p><p>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;</p><p>set classpath=%classpath%;jbosscache-demo.jar;</p><p>set JVM_PARAMS="-Dbind.address=172.18.67.59 -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=./etc/log4j.xml"</p><p>java -cp %classpath% %JVM_PARAMS% org.jboss.cache.demo.JBossCacheDemo</p><p>**************************************************************************************************************************************************************</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Using this I can start the Demo but when I click on "Start Cache" button, I am getting exception below:</p><p>*************************************************************************************************************************************************************</p><p>2010-05-06 12:56:21,198 WARN  [GenericTransactionManagerLookup] (pool-1-thread-1) Falling back to DummyTransactionManager from JBossCache<br/>2010-05-06 12:56:27,558 FATAL [UDP] (pool-1-thread-1) failed getting bind_addr<br/>java.net.UnknownHostException: 172.18.67.59 -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=./etc/log4j.xml<br/>        at java.net.InetAddress.getAllByName0(InetAddress.java:1133)<br/>        at java.net.InetAddress.getAllByName0(InetAddress.java:1098)<br/>        at java.net.InetAddress.getAllByName(InetAddress.java:1061)<br/>        at java.net.InetAddress.getByName(InetAddress.java:958)<br/>        at org.jgroups.util.Util.getBindAddress(Util.java:2065)<br/>        at org.jgroups.protocols.TP.setProperties(TP.java:619)<br/>        at org.jgroups.protocols.UDP.setProperties(UDP.java:147)<br/>        at org.jgroups.stack.Protocol.setPropertiesInternal(Protocol.java:95)<br/>        at org.jgroups.stack.Configurator$ProtocolConfiguration.createLayer(Configurator.java:699)<br/>        at org.jgroups.stack.Configurator$ProtocolConfiguration.access$000(Configurator.java:595)<br/>        at org.jgroups.stack.Configurator.createProtocols(Configurator.java:375)<br/>        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:58)<br/>        at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:205)<br/>        at org.jgroups.JChannel.init(JChannel.java:1400)<br/>        at org.jgroups.JChannel.<init>(JChannel.java:248)<br/>        at org.jgroups.JChannel.<init>(JChannel.java:231)<br/>        at org.jboss.cache.CacheImpl.initialiseChannelAndRpcDispatcher(CacheImpl.java:2899)<br/>        at org.jboss.cache.CacheImpl.internalStart(CacheImpl.java:606)<br/>        at org.jboss.cache.CacheImpl.start(CacheImpl.java:544)<br/>        at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:277)<br/>        at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:96)<br/>        at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:68)<br/>        at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:61)<br/>        at org.jboss.cache.demo.JBossCacheDemo$14.run(JBossCacheDemo.java:524)<br/>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)<br/>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)<br/>        at java.lang.Thread.run(Thread.java:595)<br/>org.jgroups.ChannelException: unable to setup the protocol stack<br/>        at org.jgroups.JChannel.init(JChannel.java:1403)<br/>        at org.jgroups.JChannel.<init>(JChannel.java:248)<br/>        at org.jgroups.JChannel.<init>(JChannel.java:231)<br/>        at org.jboss.cache.CacheImpl.initialiseChannelAndRpcDispatcher(CacheImpl.java:2899)<br/>        at org.jboss.cache.CacheImpl.internalStart(CacheImpl.java:606)<br/>        at org.jboss.cache.CacheImpl.start(CacheImpl.java:544)<br/>        at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:277)<br/>        at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:96)<br/>        at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:68)<br/>        at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:61)<br/>        at org.jboss.cache.demo.JBossCacheDemo$14.run(JBossCacheDemo.java:524)<br/>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)<br/>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)<br/>        at java.lang.Thread.run(Thread.java:595)<br/>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_<br/>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<br/>_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<br/>ue_enabled=true}<br/>        at org.jgroups.stack.Configurator$ProtocolConfiguration.createLayer(Configurator.java:700)<br/>        at org.jgroups.stack.Configurator$ProtocolConfiguration.access$000(Configurator.java:595)<br/>        at org.jgroups.stack.Configurator.createProtocols(Configurator.java:375)<br/>        at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:58)<br/>        at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:205)<br/>        at org.jgroups.JChannel.init(JChannel.java:1400)<br/>        ... 13 more<br/>Exception in thread "pool-1-thread-1" java.lang.NullPointerException<br/>        at org.jboss.cache.CacheImpl.initialiseChannelAndRpcDispatcher(CacheImpl.java:2911)<br/>        at org.jboss.cache.CacheImpl.internalStart(CacheImpl.java:606)<br/>        at org.jboss.cache.CacheImpl.start(CacheImpl.java:544)<br/>        at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:277)<br/>        at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:96)<br/>        at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:68)<br/>        at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:61)<br/>        at org.jboss.cache.demo.JBossCacheDemo$14.run(JBossCacheDemo.java:524)<br/>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)<br/>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)<br/>        at java.lang.Thread.run(Thread.java:595)</p><p>*************************************************************************************************************************************************************</p><p>Please suggest.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Regards,</p><p>Akshat</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/541467#541467">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Cache at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>