Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » SAXException when trying to run Leak Suspect report
SAXException when trying to run Leak Suspect report [message #729679] Mon, 26 September 2011 18:37 Go to next message
samlooker  is currently offline samlooker Friend
Messages: 7
Registered: September 2011
Junior Member
Hi,

I just have the MA 1.1.1 installed in my Eclipse 3.5.1 on a 64 bit windows server 2003. When I clicked the "Leak Suspects" link on a memory dump, I got below error. The eclipse has been working for months so it self is not a problem. Any help will be appreciated.

System property org.xml.sax.driver not specified (org.xml.sax.SAXException)

org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:180)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:113)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:127)
at org.eclipse.mat.report.internal.RunRegisterdReport.execute(RunRegisterdReport.java:41)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
at org.eclipse.mat.ui.QueryExecution$ExecutionJob.run(QueryExecution.java:174)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: SAXException when trying to run Leak Suspect report [message #729888 is a reply to message #729679] Tue, 27 September 2011 08:25 Go to previous messageGo to next message
Krum Tsvetkov is currently offline Krum TsvetkovFriend
Messages: 164
Registered: July 2009
Senior Member
Hi,

I just tried installing a fresh Eclipse 3.5.1 Classic IDE, 64 bit, Windows 7 (I don't have Win server 2003 to test) and installed into it MAT 1.1.1 from http://download.eclipse.org/mat/1.1/update-site/.
I can run the Leak Suspects report without problems.
Not sure why you encountered one.
Can you tell me what package of Eclipse you installed and which update site you used for MAT? May be we had different setup.
Meanwhile, you could download and use a standalone MA.
Re: SAXException when trying to run Leak Suspect report [message #730070 is a reply to message #729888] Tue, 27 September 2011 15:04 Go to previous messageGo to next message
samlooker  is currently offline samlooker Friend
Messages: 7
Registered: September 2011
Junior Member
This is what I have on the eclipse:

Eclipse SDK

Version: 3.5.1
Build id: M20090917-0800

I used the same update site as you specified.

Can you tell me where I can get the standard MA?

Thanks.
Re: SAXException when trying to run Leak Suspect report [message #730140 is a reply to message #730070] Tue, 27 September 2011 17:23 Go to previous messageGo to next message
Krum Tsvetkov is currently offline Krum TsvetkovFriend
Messages: 164
Registered: July 2009
Senior Member
You can download standalone MA from here http://eclipse.org/mat/downloads.php
I'll look once more into the problem. One more question - what JDK are you using?
Re: SAXException when trying to run Leak Suspect report [message #730169 is a reply to message #730140] Tue, 27 September 2011 18:39 Go to previous messageGo to next message
samlooker  is currently offline samlooker Friend
Messages: 7
Registered: September 2011
Junior Member
It's jdk1.6.0_11.
BTW I am on VMWare workstation of the windows server 2003, it it makes any difference.

Thanks for looking into this.
Sam
Re: SAXException when trying to run Leak Suspect report [message #730172 is a reply to message #730140] Tue, 27 September 2011 19:02 Go to previous messageGo to next message
samlooker  is currently offline samlooker Friend
Messages: 7
Registered: September 2011
Junior Member
I dl the standalone version and ran it, it has the exact same problem.

Do I need to set up a global CLASSPATH variable or something like that?
Re: SAXException when trying to run Leak Suspect report [message #730184 is a reply to message #730172] Tue, 27 September 2011 19:56 Go to previous messageGo to next message
Krum Tsvetkov is currently offline Krum TsvetkovFriend
Messages: 164
Registered: July 2009
Senior Member
I googled for a while and found some similar complaints, however all I found were when using JDK 1.4.

Can you try to explicitly specify which JDK is used? Open the MemoryAnalyzer.ini file (of the standalone MA) and add two lines in front:
-vm
<path to the bin folder of the 1.6 JDK>

I'm just guessing but I have no better idea at the moment.
Re: SAXException when trying to run Leak Suspect report [message #730192 is a reply to message #730184] Tue, 27 September 2011 20:38 Go to previous messageGo to next message
samlooker  is currently offline samlooker Friend
Messages: 7
Registered: September 2011
Junior Member
I tried both these:
-vmC:\Program Files\Java\jdk1.6.0_11\bin

-vm C:\Program Files\Java\jdk1.6.0_11\bin

None fixed the problem. In fact it doesn't seem to take that path as all. I tried this and it did not complaint at start-up:

-vm C:\Program Files\Java\jdk1.6.0_11\binbad
Re: SAXException when trying to run Leak Suspect report [message #730764 is a reply to message #730192] Thu, 29 September 2011 06:20 Go to previous messageGo to next message
Krum Tsvetkov is currently offline Krum TsvetkovFriend
Messages: 164
Registered: July 2009
Senior Member
The parameters should be on separate lines, i.e.
-vm
C:\Program Files\Java\jdk1.6.0_11\bin

If this doesn't help, the only other hint I could find so far was a suggestion to add -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser to the VM options. Not sure if this will help. To add the this option, edit again the MemoryAnalyzer.ini file and add (again two separate lines):
-vmargs
-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser


If neither helps, could you send/paste the log file conent (<MAT>/workspace/.metadata/.log)?


Re: SAXException when trying to run Leak Suspect report [message #732037 is a reply to message #730764] Mon, 03 October 2011 18:54 Go to previous messageGo to next message
samlooker  is currently offline samlooker Friend
Messages: 7
Registered: September 2011
Junior Member
Neither worked. Please see my .ini and log below.

I loaded the standalone version on my 32 bit native 2003 server, and it worked fine on the same dump file.

Only on my 64 bit VMware 2003 server it is not working.

Thanks for your help.


=============
MemoryAnalyzer.ini

-vm
C:\Program Files\Java\jdk1.6.0_11\bin
-vmargs
-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser -Xmx1024m -XX:MaxPermSize=192m


=============
log:

!SESSION 2011-09-27 14:54:10.402 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.mat.ui 1 0 2011-09-27 14:55:33.246
!MESSAGE Heap C:\ColdFusion8\runtime\bin\java_pid4288.hprof contains 1,556,832 objects

!ENTRY org.eclipse.mat.ui 4 0 2011-09-27 14:57:40.683
!MESSAGE java.io.IOException
!STACK 0
org.eclipse.mat.SnapshotException: java.io.IOException
at org.eclipse.mat.SnapshotException.rethrow(SnapshotException.java:74)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:153)
at org.eclipse.mat.ui.QueryExecution$ExecutionJob.run(QueryExecution.java:174)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.IOException
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:188)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:113)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:127)
at org.eclipse.mat.report.internal.RunRegisterdReport.execute(RunRegisterdReport.java:41)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
... 2 more
Caused by: org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:180)
... 6 more
!SUBENTRY 1 org.eclipse.mat.ui 4 0 2011-09-27 14:57:40.683
!MESSAGE Exception of type java.io.IOException
!STACK 0
java.io.IOException
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:188)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:113)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:127)
at org.eclipse.mat.report.internal.RunRegisterdReport.execute(RunRegisterdReport.java:41)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
at org.eclipse.mat.ui.QueryExecution$ExecutionJob.run(QueryExecution.java:174)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:180)
... 6 more
!SUBENTRY 1 org.eclipse.mat.ui 4 0 2011-09-27 14:57:40.683
!MESSAGE System property org.xml.sax.driver not specified (org.xml.sax.SAXException)
!STACK 0
org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:180)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:113)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:127)
at org.eclipse.mat.report.internal.RunRegisterdReport.execute(RunRegisterdReport.java:41)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
at org.eclipse.mat.ui.QueryExecution$ExecutionJob.run(QueryExecution.java:174)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SESSION 2011-09-27 16:28:19.596 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -vm C:\Program Files\Java\jdk1.6.0_11\bin
Command-line arguments: -os win32 -ws win32 -arch x86_64 -vm C:\Program Files\Java\jdk1.6.0_11\bin

