Skip to main content



      Home
Home » Eclipse Projects » Memory Analyzer » Hash Entries throwing Java_Version error(Field 'java_version' of 'class sun.misc.Version contains an illegal object reference: )
Hash Entries throwing Java_Version error [message #1410845] Thu, 21 August 2014 15:31 Go to next message
Eclipse UserFriend
When I try to examine a HashMap using any of the Java Collections tools I get the following error:

Field 'java_version' of 'class sun.misc.Version @ 0x7e016e2b0' contains an illegal object reference: 0x7e016e318
Field 'java_version' of 'class sun.misc.Version @ 0x7e016e2b0' contains an illegal object reference: 0x7e016e318
Object 0x7e016e318 not found.
Object 0x7e016e318 not found.

Has anyone else seen this, or have an idea how to fix it?
Re: Hash Entries throwing Java_Version error [message #1450349 is a reply to message #1410845] Wed, 22 October 2014 07:00 Go to previous message
Eclipse UserFriend
I haven't seen that particular problem, but it ends up being an occasional problem with some dumps and queries.

When MAT builds the indices it reads through the dump finding all the objects, then sorts the addresses and gives each one an ID. It then reads through the dump again and builds the outbound references. It is possible that an outbound reference isn't a known object. It won't be listed as an outbound reference. Then later when a query runs and a field is read then it is possible that it is an address not known as an object.

The query could be changed to handle this case. Perhaps the index building step should add unknown addresses as a dummy objects, though this could make the index building take even longer as even the initial scan would have to look at all the outbound references. A more complex compromise would be to maintain a list of unknown addresses, then reindex to insert those addresses (rather like unreachable objects are removed from the indices).

Andrew Johnson
Previous Topic:Multithreading characteristics of MAT API
Next Topic:Can object address help to give me generation info ?
Goto Forum:
  


Current Time: Fri Jul 04 14:39:49 EDT 2025

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

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

Back to the top