A number of years ago I was unsuccessful in applying for a position that, at the time, I thought would be the ideal job & for which I was tailor-made. As it turns out, I ended up getting a much better job soon after. The company that rejected me ended up doing me a huge favour, & in hindsight, I can now see that if I had ended up there, I would have been miserable & frustrated (like most of the other people I know who currently work there).
It is a fact of life that, as one door closes, another usually opens. That said, if you're hellbent on getting onboard with the company in question, don't let a temporary setback floor you. Like they say: It's not about how many times you get knocked down, what matters is that you get back up. Learn from the experience, take the time to assess (not so easy, I admit, when feedback is not forthcoming), & use the next twelve months to refine & re-package yourself for another go.