Chris, I'll try it out on the stable release and also see if I can come up with a simple test case that demonstrates the issue. Part of my question was whether this really is an issue or if I'm just doing something wrong, but further study seems to indicate that it is a problem and not an error on my part (but I'll keep digging). Thanks for the response.

Brian


On 4/4/06, Chris Scott <[EMAIL PROTECTED]> wrote:
Hey Brain, have you tried installing the .5 release and checking if
the error occurs there as well? There is some serious activity on the
ber version right now, I actually have lots of uncommitted tweaks,
and I know Simeon just committed. If the error is ber only, that
could help track down your issue a bit. Also, if you have a config
file and some cfcs that cause the error, a simple test case, you can
zip em up and email them to me, I'll check against newer source code
and see what I can find.

Thanks, Chris

Chris Scott
[EMAIL PROTECTED]
http://cdscott.blogspot.com/
http://www.coldspringframework.org/










On Apr 4, 2006, at 6:10 PM, Peter J. Farrell wrote:

> Brian Kotek said the following on 4/4/2006 4:54 PM:
>> Thanks Sean, yes I double checked all that even to the point of
>> cutting and pasting the exact same argument name from the CFC to the
>> ColdSpring XML:
>>
>>     <cffunction name="init" access="public" returntype="any"
>> output="false"  hint="I perform all initialization">
>>         <cfargument name="reactor"
>> type="reactor.reactorFactory" required="true" />
>>         <cfargument name="sessionManager" type="any" required="true"
>> hint="Reference to the session manager." />
>>         <cfset variables.instance = structNew() />
>>         <cfscript>
>>             setReactor( reactor=arguments.reactor );
>>             setSessionManager(arguments.sessionManager);
>>         </cfscript>
>>         <cfreturn this />
>>     </cffunction>
>>
>> Any other idears? Thanks.
> I know this is a dumb question, but are you sure that your
> setSessionManager() method is defined this service?  Check the
> spelling
> etc.?
>
> You might try adding something like this in your init() just to see if
> CS is passing in the SessionManager:
>
> <cfiif NOT StructKeyExists(arguments, "sessionManager")>
>     <cfthrow type="appplication" message="I didn't get the session
> manager from CS!"/>
> </cfif>
>
> I always try to prefer setter injection versus constructor-arg
> injection
> if at all possible.  I only use constructor-arg inject the object
> absolutely requires another object to init and may be consumed  by
> another object on its' init.  You can always use property injection
> and
> the have CS "setup" the service after all the dependencies have been
> wired together.  Something like this:
>
> <bean id="someService"
>     class=" someApp.model.sys.some.someService"
>     init-method="setup">
>     <property name="someDao"><ref bean="someDao"/></property>
>     <property name="someGateway"><ref bean="someGateway"/></property>
>     <property name="udfs"><ref bean="udfs"/></property>
> </bean>
>
> CS will call the init(), wire all the dependencies, then call all
> of the
> init-methods (which in this case is setup()).
>
> Best,
> .Peter
>
> --
> Peter J. Farrell :: Maestro Publishing
> Member Team Mach-II :: Member Team Fusion
> http://blog.maestropublishing.com
>
> Create boilerplate beans and transfer objects for ColdFusion!
> Fire up a cup of Rooibos!
> http://rooibos.maestropublishing.com/
>
>
>





Reply via email to