|Xerces problem when profiling Tomcat [message #116440]
||Mon, 29 October 2007 10:07
Originally posted by: svileng.gmail.com|
I'm tryng to profile a web application running on Tomcat 5.5.20 using
What is happening exactly is when I start the tomcat server with
"-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf" It starts to some
point and then error message like this is displayed:
"[Error: EC JPIAgent received message (FATAL ERROR): Internal error (see
This message is not very informative so I turned on MARTINI logger with
What I saw at the end of the log file was like this:
Informative 10/29/07 09:48:42 4740 5 CJVMTIInterface ClassPrepare event
received: class = 'Lorg/apache/xerces/impl/xs/XMLSchemaValidator;',
generic = '(null)'
Error 10/29/07 09:48:42 4740 0 CDataManager File: DataManager.cpp (Line:
1568) condition failed: uiJVMPIMethodIndex < uiJVMPINumMethods
So I assumed that this is related to a problem during instrumentation of
xerces distribution I use with Tomcat (I just have a xercesImpl.jar in
<tomcat_dir>\common\lib). Removing xerces is not an option of course.
I looked up at the agent controller documentation an discovered that there
is filtering of which classes to be included/excluded but It doesn't seems
to work. I've placed filters.txt in the tomcat/bin directory (which should
be the current working dir) but I'm still getting the same error.
Anyway, according the documentation, the filter should be available only
to "standalone" mode and I really would like to use "enabled" mode.
Makes me wonder hasn't anybody profiled and application using xerces ,
because I wasn't able to find anything on the subject over the internet.
I have this problem for several days now and Its driving me crazy.
Powered by FUDForum
. Page generated in 0.06857 seconds