[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1636) Removed trace in LazyInitializationException constructor(s)

jose (JIRA) noreply at atlassian.com
Thu Aug 21 11:45:50 EDT 2008


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

jose commented on HHH-1636:
---------------------------

This is the Java constructor for NullPointerException

    public NullPointerException(String s) {
	super(s);
    }

Also is an error AND NOT LOGGED ANYTHING !!!  (is absurd do it)

> Removed trace in LazyInitializationException constructor(s)
> -----------------------------------------------------------
>
>                 Key: HHH-1636
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1636
>             Project: Hibernate3
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.1.3, 3.2.0 cr1
>            Reporter: jose
>   Original Estimate: 1 minute
>  Remaining Estimate: 1 minute
>
> Problem: The trace confuse my log traces with "inexistent" errors (my code captured and process this exception)
> Solution: Supress the constructor trace (imagine that all Java exceptions show messages in their constructors...). The exception is launched and propagated...
>    Note: Log Trace is "failed to lazily initialize a collection of role: es.bfc.example.music.Artist.albums, no session or session was closed"  

-- 
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