Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

VisualVM/jHat OQL toString() Error

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just followed the documentation and used the following OQL (taken directly from the example) in VisualVM/JHat but it gives me an exception:





Is there any way to get rid of the null objects first in my search before calling its toString()?
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you put a check for null first.

where /java/(s!=null && s.value.toString())
 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the meaning of the expression after /..../? From my knowledge of client side javascript, an regular expression literal is those things between the pair of /. What are all those things inside the bracket after the regular expression literal? Is it some ecmascript syntax not used with javascript in the browser?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic