Error in examples/gettingstarted.cfm - db.append()

61 views
Skip to first unread message

Allen Holt

unread,
Nov 20, 2015, 11:00:38 AM11/20/15
to CFMongoDB
Hello,

I am just looking into CFMongoDB and in fact MongoDB. I feel like I'm not getting off to a roaring start here as I'm getitng a Java error a little ways down the gettingstarted.cfm page. I have tried swapping out javaloader for java mongo drivers, the drivers included in cfmongodb as well as updated drivers (3.1.1). I've been trying to trace the problem, but have come up empty so far. Any help would be immensely appreciated.

The error is reading: 
Error Occurred While Processing Request
An exception occurred while calling the function append.
Cannot cast java.lang.String to java.util.Map

Thanks,
Allen

(I've attached full error text as attachment. I deleted original and reposted for sake of making this easier to read. Sorry if I offend anyone by posting this twice.)

error-text.html

Marc Esher

unread,
Nov 20, 2015, 7:57:01 PM11/20/15
to cfmo...@googlegroups.com
Hey Allen,

Sorry to hear you're having trouble. I haven't worked on cfmongodb or ColdFusion for several years, and to replicate your problem I'd need to get a working CF 11 environment set up.

Can anyone on the list who knows cfmongodb, and who is using CF 11, replicate this behavior?

Thanks,

Marc

--
You received this message because you are subscribed to the Google Groups "CFMongoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfmongodb+...@googlegroups.com.
To post to this group, send email to cfmo...@googlegroups.com.
Visit this group at http://groups.google.com/group/cfmongodb.
For more options, visit https://groups.google.com/d/optout.

Marc Esher

unread,
Nov 20, 2015, 8:00:49 PM11/20/15
to cfmo...@googlegroups.com
Allen,

Please try a little debugging and get back to me.

On this line: https://github.com/marcesher/cfmongodb/blob/develop/core/MongoUtil.cfc#L128

Add some logging (cfdump, cflog, etc) and tell me:

1) what's the value of dbObject being passed into that function?
2) after the "isSimpleValue()" check, what's the value of dbObject?

Thanks,

Marc

Roy van Rockz

unread,
May 18, 2016, 9:59:57 PM5/18/16
to CFMongoDB
Hey Marc,
I've got the same problem like Allen wrote.
I dumped dbObject but it just delivers me an empty Struct.
Any ideas how to solve the problem?
Thanks Roy

Marc Esher

unread,
Jun 5, 2016, 12:02:15 PM6/5/16
to cfmo...@googlegroups.com
Hey all,

I'm afraid I don't even have a working CF environment to help debug. Anyone else?

Marc

Reply all
Reply to author
Forward
0 new messages