Followers

Thursday, February 24, 2011

Yummy Spring Rolls!

Hi Java Enthusiasts,


Once in a birthday party of a friend we visited one of the posh Restaurants of Hyderabad. Now, when in a party (F.R.E.E) we often resort to a methodology which never comes to our mind when we have to pay for ourselves. Here, therefore, we fell to our whims and fancies and thereby started to order "The Starters".  I was so hungry that I could have started with biscuits or even desserts, if you insisted. One of my eligible friends shouted, "I wish for Spring Rolls". 
And, today here I am. With Spring. Here in this article I am listing out the probable issues for the newbies in Spring world!


Helper Logs:
Server version: Tomcat 6.0.24
Spring version: 2.5
Notations used:
#Issue -- Mentions and describes the problem faced.
#(...) -- Describes the solution to the issue.
#Web-reference -- Refers to an article or forum thread discussing the same issue.


--------------------------------------------------------------------------------------------------------


#Issue -- The filename or extension too long: Unable to Create directory
Error trace: Cannot create spring-framework-3.1.0.M1\projects\org.springframework.integration-tests\src\test\java\org\springframework\context\annotation\jsr330\ClassPathBeanDefinitionScannerJsr330ScopeIntegrationTests.java


#(As a work around we have copied the original zip file to C: drive, shortened the name of the file and then unzipped it, thereby reducing the file path + file name by 50 characters.
Path limit is 248 characters.
Path+Filename limit is 260 characters.
Windows XP has a 255 character limit.
Windows Vista has a 260 character limit.)


#Web-reference: here


--------------------------------------------------------------------------------------------------------


#Issue -- Problems arising due to difference in versions of Server and Spring distribution @Omega location parallel work.


Error description:
I have been working on this project at Omega location also. I was not observing an appropriate response and results as in the tutorial. I wondered what were the problems.
#(Version matters. Sometimes in over enthusiasm, we tend to download and use the latest versions of the software and dependency libraries and jars. At the location Omega, I was using Tomcat 7 which has deprecated "InstallTask" and changed the user-Manager configurations. Therefore many features like the "List" were not working)


#Web-reference: here


--------------------------------------------------------------------------------------------------------


#Issue - Problems getting the third party jars.
#(Download the Spring 2.5 Final version with dependency jars. In the later versions the extra jars were pruned and the jar structure was made more complex and use oriented and less in number)


#Web-reference: here or to directly download the file here.


--------------------------------------------------------------------------------------------------------


#Issue
...\Spring\SpringTest\build.xml:85: taskdef class org.apache.catalina.ant.InstallTask cannot be found
#(InstallTask has been deprecated in Tomcat server 7, replaced by DeployTask. If you are working with versions before 7, it works fine)


#Web-reference: here


--------------------------------------------------------------------------------------------------------


#Issue
...\Spring\SpringTest\build.xml:85: java.lang.UnsupportedClassVersionError: Bad version number in .class file
#(Java version conflict caused due to multiple JVMs active within the system. One should always uninstall all the the JVMs and download the latest one and install. In the eclipse IDE we can then work with prior versions since the JVMs have backward compatibility for the compiler)


#Web-reference: here


--------------------------------------------------------------------------------------------------------


#Issue
Error trace: SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /index.jsp(1,1) The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application


#(The dependent jars with the Spring 2.5.0 binary distribution has the jstl.jar and the standard.jar of the version 1.2. Using the both the jars of the version 1.1 resolves the issue. Please download jakarta-taglibs-standard-1.1.0.zip from here)


#Web-reference: here


--------------------------------------------------------------------------------------------------------


Yours JavaMad,
Sunit Ronnie Ghosh.

The $PATH less trodden!

Hi Java Enthusiasts,

I have recently been trudging the realms of Spring Framework. From the beginning of my Java days I have always been seen Java as a simple and worthy of its much discussed hype. As and when I walked the ways I came to know about many a complexities. As they say, complexities arise out of lack of comprehension.

Such, one concept which has been eluding me from the past was of the $PATH and the $CLASSPATH.

Most of the times, we developers seldom get the opportunity for setting up the JVM from scratch. Even if we do there is always a "hit and trial" approach or "find-read-execute-forget" approach to it.

{{THIS ARTICLE IS PRESENTLY UNDER EDIT MODE, READERS MAY OR MAY NOT SEE THE FULL ARTICLE YET}}

Tuesday, February 22, 2011

Chook-Chook Travel

Most of the travel which I have undertaken has been by Trains. Whether it may be a trip to home-town by inter-state trains or for attending college classes by local trains or now regular commute to the office by the MMTS, the spacious Aluminium Alloy body swift local trains of Hyderabad, trains have always been my companion.

My fascination and bonding with the trains extend from the days when I was a kid and if you are going to board a train in the coming days, then you can be pretty sure it was the holiday season and the days were going to be filled with extreme fun, away from school, and with the parents, their parents and my cousins. Alas! those days are not going to return anyway!!

With trains a travel is a journey minus the jejune jerks, breaking blasts, horrendous horns, spewing smoke and Newtonian Inertial law principles playing with you. And of course there is Centrifugal and Centripetal Combo on the sharp turns and the overrides. One does not feel that he/she is on a F-16 on a roll, when on a train.

Trains are always rhythmic and jocular whether the journey is short or spanning days. She goes on carrying the rhythm within her and whistling along and in her embrace we move. She has the courtesy of treating all alike, Rich or Poor, the Ill or the Hearty, a Nubile or a Septuagenarian. She pays respect by coming to a still for all, who are in a need of her timely help.

People have nerves of steel, she runs on them. She is a shining example of ruthless speed combined with  the discipline of staying on course and bang on time. She is my Train! My gal!




