If you are writing a web service using Java and deploying it in Axis2, you need to follow the steps below to propagate the exception properly to the client side. Let’s say you have an exception you want to throw with a respective error message. Your method would look something like; public String foo throws MyException { if (true) { ...
These are a few commands that I find very useful when faced with OSGI issues. 1. ss / ss <string> (abbr. for short status) Lists down the state of all installed bundles or if followed by a string, does a wildcard match of that string. Useful for initial investigation of checking whether a bundle is active, installed or not present ...
XML Parsing Error: no element found Location: moz-nullprincipal:{e04285c3-86a1-f146-b683-55bb667191ea} Line Number 1, Column 1: ^ If you are getting the above error in firebug, you are most probably making a cross browser request that is not allowed and not having invalid XML in your response. Cross browser requests are not allowed, unless you use jsonp or script as the data type. ...
Google has come up with a fantastic service to analyze large amounts of data. It’s called BigQuery and it allows you to run analysis on big data on the cloud. As expected, the tool has a superb, intuitive web UI. The data analysis language uses SQL like queries. (Hive, anyone ). Have a look at the Big Query Tutorial, it ...
Building a cache is standard practice in most programs to reduce the overhead of re-creating expensive objects. Using a concurrent Hash Map to build a thread safe cache is a widely user practice. Even though each method call of concurrent Hash Map is thread safe, it is cumbersome to re-do the necessary operations. Let me list these down: Compound operations ...
My team at WSO2 was able to release a 2nd alpha of our upcoming BAM 2.0. Do give it a spin. The release note is below: The WSO2 team is pleased to announce the release of version 2.0.0 – ALPHA 2 of WSO2 Business Activity Monitor. WSO2 Business Activity Monitor (WSO2 BAM) is a comprehensive framework designed to solve the ...
Hadoop is a great piece of software. It is not original but that certainly does not take away its glory. It builds on parallel processing, a concept that’s been around for decades. Although conceptually unoriginal, Hadoop shows the power of being free and open (as in beer!) and most of all shows about what usability is all about. It ...
This should be straight forward, but it was not. So, I believe this blog will help others who just couldn’t modify that plist file. You can do a ‘chmod 777 Info.plist’ but still if you edit the file and try to save it, Mac OS doesn’t allow you to do it. So, the work around is to open the file, ...
Vim’s ability to execute commands from vim itself adds a great deal of productivity. Although, it’s debatable that it’s the best editor for Java, I made an attempt to work with maven3 inside vim and integrate it with vim’s quick fix list. Disclaimer: I’m not a vim expert, just an enthusiast. Please drop a comment as this tip is in ...
Producing middle ware that is both lean and enterprise worthy is a difficult job. It’s either non-existent or requires innovative thinking (a lot of it) and a lot of going back and forth with your implementations. Very risky business, but if you get it right, it puts you far ahead of anyone else. It’s why we thought of re-writing WSO2 ...
When you think that you need to know what’s happening in your business or what’s happening your servers, you enter the monitoring problem. The monitoring problem starts with people just wanting to get a report of how many people are accessing my website. Then it usually evolves into how can I make more people come to my website. Google analytics, ...
After a lot of re-designing, re-architecting, re-writing, re-re-writing we have come with an alpha of the all new BAM 2. Although, this is still an alpha, it will provide a good taste of things to come in the major BAM release. Here’s the (not so) official release note: WSO2 Business Activity Monitor (BAM) 2.0.0-Alpha is now available for download at [1]. ...
The Kindle Fire is said to ‘disrupt’ the tablet market. I certainly agree after looking at the very attractive price tag of $199. It seems like a super deal for someone who wants a tablet experience but hates to spend too much. But this is all so attractive only if you live in the US. Yes, it’s only sold in ...
I wish I found a post similar to this, listing the practical problems of designing a data model using Cassandra (or other NoSQL DB) and with corresponding answers to overcome them. Don’t misinterpret what I’m saying, there are tons of good material out there, giving good introductory tutorials (WTF is a super column – An intro to the Cassandra data ...
My talk on Business Activity Monitoring in your SOA deployment which I did at WSO2Con 2011 is available at https://www.youtube.com/watch?v=zZKeKGheVHc Summary: What is BAM? The 3 main sections of BAM. The revamp of WSO2 BAM concentrating on performance, scalability and customization.
I wanted to write this post after learning so much from running FindBugs and Idea code inspections on my code over a period of time. There was once a simple code I wrote after seeing some performance gaps, to introduce some local caching. So I used a simple HashMap implementation, which really couldn’t go wrong. Or so I thought. We ...
WTH is BAM? To start off, let us understand what exactly is meant by a business activity. It’s important to understand that Business Activity Monitoring (BAM) was coined with respect to monitoring business activities run in BPM in a SOA deployment. But soon, it was understood, that not every business activity went through BPM software. A business activity can either ...
I’m extremely proud to be presenting at WSO2Con. I’m proud, not only because of the opportunity I have to present, but more so, because I’m part of something much bigger. I’m part of something that represents a rising of a tiny island nation through open source tech. To date, Sri