Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via Stack Overflow by Will Keeling

    Check your annotations to use the proper table and column names.

Solutions on the web

via Stack Overflow by Ozelo
, 1 year ago
javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: br.com.ozelo.entidades.Opcional
via Stack Overflow by daydreamer
, 2 years ago
javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not prepare statement
via Stack Overflow by Royi Freifeld
, 2 years ago
java.lang.IllegalArgumentException: Unknown entity: business.entities.User
via Stack Overflow by Felipe Cabral
, 2 years ago
javax.persistence.PersistenceException: org.hibernate.MappingException: Unknown SqlResultSetMapping [UnidadeResult]
via pastie.org by Unknown author, 2 years ago
java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
via ejbca by vaibhav3s
, 2 years ago
javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: br.com.ozelo.entidades.Opcional	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1692)	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1602)	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1608)	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:1152)	at org.jboss.as.jpa.container.AbstractEntityManager.persist(AbstractEntityManager.java:580)	at br.com.ozelo.DAO.BasicDao.addEntity(BasicDao.java:22)	at br.com.ozelo.DAO.SubModeloDao.novoSubModelo(SubModeloDao.java:24)	at br.com.ozelo.servico.SubModeloService.novoSubModelo(SubModeloService.java:47)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)