I am now debugging ColdBox for BlueDragon 7 and came upon an interesting bug that I cannot find a solution for. I am trying to get an iterator out of a linkedHashMap and BD keeps throwing me a Method hasNext could not be legally accessed. Has anybody experienced this? If so, please help.
Below is the current simple code:
//Create HashMap
LinkedHashMap = CreateObject("java","java.util.LinkedHashMap").init(3);
Collections = createObject("java", "java.util.Collections");
//synch it
LinkedHashMap = Collections.synchronizedMap(LinkedHashMap);
//put some elements
LinkedHashMap.put("name","luis");
LinkedHashMap.put("date",now());
//Iterate
iterator = LinkedHashMap.keySet().iterator();
key = "";
/* Loop and execute each interceptor as registered in order */
while( iterator.hasNext() ){
key = iterator.next();
writeoutput(key & "
");
}
Blog
Recent Entries
Victor Campos
Victor Campos
January
30,
2026
Speaker Featuring - Round 1
Every conference is more than the talks we see on stage it’s also the story of the people who make it possible.
With the first round of Into the Box 2026 sessions and workshops now live, we’re excited to introduce some of the speakers who will be joining us this year. These community members, practitioners, and Ortus team experts bring decades of real-world experience across CFML, BoxLang, JVM modernization, testing, AI, and cloud-native development.
Victor Campos
Victor Campos
January
26,
2026
First Round of the Into the Box 2026 Agenda Is Live
Into the Box 2026 marks an important moment for the CFML and BoxLang community not just because of what’s on the agenda, but because of what it represents: 20 years of Ortus Solutions helping teams move forward, modernize, and build with confidence.
Victor Campos
Victor Campos
January
21,
2026
Add Your Comment