MappingJacksonHttpMessageConverter not found

Posted in IT StuffTagged , ,

I was trying to run a java batch that call an application context without success (it’s a java app that calls a Camel spring context). This is what I get during the startup: ERROR ApplicationProperties @ addApplicationProperty [28] org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/MessageRouting/src/test/resources/META-INF/spring/LOCALHOST-db-context.xml]; nested exception is java.lang.NoClassDefFoundError: org/springframework/http/converter/json/MappingJacksonHttpMessageConverter Fatal error! java.lang.RuntimeException:….

Which log4j configuration are you using?

Posted in IT StuffTagged ,

Sometimes log4j is not working properly and you need to verify where it is actually writing the log entries. This can be easily verified turning on the log4j.debug: -Dlog4j.debug-Dlog4j.debug It will print to System.out lots of helpful information about which file it used to initialize itself, which loggers / appenders got configured and how etc.

Looking for new challenge – Day #7

Replied to more than 20 job offers. No replies. Too much experience? If found this article really interesting about the relocation: Relocation? No way! But please, keep requiring it by @alobbs Consider this, here in Italy the job offers are for something absolutely not interesting (in some case really boring) and / or not honestly….

Parse an unknown JSON with Jquery

Posted in IT StuffTagged , , ,

Sometime it happens to receive a JSON string than need to be visualized without knowing the structure. Suppose we have an HTML table: <tbody id="reportTable"> </tbody><tbody id="reportTable"> </tbody> To populate this table with jQuery it’s possible to use this simple code: var rows = ${reportRows}; var html = $.each(rows, function(key, value){   $("#reportTable").append("<tr>");   $.each(value,….

Time to Quit

Posted in IT Stuff

If you see one of these red flags: being compensated unfairly. being mistreated, undervalued, or disrespected. disagreeing with the fundamental strategy or practices of the company and not being in a position to change them. failing to get along with your manager and your teammates. failing to fit in with the company culture. read immediately….

4 Terrible Questions Job Interviewers Should Never Ask Again

Posted in IT Stuff

I have been interviewed a lot of time until now, and I can confirm, in some case, the interviewer did something really bad like asking me “Where do you see yourself in three years?” or reading my cv for first time or sending sms and smiling reading them during the interview. I read this article….

Nuclear plant vs bikeshedding

Posted in IT Stuff

From OpenMRS developer guide: “Although we encourage public discussions about our software design, it’s also important to avoid non-productive conversations about trivial details. This type of anti-pattern best described by the concept of bikeshedding, which gets its name from a 1960s book about management. In the book, C. Northcote Parkinson described how it might be….

Kim Jong Un situation

Posted in IT Stuff

That’s the situation on which you are doing a complicate change in production and the management is waiting (and in the worst case watching you) behind your chair. “Hey dude, any update about the production deployment??” “Sorry, can’t talk, Kim Jong Un situation here” by Andrea Girardi – Fri 19, 2014 PS: if you like….

Query date based using milliseconds time on MongoDB

Posted in IT StuffTagged

I need to search all records that match a date condition. On MongoDB I’ve a bunch of data like this: { "_id" : "9ed3b937-0f43-4613-bd58-cb739a8c5bf6", "userModels" : { "5080" : { "generated_date_timestamp" : NumberLong(1413382499442), "model_id" : 5080, }, } "values" : {} }{ "_id" : "9ed3b937-0f43-4613-bd58-cb739a8c5bf6", "userModels" : { "5080" : { "generated_date_timestamp" : NumberLong(1413382499442), "model_id"….

Multiple COUNT select from same table

Posted in IT StuffTagged

I fixed the issue in this way: SELECT R.id_request, (SELECT COUNT(*) FROM Flow F WHERE F.id_request = R.id_request AND processStatus = 1) AS flowTotal, (SELECT COUNT(*) FROM Flow F WHERE F.id_request = R.id_request AND processStatus = 2) AS flowApproved FROM Request RSELECT R.id_request, (SELECT Count(*) FROM Flow F WHERE F.id_request = R.id_request AND processStatus =….