-
1. Re: Cannot run
guisim Jun 12, 2009 11:45 AM (in response to guisim)For some reason, this thread's title was supposed to be "Cannot run runGuiDemo.bat and other questions "
I can't edit my original post.. and I can't modify the thread's title.
Simply " Cannot run " sounds kind of rude. Wish I could change it ;) -
2. Re: Cannot run
manik Jun 13, 2009 7:14 AM (in response to guisim)
Simply " Cannot run " sounds kind of rude. Wish I could change it ;)
LOL! I won't take it personally.
The home page mentions the runGuiDemo and it felt like a great way to be introduced to Infinispan.
Yes, that's why we have one. Nice, friendly way to get into it.
Sadly, the demo doesn't seem to work. I downloaded infinispan-4.0.0.ALPHA4-all and infinispan-4.0.0.ALPHA4-bin from Sourceforge, unzipped, tried to run runGuiDemo.bat ...
I get this error :
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: and
Caused by: java.lang.ClassNotFoundException: and
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: and. Program will exit.
That's very odd. We primarily develop on Unix environments so I must say the windows script has received much less testing than the Unix one. Could you edit the script and echo out the Java command being run, before running it?
Also, I'd like to know if there are any plans for a User mailing list ?
From my experience, users work best with forums like this, purely because of better searchability, etc. I do know though that there are some plans to merge the forums and mail lists into a single entity which you can interface with either by email or on the web.
Finally, I am wondering if Infinispan has a local copy of the Cache when used with REPL_SYNC.
What I actually want to know is wether "read" actions are local.
Yes. :-) -
3. Re: Cannot run
guisim Jun 15, 2009 9:38 AM (in response to guisim)Thanks for the reply !
I finally got it to work.. and now I feel kind of stupid.
The problem was that I extracted the demo in C:\Documents and Settings\USER\My Documents\
The script added those in the classpath.. but you can't have spaces there !
It couldn't find the class " and " because of " Document and Settings " !!...
Now the whole thing works.
I think that the script should use quotes around directory names, that should fix this.
If not, at least put a note somewhere mentioning this ;)
Also, about the forums vs mailing list, if you plan to stick with the forums, you might want to consider putting a link on the front page. Right now you have to dig around quite a bit to find it ;)
Thanks !
But now.. I have another question.
I have a cluster running. From time to time, I insert something in the map. Now when a new "client" joins the cluster and displays his synchronized map, all items added prior to him joining are not present ! Only items that were added after the new client joined are in his map.
Is this supposed to be like that ? Using REPL_SYNC, I expected his map to be synchronized automatically when he joins the server. -
4. Re: Cannot run
manik Jun 15, 2009 9:46 AM (in response to guisim)"GuiSim" wrote:
Thanks for the reply !
I finally got it to work.. and now I feel kind of stupid.
The problem was that I extracted the demo in C:\Documents and Settings\USER\My Documents\
The script added those in the classpath.. but you can't have spaces there !
It couldn't find the class " and " because of " Document and Settings " !!...
Now the whole thing works.
I think that the script should use quotes around directory names, that should fix this.
If not, at least put a note somewhere mentioning this ;)
Glad you got it working. If you feel like contributing a patched .BAT file, we'd appreciate that ..."GuiSim" wrote:
Also, about the forums vs mailing list, if you plan to stick with the forums, you might want to consider putting a link on the front page. Right now you have to dig around quite a bit to find it ;)
Good point. Done, it is now on the front page of www.infinispan.org"GuiSim" wrote:
I have a cluster running. From time to time, I insert something in the map. Now when a new "client" joins the cluster and displays his synchronized map, all items added prior to him joining are not present ! Only items that were added after the new client joined are in his map.
Is this supposed to be like that ? Using REPL_SYNC, I expected his map to be synchronized automatically when he joins the server.
Enable state transfer (fetching of state on startup) either via XML or your Configuration bean. -
5. Re: Cannot run
guisim Jun 15, 2009 9:46 AM (in response to guisim)Again, due to a lack of EDIT .. I have to double post..
I just read from another thread that in order to have late joiner sync with the cluster, I need to use :
<state Retrieval timeout="20000" fetchInMemoryState="true"/>
Is there a way to do this programmaticaly ?
isConfiguration.setFetchInMemoryState(true)
enough? -
6. Re: Cannot run
galder.zamarreno Jun 16, 2009 11:59 AM (in response to guisim)That should be enough. The default state transfer timeout is 10000 ms, so use setStateRetrievalTimeout() method to change that if necessary.