We study a system of two superconductors connected by a small normal grain. We consider the modification of the Josephson effect by the Coulomb interaction on the grain. Coherent charge transport through the junction is suppressed by Coulomb repulsion. An optional gate electrode may relax the charge blocking and enhance the current leading to the single Cooper pair transistor effect. Temperature dependences of critical current and of the minigap induced in the normal grain by the proximity to superconductor are studied. Both temperature and Coulomb interaction suppress critical current and minigap, but their interplay may lead to the nonmonotonic and even reentrant temperature dependence.