Product:
CF 7 BugHunt
User:
Anonymous
[
Switch Product
]
CFUG:
None
Add and View Bug Comments at the bottom of the Element.
Title:
com.allaire.ObjectProxy - jvm error in CF5?
BugID:
1064
Date Opened:
21-Dec-01
Created By:
Glenn Olsen
Maryland ColdFusion User Group
Type:
Other/Misc
Element/Element:
<cfobject> [CreateObject]
Severity:
Generates an Error
Status:
New/Unvalidated
Adobe BugID:
Description of bug:
The piece of code below runs fine on CF45 but fails on CF50 with the following error message: java.lang.IllegalAccessException: Class com.allaire.ObjectProxy can not access a member of class java.util.Hashtable$Enumerator with modifiers "public". Java exception occurred in call to method. [Note: You will only get this more descriptive error message when running Java SDK 1.4.0 beta 3. The behavior -- runs fine on CF45, fails on CF50 -- is the same, however, when using any of the 1.3 SDKs.] Being a java novice, I can only speculate as to what Allaire/MM might have done differently in implementing its interface to the JVM. Has anyone else seen something like this? Have a workaround or a patch? I've looked around on MM, Allaire, cfbughunt, etc., without any luck... Here's the code: <cfscript> hash = CreateObject("java","java.util.Hashtable"); for(i=1; i lte 10; i=i+1) { hash.put("key#i#","val#i#"); } keys = hash.keys(); while(keys.hasMoreElements()) { key = keys.nextElement(); if(not isSimpleValue(key)) { key = key.toString(); } val = hash.get(key); if(not isSimpleValue(val)) { val = val.toString(); } WriteOutput("<p>#key#: #val#"); } </cfscript>
Comments:
--->
A D D Y O U R C O M M E N T S T O T H I S B U G
Please login to add comments to a bug
C O M M E N T S
Comment display is being revamped. We apologize for the delay.