<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, could you please post this to the JBoss Cache user forum instead:<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="http://www.jboss.com/index.html?module=bb&op=viewforum&f=157">http://www.jboss.com/index.html?module=bb&op=viewforum&f=157</a></div><div><br></div><div>Thanks!</div><div>Manik</div><div><br></div><div><br><div><div>On 27 Oct 2008, at 12:24, Meena Rajani wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; "> <br><font color="#008000">Hi<span class="Apple-converted-space"> </span></font><br><font color="#008000">I am new to jboss cahe, could you please help me in sorting out this error.</font><br><font color="#008000"></font> <br><font color="#008000">I am using netbeans to compile my program running it on remote linux server.</font><br><font color="#008000"></font> <br><font color="#008000">NetBeans 6.0.1</font><br><font color="#008000">JDK jdk1.5.0_12</font><br><font color="#008000">JRE jre1.6.0_07</font><br><font color="#008000">JBossCache-1.4.0.SP1</font><br><font color="#008000">POstgreSQL 8.3</font><br><font color="#008000">postgresql-8.2-506.jdbc3 driver</font><br><font color="#008000">Running Windows XP</font><br> <br><font color="#0000ff">1- While compilin Jboss-Cache I am getting following error , though it is building successfuly</font><br> <br>Created dir: C:\Documents and Settings\Meena\Desktop\db project\jboss-cache\build\classes<br>Compiling 258 source files to C:\Documents and Settings\Meena\Desktop\db project\jboss-cache\build\classes<br>C:\Documents and Settings\Meena\Desktop\db project\jboss-cache\src\org\jboss\cache\aop\TreeCacheAopDelegate.java:127: warning: non-varargs call of varargs method with inexact argument type for last parameter;<br>cast to java.lang.Class for a varargs call<br>cast to java.lang.Class[] for a non-varargs call and to suppress this warning<br> Constructor ctr = clazz.getDeclaredConstructor(null);<br>C:\Documents and Settings\Meena\Desktop\db project\jboss-cache\src\org\jboss\cache\aop\TreeCacheAopDelegate.java:129: warning: non-varargs call of varargs method with inexact argument type for last parameter;<br>cast to java.lang.Object for a varargs call<br>cast to java.lang.Object[] for a non-varargs call and to suppress this warning<br> obj = ctr.newInstance(null);<br>Note: Some input files use or override a deprecated API.<br>Note: Recompile with -Xlint:deprecation for details.<br>Note: Some input files use unchecked or unsafe operations.<br>Note: Recompile with -Xlint:unchecked for details.<br>2 warnings<br><br> <br><font color="#0000ff">While Running the compiled code it on Server<span class="Apple-converted-space"> </span></font><br><font color="#0000ff">I am getting following error<span class="Apple-converted-space"> </span></font><br><font color="#0000ff">It seems it canot not initialize cache, complaining about configuration file. I tried the same code few months ago it was working fine.</font><br> <br>java.lang.reflect.InvocationTargetException<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br> at java.lang.reflect.Method.invoke(Method.java:585)<br> at org.jboss.cache.PropertyConfigurator.configure(PropertyConfigurator.java:215)<br> at org.jboss.cache.PropertyConfigurator.configure(PropertyConfigurator.java:161)<br> at org.usyd.sit.perfEvalServer.ServerImpl.initCache(ServerImpl.java:60)<br> at org.usyd.sit.perfEvalServer.ServerImpl.<init>(ServerImpl.java:45)<br> at org.usyd.sit.perfEvalServer.ServerImpl.main(ServerImpl.java:150)<br>Caused by: java.lang.IllegalArgumentException: setCacheMode(): caching mode -1 is invalid<br> at org.jboss.cache.TreeCache.setCacheMode(TreeCache.java:928)<br> at org.jboss.cache.TreeCache.setCacheMode(TreeCache.java:909)<br> ... 9 more<br>org.jboss.cache.ConfigureException: configure(): can't invoke setCacheMode to configure TreeCache properties. Exception: java.lang.reflect.InvocationTargetException<br> at org.jboss.cache.PropertyConfigurator.configure(PropertyConfigurator.java:220)<br> at org.jboss.cache.PropertyConfigurator.configure(PropertyConfigurator.java:161)<br> at org.usyd.sit.perfEvalServer.ServerImpl.initCache(ServerImpl.java:60)<br> at org.usyd.sit.perfEvalServer.ServerImpl.<init>(ServerImpl.java:45)<br> at org.usyd.sit.perfEvalServer.ServerImpl.main(ServerImpl.java:150)<br> <br><br> <br> <font color="#0000ff">Following is my xml file</font><br> <br> <br><?xml version="1.0" encoding="UTF-8"?><br><!-- ===================================================================== --><br><!-- --><br><!-- Sample TreeCache Service Configuration --><br><!-- --><br><!-- ===================================================================== --><br><server><br> <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/><br><br> <!-- ==================================================================== --><br> <!-- Defines TreeCache configuration --><br> <!-- ==================================================================== --><br> <mbean code="org.jboss.cache.TreeCache"<br> name="jboss.cache:service=TreeCache"><br> <depends>jboss:service=Naming</depends><br> <depends>jboss:service=TransactionManager</depends><br> <!--<br> Configure the TransactionManager<br> --><br> <attribute name="TransactionManagerLookupClass">org.jboss.cache.DummyTransactionManagerLookup</attribute><br> <!--<br> Isolation level : SERIALIZABLE<br> REPEATABLE_READ (default)<br> READ_COMMITTED<br> READ_UNCOMMITTED<br> NONE<br> --><br> <attribute name ="IsolationLevel">REPEATABLE_READ</attribute><br> <!--<br> Valid modes are LOCAL<br> REPL_ASYNC<br> REPL_SYNC<br> INVALIDATION_ASYNC<br> INVALIDATION_SYNC<br> FRESHNESS_ASYNC<br> FRESHNESS_GROUP_ASYNC<br> INVALIDATION_FINEGRAIN<br> --><br> <attribute name="CacheMode">FRESHNESS_ASYNC</attribute><br><br> <!--<br> Freshness limit, in ms<br> --><br> <attribute name="FreshnessLimit">1000</attribute><br> <!--<br> Just used for async repl: use a replication queue<br> --><br> <attribute name="UseReplQueue">false</attribute><br> <!--<br> Replication interval for replication queue (in ms)<br> --><br> <attribute name="ReplQueueInterval">0</attribute><br> <!--<br> Max number of elements which trigger replication<br> --><br> <attribute name="ReplQueueMaxElements">0</attribute><br> <!-- Name of cluster. Needs to be the same for all clusters, in order<br> to find each other<br> --><br> <attribute name="ClusterName">TreeCache-Cluster</attribute><br> <!-- JGroups protocol stack properties. Can also be a URL,<br> e.g. file:/home/bela/default.xml<br> <attribute name="ClusterProperties"></attribute><br> --><br> <attribute name="ClusterConfig"><br> <config><br> <!-- UDP: if you have a multihomed machine,<br> set the bind_addr attribute to the appropriate NIC IP address --><br> <!-- UDP: On Windows machines, because of the media sense feature<br> being broken with multicast (even after disabling media sense)<br> set the loopback attribute to true --><br> <UDP mcast_addr="228.1.2.3" mcast_port="48866" bind_addr="129.78.97.10"<br> ip_ttl="64" ip_mcast="true"<br> mcast_send_buf_size="150000" mcast_recv_buf_size="80000"<br> ucast_send_buf_size="150000" ucast_recv_buf_size="80000"<br> loopback="false"/><br> <PING timeout="2000" num_initial_members="3"<br> up_thread="false" down_thread="false"/><br> <MERGE2 min_interval="10000" max_interval="20000"/><br> <!-- <FD shun="true" up_thread="true" down_thread="true" />--><br> <FD_SOCK/><br> <VERIFY_SUSPECT timeout="1500"<br> up_thread="false" down_thread="false"/><br> <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"<br> max_xmit_size="8192" up_thread="false" down_thread="false"/><br> <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"<br> down_thread="false"/><br> <pbcast.STABLE desired_avg_gossip="20000"<br> up_thread="false" down_thread="false"/><br> <FRAG frag_size="8192"<br> down_thread="false" up_thread="false"/><br> <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"<br> shun="true" print_local_addr="true"/><br> <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/><br> </config><br> </attribute><br> <!--<br> Whether or not to fetch state on joining a cluster<br> NOTE this used to be called FetchStateOnStartup and has been renamed to be more descriptive.<br> --><br> <attribute name="FetchInMemoryState">true</attribute><br> <!--<br> The max amount of time (in milliseconds) we wait until the<br> initial state (ie. the contents of the cache) are retrieved from<br> existing members in a clustered environment<br> --><br> <attribute name="InitialStateRetrievalTimeout">20000</attribute><br> <!--<br> Number of milliseconds to wait until all responses for a<br> synchronous call have been received.<br> --><br> <attribute name="SyncReplTimeout">20000</attribute><br> <!--<attribute name="NodeLockingScheme">OPTIMISTIC</attribute>--><br> <!-- Max number of milliseconds to wait for a lock acquisition --><br> <attribute name="LockAcquisitionTimeout">15000</attribute><br><br> <!-- Name of the eviction policy class. --><br> <attribute name="EvictionPolicyClass"></attribute><br><br> <!--<br> Indicate whether to use region based marshalling or not. Set this to true if you are running under a scoped<br> class loader, e.g., inside an application server. Default is "false".<br> --><br> <attribute name="UseRegionBasedMarshalling">false</attribute><br> </mbean><br></server><br><br> <br>Thanks<br>Meena<br><br><hr>Connect to the next generation of MSN Messenger <span class="Apple-converted-space"> </span><a href="http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline" target="_new">Get it now!</a>_______________________________________________<br>jbosscache-issues mailing list<br><a href="mailto:jbosscache-issues@lists.jboss.org">jbosscache-issues@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/jbosscache-issues">https://lists.jboss.org/mailman/listinfo/jbosscache-issues</a></div></span></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>--</div><div>Manik Surtani</div><div>Lead, JBoss Cache</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div><br></div><div><br class="webkit-block-placeholder"></div></div></div></div></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>