Problems with running Coldspring on CF 2021

25 views
Skip to first unread message

Sandip Prusty

unread,
Nov 15, 2021, 6:32:15 PM11/15/21
to ColdSpring-Users
Hi Team,

We are facing the error which says 'Bean creation exception in coldspring.aop.framework.Proxyfactorybean' in CF 2021. Our existing system is setup on CF 11 & we want to upgrade it to CF 2021. But we are facing the below issue.

Bean creation exception in coldspring.aop.framework.ProxyFactoryBean
Invalid CFML construct found on line 69 at column 28.:ColdFusion was looking at the following text:

function

The CFML compiler was processing:

  • A cfset tag beginning on line 69, column 18.
  • A cfset tag beginning on line 69, column 18.
:
Line: 69
Snippet:
The error occurred in C:/wwwroot/public_html/frameworks/ColdSpring/beans/BeanDefinition.cfc: line 573
Called from C:/wwwroot/public_html/frameworks/ColdSpring/beans/BeanDefinition.cfc: line 384
Called from C:/wwwroot/public_html/frameworks/ColdSpring/beans/BeanDefinition.cfc: line 534
Called from C:/wwwroot/public_html/frameworks/ColdSpring/beans/DefaultXmlBeanFactory.cfc: line 731
Called from C:/wwwroot/public_html/frameworks/ColdSpring/beans/DefaultXmlBeanFactory.cfc: line 632
Called from C:/wwwroot/public_html/frameworks/ColdSpring/beans/DefaultXmlBeanFactory.cfc: line 685
Called from C:/wwwroot/public_html/frameworks/ColdSpring/beans/DefaultXmlBeanFactory.cfc: line 216
Called from C:/wwwroot/public_html/frameworks/ColdSpring/beans/DefaultXmlBeanFactory.cfc: line 182
Called from C:/wwwroot/public_html/wwwapp/www/Application.cfc: line 69
571 : <cfthrow type="coldspring.beanCreationException"
572 : message="Bean creation exception in #getBeanClass()#"
573 : detail="#cfcatch.message#:#cfcatch.detail#:#additionalInfo#">
574 : </cfcatch>
575 : </cftry>

Any suggestions would be highly appreciated.

Thanks,
Sandip.


Brian G

unread,
Mar 22, 2022, 8:12:39 PM3/22/22
to ColdSpring-Users
You most likely have reserved words in use like static and function which appear in Coldspring. This will make it way easier to troubleshoot Coldspring errors: 

diff --git a/vendor/coldspring/beans/DefaultXmlBeanFactory.cfc b/vendor/coldspring/beans/DefaultXmlBeanFactory.cfc

index 25f7bd3f5..ca8f1a2ba 100644

--- a/vendor/coldspring/beans/DefaultXmlBeanFactory.cfc

+++ b/vendor/coldspring/beans/DefaultXmlBeanFactory.cfc

@@ -888,10 +888,14 @@

                                                                </cfinvoke>

                                                                

                                                                <cfcatch type="any">

-                                                                       <cfdump var="#cfcatch#" output="console" label="Bean creation exception during init() of #beanDef.getBeanClass()#" />

-                                                                       <cfthrow type="coldspring.beanCreationException" 

-                                                                               message="Bean creation exception during init() of #beanDef.getBeanClass()#" 

-                                                                               detail="#cfcatch.message#:#cfcatch.detail#">

+                                                                       <!--- the cfthrow is essentially useless as it always says it happens in DefaultXmlBeanFactory, but the underlying exception says exactly where it happened so in dev mode we just display  --->

+                                                                               <cfrethrow />

                                                                </cfcatch>

                                                        </cftry>

Reply all
Reply to author
Forward
0 new messages