Joined: Mon Sep 25, 2006 7:45 pm Posts: 1 Location: Brazil
|
Hibernate version: Hibernate Annotations 3.2.0.CR1
Mapping documents:
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "ALBUM")
public class Album {
private byte[] photo;
@Column(name = "PHOTO")
public byte[] getPhoto() {
return photo;
}
public void setPhoto(byte[] photo) {
this.photo = photo;
}
}
Full stack trace of any exception that occurs:
...
org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2148)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
at org.hibernate.loader.Loader.list(Loader.java:2024)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:95)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1562)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
...
Name and version of the database you are using: Oracle 10g
Debug level Hibernate log excerpt:
[WARN ] org.hibernate.util.JDBCExceptionReporter 26/09/2006 19:15:09 (JDBCExceptionReporter.java:logExceptions:71) - SQL Error: 17027, SQLState: null
[ERROR] org.hibernate.util.JDBCExceptionReporter 26/09/2006 19:15:09 (JDBCExceptionReporter.java:logExceptions:72) - Stream already was closed
I thank the attention
_________________ "Alea jacta est"
|
|