Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Memory Analyzer (MAT) » CorruptDataException with (MAT+DTFJ) when reading a jextracted core
CorruptDataException with (MAT+DTFJ) when reading a jextracted core [message #9636] Wed, 25 March 2009 10:41 Go to next message
François Mercier is currently offline François Mercier
Messages: 2
Registered: July 2009
Junior Member
Dear All,
I am generating a core from J2RE 1.4.2 IBM AIX build ca142-20080923 (SR12)
using gencore and process the genenrated core on the same AIX machine
using jextract.
I the transfer all the 3 generated file (core + sdff.hdr + sdff) on a
machine (OS=win32, ARCH=x86_64) and open it using MAT + DTFJ.

Has any one seen the parse error (pasted below) before ?

Thanks
Francois

!ENTRY org.eclipse.mat.ui 4 0 2009-03-25 11:17:53.272
!MESSAGE Problem finding class loaders
!STACK 0
com.ibm.dtfj.image.CorruptDataException: IOException java.io.IOException:
Negative seek offset, could not read address 0x3000308
at
com.ibm.dtfj.sov.java.imp.JavaClassLoaderProxyImpl.getObject (JavaClassLoaderProxyImpl.java:614)
at
com.ibm.dtfj.sov.imp.JavaClassLoaderEffigy.getObject(JavaCla ssLoaderEffigy.java:101)
at org.eclipse.mat.dtfj.DTFJIndexBuilder.fill(DTFJIndexBuilder. java:327)
at
org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(Sn apshotFactoryImpl.java:183)
at
org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnap shot(SnapshotFactoryImpl.java:101)
at
org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(Snapsh otFactory.java:87)
at
org.eclipse.mat.ui.snapshot.ParseHeapDumpJob.run(ParseHeapDu mpJob.java:54)
Re: CorruptDataException with (MAT+DTFJ) when reading a jextracted core [message #9661 is a reply to message #9636] Wed, 25 March 2009 11:43 Go to previous messageGo to next message
Andrew Johnson is currently offline Andrew Johnson
Messages: 119
Registered: July 2009
Senior Member
Does this error stop you opening the dump? If it doesn't then don't worry
too much about the error. Some dumps do have corrupt data in them and the
DTFJ adapter attempts to work around the problem. The class loader would
get ignored by MAT and any classes loaded by that loader would instead by
indicated as having been loaded by the bootstrap class loader.

If you still have problems you could try a newer DTFJ adapter. See the
archived update site attached to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=269534
https://bugs.eclipse.org/bugs/attachment.cgi?id=129464

A new version of the DTFJ feature should be available from IBM shortly.

Andrew
Re: CorruptDataException with (MAT+DTFJ) when reading a jextracted core [message #9683 is a reply to message #9661] Wed, 25 March 2009 14:45 Go to previous messageGo to next message
François Mercier is currently offline François Mercier
Messages: 2
Registered: July 2009
Junior Member
Hi Andrew,
thanks for your fast answer.
Yes, this error stops for opening the dump.
The latest error is:
!ENTRY org.eclipse.core.jobs 4 2 2009-03-25 11:17:53.693
!MESSAGE An internal error occurred during: "Parsing heap dump from
'E:\mat\laurs57b\lab36\core.622872.3.sdff'".
!STACK 0
java.lang.NullPointerException
at
com.ibm.dtfj.sov.java.imp.JavaClassProxyImpl.getMirroredData Reader(JavaClassProxyImpl.java:943)
at
com.ibm.dtfj.sov.java.imp.JavaClassProxyImpl.getClassLoader( JavaClassProxyImpl.java:808)
at
com.ibm.dtfj.sov.java.imp.JavaObjectProxyImpl.initializeHeap Object(JavaObjectProxyImpl.java:351)
at
com.ibm.dtfj.sov.java.imp.JavaObjectProxyImpl.<init>(JavaObjectProxyImpl.java:304)
at
com.ibm.dtfj.sov.java.imp.JavaObjectProxyImpl.getInstance(Ja vaObjectProxyImpl.java:297)
at
com.ibm.dtfj.sov.java.imp.JavaObjectProxyImpl.getInstance(Ja vaObjectProxyImpl.java:283)
at
com.ibm.dtfj.sov.java.imp.JavaClassLoaderProxyImpl.getData(J avaClassLoaderProxyImpl.java:152)
at
com.ibm.dtfj.sov.java.imp.JavaClassLoaderProxyImpl.getObject (JavaClassLoaderProxyImpl.java:612)
at
com.ibm.dtfj.sov.imp.JavaClassLoaderEffigy.getObject(JavaCla ssLoaderEffigy.java:101)
at org.eclipse.mat.dtfj.DTFJIndexBuilder.fill(DTFJIndexBuilder. java:327)
at
org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(Sn apshotFactoryImpl.java:183)
at
org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnap shot(SnapshotFactoryImpl.java:101)
at
org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(Snapsh otFactory.java:87)
at
org.eclipse.mat.ui.snapshot.ParseHeapDumpJob.run(ParseHeapDu mpJob.java:54)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)




I've tryied your proposed solution using newer DTFJ adapter from bugzilla,
but when deployed in RCP MAT using the 2 steps as described, the File/Open
Heap Dump menu doesn't recognize anymore the IBM format (only HPROF is
available).

Any other hints ?

Thanks
Francois
Re: CorruptDataException with (MAT+DTFJ) when reading a jextracted core [message #9922 is a reply to message #9683] Sat, 04 April 2009 20:09 Go to previous message
Andrew Johnson is currently offline Andrew Johnson
Messages: 119
Registered: July 2009
Senior Member
Please try the new DTFJ adapter and the new DTFJ as explained in here:
http://www.eclipse.org/newsportal/article.php?id=264&gro up=eclipse.technology.memory-analyzer#264
Previous Topic:How to get all objects which class implements specific interface?
Next Topic:IOException with (MAT+DTFJ) when reading a phd file
Goto Forum:
  


Current Time: Wed Oct 01 12:14:43 GMT 2014

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

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