IllegalArgumentException In OQL Statement [message #3589] |
Wed, 27 August 2008 12:38  |
Eclipse User |
|
|
|
I'm attempting an OQL statement where I use <String>.value.toString(). For
example:
SELECT s.value.toString() FROM java.lang.String s
The query completes but renders char[] with address, length and size, but
not the actual string. The same query works fine in the jhat OQL console.
When executing the query, I receive an IllegalArgumentException dialog
with Details:
"An error has occurred. See error log for more details."
"Argument not valid"
I'm not sure what error log the dialog is referring to, and the console
has no further information.
I'm running Memory Analyzer as a plugin in Eclipse 3.4, JDK 1.6.0_10-beta
x86_64 on a 2.6.22-15 linux kernel.
|
|
|
Re: IllegalArgumentException In OQL Statement [message #3655 is a reply to message #3589] |
Thu, 28 August 2008 03:31  |
Eclipse User |
|
|
|
Erik Onnen wrote:
> SELECT s.value.toString() FROM java.lang.String s
Try: SELECT toString(s.value) FROM java.lang.String s
Or: SELECT toString(s) FROM java.lang.String s
Currently, if one calls #toString(), the actual method of the object at
hand is executed - which is of course not a String, but an object
representing the String object found in the heap. But I guess I should
change this to make it more intuitive.
> When executing the query, I receive an IllegalArgumentException dialog
> with Details:
> "An error has occurred. See error log for more details."
> "Argument not valid"
If you select "Window" -> "Error Log" inside the Memory Analyzer, you see
the Eclipse error log. Double-click on the log entry to see the stack
trace. The full log is also kept at ~/mat/workspace/.metadata/.log.
If the problem persists, it would be great if you could open a bugzilla
bug so that I can check into that:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=MAT
Andreas.
|
|
|
Powered by
FUDForum. Page generated in 0.02877 seconds