Hi All,
First off let me say that I'm new to MachII, Coldspring and Transfer.
I've done my best to search through all of the resources and while
there seem to be a few problems that are similar to mine, I can't seem
to find any reports of my exact problem
I'm running Railo 3.1.2.001 on Resin 3.1.9 using MySQL 5.1.11 on
Windows XP.
I'm using Mach II 1.8, Coldpsring 1.2 and Transfer 1.1.
I was messing around with an extremely simple users table with just
userid, email, password and an active flag yesterday and Transfer and
all other related components were working great. Rebooted my machine
last night and came in this morning to try and beef up the users table
to include a lot more fields that I need. I updated all of my CFCs
and the transfer.xml to reflect the changes and started getting the
error:
Bean creation exception during init() of transfer.TransferFactory
Reverted back to the old versions of everything and I still get the
same error.
My transfer config file looks like this:
<object name="user" table="users"
decorator="model.user.userDecorator">
<id name="userid" type="numeric"/>
<property name="useremail" type="string" />
<property name="userpassword" type="string" />
<property name="active" type="numeric" />
</object>
and my decorator has a single function:
<cffunction name="getInstanceMemento" access="public"
returntype="struct" output="false">
<cfset var data = structNew()>
<cfset data = getMemento()>
<cfset data["__type__"] = "model.user.user">
<cfreturn data />
</cffunction>
Transfer is setup like this in my ColdSpring config:
<bean id="transferConfiguration"
class="transfer.com.config.Configuration">
<property name="DataSourcePath"><value>/config/datasource.xml</
value></property>
<property
name="ConfigPath"><value>/config/transfer.xml</value></
property>
</bean>
<bean id="transferFactory" class="transfer.TransferFactory">
<constructor-arg name="configuration"><ref
bean="transferConfiguration" /></constructor-arg>
</bean>
<bean id="transfer" factory-bean="transferFactory" factory-
method="getTransfer" />
Full error details below:
Message Bean creation exception during init() of
transfer.TransferFactory
Detail Error while attempting to autowire object of type
transfer.com.sql.transaction.TransactionManager:<br/>[Line: 210 :: C:
\files\railo-webroot\transfer\com\factory\AbstractBaseFactory.cfc ::
Error while attempting to autowire object of type
transfer.com.sql.transaction.Transaction :: <br/>[Line: 210 :: C:\files
\railo-webroot\transfer\com\factory\AbstractBaseFactory.cfc :: Error
while attempting to autowire object of type
transfer.com.sql.transaction.TransactionEventPool :: <br/>[Line: 93 ::
C:\files\railo-webroot\transfer\com\util\javaloader\JavaLoader.cfc ::
org.apache.commons.collections.BufferUtils :: ]]]
Stacktrace The Error Occurred in
C:\files\railo-webroot\coldspring\beans\DefaultXmlBeanFactory.cfc:
line 893
891: <cfthrow type="coldspring.beanCreationException"
892: message="Bean creation exception during init() of
#beanDef.getBeanClass()#"
893: detail="#cfcatch.message#:#cfcatch.detail#">
894: </cfcatch>
895: </cftry>
called fromC:\files\railo-webroot\coldspring\beans
\DefaultXmlBeanFactory.cfc: line 869
867: <!--- we need to call init method if it exists --->
868: <cfloop from="1" to="#arraylen(md.functions)#"
index="functionIndex">
869: <cfif md.functions[functionIndex].name eq "init"
870: and beanDef.getFactoryBean() eq "">
871:
called fromC:\files\railo-webroot\coldspring\beans
\DefaultXmlBeanFactory.cfc: line 632
630: <cfif not beanDef.isConstructed()>
631: <!--- lazy-init happens here --->
632: <cfset constructBean(resolvedName)/>
633: </cfif>
634: <cfset bean = beanDef.getInstance(returnFactory) />
called fromC:\files\railo-webroot\matcher\listeners\userListener.cfc:
line 8
6: <cffunction name="configure" access="public" returntype="void"
output="false">
7: <cfset variables.serviceFactory =
getProperty("serviceFactory")>
8: <cfset variables.userService =
serviceFactory.getBean("userService")>
9:
10: </cffunction>
called fromC:\files\railo-webroot\MachII\framework
\ListenerManager.cfc: line 229
227: <cfset aListener = variables.listenerProxies[i].getObject() /
>
228: <cfset appManager.onObjectReload(aListener) />
229: <cfset aListener.configure() />
230: </cfloop>
231: </cffunction>
called fromC:\files\railo-webroot\MachII\framework\AppManager.cfc:
line 115
113: <cfset getRequestManager().configure() />
114: <cfset getPluginManager().configure() />
115: <cfset getListenerManager().configure() />
116: <cfset getMessageManager().configure() />
117: <cfset getFilterManager().configure() />
called fromC:\files\railo-webroot\MachII\framework\AppFactory.cfc:
line 264
262:
263: <!--- Configure all the managers by calling the base
configure --->
264: <cfset appManager.configure() />
265:
266: <cfreturn appManager />
called fromC:\files\railo-webroot\MachII\framework\AppLoader.cfc: line
157
155: <cfset updateLastReloadDatetime() />
156: <cfset
setAppManager(getAppFactory().createAppManager(getConfigPath(),
getDtdPath(),
157: getAppKey(), getValidateXml(), arguments.parentAppManager,
getOverrideXml(), getModuleName())) />
158: <cfset getAppManager().setAppLoader(this) />
159: <cfset setLastReloadHash(getConfigFileReloadHash()) />
called fromC:\files\railo-webroot\MachII\framework\AppLoader.cfc: line
94
92:
93: <!--- (Re)Load the configuration. --->
94: <cfset reloadConfig(arguments.validateXml,
arguments.parentAppManager) />
95:
96: <cfreturn this />
called fromC:\files\railo-webroot\MachII\mach-ii.cfc: line 143
141: <!--- Create the AppLoader. No locking requires if called
during the onApplicationStart() event. --->
142: <cfset application[appKey] = StructNew() />
143: <cfset application[appKey].appLoader =
CreateObject("component",
"MachII.framework.AppLoader").init(MACHII_CONFIG_PATH,
MACHII_DTD_PATH, AppKey, MACHII_VALIDATE_XML) />
144: <cfset request.MachIIReload = FALSE />
145: </cffunction>
called fromC:\files\railo-webroot\MachII\mach-ii.cfc: line 96
94: hint="Handles the application start event. Override to provide
customized functionality.">
95: <!--- Load up the framework --->
96: <cfset LoadFramework() />
97:
98: <cfreturn TRUE />
Thanks for any help you can provide!
Mike
--
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8
You received this message because you are subscribed to the Google Groups
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/transfer-dev?hl=en