kazu2012 / persevere-framework

Automatically exported from code.google.com/p/persevere-framework
0 stars 0 forks source link

Presevere does not startup #209

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Ubuntu 9.04 x64 on VMware Server 2
2. apt-get install java
3. wget persevere
4. java -jar start.jar
5. shutdown
6. java -jar start.jar

* What is the expected output? What do you see instead?

Persevere hangs in step 6:
2009-06-18 17:14:27.535::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2009-06-18 17:14:27.781::INFO:  jetty-6.1.14
then if I press CTRL-C and try to start it again after 5 minutes all is ok!

* What version of the product are you using? On what operating system?

I downloaded
"http://persevere-framework.googlecode.com/files/persevere1.0-b3.zip" but
output says "INFO: Persevere v1.0 beta 2 Started"

* Please provide any additional information below.

Command prompt screenshot is attached.

Original issue reported on code.google.com by daniel.s...@gmail.com on 18 Jun 2009 at 4:27

Attachments:

GoogleCodeExporter commented 8 years ago
Is this consistently reproducible for you (must wait 5 minutes before 
restarting 
Persevere for it run again)? Does it appear to be specific to an OS/env, or do 
you know 
if there is a specific module that you have has triggered this behavior?

Original comment by kris...@gmail.com on 19 Jun 2009 at 1:35

GoogleCodeExporter commented 8 years ago
Yes, it is reproducible for me however the time is not constant. It looks like 
start
up process is waiting for something. See attached another screenshot. In step 
1st and
7th Persevere behaves as expected.

Original comment by daniel.s...@gmail.com on 22 Jun 2009 at 11:35

Attachments:

GoogleCodeExporter commented 8 years ago
So to be clear, it always starts up, but it seems to take a while to startup, 
as though 
it is waiting for something, like maybe a resource to get unlocked?

Original comment by kris...@gmail.com on 26 Jun 2009 at 7:54

GoogleCodeExporter commented 8 years ago
Yes, that's right.

Original comment by daniel.s...@gmail.com on 29 Jun 2009 at 7:47

GoogleCodeExporter commented 8 years ago
Hi Daniel, can you post the output of java -version?  I personally don't 
reccomend
the default version of java for much in Ubuntu and always remove it and install 
Sun
java zwhich is in the universal repos IIRC.

Also have you tried running it via the persvr script?

Sean

Original comment by SeanlGar...@gmail.com on 1 Jul 2009 at 7:30

GoogleCodeExporter commented 8 years ago
Hi Sean,

java -version gives me an output:

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

I did another test against Persevere v1.0 beta 5. Just to confirm steps are as 
follow:

- install Ubuntu 9.04 amd64 server (with default settings + OpenSSH)
- make sure there is no Java installed
- install Java Sun JDK or JRE
- install Persevere
- generate sample application
- start it up
- shutdown the server
- repeat two last steps a few times ...

The behaviour is exactly the same. Here is an output:

# === BEGIN ===================================================================

danstefan@ubuntu:/usr/local/persevere/myapps/helloworld$ ../../bin/persvr
2009-07-01 10:21:51.077::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2009-07-01 10:21:51.299::INFO:  jetty-6.1.14
01-Jul-2009 10:23:37 org.persvr.remote.PersevereFilter init
INFO: Persevere v1.0 beta 5 Started
2009-07-01 10:23:37.917::INFO:  Started SelectChannelConnector@0.0.0.0:8080
Type "help" at the console for more information
js>shutdown
01-Jul-2009 10:23:43 org.persvr.remote.PersevereFilter$1 run
INFO: Persevere shutting down
danstefan@ubuntu:/usr/local/persevere/myapps/helloworld$ ../../bin/persvr
2009-07-01 10:23:47.710::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2009-07-01 10:23:47.951::INFO:  jetty-6.1.14
01-Jul-2009 10:28:27 org.persvr.remote.PersevereFilter init
INFO: Persevere v1.0 beta 5 Started
2009-07-01 10:28:27.929::INFO:  Started SelectChannelConnector@0.0.0.0:8080
Type "help" at the console for more information
js>shutdown
01-Jul-2009 10:28:35 org.persvr.remote.PersevereFilter$1 run
INFO: Persevere shutting down
danstefan@ubuntu:/usr/local/persevere/myapps/helloworld$ ../../bin/persvr
2009-07-01 10:28:37.685::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2009-07-01 10:28:37.867::INFO:  jetty-6.1.14
01-Jul-2009 10:32:52 org.persvr.remote.PersevereFilter init
INFO: Persevere v1.0 beta 5 Started
2009-07-01 10:32:52.899::INFO:  Started SelectChannelConnector@0.0.0.0:8080
Type "help" at the console for more information
js>

# === END =====================================================================

Notice the start up time that can be calculated using lines ending with 
"::INFO: 
jetty-6.1.14" and " org.persvr.remote.PersevereFilter init".

Original comment by daniel.s...@gmail.com on 1 Jul 2009 at 9:45

GoogleCodeExporter commented 8 years ago
Can I be pedantic and ask you to paste the output of java -version again now 
you've
installed the Sun version?  I wonder if this could be an irregularity with 
running it
through a VM?

Did you try running it via 'persvr' instead of starting it directly?

Sean

Original comment by SeanlGar...@gmail.com on 2 Jul 2009 at 7:29

GoogleCodeExporter commented 8 years ago
There is no jvm installed by default on Ubuntu 9.04 amd64 Server. To make sure I
tried to 'locate' and 'find' it. The above 'java -version' output is after 
installing
java by 'sudo apt-get install sun-java6-jdk'. I have attached part of the 
session log
that shows output during the installation.

I have tried both 'persvr' and 'java -jar start.jar'.

Regards,
Daniel

Original comment by daniel.s...@gmail.com on 2 Jul 2009 at 8:47

Attachments: