Integrate[(Sum[BesselJ[n, r], {n, 0, 10}])^2*r, {r, 0, \[Infinity]}, GenerateConditions -> True]
reports that the integral does not converge. I guess with the default setting for GenerateConditions, it is not so careful.
GenerateConditions