Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
AOP in CS2.0: Element ADVICE is undefined in INSTANCE.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
marc  
View profile  
 More options Jul 9 2012, 8:21 am
From: marc <marc.at.comp...@gmail.com>
Date: Mon, 9 Jul 2012 05:21:53 -0700 (PDT)
Local: Mon, Jul 9 2012 8:21 am
Subject: AOP in CS2.0: Element ADVICE is undefined in INSTANCE.
Hi,

I try to use AOP in Coldspring 2.0:

        <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>

When I request a page (not using the Remote service) I get an error:

Error creating bean 'remotePageService'

struct

Detail: [empty string]
ErrNumber: 0
Message: Element ADVICE is undefined in INSTANCE.
Resolvedname: INSTANCE
StackTrace: coldfusion.runtime.UndefinedElementException: Element
ADVICE is undefined in INSTANCE.

I do use the element advice in my Coldspring.xml. What is this error
referring to, if not this?

Marc


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Mandel  
View profile  
 More options Jul 9 2012, 9:09 am
From: Mark Mandel <mark.man...@gmail.com>
Date: Mon, 9 Jul 2012 23:09:13 +1000
Local: Mon, Jul 9 2012 9:09 am
Subject: Re: [coldspring-users] AOP in CS2.0: Element ADVICE is undefined in INSTANCE.

What is the full error trace please.

Mark

--
E: mark.man...@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast
http://www.2ddu.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marc  
View profile  
 More options Jul 9 2012, 4:09 pm
From: marc <marc.at.comp...@gmail.com>
Date: Mon, 9 Jul 2012 13:09:02 -0700 (PDT)
Local: Mon, Jul 9 2012 4:09 pm
Subject: Re: AOP in CS2.0: Element ADVICE is undefined in INSTANCE.
Here it is,

The ADVICE argument passed to the setAdvice function is not of type
coldspring.aop.Advice.
If the component name is specified as a type of this argument, it is
possible that either a definition file for the component cannot be
found or is not accessible.

The error occurred in H:\www\CMS\Frameworks\coldspring1-2-final\aop
\support\AbstractPointcutAdvisor.cfc: line 51
Called from H:\www\CMS\Frameworks\coldspring1-2-final\beans
\DefaultXmlBeanFactory.cfc: line 963
Called from H:\www\CMS\Frameworks\coldspring1-2-final\beans
\DefaultXmlBeanFactory.cfc: line 632
Called from H:\www\CMS\Frameworks\coldspring1-2-final\beans
\DefaultXmlBeanFactory.cfc: line 685
Called from H:\www\CMS\Frameworks\coldspring1-2-final\beans
\DefaultXmlBeanFactory.cfc: line 216
Called from H:\www\CMS\Frameworks\coldspring1-2-final\beans
\DefaultXmlBeanFactory.cfc: line 46
Called from H:\www\CMS\Frameworks\ModelGlue_3.2.439\gesture\loading
\ColdSpringBootstrapper.cfc: line 104
Called from H:\www\CMS\Frameworks\ModelGlue_3.2.439\gesture\loading
\ColdSpringBootstrapper.cfc: line 127
Called from H:\www\CMS\Frameworks\ModelGlue_3.2.439\gesture\loading
\ColdSpringBootstrapper.cfc: line 138
Called from H:\www\CMS\Frameworks\ModelGlue_3.2.439\gesture
\ModelGlue.cfm: line 82
Called from H:\www\CMS\wwwroot\index.cfm: line 41

49 :    </cffunction>
50 :
51 :    <cffunction name="setAdvice" access="public" returntype="void"
output="false">
52 :            <cfargument name="advice" type="coldspring.aop.Advice"
required="true" />
53 :            <cfset variables.advice = arguments.advice />

On Jul 9, 3:09 pm, Mark Mandel <mark.man...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marc  
View profile   Translate to Translated (View Original)
 More options Jul 9 2012, 4:31 pm
From: marc <marc.at.comp...@gmail.com>
Date: Mon, 9 Jul 2012 13:31:03 -0700 (PDT)
Local: Mon, Jul 9 2012 4:31 pm
Subject: Re: AOP in CS2.0: Element ADVICE is undefined in INSTANCE.
As you can see after posting the error I switched from 2.0 back to 1.2
to see if that did work. But 1.2 gave me the error as well. My advice
is like this:

<cfcomponent output="false" name="listAroundAdvice"
interface="coldspring.aop.MethodInterceptor">

so it does extend coldspring.aop.MethodInterceptor which in turn
extends coldspring.aop.Advice...

Marc


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Mandel  
View profile  
 More options Jul 9 2012, 4:33 pm
From: Mark Mandel <mark.man...@gmail.com>
Date: Tue, 10 Jul 2012 06:33:14 +1000
Local: Mon, Jul 9 2012 4:33 pm
Subject: Re: [coldspring-users] Re: AOP in CS2.0: Element ADVICE is undefined in INSTANCE.

Yeah - I need the full error from 2.0, not from 1.2

The error from 1.2 means nothing, as the code bases
have compatibility issues.

Mark

--
E: mark.man...@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast
http://www.2ddu.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marc  
View profile  
 More options Jul 9 2012, 4:43 pm
From: marc <marc.at.comp...@gmail.com>
Date: Mon, 9 Jul 2012 13:43:09 -0700 (PDT)
Local: Mon, Jul 9 2012 4:43 pm
Subject: Re: AOP in CS2.0: Element ADVICE is undefined in INSTANCE.
Oops...

interface="coldspring.aop.MethodInterceptor" is not the same as
extends="coldspring.aop.MethodInterceptor" :\

AOP in CS 1.2 works, now checking about my initial q which concerned
CS 2.0

Marc

On Jul 9, 10:31 pm, marc <marc.at.comp...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marc  
View profile  
 More options Jul 9 2012, 4:53 pm
From: marc <marc.at.comp...@gmail.com>
Date: Mon, 9 Jul 2012 13:53:13 -0700 (PDT)
Local: Mon, Jul 9 2012 4:53 pm
Subject: Re: AOP in CS2.0: Element ADVICE is undefined in INSTANCE.
I switched to CS 2.0 and get an error but it's not the one I started
this thread with. I'll make a new one.
Sorry for the mess.

Marc


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »