Tuesday, October 21, 2014

Time to say GoodBye...to...

Recently I visited crossword with my husband. I bought Inferno and Adultery, and I found a set of Mills & Boons!! Somehow I could not resist myself and bought the set.

The "older person" that I am, considering that M&B is only for teens, chose Inferno and Adultery over M&B to read first. And I completed them, of course not in my usual reading speed. 

And then I picked up the first M&B, something about the 202 Harley Street. It had the usual, extremely talented and handsome doctor! A new nurse joins and falls in love with the doctor, and so goes the story! I was able to bear this one, thanks to my teenage love for M&B.

I then started reading the second book. "The ultimate revenge". The book is still living up to its expectations and taking the ultimate revenge from me!!!

Oh! I am so over Mills & Boons. 


Monday, October 13, 2014

Just finished....reading Adultery!!!

Coelho is a star!! He can understand a woman and her feelings so nicely. A woman, at any age can amazingly associate herself with the stories that he writes!!

I loved the precis the first time I read it. And I bought the book. Of course, I could relate to her. It did not disappoint me. But at the same time, whatever the protagonist does, I don't know if it is possible in real life! Nevertheless, it is just a story! And a good one! Keep going sir, looking forward to more works from you!

Inferno...my review!!!

I bought Inferno with a lot of expectations. I had not read the reviews of the book before buying it.

Alas, I was disappointed. I found the book highly confusing. Though the mystery starts to unfold towards the ending, but there were too many characters to keep track of. And the author was not ready to reveal the secrets until the very end.

Dante, somehow is not a very popular artist, so establishing a connection with his work took some time. 

I found the main cause very interesting. Population explosion is a very good topic and apt for the current scenario in the world. Writing a story around the same topic and clubbing Dante was a good attempt but failed somewhere!!

I am hoping for better work from Brown next time!!

Wednesday, October 1, 2014

Oh my LOG!!!!

This is exactly my reaction owing to recent encounters with log4j2. I have had the privilege of facing multiple issues which I would like to share so that others can seek help from my experiences.

Scenario: Our application migrated from log4j2-beta9 jars to log4j2 GA version. Also SLF4J version changed from 1.7.5 to 1.7.7.

Issue#1: Log files not getting created in windows-weblogic environment
Root Cause: Windows does not recognize "\" in the path. It should either be escaped by using \\ (double back slash) or use a single forward slash. 
Solution: So after migration, we created a new JAVA OPTION where we changed the log directory by replacing all the back slashes with a forward slash, something like this:
                                 set LOG4J2_DIR_HOME=%MY_APP_PATH:\=/%

Issue#2: In case of a cluster setup, if the admin server and one of the nodes are pointing to the same installation, log files do not rotate in windows-weblogic environment
Root Cause: Log4J has a policy that if the log file size reaches a specified limit, then it is moved to another location and  the current file is emptied. But in case of a cluster set up, this was not happening. This is because, the admin server, which is one JVM and the node, which is another JVM, both of them point to the same log file. Though the admin server may or may not have anything to write to the log file, but it will still hold a lock on the file.
Solution: In our case, since Admin server did not have anything to write to log file, the file was never created. Only in case of a node, a log file was created.

Issue#3: ERROR StatusLogger Error parsing \config\properties\log4j2.xml javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xincl
ude' is not recognized.ERROR StatusLogger Error parsing \config\properties\log4j2.xml javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xincl
ude' is not recognized. error occurs on load.
Root Cause: Jar conflict, 2 jars of the same name, but different versions was present in the classpath
Solution: Removed the duplicate jars from the classpath. Usual conflicting jars would be; xmlApis.jar, xerces.jar, xercesImpl.jar