javax.persistence.RollbackException: Transaction marked as rollbackOnly
问题 I'm making a game with Spring MVC. I have a method for get the game and update but when it goes to update it gives an error, this is the code: HomeController.class @Transactional @RequestMapping(value = "/partida/{idPartida}", method = RequestMethod.GET) public String getPartida(@PathVariable("idPartida") long idPartida, Model model) throws IOException { Partida p = ServicioAplicacionPartida.getPartida(entityManager, idPartida); if (p.getJson() == null) { p.inicializarPartida(entityManager);