Is there a point of applying to a University if potential adviser rejected me I have recently contacted a professor in a reputable university in the hopes of discussing our common research interests and to apply for PhD under his supervision, and he just replied that he is not going to take anybody for the next year. What should I do now? Is there a reason why I should still apply to this university assuming there are no other professors who share my research interests?

I adopted the suggestions in (How much detail to include in first email to potential PhD supervisor?) when I reached out to the potential adviser.



More info about the department:
When I contacted the department's graduate office showing my interest part of their reply was:


  If there is a particular professor you wish to work with, you may wish
  to contact him/her prior to applying and discuss your application
  further with them.
You may have answered your own question in the comment above, I fear.

In many disciplines, as you say, 


  a department will not offer acceptance if there is no one to supervise you


In those disciplines, offers tend to me made only if a particular faculty member advocates for a student. If the faculty member you would like to work with is not taking students, it seems unlikely that you would be admitted. So if yours is one of those disciplines, save your money.

For further discussion, see this question.