Railo Transfer AutoWire Problem?

19 views
Skip to first unread message

Thomas D.

unread,
Feb 7, 2010, 12:11:50 PM2/7/10
to Railo
I'm trying to move one of my ColdBox (3.0.0 M4) / Transfer (r.687)
apps to a Railo/Tomcat setup and I'm getting the following error:

Railo 3.1.2.001 Error
(Transfer.com.factory.exception.AutoWireException)

Error while attempting to autowire object of type
transfer.com.cache.CacheManager

[Line: 30 :: C:\inetpub\wwwroot\transfer\com\exception
\Exception.cfc :: Error while attempting to autowire object of type
transfer.com.cache.provider.ProviderManager ::
[Line: 88 :: C:\inetpub\wwwroot\transfer\com\cache\provider
\EHCacheProvider.cfc :: coldfusion/runtime/TemplateProxy
$InvalidMethodNameException :: ]]

C:\inetpub\wwwroot\transfer\com\exception\Exception.cfc: line 30

28: <cfargument name="detail" hint="the detail in which to throw"
type="string" required="Yes">
29:
30: <cfthrow type="#getMetaData(this).name#"
message="#arguments.message#" detail="#detail#">
31: </cffunction>


I this a known issue? Has anyone else experienced this before?

Many thanks,
Thomas

Andrea Campolonghi

unread,
Feb 7, 2010, 12:27:43 PM2/7/10
to ra...@googlegroups.com
Try to post the error stack.

Andrea



2010/2/7 Thomas D. <awa...@gmail.com>



--
Andrea Campolonghi
and...@getrailo.org

Todd Rafferty

unread,
Feb 7, 2010, 1:07:30 PM2/7/10
to ra...@googlegroups.com
This doesn't look like it is related, but did you follow this step?

--
~Todd Rafferty ** Volunteer Railo Open Source Community Manager ** http://getrailo.org/

Thomas D.

unread,
Feb 9, 2010, 6:38:07 PM2/9/10
to Railo
Thanks Todd, I did follow that step, and this is the error I get after
changing Access Read to 'Open'.

Maybe this has something to do with loading Transfer into the ColdBox
cache?

- Thomas

Here's the stack trace...

called fromC:\inetpub\wwwroot\cbs-railo\transfer\com\factory\exception
\AutoWireException.cfc: line 31

