The purpose of this study is to explore the safety, pharmacokinetic (what the body does to the medication), pharmacodynamic (what the medication does to the body), and activity of JNJ-26481585 in patients with advanced or refractory leukemia and myelodysplastic syndrome (MDS).