Let $X$ be a simply connected finite CW-complex such that all but finitely many of its homotopy groups and its homology groups (with $\mathbb Z$ coefficients) are 0.

Is $X$ then necessarily contractible?

I do not really believe that this is true; but I was also not able to construct a counterexample.