PDA

View Full Version : newly installed DHE doesn't work



FlashGordon
09-17-2004, 11:38 AM
Hi

I just downloaded the.msi Installer, installed it and after a while I had a look at the task manager if DHE was happily processing. But it constantly was at 0% of CPU time although I set priority to normal.

I stopped the DHE service and tried to run it via console. The following text appeared:

http://flash.s1.cybton.com/DHE-error.png

Can anyone tell me what is wrong here?

FlashGordon
09-17-2004, 03:39 PM
another try, another error :-)

http://flash.s1.cybton.com/DHE-error2.png

em99010pepe
09-17-2004, 03:45 PM
Try using the Manual Installation with GUI (not Service).

This is what I have in the batch file (islandNT.bat):


cd DC\DHEP
:begin
start /low /b /wait java -Djava.security.policy=java.policy -jar ITClient.jar 139.184.166.27 KingKong nickname -i 30 -c 60 email@address Free-DC
goto begin

****EDIT****

If you use SUN java just add -server flag.


cd DC\DHEP
:begin
start /low /b /wait java -server -Djava.security.policy=java.policy -jar ITClient.jar 139.184.166.27 KingKong nickname -i 30 -c 60 email@address Free-DC
goto begin

FlashGordon
09-17-2004, 04:52 PM
Hm let's see if it works.

I'm using Windows. Can I close the cmd window or will that stop the java application as well (I don't want to have this window open all the time so I would rather change to service then).

em99010pepe
09-17-2004, 05:25 PM
By closing that window you will shutdown the application.

Carlos

FlashGordon
09-17-2004, 06:00 PM
Obviously not:

http://flash.s1.cybton.com/DHE-error2.png

I'll also try manual installation as service, but what could I do if that didn't work?

em99010pepe
09-17-2004, 06:09 PM
As I said before try running the GUI version.

Manual Installation with GUI (not Service)

