Two different "Error detected" alerts

13 views
Skip to first unread message

Valeriu Caraulean

unread,
Nov 11, 2009, 11:44:49 AM11/11/09
to nhprof
Hi

See the screenshot.

What's the difference between them, other than a typo?

I got first error for the next statement:
"2nd level cache load Entity (c88a2248-0294-4132-91e0-9cbe00f515f5 /* id */)"

nh bug.JPG

Jason Meckley

unread,
Nov 11, 2009, 12:51:51 PM11/11/09
to nhprof
My understanding is NH wraps all exceptions from the DB and depending
on the type of exception thrown NH may provide details. if it's "too
general" it just says "something went wrong, check the inner
exception". When NH can infer the details it uses the NH exception to
generate a specific alert. When the "too general" exception is
processed by NHProf it's posts both exceptions as individual alerts.
But like I said, that's just how I make sense of it.
>  nh bug.JPG
> 22KViewDownload

Ayende Rahien

unread,
Nov 11, 2009, 2:46:49 PM11/11/09
to nhp...@googlegroups.com
Hm, you shouldn't get both of them.
Can you try to send me a snapshot of them?

Ayende Rahien

unread,
Nov 11, 2009, 2:50:04 PM11/11/09
to nhp...@googlegroups.com
Yes, I took a look at the code, and both of them should NOT be in the same statement, a snapshot would be very helpful in finding out what is going on.

Jason Meckley

unread,
Nov 11, 2009, 3:41:20 PM11/11/09
to nhprof
I don't have a snapshot on hand, but I saw this regularly when DTC/
TransactionScope threw. messages like "cannot start DTC", "could not
sync NH with database" and "dead lock victim".

On Nov 11, 2:50 pm, Ayende Rahien <aye...@ayende.com> wrote:
> Yes, I took a look at the code, and both of them should NOT be in the same
> statement, a snapshot would be very helpful in finding out what is going on.
>
> On Wed, Nov 11, 2009 at 9:46 PM, Ayende Rahien <aye...@ayende.com> wrote:
> > Hm, you shouldn't get both of them.
> > Can you try to send me a snapshot of them?
>

Ayende Rahien

unread,
Nov 11, 2009, 3:48:59 PM11/11/09
to nhp...@googlegroups.com
okay,I'll try reproducing that

Valeriu Caraulean

unread,
Nov 11, 2009, 4:26:08 PM11/11/09
to nhp...@googlegroups.com
Sorry for not being detailed enough...
The aforementioned alerts where shown in same session, but for
different statements.
I wanted to make an accent on the typo and ask why there are 2
different "generic" alerts, how they are different?

The first is coming from a "normal" statement, that ""2nd level cache load ..."
The second message was for a WARN coming from NH
Is this OK?

Ayende Rahien

unread,
Nov 11, 2009, 4:31:53 PM11/11/09
to nhp...@googlegroups.com
Yes, the generic error for letting you know what statement was responsible for doing that.

Craig Gardiner

unread,
Nov 11, 2009, 7:45:57 PM11/11/09
to nhp...@googlegroups.com

I'm trying to introduce offline logging into my web application using a log4net config file... however nothing is produced.

So going back a few steps and I can't even get online NHProf using the following log4net(taken from your usage web page)

 

<?xml version="1.0" encoding="utf-8" ?>

<log4net>

  <appender name="NHProfAppender"

            type="HibernatingRhinos.Profiler.Appender.NHibernate.NHProfAppender,

            HibernatingRhinos.Profiler.Appender" >

    <sink value="tcp://127.0.0.1:22897" />

  </appender>

  <logger name="HibernatingRhinos.Profiler.Appender.NHibernate.NHProfAppender.Setup">

    <appender-ref ref="NHProfAppender"/>

  </logger>

</log4net>

 

This is the first time I have attempted to use NHProf without calling

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();

 

I need to use your tool for debugging (logging) on our live website.

 

Please help.

Craig.

Ayende Rahien

unread,
Nov 11, 2009, 7:51:39 PM11/11/09
to nhp...@googlegroups.com
What build of the appender are you using?

Craig Gardiner

unread,
Nov 11, 2009, 10:45:39 PM11/11/09
to nhp...@googlegroups.com

Hi Ayende,

 

I’m using build 541…

 

I’ve now got it to work online, my problem was simple - getting the path correct in global.asax.cs Application_Start

 

                  string path = HttpContext.Current.Server.MapPath("~/");

                  log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(path + "NHProfLog4Net.config"));

 

Next is how do I configure NHProf for offline using log4net config file?

 

Thanks for your help!

Ayende Rahien

unread,
Nov 12, 2009, 4:46:21 AM11/12/09
to nhp...@googlegroups.com
I updated the documentation to include this detail:
http://nhprof.com/Learn/Usage/ProfileAppWithConfiguration

Please note that you need 543 for that
Reply all
Reply to author
Forward
0 new messages