The conditions for steady current are often specified as $$\frac{\partial\rho}{\partial t}=0 \,\,\,\,and\,\,\,\frac{\partial\vec{J}}{\partial t}=0 $$ Combining $\frac{\partial\rho}{\partial t}=0$ with the continuity equation ($\nabla\cdot \vec{J}=\frac{\partial\rho}{\partial t}$) we get that for a steady current, we must have that $$\nabla \cdot \vec{J}=0$$ That is, the divergence of the current density must be zero everywhere for a steady current. I take issue with this implication for suppose we have an a infinite wire of uniform conductivity $\sigma$ and of cross sectional area $A$ conducting a steady current with current density $\vec{J}$. The current density at every point within the wire is clearly the same. However outside the wire, the current density is zero everywhere (we can assume the wire is immersed in a perfect insulator). That means that at the boundary between the wire and its surroundings, $\vec{J}$ experiences a discontinuous drop. Now my question is whether it is actually correct to say that in steady current conditions, we must necessarily have that $\nabla \cdot \vec{J}=0$. This surely can't be correct because I have just used the most stereotypical and idealized example of steady current (an ideal and infinite wire with truly uniform conductivity) and have shown that even in this extremely simplified and idealized case, we do not have that $\nabla \cdot \vec{J}=0$ for all points in space. So what is going on here? Also, what would the implications of this be for the charge distribution at the boundary? From ohms law, we have that $$\vec{E}=\rho \vec{J}$$ $$\Rightarrow \nabla \cdot \vec{E} =\nabla \cdot (\rho \vec{J})$$ Clearly the RHS of the above is undefined at the boundary (both $\sigma$ and $\vec{J}$) experience discontinuities there. So that means the LHS, namely $\vec{E}$ is also undefined at the boundary. From gauss's law, does this not mean that the charge density at the boundary is undefined?
Any help on these issues would be most appreciated!