29: <cfscript>
30: super.init("Error while attempting to autowire object of type
#getMetaData(arguments.target).name#",
31: "<br/>[Line: #arguments.exception.tagContext[1].line# ::
#arguments.exception.tagContext[1].template# ::
#arguments.exception.message# :: #arguments.exception.detail#]");
32: </cfscript>
33: </cffunction>

called fromC:\inetpub\wwwroot\cbs-railo\transfer\com\factory
\AbstractBaseFactory.cfc: line 142

140: catch(any exc)
141: {
142: createObject("component",
"transfer.com.factory.exception.AutoWireException").init(arguments.object,
exc);
143: }
144: </cfscript>

called fromC:\inetpub\wwwroot\cbs-railo\transfer\com\factory
\AbstractBaseFactory.cfc: line 73

71: if(NOT hasSingleton(arguments.class))
72: {
73: object = autowire(createObject("component", arguments.class));
74:
75: setSingleton(object, class);

called fromC:\inetpub\wwwroot\cbs-railo\transfer\com\factory
\Factory.cfc: line 71

69:
70: <cffunction name="getCacheManager" hint="returns the cache
manager" access="public" returntype="transfer.com.cache.CacheManager"
output="false">
71: <cfreturn getSingleton("transfer.com.cache.CacheManager") />
72: </cffunction>
73:

called fromC:\inetpub\wwwroot\cbs-railo\transfer\com\factory
\Factory.cfc: line 78

76: var eventManager =
getSingleton("transfer.com.events.EventManager");
77:
78: eventManager.configure(getCacheManager());
79:
80: return eventManager;

called fromC:\inetpub\wwwroot\cbs-railo\transfer\com\Transfer.cfc:
line 40

38: arguments.factory.getFacadeFactory();
39:
40: setEventManager(arguments.factory.getEventManager());
41:
42: setCacheManager(arguments.factory.getCacheManager());

called fromC:\inetpub\wwwroot\cbs-railo\transfer\TransferFactory.cfc:
line 105

103: setTransactionManager(factory.getTransactionManager());
104:
105: setTransfer(createObject("component",
"transfer.com.Transfer").init(factory));
106: setFactory(factory);
107:

called fromC:\inetpub\wwwroot\cbs-railo\coldbox\system\orm\transfer
\TransferLoader.cfc: line 87

85:
configClassPath=getProperty('TransferConfigurationClassPath'));
86:
87: var TransferFactory =
createObject("component",getProperty('TransferFactoryClassPath')).init(configuration=configuration);
88: var BeanInjectorProperties =
getProperty("BeanInjectorProperties");
89: var TDO = 0;

called fromC:\inetpub\wwwroot\cbs-railo\coldbox\system\beans
\InterceptorState.cfc: line 166

164: <cfinvoke component="#arguments.interceptor#"
method="#getstate()#" returnvariable="results">
165: <cfinvokeargument name="event" value="#arguments.event#">
166: <cfinvokeargument name="interceptData"
value="#arguments.interceptData#">
167: </cfinvoke>
168:

called fromC:\inetpub\wwwroot\cbs-railo\coldbox\system\beans
\InterceptorState.cfc: line 103

101: if( isExecutable(thisInterceptor,arguments.event) ){
102: // Invoke the execution point
103: stopChain = invoker( thisInterceptor, arguments.event,
arguments.interceptData );
104: // Check for results
105: if( stopChain ){ break; }

called fromC:\inetpub\wwwroot\cbs-railo\coldbox\system\services
\InterceptorService.cfc: line 95

93: // Execute Interception
94: timerHash =
controller.getDebuggerService().timerStart("interception
[#arguments.state#]");
95: structFind( getinterceptionStates(),
arguments.state).process(controller.getRequestService().getContext(),arguments.interceptData);
96: controller.getDebuggerService().timerEnd(timerHash);
97: }

called fromC:\inetpub\wwwroot\cbs-railo\coldbox\system\services
\LoaderService.cfc: line 85

83:
84: // Execute afterConfigurationLoad
85:
controller.getInterceptorService().processState("afterConfigurationLoad");
86:
87: // Register Aspects

called fromC:\inetpub\wwwroot\cbs-railo\coldbox\system\Coldbox.cfc:
line 71

69: application[appKey] =
CreateObject("component","coldbox.system.web.Controller").init(COLDBOX_APP_ROOT_PATH);
70: // Setup the Framework And Application
71:
application[appKey].getLoaderService().loadApplication(COLDBOX_CONFIG_FILE,COLDBOX_APP_MAPPING);
72: </cfscript>
73: </cffunction>

called fromC:\inetpub\wwwroot\cbs-railo\Application.cfc: line 37

Thomas

unread,
Feb 12, 2010, 11:57:19 AM2/12/10
to Railo
I asked this on the Transfer ORM Groups, and this was Mark's reply:

>> The EHCacheProvider won't work on Railo,
>> as it uses the JavaLoader's dynamic Proxy.

>> I'm waiting on Luis to move his CacheBox project
>> as a seperate project so there is a pluggable cache for all versions of CF.

>> Mark

Andrea Campolonghi

unread,
Feb 14, 2010, 3:09:07 AM2/14/10
to ra...@googlegroups.com
You could try to load ecCahe from lib folder and see if you can customize Trasfer for your needs.

Andrea

2010/2/12 Thomas <awa...@gmail.com>



--
Andrea Campolonghi
and...@getrailo.org
Reply all
Reply to author
Forward
0 new messages