[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3097) org.hibernate.engine.query.sql.NativeSQLQueryScalarReturn not serializable

Emmanuel Bernard (JIRA) noreply at atlassian.com
Wed Feb 6 13:38:55 EST 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29453 ] 

Emmanuel Bernard commented on HHH-3097:
---------------------------------------

Can you provide the original exception. I don't understand why serialization happens here.

> org.hibernate.engine.query.sql.NativeSQLQueryScalarReturn not serializable
> --------------------------------------------------------------------------
>
>                 Key: HHH-3097
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3097
>             Project: Hibernate3
>          Issue Type: Bug
>         Environment: jboss 4.2.2, HB 3.2.5
>            Reporter: Eugeniusz Neugebauer
>
> In my domain class I've NamedNativeQuery:
> @SqlResultSetMappings({@SqlResultSetMapping(name = "uir_suma_zbiorow_result", columns = @ColumnResult(name = "result"))})
> @NamedNativeQueries({@NamedNativeQuery(name = "uir.uir_suma_zbiorow", query = "select uir_suma_zbiorow(:var1, :var2, :var3) as result", resultSetMapping = "uir_suma_zbiorow_result")})
> During build session factory on jboss i have Exception:
> Caused by: javax.naming.CommunicationException [Root exception is java.io.NotSerializableException: org.hibernate.engine.query.sql.NativeSQLQueryScalarReturn]
>         at org.jnp.interfaces.NamingContext.bind(NamingContext.java:618)
>         at org.jnp.interfaces.NamingContext.bind(NamingContext.java:552)
>         at org.jboss.util.naming.Util.bind(Util.java:102)
>         at org.jboss.util.naming.Util.bind(Util.java:89)
>         at pl.computerland.syriusz.std.hibernate.jmx.Hibernate2.bind(Hibernate2.java:429)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list