1. Download Java executable Jar file (http://www.informatics.sussex.ac.uk/users/mmg20/files/ITClient.jar) and Java policy file (http://www.informatics.sussex.ac.uk/users/mmg20/files/java.policy) into some directory. Make sure the latter is saved as java.policy and not java.policy.txt.
2. Download this batch file (http://www.informatics.sussex.ac.uk/users/mmg20/files/islandNT.bat) and change INSTALL_DIR to where you downloaded these files and YOUR_NAME and YOUR@EMAIL to your own.
3. You now launch your island by running this batch file. Don't forget to put it file in the Start->Programs->Startup folder so it runs every time.


The server is running, check my image:

http://www.imageuploader.net/images/970338DHEP.JPG

Carlos

FlashGordon
09-17-2004, 06:12 PM
oops I linked the wrong image

http://flash.s1.cybton.com/DHE-error3.png

em99010pepe
09-17-2004, 06:16 PM
Don't forget to join FreeDC Team.

Which java version are you using? Sometimes takes a few minutes to begin crunching.

Carlos

*****EDIT*****

Restart the client.

FlashGordon
09-17-2004, 07:02 PM
I'm using Java v1.4.2.04 Build b05.

I have restarted the client, but no change so far. I'll have a look tomorrow if it has done anything.

But why should I join FreeDC team?

FlashGordon
09-17-2004, 08:05 PM
The service stopped itself, probably the same way it stopped before.

em99010pepe
09-18-2004, 02:35 AM
Yesterday I tried DHEP and it was running as you can see by my image.
Are you still using DHEP as a service? I'm with lack of ideas. Just wait for miguelgarvie.

Why FreeDC? For FUN.

Carlos

FlashGordon
09-18-2004, 07:06 AM
Do I need to change the wrapper.conf to join FreeDC? Which line do I have to add?

em99010pepe
09-18-2004, 07:30 AM
How can I set up and join a team?

Group many islands into a team and see how it compares to others in the statistics. Set up and join a team in one simple step:

If you're using a script to launch your island just add your team name after your email, so that the middle line of your script looks something like: java -Djava.security.policy=java.policy -jar ITClient.jar 139.184.166.27 KingKong YOUR_NAME -i 30 -c 60 YOUR@EMAIL YOUR_TEAM.

If you're running your island as an NT service then edit wrapper.conf and add a line after the one with your email like this:
wrapper.app.parameter.4=YOUR_NAME
wrapper.app.parameter.5=YOUR@EMAIL
wrapper.app.parameter.10=YOUR_TEAM


In your case:

wrapper.app.parameter.4=FlashGordon
wrapper.app.parameter.5=flash@fantasymail.de
wrapper.app.parameter.10=Free-DC

Cheers,

Carlos

*****EDIT*****

Made a mistake. Put Free-DC instead of FreeDC. Thanks rshepard.

prokaryote
09-18-2004, 07:35 AM
Hi FlashGordon,

Check out this link (http://www.free-dc.org/forum/showthread.php?s=&threadid=4222) for info and details.

Also, a good page here (http://www.teampicard.net/kb.php?mode=article&k=1) that may have more details.

Good luck and happy crunching!

prok

rshepard
09-18-2004, 08:10 AM
Have you tried re-installing Java? The fact that you've tried a couple of different install methods and are still getting errors suggests to me thet your Java install may be corrupted somewhere. I believe 1.4.2.05 is out; you might want to try that and see if it helps.

FlashGordon
09-18-2004, 08:35 AM
So I joined DHE team

rshepard
09-18-2004, 08:42 AM
it looks like you entered freeDC as the team--- it needs to be entered as Free-DC to show up in our stats, otherwise you will have created a new team :D

FlashGordon
09-18-2004, 09:14 AM
Ok I corrected that and restarted DHE after I had reinstalled Java. DHE is still idling with 0 % CPU usage, let's see if it has worked in a few hours.

michaelgarvie
09-18-2004, 09:37 AM
Dear Mr. Gordon,

Could you please provide me with the directory listing of where you run the client from?

Also, do you have a firewall installed?

Also, could you paste the contents of your java.policy file?

Cheers,m

FlashGordon
09-18-2004, 11:12 AM
I'm running from "C:\Programme\DHE"

I do not have a firewall installed, but I do connect via router (DHCP). I haven't experienced any connection problems with any other software so far expect programs which required port forwarding.


My java.policy file:


grant{
permission java.net.SocketPermission "139.184.166.27:1024-65535", "connect,resolve";
permission java.net.SocketPermission "139.184.166.27:80", "connect";
permission java.net.SocketPermission "doc-sun.crn.cogs.susx.ac.uk:80", "connect,resolve";
permission java.lang.RuntimePermission "modifyThreadGroup";
permission java.lang.RuntimePermission "modifyThread";
};

FlashGordon
09-18-2004, 08:51 PM
I've tried everything I could think of. Perhaps anyone has any new suggestions, if not, I won't be able to take part in this project.

michaelgarvie
09-19-2004, 06:34 AM
Hi Flash,

Could you please copy and paste the contents of c:/programme/dhe ?

It looks like Java isn't bothering to look for the classes on the server. This is either because it thinks it should have them locally or it can't access the server.

FlashGordon
09-19-2004, 02:03 PM
C:\Programme\DHE

InstallIsland.bat
islandNT.bat
Island_NT.zip (I downloaded this one)
ITClient.jar
java.policy
UninstallIsland.bat
wrapper.conf
wrapper.conf~ (BackupFile created by Vim)
Wrapper.dll
Wrapper.exe
wrapper.jar


If you want me to run the wrapper.exe as console ("-c" argument) and paste the results here or something just tell me.

em99010pepe
09-19-2004, 02:26 PM
Once to run DHEP I had to copy all that files into java BIN folder!

FlashGordon
09-19-2004, 02:48 PM
I'll have a try as soon as the current try is completed.

FlashGordon
09-19-2004, 05:15 PM
Well it says:

Trying to get task from server
Got it, task is null"

Could that be the problem?

Doesn't seem to work.

em99010pepe
09-19-2004, 06:37 PM
Originally posted by FlashGordon
Well it says:

Trying to get task from server
Got it, task is null"

Could that be the problem?

Doesn't seem to work.

That's normal, server problem. It's not your problem.

Cheers,

Carlos

prokaryote
09-19-2004, 10:26 PM
Could be a good sign, since it's not saying that there is no class definition. Server will probably be up mid morning GMT. If it crashes over the weekend, there's no-one to reboot until Monday.

michaelgarvie
09-20-2004, 05:18 AM
True to prok's word, server has been restarted before midday GMT.

What happened was that a solution was found to a circuit yesterday in only one day and the server wanted to move on to the next one. But I hadn't given it one because the previous circuit had taken a month and a half!

It was quite an exciting run actually, good mix between individual islands coming up with better solutions and ancient populations being taken over by fitter immigrants.

Let's see if they all do this well from now on.


Gordon, let me know what output you get now. Your directory listing seems fine.

FlashGordon
09-20-2004, 10:24 AM
Well I didn't change anything so it must have been the server: now it works. I'll ask you if there are new problems during the next days, but at the moment, it is working for the first time :-)

em99010pepe
09-20-2004, 11:34 AM
Originally posted by FlashGordon
Well I didn't change anything so it must have been the server: now it works. I'll ask you if there are new problems during the next days, but at the moment, it is working for the first time :-)

Case closed.



:elephant: :elephant: :elephant:

FlashGordon
09-20-2004, 04:42 PM
Well there IS a problem:

http://flash.s1.cybton.com/DHE-error4.png

I ran the console version, the cmd window showed that the program is working, but then it stopped. I'll try running as service,too and inform you.

michaelgarvie
09-21-2004, 04:51 AM
This always happens when you stop the service manually or it stops because you're shutting down windows. This is because there's a method that needs to be implemented to shutdown neatly when the wrapper asks the process to do so. I didn't implement it because the wrapper kills the process after a couple of seconds anyway, which is fine.

But if you didn't ask the service to stop, I see no reason why it should try to stop the JVM.

FlashGordon
09-21-2004, 05:40 PM
I didn't ask it to stop, that's exactly my problem. At first, it must have been the server not bein online, but now I'm proud to present the next problem :-)

michaelgarvie
09-23-2004, 04:47 AM
Maybe something else asked the service to stop.

Could you please uninstall dhep from the control panel and do the manual installation with GUI.

http://www.informatics.sussex.ac.uk/users/mmg20/dhe/download.php



:bang:

FlashGordon
09-23-2004, 06:16 PM
Hm it did nothing, just showed an error message:

http://flash.s1.cybton.com/DHE-error5.png

michaelgarvie
09-24-2004, 05:37 AM
Hi Flash,

Looks like there's something very odd with java. I noticed you were using a beta version of the JVM. Why not try 1.4.2 non-beta.

Miguel

FlashGordon
09-24-2004, 07:15 AM
I'm using version 1.4.2_05 b04 which I downloaded from here (http://java.com/en/download/manual.jsp) .

michaelgarvie
09-24-2004, 08:48 AM
Flash could you please try another version of Java.

It's very strange that Java's not finding the classfiles. It's as if something like Zonealarm or some other filter isn't letting it through to the webserver.

:confused:

FlashGordon
09-24-2004, 09:51 AM
I have no firewall installed but I'm behind a router (DHCP).
Could this be a problem? Do I have to set path forwarding for a certain port?
And if yes, how can iI change this port to a different one (I don't want to forward the default port if possible).