!ENTRY org.eclipse.mat.ui 4 0 2011-09-27 16:29:25.674
!MESSAGE java.io.IOException
!STACK 0
org.eclipse.mat.SnapshotException: java.io.IOException
at org.eclipse.mat.SnapshotException.rethrow(SnapshotException.java:74)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:153)
at org.eclipse.mat.ui.QueryExecution$ExecutionJob.run(QueryExecution.java:174)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.IOException
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:188)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:113)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:127)
at org.eclipse.mat.report.internal.RunRegisterdReport.execute(RunRegisterdReport.java:41)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
... 2 more
Caused by: org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:180)
... 6 more
!SUBENTRY 1 org.eclipse.mat.ui 4 0 2011-09-27 16:29:25.674
!MESSAGE Exception of type java.io.IOException
!STACK 0
java.io.IOException
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:188)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:113)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:127)
at org.eclipse.mat.report.internal.RunRegisterdReport.execute(RunRegisterdReport.java:41)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
at org.eclipse.mat.ui.QueryExecution$ExecutionJob.run(QueryExecution.java:174)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:180)
... 6 more
!SUBENTRY 1 org.eclipse.mat.ui 4 0 2011-09-27 16:29:25.674
!MESSAGE System property org.xml.sax.driver not specified (org.xml.sax.SAXException)
!STACK 0
org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:180)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:113)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:127)
at org.eclipse.mat.report.internal.RunRegisterdReport.execute(RunRegisterdReport.java:41)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
at org.eclipse.mat.ui.QueryExecution$ExecutionJob.run(QueryExecution.java:174)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SESSION 2011-09-27 16:35:24.901 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -vmC:\Program Files\Java\jdk1.6.0_11\bin
Command-line arguments: -os win32 -ws win32 -arch x86_64 -vmC:\Program Files\Java\jdk1.6.0_11\bin

