Let $S$ be a hemisphere of radius $R$, and let $\sigma$ be the constant charge density at each point $(x',y',z')$ in $S$. The electric field generated by the hemisphere is a vector function: $$\mathbf E(x,y,z)=\frac{1}{4\pi\epsilon_0}\int_S\frac{\sigma}{r^2}\hat{\mathbf r}\,dV,$$
Where $\hat{\mathbf r}$ is the unit vector from a point $(x',y',z')\in S$ to $(x,y,z)$, and $r^2$ is the squared distance from $(x',y',z')\in S$ to $(x,y,z)$. Consider the transformation from spherical coordinates to rectangular coordinates. Then, if we want to calculate the electric field at the centre $O$ of the hemisphere, i.e. the centre of the biggest circle that it contains, we would want to let the origin of the coordinate system to be at $O$. Once we do that, the electric field calculated at $O$ is:
$$\mathbf E = \frac{\sigma}{4\pi\epsilon_0}\int_0^{2\pi}\int_0^{\pi/2}\int_0^R-\frac{(\rho',\phi',\theta')}{\rho'}\sin\phi\,d\rho'd\phi'd\theta'.$$
This integral will produce a $\ln\rho'|_0^R$, how do I deal with $\ln 0$? Did I commit any mistake? I appreciate your help in pointing out what could be wrong.
PS: I know I can solve the problem partitioning the hemisphere into rings, but I want this solution, thanks!