Comment: Automatic Failure: Assessor's Comments: Error Message: Failed to start the registry and register an object.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJD, SCEA
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJD, SCEA
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJD, SCEA
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJD, SCEA
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJD, SCEA
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJD, SCEA
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJD, SCEA
Originally posted by Hanna Habashy:
hi Robert:
yes the program requires the properties file at startup, as well as the db file before the server get to run.
So if the properties and db file are not there, server will not start? In that case, then I think it is pretty much the reason. If grader tried to start server after removing properties and db files, probably it did'nt start.
In the given specification document it says: "Such configuration information must be in a file called suncertify.properties which must be located in the currect working directory".
Exactly.
So, it accually demand me to create a property file, and place it in the current working directory.
Sorry. But I think what it means is, when you start you app. in any of three modes, if properties file is not present in current working directory then app. MUST create a new file in the current working directory. Application MUST start without properties file and then create if there is not one already.
Robert, where did you get the assumption that the property files must not be need at startup?
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
yes the program requires the properties file at startup, as well as the db file before the server get to run. In the given specification document it says: "Such configuration information must be in a file called suncertify.properties which must be located in the currect working directory". So, it accually demand me to create a property file, and place it in the current working directory.
All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory.
This command will restore the application property to the default settings, and create a new one if it doesn't exist. I guess the examiner didn't even bother to look at the user guide. It is shame on them not to look at the document one put so many hours in.
SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
I guess the examiner didn't even bother to look at the user guide. It is shame on them not to look at the document one put so many hours in.
Your programs must not require use of command line arguments other than the single mode flag, which must be supported. (...) The mode flag must be either "server", indicating the server program must run, "alone" (...)
SCJD, SCEA
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
I fixed the program with a single line of code.
See, my English is a second language
Well, they want another $150, here it is for one line of code...
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
SCJP, SCJD, SCWCD, SCBCD
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
The issue is this, your project should not assume that .properties file is there.
To fix this problem do the following, at startup check if the .properties file exist, if it does continue. If the file doesn't exist, create a new one with the default values.
SCJP 1.4, SCJD
Originally posted by Hanna Habashy:
hi Julian,
Thank you very much for your kind words. This forum has been very valuable to me, and I am trying to give back what I can.
I already passed the certification. I sent two emails to SUN, and after waiting for about a week, I get no response. Then, I decided to just pay the fee and upload for the second time. I get the result back 3 days after.
Thanks again
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|