On Wed, Jul 11, 2012 at 7:44 AM, marc <marc.at.comp
...@gmail.com> wrote:
> Ok, so I removed CS 1.2 and stock MG 3.2.439 so I only have your CS2.0
> develop version and a modified MG by Chrisa Blackwell that knows how
> to talk to CS2.0. AppMappings point to these files.I restart the
> server, request a page from my app - I'm not doing any AOP here so I
> expect the login screen after the initialisation is done - but I get
> another error message:
> invalid component or interface name.
> The coldspring.aop.Advice ColdFusion component or interface name, used
> to extend or implement the coldspring.aop.MethodInterceptor component
> is invalid. Ensure that the file exists, that the name does not start
> or end with a period (.), and the name is not an empty string.
> The error occurred in H:\www\CMS\Frameworks\coldspring\core\reflect
> \Class.cfc: line 49
> Called from H:\www\CMS\Frameworks\Coldspring\core\reflect
> \ReflectionService.cfc: line 46
> Called from H:\www\CMS\Frameworks\Coldspring\beans\support
> \CFCBeanDefinition.cfc: line 71
> Called from H:\www\CMS\Frameworks\Coldspring\beans
> \BeanDefinitionRegistry.cfc: line 78
> Called from H:\www\CMS\Frameworks\Coldspring\beans\xml\XmlParser.cfc:
> line 198
> Called from H:\www\CMS\Frameworks\Coldspring\beans\xml\XmlParser.cfc:
> line 93
> Called from H:\www\CMS\Frameworks\Coldspring\beans\xml\XmlParser.cfc:
> line 61
> Called from H:\www\CMS\Frameworks\Coldspring\beans\xml
> \XmlBeanFactory.cfc: line 52
> Called from H:\www\CMS\Frameworks\Coldspring\beans\xml
> \XmlBeanFactory.cfc: line 33
> Called from H:\www\CMS\Frameworks\ModelGlue\gesture\loading
> \ColdSpringBootstrapper.cfc: line 184
> Called from H:\www\CMS\Frameworks\ModelGlue\gesture\loading
> \ColdSpringBootstrapper.cfc: line 51
> Called from H:\www\CMS\Frameworks\ModelGlue\gesture\loading
> \ColdSpringBootstrapper.cfc: line 195
> Called from H:\www\CMS\Frameworks\ModelGlue\gesture\loading
> \ColdSpringBootstrapper.cfc: line 206
> Called from H:\www\CMS\Frameworks\ModelGlue\gesture\ModelGlue.cfm:
> line 81
> Called from H:\www\CMS\wwwroot\index.cfm: line 41
> 47 : Writedump(arguments);abort;
> 48 : }
> 49 : var meta = getComponentMetadata(arguments.className);
> 50 :
> 51 : //builder.setLength(builder.lastIndexOf(".")); << CF8
> fails on
> this because it can't resolve Java Methods. Grrr.
> I do a dump of this invalid component or interface:
> try{
> Writedump(arguments.className);
> }
> catch(Any e){
> Writedump(arguments);abort;
> }
> var meta = getComponentMetadata(arguments.className);
> when the error is thrown the Writedump(arguments) shows this :
> CLASSNAME Application.Model.AOP.listAroundAdvice
> This is the advice I want to wrap around the target objects.
> It looks like this:
> <cfcomponent output="false" name="listAroundAdvice"
> extends="coldspring.aop.MethodInterceptor">
> <cffunction name="init" access="public">
> <cfreturn this />
> </cffunction>
> <cffunction name="invokeMethod" access="public" returntype="any">
> <cfargument name="mi"
> type="coldspring.aop.MethodInvocation"
> required="true" />
> <cfset local.result=arguments.mi.proceed()>
> <cfset local.result=local.result.getCollection()>
> <cfreturn local.result>
> </cffunction>
> </cfcomponent>
> I figured maybe the mapping
> <cfset baseDirectory=ReReplaceNoCase(ExpandPath("/"),"[^\\^/.]+[\\/]
> {1}$","","All")>
> <cfset THIS.mappings["/Application"]="#baseDirectory#MVC\CMS
> \Application">
> is wrong but when I do this
> <cfdump
> var="#GetMetaData("Application.Model.AOP.listAroundAdvice")#"><cfabort>
> in Application.cfc I get a dump of object of java.lang.Class
> This is my Coldspring.xml part where I define the AOP:
> <bean id="remotePageService"
> class="coldspring.aop.framework.RemoteFactoryBean" lazy-init="false">
> <property name="target">
> <ref bean="pageService" />
> </property>
> <property name="serviceName">
> <value>remotePageService</value>
> </property>
> <property name="relativePath">
> <value>/ws</value>
> </property>
> <property name="remoteMethodNames">
> <value>list</value>
> </property>
> <property name="beanFactoryName">
> <value>beanfactory</value>
> </property>
> <property name="interceptorNames">
> <list>
> <value>listAdvisor</value>
> </list>
> </property>
> </bean>
> <!-- AOP -->
> <bean id="listAroundAdvice"
> class="Application.Model.AOP.listAroundAdvice" />
> <bean id="listAdvisor"
> class="coldspring.aop.support.NamedMethodPointcutAdvisor">
> <property name="advice">
> <ref bean="listAroundAdvice" />
> </property>
> <property name="mappedNames"><value>list</value></property>
> </bean>
> What's wrong with this components name?
> Marc
> --
> You received this message because you are subscribed to the Google Groups
> "ColdSpring-Users" group.
> To post to this group, send email to coldspring-users@googlegroups.com.
> To unsubscribe from this group, send email to
> coldspring-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/coldspring-users?hl=en.