Choosing research topic/area
I tried to produce the result and failed. 


As I see it, the issue here is that you were expecting the result to be some solution to the problem. Unfortunately, research tends to fail to produce results we expect quite often.

First, there is probably some result. Whether it is publishable is debatable, but I would consider the advance of the research skill a very positive result. As with all skills, it takes practice and you shouldn't expect to get it right (i.e. groundbreaking publishable results) the first (few) time(s).

Second, if you were stuck for a year without adjustment, that is a problem, not with research per se, but probably with a combination of supervision and communication. You need to set smaller milestones and adjust the course of your work accordingly. In order to do that, you must communicate with your adviser about the problems you are facing. His experience and knowledge should be able to nudge you in the right direction. However, do keep in mind that this is research, and a vital part of it is getting moving again after you've been stuck by yourself. Your adviser may help you, but can't and shouldn't do your work for you.