[null, null, {"document_url": "http://vimalaharan.blogspot.com/2011/06/system-time-change-great-power-great.html", "unformatted_src": "http://3.bp.blogspot.com/-4wVeszO03ks/TfciHkfjLWI/AAAAAAAAAUM/ONHTcD6rVI8/s320/greatpower.jpg", "src": "http://3.bp.blogspot.com/-4wVeszO03ks/TfciHkfjLWI/AAAAAAAAAUM/ONHTcD6rVI8/s320/greatpower.jpg", "formatted_filename": "greatpower"}, null, null, null, null, null, null, {"document_url": "http://vimalaharan.blogspot.com/2011/06/system-time-change-great-power-great.html", "unformatted_src": "//3.bp.blogspot.com/_3juj1KPTfGo/TSbDP4qXflI/AAAAAAAAAOo/xv-8i8fJnMo/S220-s80/030404.jpeg", "src": "http://3.bp.blogspot.com/_3juj1KPTfGo/TSbDP4qXflI/AAAAAAAAAOo/xv-8i8fJnMo/S220-s80/030404.jpeg", "alt_text": "My photo", "rendered_width": 80, "rendered_height": 80}, null, null, null]

System Time change, Great power & great responsibility

Yesterday I had to run a testcase which requires the system time to be moved to future . I did some time travelling without much of a problem but faced some consequences. At times system is confused why I had to change my system time too often and gave 3 statements of warning. One of them is from the famous Stan lee's spider man comics' dialogue "great power comes with the great responsibility".

It gave the warnings shown below.

I never understood the real meaning of it till I faced the following issues :)

1) Text Copying did not work in some of the applications, and it made few illusions when I didn't realize it :)

2) Javac did not identify some of the class files as outdated, and it did not recompile the changed class. It happened when I compiled the classfiles in the future date and reverted to the current date back, and made some changes and expected the compiler to compile it for me. It led to a big confusion :)

3) Some of the generated ejb classes were not regenerated again, so I got few "cannot find symbol" compilation errors

Finally I had to "touch" each of the files to make sure their Last updated timestamp points to the current time.

find . -exec touch {} \;

So please make sure you give importance to the warning Stan Lee's warning "great power comes with the great responsibility" :)

Note : Finally I switched to database date/time column update than doing this dangerous frequent system time change.
Posted by Vimalaharan at 1:54 AM Labels: great power, spider man, stan lee, system date change



இந்த வார ஹிட்ஸ் ஈமெயிலில் தொடர ப்ளாக் நண்பர்கள் என்னை பற்றி.. You Guys :