!ENTRY org.eclipse.mat.ui 4 0 2011-09-27 16:35:54.745
!MESSAGE java.io.IOException
!STACK 0
org.eclipse.mat.SnapshotException: java.io.IOException
at org.eclipse.mat.SnapshotException.rethrow(SnapshotException.java:74)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:153)
at org.eclipse.mat.ui.QueryExecution$ExecutionJob.run(QueryExecution.java:174)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.IOException
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:188)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:113)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:127)
at org.eclipse.mat.report.internal.RunRegisterdReport.execute(RunRegisterdReport.java:41)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
... 2 more
Caused by: org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:180)
... 6 more
!SUBENTRY 1 org.eclipse.mat.ui 4 0 2011-09-27 16:35:54.745
!MESSAGE Exception of type java.io.IOException
!STACK 0
java.io.IOException
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:188)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:113)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:127)
at org.eclipse.mat.report.internal.RunRegisterdReport.execute(RunRegisterdReport.java:41)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
at org.eclipse.mat.ui.QueryExecution$ExecutionJob.run(QueryExecution.java:174)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:180)
... 6 more
!SUBENTRY 1 org.eclipse.mat.ui 4 0 2011-09-27 16:35:54.745
!MESSAGE System property org.xml.sax.driver not specified (org.xml.sax.SAXException)
!STACK 0
org.xml.sax.SAXException: System property org.xml.sax.driver not specified
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at org.eclipse.mat.report.SpecFactory.read(SpecFactory.java:180)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:113)
at org.eclipse.mat.report.SpecFactory.create(SpecFactory.java:127)
at org.eclipse.mat.report.internal.RunRegisterdReport.execute(RunRegisterdReport.java:41)
at org.eclipse.mat.query.registry.ArgumentSet.execute(ArgumentSet.java:129)
at org.eclipse.mat.ui.QueryExecution$ExecutionJob.run(QueryExecution.java:174)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Re: SAXException when trying to run Leak Suspect report [message #732380 is a reply to message #729679] Tue, 04 October 2011 15:16 Go to previous messageGo to next message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 205
Registered: July 2009
Senior Member
Following a suggestion at http://www.saxproject.org/quickstart.html try
-vmargs
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser


Note the org.xml.sax.driver not org.xml.sax.parser

If that doesn't work, does
java org.apache.xerces.parsers.SAXParser

give a NoSuchMethodError i.e. the class does exist, or a NoClassDefFoundError (i.e. the SAX parser doesn't seem to be available in the JVM)?
Re: SAXException when trying to run Leak Suspect report [message #733838 is a reply to message #732380] Wed, 05 October 2011 18:43 Go to previous messageGo to next message
samlooker  is currently offline samlooker Friend
Messages: 7
Registered: September 2011
Junior Member
Hi,

I am happy to report back below settings in MemoryAnalyzer.ini work for the standalone one. Sorry I mixed it with the Eclipse plugin before.

Can you tell me how to make the Eclipse plugin work? I can't find a MemoryAnalyzer.ini under Eclipse.

Thanks!

-vm
C:\Program Files\Java\jdk1.6.0_11\bin
-vmargs
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser
-vmargs
-Xmx1024m
-vmargs
-XX:MaxPermSize=192m

Re: SAXException when trying to run Leak Suspect report [message #733974 is a reply to message #733838] Thu, 06 October 2011 07:38 Go to previous message
Krum Tsvetkov is currently offline Krum TsvetkovFriend
Messages: 164
Registered: July 2009
Senior Member
hi,

Under Eclipse there should be a config.ini file with the same function. Save a copy of you current one and try to add the modifications there.

Krum
Previous Topic:Intent to automate diagnosis with MAT Java APIs
Next Topic:Is direct children object/vvariable wrong in dominator tree?
Goto Forum:
  


Current Time: Thu Apr 18 22:48:40 GMT 2024

Powered by FUDForum. Page generated in 0.02407 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top