• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Monkhouse error - running the client Application in Networked mode

 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Page 309 of the (super) Monkhouse book states:

"To start the networked client..."

"javaw -jar sampleproject.jar server"

Surely that would start the server?

It should state:

"javaw -jar sampleproject.jar"

Right?

Cheers,

Simon
 
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my URLyBird spec the options are:

java -jar <path to jar> <mode>

Where

<path to jar> is the path and file name of the jar file. This file must be name runme.jar according to instructions.html file.

<mode> can be either "server" or "standalone".

The possible scenarios in my implementation are:

1. java -jar runme.jar

In this scenario, the system will start the client application. This application must connect to the remote RMI server, previously started.

2. java -jar runme.jar server

In this scenario, the system will start the server application, that is to say, it will initialize the RMI server.

3. java -jar runme.jar standalone

In this scenario the system starts the client application, but instead of
using remote objects it uses local objects to manipulate the database.

4. java -jar runme.jar xyz

In this case the system receives an invalid input parameter, therefore it prints a help screen to tell the user what is the right input.

I hope this help!
 
Simon Cockayne
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thanks for the reply, but the book is wrong.

Regardless of the assignment instructions...

Page 307 states that the SERVER is started by

javaw -jar sampleproject.jar server


Page 309 states the the NETWORKED CLIENT is started by

javaw -jar sampleproject.jar server


Both statements cannot be correct (unless the command starts the SERVER and the NETWORKED CLIENT...which it does not)

Cheers

Simon
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suggest that you add it to the errata by reporting it to the Book's Apress site. Probably it's just a typo glitch missed by the review team.
 
Simon Cockayne
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Barry,

Good advice.

Actually I did do this earlier on...

...but wanted to alert folks here too.

Cheers,

Simon.
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The book still has the same error on Page 309. I was able to run the client in the networked mode only after I found this post.

Thanks for the post.

Anu Bhagat
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Durn - I wasn't moderating this forum back in 2006, so I missed this then, and I didn't get an errata notice from my publisher. I will see if I can add it now.

(Although, to be honest, having seen the title "Monkhouse error" - I was very confused: I thought I was the only one who got Monkhouse errors! )
 
Anu Bhagat
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Andrew,

Actually I tried to send you an email regarding the error today at
scjd@apress.com (To contact the authors this is the address mentioned in the book ), and my email did not make it. i got delivery failed due to incorrect address.

I was going to contact you through this forum about this error, but then I found this post on the forum, which helped me to solve the issue.


 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic