Skip to main content

Posts

Showing posts from 2013

Spring MVC: mvn sonar fails when mvn test passes

Stranger things have happened. But this blows many a mind. mvn test on a restful services project with spring mvc succeeds but mvn sonar:sonar fails with 404s on controllers. This happens when the controllers are marked @transactional for the restful service to be exposed as a unit of work. Don't fret. Its easy to solve this.

Happy Halloween (from computer nerds)

© oweners / pablo / koding.com

మాస నియామక రూపాత్మక

మాసం మాస నియామకం చైత్రం శ్రీ పద్మీ విష్ణు వైశాఖం శ్రీ కమలా మధుసూధన జ్యేష్ఠం శ్రీ రామా త్రివిక్రమ ఆషాడం శ్రీ వృశాకపివామన శ్రావణం శ్రీ ధన్యా శ్రీధర భాధ్రపదం శ్రీ బుద్ధీ హృషీకేశ ఆశ్వీయుజం శ్రీ యజ్ఞా పద్మనాభ   కార్తీకం శ్రీ ఇందిరా దామోదర మార్గశిరం శ్రీ శ్రీ కేశవ పుష్యం శ్రీ లక్ష్మి నారాయణ మాఘం శ్రీ కమలా మాధవ ఫాల్గుణం శ్రీ పద్మా గోవింద అధికమాసం శ్రీ ఆననందా పురుషోత్తమ

Which way isAssignableFrom ?

Between java auto boxed types and primitive data types, which way is the class assignable from? Simple. Long ln = 1L; //autoboxing (assignable) assertTrue(Number.class.isAssignableFrom(ln.getClass())); assertTrue(Long.class.isAssignableFrom(ln.getClass())); assertFalse(long.class.isAssignableFrom(ln.getClass()));

Enable alwaysUseFullPath with mvc:annotation-driven

mvc:annotation-driven doesnot have alwaysUseFullPath attribute. However, in instances this is needed, adding the following bean BEFORE mvc:annnotation-driven tag will set up the alwaysUseFullPath correctly <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping" id="handlerMapping">         <property name="alwaysUseFullPath" value="true"> </property></bean> So the fuller xml should like this <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping" id="handlerMapping">         <property name="alwaysUseFullPath" value="true">     </property></bean>  <mvc:annotation-driven>   <mvc:message-converters>    <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">     <property name="objectMapper" ref="jacks

"Human"

With all the unreasonable Terror in the world, We should look to Random acts of these "Humans" to be inspired. To have faith, that there is good, still in this world. Happy Long weekend everyone.

She's Alive... Beautiful... Finite... Hurting... Worth Dying for.

A Well made movie

Groovy Camel Processors

Fuse ESB 7.0 comes with Camel 2.9 components. Camel has groovy support from 2. 8 9 to create predicates and expressions. There is a GroovyRouteBuilder in 2.9 that lets you build dsl in groovy, albeit with java api. This is especially un-groovy when you have to write a .process .

There is no such thing: "Just one Photo"

Trusting Google.

Consolidating resources to better serve users was the motto behind Google killing various services. But a seriously, Google reader? Reader is one of the first prominent services from Google. It belongs to an elite club that enjoys a loyal use base and plethora of third party apps. What's their fate. On a larger scheme, Is Google trustworthy anymore?

Yahoo mail improved screen real estate.

Yahoo mail's make over gave a little breather for long time loyal users like me. Its still leaps and bounds behind Gmail (or for that matter the new outlook.com), But at the very least, the UI developers managed to cleanup a major issue with its header space management .

RANT: Wellfargo. Together, we are not going anywhere.

To Customer Service, Wells Fargo. I am at utter dismay with a call I had got off from your customer service. When we first got our purchase at Bobs financed, we were in it ONLY to build credit history for my wife. As a savvy customer at major banks and financial institutions, I believed this should be easy. 0% apr - monthly online payments and why not, after all, its financed by Wells Fargo  a name I trusted at that time. We were asked to register at your old website was wellsfargo.com/retailservices. We were disappointed to see that there was no paperless option, and no account summary details there. The site only serviced online payments. I wanted to make payments from my bank. Naturally I called to ask for online payments time period when I am supposed to pay. I  was told to make payments of a minimum of ~$67. So I decided to make $99 to ensure I am NEVER underpaying. All was well until around Aug or Sept  2012. When the statement was ending earlier or later because of

Promotion very soon: Dad

Yes. Life is swiftly changing towards even more happiness. This new year, Our family will bring a cute bundle of joy home. We know it is going to be a boy. I'd like to thank my wife for bearing with me during these difficult (but exciting) months. Mom, she is going to be, is such an amazing feeling. She is doing well so far. Dad, me - I am excited, nervous and  happy all at the same time. I'll hope to be back blogging soon. 

Happy New Year!

May this be the year of joy, success, prosperity, peace and harmony for all you. -Sarath Chandra and Family.