SAXException when trying to run Leak Suspect report [message #729679] |
Mon, 26 September 2011 18:37  |
Eclipse User |
|
|
|
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 #730184 is a reply to message #730172] |
Tue, 27 September 2011 19:56   |
Eclipse User |
|
|
|
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 #730764 is a reply to message #730192] |
Thu, 29 September 2011 06:20   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #733838 is a reply to message #732380] |
Wed, 05 October 2011 18:43   |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04456 seconds