Friday, February 18, 2011

I Love Routine

I love routine. It enables one to add things, small and big, to one's daily life.

I tend to write things up on a whiteboard or a planner for concrete implementation of a routine. Writing things up or listing pending and future work helps those who have in the past failed to complete tasks however insignificant they might have been due to forgetfulness. Tools, makes humans stand out from the animals. 

Priority matters. Without prioritizing the list of work, most of the times one can get normal results and a few times end up screwing up bad. Prioritizing not only increases efficiency but also makes you result oriented.
One fine morning I wanted to have Omelette for Breakfast and wash some of my dirty pantaloons. Then there was a 0904 train to catch to my workplace. So here the priority was to get to the train than to make a nice crispy Omelette. Working backwards keeping the highest priority task in mind made me accomplish that morning's task. Nobody will ever want you to complete all your tasks. Just the Top 5 :).
Everybody is interested in Top 10, 5 or 3. You know that, don't you?

Parallel processing does make sense not only in Computing world but also in our daily life since our brain is also a computing organ. Our brain can simultaneously work on parallel streams of thought as well as actions. One should take advantage of this gift of God to humans. I do.
I love cooking. There is none other task so satisfying than cooking, yes except extending a helping hand  to the needy (we will discuss on this topic in further Blogs). A skilled and efficient cook knows the criticality of timing and knows that the hungry has no patience. If you are one of the few who don't have the entire evening to make dishes and please others but love cooking will know that kitchen is the best lab for testing the validity of Parallel processing. I make my Omelettes on one of the burners and filter coffee on the other (That is why we have multiple burners ;)). Meanwhile you can wash dishes, while readying your favourite Coffee mug for the coffee and listening to Eminem rap. A perfect implementation of allocation of time slots.

The driving factor of maintaining a routine is that it helps you to remain efficient and valid in this society. But it is advisable to break the shackles of your routine. This is for 2 reasons:
a. When you break away from your routine, you can observe and adopt new elements. It promises to bring new dimensions to the daily life.
b. When you break away from the routine, and then come back, then you realize the importance of it. As they say, "Loved ones are missed when they are gone."

Best wishes!
Sunit Ronnie Ghosh



Saturday, February 12, 2011

Cricket Mania


World Cup is about to begin. Frenzy everywhere, anticipation infectious. People are delighted. They are collecting paper glossed time tables with elaborate details. Newspapers are printing the opinions of the cricketers of all times, the young and the old, the hot and the not.

Even if I am bound not to generalize, I have to say people are involved at different levels in cricket. I have the following categories:

a. These are the people who have the true knowledge of the game and know the tricks and the trade of it. They enjoy playing the game and therefore, follow the game like a fanatic, as they see their abilities being appreciated by many in another form. This breed owns auto-biologies of the greats. This breed argues and discusses various rules and regulations of the game. This breed is rare and is worthy of notice.

b. These are the people who have superficial knowledge of the game and their dedication and loyalty to the game supersedes the former. These are the folks who have once played cricket but now don't. The magic of the game still controls them. These are the ones who, even though don't have or don't intend to know more about the game, but have un-shattering faith on the game.

c. These are the people who are spell bound and mesmerized by the hoopla and the hype around the game. They might have played cricket in their childhood out of playfulness but they see cricket now as a gem owned by others but whose shine twinkles in their own eyes.

d. These are the people who use cricket as the topic to break the ice between colleagues and fellow peers when they meet and discuss the recent match highlights as a means to make their place in the group. They neither have the interest to plunge into the details nor intent to do so. These are the folks who are bound to the game only because they find no other way to make their place in the cricket-dominated discussions. They are the ones who know in the back of the mind that there are other more worthy things to discuss and ponder upon, but do not dare to reveal, and flow with the flow.

Which one is you? Do you dare to differ? Anyways enjoy the World Cup!





Sunday, February 6, 2011

My First Music Concert

Hi Readers,

It Feels good when you have something to blog about after a while. Though I did not purposefully wanted to stay away from my blogger account, but sometimes you are in such a fix that you forget your loved ones.

OK, yesterday, I did something which I can add to my list of "DONE" things in my life. Celebrities have been eluding me for the part of life till yesterday. Shreya Ghoshal, a super pretty, talented like hell Bong lass was the one who gave me my first time.

Friends, as they say, add to your life. So I would like to say thanks to my friends who gave me this opportunity and had the time and consideration to ask to accompany. Thanks Yaars.

As always, there were many things to learn on the way. In a city, you can neither master all the routes nor can you know all the places. Such one place was the venue where she had landed for the performance. Also, this gave us the chance to interview, although lasting a few seconds every-time, a score of Auto-Drivers of Secunderabad. So we made some new friends. Paid them too, sometime heavily for their friendly time with them.

What is the one thing you will find every where in India owing to the ever exploding population? People queuing up to kilometres of length. This time was also not an exception. Maintaining civility were a dozen of Burly Bouncers. I appreciated the built of one and he gave me a deadly look. I scampered ahead.

Though, we spent a good amount of time in the queue, we could hear the honey laded voice of Shreya. It made us to keep on moving ahead in the queue.

At the far end of the stadium she was singing with full energy and gusto, inviting us closer. Two huge screens were projected upon for the audience to get a closer look at her. VIPs had the luxury of seating in the front 20 rows. We managed to get closer but she was visible to us like a golden miniature doll glittering and reflecting all the spotlight focussed on her.

We enjoyed and she kept on mesmerizing and hypnotising us with her charm and scintillating songs, back to back.

But the time soon came where we had to return but taking a to-be-remembered experience with us.


God bless Shreya!