#110 Unexpected exception in LogMsgFactory

closed
None
5
2007-12-16
2007-09-19
No

The LogMsgFactory method "createFieldMappingErrorMsg" fails during assembling the message string, if an exception occurs inside implicit call of toString() on variable "destFieldValue".

(BTW: Why is the variable name "destFieldValue" when it is labelled in log message with "Source field value"?)

In my case a Hibernate LazyInitializationException is thrown during implicit toString() of PersistentSet.

Please resolve the string value in a separate try/catch block.

Thanx
Christoph

Discussion

  • Matt Tierney

    Matt Tierney - 2007-12-16
    • assigned_to: nobody --> mhtierney
    • status: open --> pending
     
  • Matt Tierney

    Matt Tierney - 2007-12-16
    • status: pending --> closed
     
  • metatech

    metatech - 2012-06-12

    Sorry, this fix does not work because because it calls "hashCode()", which re-throws the same Exception (LazyInitializationException).

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks