ModelGlue Framework not working in ColdFusion 2016 version

63 views
Skip to first unread message

Bhaskar M

unread,
Jan 18, 2018, 11:30:29 AM1/18/18
to model-glue
Hi,

Recently, we have upgraded ColdFusion 2016 version from ColdFusion 8 version. We have been facing issue with the application which has been implemented in ModelGlue and ColdSpring framework. As per my observation I have been found ModelGlue framework  is not loading up due to this application is throwing an method not found error and also other observation what I feel is compatible issue with framework and ColdFusion 2016 version. Not knowing what to do... But this application is works fine in ColdFusion 8 version. I have no much knowledge on ModelGlue and ColdSpring framework its like blocking me to move forward on upgrade stuff. Please I need your help to move ahead on this stuff.

Is ColdFusion 2016 version supports ModelGlue and ColdSpring framework ?
If Yes, Do we need to download ModelGlue latest version of ModelGlue framework or can still work with the same ModelGlue 2.0 version?
As per my observation, any idea, why ModelGlue framework is not loading up in CF 2016 version ?

Please help me to fix this issue and many Thanks in advance.





Allen G

unread,
Jan 18, 2018, 11:36:34 AM1/18/18
to model...@googlegroups.com
Hi Bashkar,

When you have a moment could you please share the output of the CF error(s) it is throwing?  When is it throwing this, the first time a request comes in?


~Allen

--
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
 
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to model-glue+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bhaskar M

unread,
Jan 19, 2018, 7:48:42 AM1/19/18
to model-glue
Hi Allen,

Thanks for looking into this...

Please find the attached error page.

Thanks


On Thursday, January 18, 2018 at 10:06:34 PM UTC+5:30, Allen G wrote:
Hi Bashkar,

When you have a moment could you please share the output of the CF error(s) it is throwing?  When is it throwing this, the first time a request comes in?


~Allen
On Thu, Jan 18, 2018 at 10:24 AM, Bhaskar M <bhaskar....@gmail.com> wrote:
Hi,

Recently, we have upgraded ColdFusion 2016 version from ColdFusion 8 version. We have been facing issue with the application which has been implemented in ModelGlue and ColdSpring framework. As per my observation I have been found ModelGlue framework  is not loading up due to this application is throwing an method not found error and also other observation what I feel is compatible issue with framework and ColdFusion 2016 version. Not knowing what to do... But this application is works fine in ColdFusion 8 version. I have no much knowledge on ModelGlue and ColdSpring framework its like blocking me to move forward on upgrade stuff. Please I need your help to move ahead on this stuff.

Is ColdFusion 2016 version supports ModelGlue and ColdSpring framework ?
If Yes, Do we need to download ModelGlue latest version of ModelGlue framework or can still work with the same ModelGlue 2.0 version?
As per my observation, any idea, why ModelGlue framework is not loading up in CF 2016 version ?

Please help me to fix this issue and many Thanks in advance.





--
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
 
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to model-glue+...@googlegroups.com.
CF2016_ModelGlue_Issue.jpg

Allen G

unread,
Jan 19, 2018, 9:53:56 AM1/19/18
to model...@googlegroups.com
I'm sorry for not asking this first and if you've already done this.

Am I understanding correctly that you're running M-G 2.x?

If so, do you have a local dev environment or dev environment that you can this app up on?    One that you're just using?  Or in this case, since M-G won't load maybe that doesn't matter since no one else can use dev.  

Personally, I'd get that set up on my box.  Make sure the exact same error is occuring.  Then I'd just drop M-G 3.2 in there and check.   Knock on wood, that does the trick.

I get not wanting to upgrade everything, but if you're running into this now with M-G 2 even if you go into the M-G code and fix the issue you're likely to run into similar problems.  That's a more than  huge jump.   M-G 3, not v2, v3, came out back in 2008.   The same with ColdFusion 8.   


Oh, and that call chain I see ColdSpring.  What version are you using?   Have you tried the last version of it?  Did you turn on debugging in it and/or check the ColdSpring logs to see what error(s) are happening when M-G tries to load?



That said ----

Just to ask the obvious, what error(s) were in the CF logs?   One common problem is that something else is erroring out elsewhere but in a way that doesn't stop processing the request.  That object not having the method has that sort of smell ( among others ).

Have you turned on debugging in M-G 2?  This looks like it's where everything for the framework is being spun up ( instantiated ).    That may not work because of that.  If it doesn't, you should be able to fiddle around and throw in a line of code there, something like arguments.events.getLog() or .writeLog(),, if I remember correctly ( IIRC ).

I say this because to me it look like the object got created but not in a way that those methods were added.   Something went there.  Depending on the built in debug in M-G an exactly what it gives you, you may need to stick in your own temp debugging before that line 170.  write to a file the object and list out it's functions, too.   IIRC you need to write to a file and not use cfdump to screen because CF did, or once did, have some issues with cfdump reflecting methods that have been added to an object after it's been instantiated.

If you don't find anything there, look through what's being fired and make sure to do similar logging in that chain anywhere that it could be instantiating an object or appending methods to an object.


Gues --> My gutt feeling is that since M-G 3 was written for CF8 there's a bad chance that something in there is doing something that CF2016 no longer likes.   And at that it sounds like you're running M-G which was _Probably_ written for CF6 or maybe CF7?   Anyone know?   Can we FedEx Joe Rhinehart a beer to get an answer?

Well it could be that there is now ( as of CF9 that is ) a local scope.  I'd still kinda wonder why that didn't get fixed in M-G2, but, it could happen.   Or maybe something with the local scope


In short, yuck.  But, eh, what else do you do?  CF8 was long ago unsupported.  And it has to run on an unsupported version of Java.    And moving to another framework's an even larger problem.


~Allen Graetz






For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to model-glue+unsubscribe@googlegroups.com.

Allen G

unread,
Jan 19, 2018, 9:55:16 AM1/19/18
to model...@googlegroups.com
BTW - Is there a way I can still grab old Model-Glue 2?  I may have time this weekend to try setting this up.  I'm really curious.  Kind of like someone with an old car having an issue from a long time ago.

Allen G

unread,
Jan 19, 2018, 9:57:45 AM1/19/18
to model...@googlegroups.com
Bashkar,

Speaking of a long time ago, have you rebooted the box after getting this problem.  I seem to vaguely remember having some issues every now and then where M-G would get hosed because something timed out the first time it loaded.  IIRC we'd just recycle that ColdFusion instance and it'd load fine again.

I'm guess this isn't the case since we should try something like this before hitting up a list of folks.  But hey, we all have those moments where we get so involved in the problem we skip right past something simple to check.

Bhaskar

unread,
Jan 30, 2018, 3:30:37 AM1/30/18
to model-glue
Hi Allen,

I have rebooted the box many times but no luck, its keep coming same error. Few days back I have downloaded MG 3.2 version and replaced with MG 2.0 version but still receiving the same error. 

Can we blame on Coldspring 1.2 version for this issue? 

Thanks

Dan Wilson

unread,
Jan 30, 2018, 7:45:55 AM1/30/18
to model...@googlegroups.com
The ColdFusion team used to have Model Glue and ColdSpring as part of their regression tests. It's been a while since I checked.

You may consider asking them on the ColdFusion forums if perhaps something in the latest version of ColdFusion broke ColdSpring. 


From time to time, as ColdFusion evolved, we ran into namespace issues or issues where our custom function names were then added to Core ColdFusion and we had to alter ModelGlue. 


I'm sure you are frustrated with this issue. Let us know what comes of the discussion with the ColdFusion team. 


DW 


For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to model-glue+unsubscribe@googlegroups.com.

Dean Lawrence

unread,
Feb 2, 2018, 12:56:22 PM2/2/18
to model...@googlegroups.com
Bhaskar, 

I would venture to say that this is probably not a MG or ColdSpring issue, but a CF one. As Dan mentioned, over time there have been changes to the CF core that causes existing code to break. Since you jumped 4 CF versions with this update, you have probably run into one. I would look at your CFCs and the CF release notes for 9, 10, 11, and 2016 to see if something is conflicting. Is there anything in your error logs.
Dean Lawrence
President
Internet Data Technology

Jared Rypka-Hauer

unread,
Feb 2, 2018, 1:13:17 PM2/2/18
to model...@googlegroups.com
I know that digging in to framework code can be intimidating and that it’s not generally recommended, but in this case, since MG is no longer supported much, it would probably be in your best interests to look at the error logs you’re seeing and then let this list know what you find, because we can provide some assistance in resolving it.

Jumping 4 versions of the platform is almost always going to cause some sort of struggles… but if you look at the errors, stack traces and log entries you should be able to at least find a starting place to find a fix. Frankly, that’s a best practice in general…

Once you’ve determined what your errors are post them back to this thread and we will see if we can’t find at least a workaround for you. Since MG is no longer really in development, we may be able to throw a patch in here, but changing framework code shouldn’t bite you later on because you’re not going to see an update to MG in the future anyway. :)

/j
Reply all
Reply to author
Forward
0 new messages