Re: [transfer-dev] Help?

2018-02-27 Thread Mark Mandel
The project is still hosted over here:
https://github.com/TransferORM/transfer

Check the wiki for documentation.

Good luck! 

On 26 February 2018 at 11:01, Donald Bridinger 
wrote:

> Sorry to jump in like this, but I was just handed a major application
> update project that uses CF10 & transferORM 1.0 on IIS 8.5
> There was no reference information from the original developers.
> Question:
> Is there any documentation that REALLY describes TransferORM, how to use
> it, how to update apps developed using it, etc?
> Any guidance would be GREATLY appreciated.
> Thank you for your understanding!
> DonB
>
> --
> --
> 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 transfer-dev@googlegroups.com
> To unsubscribe from this group, send email to transfer-dev+unsubscribe@
> googlegroups.com
> For more options, visit this group at http://groups.google.com/
> group/transfer-dev?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "transfer-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to transfer-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [transfer-dev] Docs posted on GitHub + Alternative datatype support

2015-03-07 Thread Mark Mandel
Awesome work mate!

I really need to write up a blog post on all the hard work you've been
doing.

Mark

On 8 March 2015 at 11:05, Brian G brian-goo...@vfive.com wrote:


 I took a few minutes and copied the transfer docs into Github - thank god
 they accept HTML so I didn't have to reformat them:

 https://github.com/TransferORM/transfer/wiki


 Brian

 --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




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

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [transfer-dev] Re: Latest version of Transfer Issue

2014-08-01 Thread Mark Mandel
Comparing:
http://transfer.riaforge.org/index.cfm?event=page.svnbrowsepath=%2Fcfunittest/trunk
to
http://transfer.riaforge.org/index.cfm?event=page.svnbrowsepath=%2Fcfunittest%2Fbranches/pluggable_cache

Looks like you may well be right.

Mark

On 31 July 2014 23:55, Sean Coyne coyne.s...@gmail.com wrote:

 From what I can tell that branch is the same as trunk... at least there
 are no changes to the ones I tried yesterday.


 On Wednesday, July 30, 2014 8:29:15 PM UTC-4, Mark Mandel wrote:

 I think you'll want these ones:
 http://svn.riaforge.org/transfer/cfunittest/branches/pluggable_cache/

 Since you are working off the pluggable cache branch.

 Mark


 On 31 July 2014 04:38, Sean Coyne coyne...@gmail.com wrote:

 Hmmm no tests dir in the git repo.  Looks like they were separate from
 the main SVN repo? Are these them?  http://svn.riaforge.org/
 transfer/cfunittest/trunk/

 I'll see if I can integrate them into the main repo as well.

 Sean


 On Tuesday, July 29, 2014 5:08:18 PM UTC-4, Mark Mandel wrote:

 Oh yeah, the ehcache branch uses the JL DynamicProxy, which uses
 internal CF classes... which would have an issue on Railo.

 I *think* Railo ships with it's own implementation, so in theory, you
 should be able to switch them out at runtime.

 Sean: Just check the tests folder, Transfer is well unit tested.

 Mark


 On 30 July 2014 06:13, Sean Coyne coyne...@gmail.com wrote:

 Is there a test case I can run on Railo?


 On Tuesday, July 29, 2014 12:39:23 PM UTC-4, Brian G wrote:


 James reported that it's working on ACF now but he's getting the
 following error on Railo 4.2.1.  I don't have a Railo install handy to
 debug; can anyone find a patch and I'll merge it in?  Or you can send me 
 a
 pull request on Github?


 Error while attempting to autowire object of type transfer.com.cache.
 CacheManager:br/[Line: 30 :: /transfer/com/exception/Exception.cfc
 :: Error while attempting to autowire object of type
 transfer.com.cache.provider.ProviderManager :: br/[Line: 88 ::
 /transfer/com/cache/provider/EHCacheProvider.cfc ::
 coldfusion/runtime/NeoPageContext :: ]]


 This is line 88 in EHCacheProvider.cfc:

 proxy = getJavaLoader().create(com.co
 mpoundtheory.coldfusion.cfc.CFCDynamicProxy).createInstance(this,
 interfaces);


 It's not the first use of JavaLoader, so that's not the problem.
 However, Mark seems to say that EHCacheProvider won't work on Railo in 
 this
 2010 thread:

 https://groups.google.com/d/msg/transfer-dev/9x3i6aaBGlI/DDihZGuSMxkJ

 Is that still true?  I thought we had people here running the
 pluggable_cache variant on Railo?


 Brian


 On Wednesday, July 23, 2014 10:17:49 AM UTC-7, James Allen wrote:

 Hi guys,



 I’m trying a site which is built using Transfer on the latest
 version of Railo so grabbed Brian’s Github latest as I read that’s
 compatible.



 The problem is, I’m getting the following error when I try to start
 the site – it occurs in the init of TransferFactory.



 Railo reports the error as:



 Syntax Error, Invalid Construct:



 CF8:



 Missing argument name.:When using named parameters to a function,
 every parameter must have a name.pThe CFML compiler was
 processing:ulliAn expression beginning with super.init, on line 35,
 column 17.This message is usually caused by a problem in the expressions
 structure.liA script statement beginning with super.init on line 35,
 column 17.liA cfscript tag beginning on line 34, column 10.liA 
 cfscript
 tag beginning on line 34, column 10./ul



 So it’s not a Railo issue.



 I’ve tracked this down I think and it’s occurring in com/factory/
 AbstractBaseFactory.cfc in the getSingleton() method.



 If I use cftry to trap the error it occurs when getSingleton() is
 sent a class name of:



 transfer.com.util.JavaLoader



 Any ideas on what might be causing this on the latest version of
 Transfer? The site works fine on an older version.



 Many thanks,

 James.



 ---

 *James  Allen*

 *E:* ja...@jamesallen.name

 *Blog:* http://jamesallen.name

 *Twitter:* @CFJamesAllen

 *Twitter: *@JamesAllenVoice (Voiceover)

 *Twitter: *@80sRewindShow (My weekly 80s radio show)



 Tune in to the best in community radio – Codebass Radio:
 http://codebassradio.net



  --
 --
 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 transf...@googlegroups.com
 To unsubscribe from this group, send email to transfer-dev...@
 googlegroups.com

 For more options, visit this group at http://groups.google.com/group
 /transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google
 Groups transfer-dev group.
 To unsubscribe from this group and stop

Re: [transfer-dev] Re: Latest version of Transfer Issue

2014-07-30 Thread Mark Mandel
I think you'll want these ones:
http://svn.riaforge.org/transfer/cfunittest/branches/pluggable_cache/

Since you are working off the pluggable cache branch.

Mark


On 31 July 2014 04:38, Sean Coyne coyne.s...@gmail.com wrote:

 Hmmm no tests dir in the git repo.  Looks like they were separate from the
 main SVN repo? Are these them?
 http://svn.riaforge.org/transfer/cfunittest/trunk/

 I'll see if I can integrate them into the main repo as well.

 Sean


 On Tuesday, July 29, 2014 5:08:18 PM UTC-4, Mark Mandel wrote:

 Oh yeah, the ehcache branch uses the JL DynamicProxy, which uses internal
 CF classes... which would have an issue on Railo.

 I *think* Railo ships with it's own implementation, so in theory, you
 should be able to switch them out at runtime.

 Sean: Just check the tests folder, Transfer is well unit tested.

 Mark


 On 30 July 2014 06:13, Sean Coyne coyne...@gmail.com wrote:

 Is there a test case I can run on Railo?


 On Tuesday, July 29, 2014 12:39:23 PM UTC-4, Brian G wrote:


 James reported that it's working on ACF now but he's getting the
 following error on Railo 4.2.1.  I don't have a Railo install handy to
 debug; can anyone find a patch and I'll merge it in?  Or you can send me a
 pull request on Github?


 Error while attempting to autowire object of type transfer.com.cache.
 CacheManager:br/[Line: 30 :: /transfer/com/exception/Exception.cfc
 :: Error while attempting to autowire object of type
 transfer.com.cache.provider.ProviderManager :: br/[Line: 88 ::
 /transfer/com/cache/provider/EHCacheProvider.cfc :: coldfusion/runtime/
 NeoPageContext :: ]]


 This is line 88 in EHCacheProvider.cfc:

 proxy = getJavaLoader().create(com.co
 mpoundtheory.coldfusion.cfc.CFCDynamicProxy).createInstance(this,
 interfaces);


 It's not the first use of JavaLoader, so that's not the problem.
 However, Mark seems to say that EHCacheProvider won't work on Railo in this
 2010 thread:

 https://groups.google.com/d/msg/transfer-dev/9x3i6aaBGlI/DDihZGuSMxkJ

 Is that still true?  I thought we had people here running the
 pluggable_cache variant on Railo?


 Brian


 On Wednesday, July 23, 2014 10:17:49 AM UTC-7, James Allen wrote:

 Hi guys,



 I’m trying a site which is built using Transfer on the latest version
 of Railo so grabbed Brian’s Github latest as I read that’s compatible.



 The problem is, I’m getting the following error when I try to start
 the site – it occurs in the init of TransferFactory.



 Railo reports the error as:



 Syntax Error, Invalid Construct:



 CF8:



 Missing argument name.:When using named parameters to a function,
 every parameter must have a name.pThe CFML compiler was
 processing:ulliAn expression beginning with super.init, on line 35,
 column 17.This message is usually caused by a problem in the expressions
 structure.liA script statement beginning with super.init on line 35,
 column 17.liA cfscript tag beginning on line 34, column 10.liA 
 cfscript
 tag beginning on line 34, column 10./ul



 So it’s not a Railo issue.



 I’ve tracked this down I think and it’s occurring in com/factory/
 AbstractBaseFactory.cfc in the getSingleton() method.



 If I use cftry to trap the error it occurs when getSingleton() is sent
 a class name of:



 transfer.com.util.JavaLoader



 Any ideas on what might be causing this on the latest version of
 Transfer? The site works fine on an older version.



 Many thanks,

 James.



 ---

 *James  Allen*

 *E:* ja...@jamesallen.name

 *Blog:* http://jamesallen.name

 *Twitter:* @CFJamesAllen

 *Twitter: *@JamesAllenVoice (Voiceover)

 *Twitter: *@80sRewindShow (My weekly 80s radio show)



 Tune in to the best in community radio – Codebass Radio:
 http://codebassradio.net



  --
 --
 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 transf...@googlegroups.com
 To unsubscribe from this group, send email to transfer-dev...@
 googlegroups.com

 For more options, visit this group at http://groups.google.com/
 group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google
 Groups transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to transfer-dev...@googlegroups.com.

 For more options, visit https://groups.google.com/d/optout.




 --
 E: mark@gmail.com

 T: http://www.twitter.com/neurotic
 W: www.compoundtheory.com

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

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

Re: [transfer-dev] Re: Latest version of Transfer Issue

2014-07-29 Thread Mark Mandel
Oh yeah, the ehcache branch uses the JL DynamicProxy, which uses internal
CF classes... which would have an issue on Railo.

I *think* Railo ships with it's own implementation, so in theory, you
should be able to switch them out at runtime.

Sean: Just check the tests folder, Transfer is well unit tested.

Mark


On 30 July 2014 06:13, Sean Coyne coyne.s...@gmail.com wrote:

 Is there a test case I can run on Railo?


 On Tuesday, July 29, 2014 12:39:23 PM UTC-4, Brian G wrote:


 James reported that it's working on ACF now but he's getting the
 following error on Railo 4.2.1.  I don't have a Railo install handy to
 debug; can anyone find a patch and I'll merge it in?  Or you can send me a
 pull request on Github?


 Error while attempting to autowire object of type 
 transfer.com.cache.CacheManager:br/[Line:
 30 :: /transfer/com/exception/Exception.cfc :: Error while attempting to
 autowire object of type transfer.com.cache.provider.ProviderManager ::
 br/[Line: 88 :: /transfer/com/cache/provider/EHCacheProvider.cfc ::
 coldfusion/runtime/NeoPageContext :: ]]


 This is line 88 in EHCacheProvider.cfc:

 proxy = getJavaLoader().create(com.
 compoundtheory.coldfusion.cfc.CFCDynamicProxy).createInstance(this,
 interfaces);


 It's not the first use of JavaLoader, so that's not the problem.
 However, Mark seems to say that EHCacheProvider won't work on Railo in this
 2010 thread:

 https://groups.google.com/d/msg/transfer-dev/9x3i6aaBGlI/DDihZGuSMxkJ

 Is that still true?  I thought we had people here running the
 pluggable_cache variant on Railo?


 Brian


 On Wednesday, July 23, 2014 10:17:49 AM UTC-7, James Allen wrote:

 Hi guys,



 I’m trying a site which is built using Transfer on the latest version of
 Railo so grabbed Brian’s Github latest as I read that’s compatible.



 The problem is, I’m getting the following error when I try to start the
 site – it occurs in the init of TransferFactory.



 Railo reports the error as:



 Syntax Error, Invalid Construct:



 CF8:



 Missing argument name.:When using named parameters to a function, every
 parameter must have a name.pThe CFML compiler was processing:ulliAn
 expression beginning with super.init, on line 35, column 17.This message is
 usually caused by a problem in the expressions structure.liA script
 statement beginning with super.init on line 35, column 17.liA cfscript
 tag beginning on line 34, column 10.liA cfscript tag beginning on line
 34, column 10./ul



 So it’s not a Railo issue.



 I’ve tracked this down I think and it’s occurring in 
 com/factory/AbstractBaseFactory.cfc
 in the getSingleton() method.



 If I use cftry to trap the error it occurs when getSingleton() is sent a
 class name of:



 transfer.com.util.JavaLoader



 Any ideas on what might be causing this on the latest version of
 Transfer? The site works fine on an older version.



 Many thanks,

 James.



 ---

 *James  Allen*

 *E:* ja...@jamesallen.name

 *Blog:* http://jamesallen.name

 *Twitter:* @CFJamesAllen

 *Twitter: *@JamesAllenVoice (Voiceover)

 *Twitter: *@80sRewindShow (My weekly 80s radio show)



 Tune in to the best in community radio – Codebass Radio:
 http://codebassradio.net



  --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




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

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from 

Re: [transfer-dev] Updated Transfer repository on Github

2014-07-13 Thread Mark Mandel
Nice work Brian!

I'll be working with Brian to make him the official maintainer, and hook
everything up to make that easy for him to continue forward as he needs to.

Mark


On Mon, Jul 14, 2014 at 3:16 AM, Matt Quackenbush quackfu...@gmail.com
wrote:

 Nice work, Brian. While I no longer use Transfer myself, I know there are
 folks - aside from you, even (heh) - out there who still are. I love the
 spirit of open source software!
  On Jul 13, 2014 11:39 AM, Brian G brian-goo...@vfive.com wrote:

 Since I was deep in the guts of Transfer this week solving my xmlSearch()
 insanity, I have created a patched GitHub repository here:

 https://github.com/ghidinelli/transfer

 Here's what I've updated:

 * Merged the pluggable_cache to be the master
 * Worked around the xmlSearch() issue
 * Added Railo 3/4 support patch as documented here
 * Added try/catch around AOP firing
 * My version of Transfer has a number of exclusive locking improvements
 that Mark and I worked on several years ago to reduce issues under load
 while starting up which were never in the SVN repo

 I believe this repo is the best known version of Transfer and supports
 through Adobe ColdFusion 11 and Railo 4.  Given the number of existing
 projects that still rely on it, I think it will be beneficial to have a
 location that stays online. :)  Mark is going to send me the docs and I
 will put them into the Github pages alongside the code.


 Brian

 --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

  --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




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

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [transfer-dev] Coldfusion 10 and Transfer ORM?

2014-07-11 Thread Mark Mandel
Brian,

Want to take on ownership of Transfer? Seems like you're going to end up
doing it anyway :)

mark


On Sat, Jul 12, 2014 at 9:15 AM, Brian G brian-goo...@vfive.com wrote:


 This is a long running thread but I came across some recent updates on why
 Transfer (under load like on init) may be crapping out reliably:

 http://cfmlblog.adamcameron.me/2014/04/ye-olde-xmlsearche-bugge.html

 What Adam describes is exactly the error I get in XMLFileReader when it
 blows up.  Errors like:

 Failed to
 XMLSearch(/transfer/objectDefinitions/package[@name='theme']/object[@name='filter'])
 in XMLFileReader.cfc due to: [Expression] Unable to process the result of
 the XMLSearch for ''.  I couldn't wrap my head around how it had an Xpath
 search but thought it was ''.   What's interesting is that Model-Glue has a
 similar XML loader but it is single threaded on startup so it doesn't
 manifest itself there.

 Here's the source issue which was described as far back as 2008:
 http://house-of-fusion.10909.n7.nabble.com/XMLSearch-not-thread-safe-td65967.html

 And here is the Adobe bugbase issue for the xmlSearch wackiness:
 https://bugbase.adobe.com/index.cfm?event=bugid=3739102

 I have long considered rewriting the Transfer config file from XML to JSON
 due to the XML errors and it looks like this would work.  Another option
 would be to perform a duplicate() on the XML before running xmlSearch which
 fixes the problem (but introduces a performance problem) in the house of
 fusion thread.  You would add it here in XMLFileReader.cfc:

   results.addAll(xmlSearch(duplicate(collection[counter]),
 arguments.xpath));

 In my limited testing, it appears that xmlSearch() on the config is only
 done the first time a particular object is instantiated.  On my local
 laptop with a 1330-line XML file, the duplicate() takes 4-7ms.  I'm going
 to push to production and see if this solves my issues but based on Adam
 Cameron's test case, it sounds like it does.

 While I have no hair left, I'm sure glad to see there really is an issue.
 Now I'm just pissed that for 4+ years Adobe has allowed something like this
 to exist.  :\


 Brian

 --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




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

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [transfer-dev] Transfer Ehcache upgrade to Terracotta/BigMemory's Ehcache

2013-09-08 Thread Mark Mandel
Octa,

Did you end up working this out?

I'd be pretty surprised if Transfer worked with a distributed cache, but it
would be interesting to see if you got it happening.

Have a search of the mail archives - pretty sure we've discussed this
before.

Mark


On Tue, Sep 3, 2013 at 3:48 PM, Octa Karsono ocp...@gmail.com wrote:

 Hi guys,

 I am new to this group, and the whole coldfusion technology.
 Recently I am assigned to increase the scalability of an application
 developed in Coldfusion 8, Transfer ORM, and MachII framework. I am to
 deploy the application into multiserver/multinode clustering mode.
 The application is now running in multiserver cluster, but when it comes
 to making changes to the database via Transfer, the changes are not
 replicated/synchronised across other server nodes.

 I had a look at Transfersync and ActiveMQ, but I got stuck in getting it
 to work. Then I tried the pluggable_cache branch from Mark's Transfer ORM,
 and then tried to convert the ehcache in the library to one that supports
 distributed caching.

 I am trying to upgrade the pluggable cache (Ehcache) in Transfer to the
 Terracotta's latest Ehcache, which supports distributed caching.
 I downloaded a copy of Mark's pluggable_cache transfer (
 http://svn.riaforge.org/transfer/transfer/branches/pluggable_cache/),
 implemented it into my application, and it was working up to that point.
 Then I followed the instructions in this article (
 http://java.dzone.com/articles/building-high-performance) to upgrade the
 ehcache, but when I build my application, it was complaining:


 Original Exception: Type: coldspring.beanCreationException || Message:
 Bean creation exception during init() of transfer.TransferFactory ||
 Detail: Error while attempting to autowire object of type
 transfer.com.cache.CacheManager:
 [Line: 30 ::
 C:/inetpub/wwwroot/transfer_v1-1/transfer/com/exception/Exception.cfc ::
 Error while attempting to autowire object of type
 transfer.com.cache.provider.ProviderManager ::
 [Line: 80 ::
 C:/inetpub/wwwroot/transfer_v1-1/transfer/com/cache/provider/EHCacheProvider.cfc
 :: Object instantiation exception. :: An exception occurred while
 instantiating a Java object. The class must not be an interface or an
 abstract class. Error: ''.]] || Original Template:
 C:/inetpub/wwwroot/coldspring1-2-final/beans/DefaultXmlBeanFactory.cfc at
 line 893


 Have anyone experienced similar scenario?
 Or maybe give some hints on how to solve the problem that I am facing?

 Cheers,
 Octa


  --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [transfer-dev] Class path problems

2013-07-08 Thread Mark Mandel
Sounds like someone hasn't fully qualified a class path somewhere, and
ColdFusion keeps messing up it's metadata, as it is sometimes want to do.

Mark


On Fri, Jul 5, 2013 at 11:33 PM, Bob Meininger bobmeinin...@gmail.comwrote:

 Hello all,


 We're having some trouble with a strange error in our portal application.
 A couple of days a go a co-worker made a branch of the portal application,
 but he hasn't been able to get it working yet because of a 'returntype'
 error.

 The returntype error has to do with the returning object not being of type
 '*model.user.IUser*'. The object in question is a Transfer object with a
 decorator, whereas the decorator also implements an interface called *
 IUser*.

 After removing the returntype from the respective function, the
 application seemed to be working so I went and checked out the Transfer
 object.

 What I noticed was rather strange; the meta data of the object displayed
 that the object implemented the *IUser* interface but kept out the class
 path, which is *model.user. *After that I've put back the returntype on
 the function, but this time leaving the class path out( *returntype=IUser
 *instead of *returntype=model.user.IUser*). When I reloaded everything
 seemed to be working again.

 The next step that I took was to inspect the *decorator, *but I couldn't
 find any problems here as the path was correct (*model.user.IUser*).

 Also keep in mind that this application is working on multiple servers
 without problems. The only big difference between the trunk and this branch
 is that it finds itself a couple of folder levels deeper.

 It seems like something is removing the class path from the *implements* 
 attribute
 of the decorator on instantiation but I'm not sure if it is Transfer or
 Coldfusion (or magic).


 If someone knows what this problem is or how to solve it, that would be
 great! : )

 Kind regards,

 Bob Meininger
 *
 *
 *
 *


  --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






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

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Be careful of Java 7 upgrades, was Re: [transfer-dev] Coldfusion 10 and Transfer ORM?

2013-04-17 Thread Mark Mandel
Interesting!

Mark


On Thu, Apr 18, 2013 at 3:40 AM, Brian G brian-goo...@vfive.com wrote:


 Just a note to all - the errors I have been experiencing have all been on
 Java 7 with CF10.  I downgraded to Java 6 on a hunch and for the last week
 I have not had a single error.  My issues were random so I couldn't build a
 simple test case that would trigger it but I could reliably probe it once
 it had broken and demonstrate that XML objects in memory or XMLSearches
 against objects in persisted scopes were getting corrupted/lost.

 I would be VERY cautious about upgrading any CF10 applications using
 Transfer/Coldspring/Model-Glue or other XML-dependent apps to Java 7 on
 CF10.


 Brian

 --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






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

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [transfer-dev] Coldfusion 10 and Transfer ORM?

2013-04-03 Thread Mark Mandel
Why not do the try catch in here:
http://transfer.riaforge.org/index.cfm?event=page.svnviewpath=%2Ftransfer%2Ftrunk%2Fcom%2Fiofile=XMLFileReader%2Ecfc

LIne 42 of the search?

Rather than outside?

Mark


On Thu, Apr 4, 2013 at 3:30 AM, Brian G brian-goo...@vfive.com wrote:


 On Tuesday, April 2, 2013 8:47:51 PM UTC-7, Mark Mandel wrote:

 Try/catch inside the XMLFileReader - if it overflows, then load up the
 path again. It knows where the XML file is, so it can always try it again.
  http://www.2ddu.com/


 That did it... on my wedged future production server, first I ran the code
 that generated the stack overflow - still failed.  Then I ran this:


 cfset orm = application.cs.getBean(ormService) /
 cfset xmlFileReader =
 orm.getTransfer().getObjectManager().getObjectDAO().getConfigReader() /
 cfdump var=#arrayLen(xmlFileReader.getXMLCollection())#
 label=pre-reload, num of xml files /
 cfset
 xmlFileReader.addXML('/var/www/pukka/main-prod/config/transfer/transfer.xml',
 true) /
 cfdump var=#arrayLen(xmlFileReader.getXMLCollection())#
 label=post-reload, num of xml files /

 Then I re-ran the borked code and actually it still failed.  The overwrite
 flag true here doesn't overwrite it only prepends to the array of XML files
 so the search still failed when it hit the original, somehow jacked up, XML
 file.  I manually killed it with arrayDeleteAt(getXMLCollection(), 2) and
 then re-ran my error-generating code and it worked fine.

 I'm not sure how to report this... clearly something is fubar'd and it
 looks like a bug in CF but it's not reproducible in the traditional sense.
 For now, I'm going to wrap the xmlsearch with a try/catch and see if that
 works?

 Thanks for the help Mark.


  --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






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

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [transfer-dev] Coldfusion 10 and Transfer ORM?

2013-04-03 Thread Mark Mandel
Ah cool!

Hope it works for you!

MArk


On Thu, Apr 4, 2013 at 12:05 PM, Brian G brian-goo...@vfive.com wrote:


 That is where I'm doing it - but I wanted to test in prod that reloading
 the XML did indeed fix the problem, and it did.

 Here's what I wound up with in XMLFileReader.cfc:

 try
 {
 results.addAll(xmlSearch(collection[counter], arguments.xpath));
 }
 catch (any ex)
 {
 // flush the XML and try again
 setXMLCollection(arrayNew(1));
 path = listToArray(getPathList());

 for (p in path)
 {
 addXML(p);
 }

 writeLog(type=Error, file=transfer-xml, text=Failed to
 XmlSearch(#arguments.xpath#) in XMLFileReader.cfc, reloaded
 #arrayLen(path)# XML Files, trying again against
 #arrayLen(getXMLCollection())# loaded configurations... [#ex.type#]
 #ex.message#);

 // now re-search the XML
 results.addAll(xmlSearch(collection[counter], arguments.xpath));
 }

 I think that will do the trick for this particular issue.  I mean, it will
 work around whatever is really going on, at least for now.  Fingers crossed.



 On Wednesday, April 3, 2013 2:32:13 PM UTC-7, Mark Mandel wrote:

 Why not do the try catch in here:
 http://transfer.riaforge.org/**index.cfm?event=page.svnview**
 path=%2Ftransfer%2Ftrunk%**2Fcom%2Fiofile=XMLFileReader%**2Ecfchttp://transfer.riaforge.org/index.cfm?event=page.svnviewpath=%2Ftransfer%2Ftrunk%2Fcom%2Fiofile=XMLFileReader%2Ecfc

 LIne 42 of the search?

 Rather than outside?

 Mark


 On Thu, Apr 4, 2013 at 3:30 AM, Brian G brian-...@vfive.com wrote:


 On Tuesday, April 2, 2013 8:47:51 PM UTC-7, Mark Mandel wrote:

 Try/catch inside the XMLFileReader - if it overflows, then load up the
 path again. It knows where the XML file is, so it can always try it again.
  http://www.2ddu.com/


 That did it... on my wedged future production server, first I ran the
 code that generated the stack overflow - still failed.  Then I ran this:


 cfset orm = application.cs.getBean(**ormService) /
 cfset xmlFileReader = orm.getTransfer().**getObjectManager().**
 getObjectDAO().**getConfigReader() /
 cfdump var=#arrayLen(xmlFileReader.**getXMLCollection())#
 label=pre-reload, num of xml files /
 cfset 
 xmlFileReader.addXML('/var/**www/pukka/main-prod/config/**transfer/transfer.xml',
 true) /
 cfdump var=#arrayLen(xmlFileReader.**getXMLCollection())#
 label=post-reload, num of xml files /

 Then I re-ran the borked code and actually it still failed.  The
 overwrite flag true here doesn't overwrite it only prepends to the array of
 XML files so the search still failed when it hit the original, somehow
 jacked up, XML file.  I manually killed it with 
 arrayDeleteAt(**getXMLCollection(),
 2) and then re-ran my error-generating code and it worked fine.

 I'm not sure how to report this... clearly something is fubar'd and it
 looks like a bug in CF but it's not reproducible in the traditional sense.
 For now, I'm going to wrap the xmlsearch with a try/catch and see if that
 works?

 Thanks for the help Mark.


  --
 --
 Before posting questions to the group please read:
 http://groups.google.com/**group/transfer-dev/web/how-to-**
 ask-support-questions-on-**transferhttp://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:**2s7wbd5ocb8http://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 transf...@googlegroups.com
 To unsubscribe from this group, send email to transfer-dev...@**
 googlegroups.com

 For more options, visit this group at http://groups.google.com/**
 group/transfer-dev?hl=enhttp://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google
 Groups transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to transfer-dev...@**googlegroups.com.

 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .






 --
 E: mark@gmail.com

 T: http://www.twitter.com/**neurotic http://www.twitter.com/neurotic
 W: www.compoundtheory.com

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

  --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You

Re: [transfer-dev] Coldfusion 10 and Transfer ORM?

2013-04-01 Thread Mark Mandel
What's the actual error you get from Transfer when trying to create the
object?

Seems like the error from the XML dump may be a red herring.

Mark


On Tue, Apr 2, 2013 at 8:15 AM, Brian G brian-goo...@vfive.com wrote:


 Ok, so I let the app run for a few days and now I'm getting errors while
 trying to basically instantiate Transfer objects.  I've made some changes
 to public/private packaging so I can get at the Transfer configuration and
 here's what's happening:

 cfset orm = application.cs.getBean(ormService) /
 cfset t = orm.getTransfer() /
 cfset objMgr = t.getObjectManager() /
 cfset to = objMgr.getObject(event.event) /

 cfdump var=#t.getObjectManager().getObjectGateway().listClasses()#
 label=array of classes in definitions /

 cfset objDAO = objMgr.getObjectDAO() /
 cfset empty = objMgr.createEmptyObject() /
 cfset objDAO.getObject(empty, event.event) /

 cfset xmlFileReader = objDAO.getConfigReader() /
 cfset xml = xmlFileReader.getXMLCollection() /
 cfdump var=#xml# label=shows the XML in memory read by transfer
 top=1 /


 I can get up to the point where I getXMLCollection(). As soon as I try to
 navigate it with cfdump or anything else, I get a very terse err with a
 stack overflow:

 Stack Trace java.lang.StackOverflowError at
 net.sf.saxon.serialize.XMLEmitter.writeCharSequence(XMLEmitter.java:652) at
 net.sf.saxon.serialize.XMLEmitter.writeEscape(XMLEmitter.java:745) at
 net.sf.saxon.serialize.XMLEmitter.characters(XMLEmitter.java:591) at
 net.sf.saxon.serialize.UncommittedSerializer.characters(UncommittedSerializer.java:67)
 at net.sf.saxon.event.ProxyReceiver.characters(ProxyReceiver.java:186) at
 net.sf.saxon.dom.DOMSender.walkNode(DOMSender.java:172) at
 net.sf.saxon.dom.DOMSender.outputElement(DOMSender.java:235) at
 net.sf.saxon.dom.DOMSender.walkNode(DOMSender.java:150) at
 net.sf.saxon.dom.DOMSender.outputElement(DOMSender.java:235) at
 net.sf.saxon.dom.DOMSender.walkNode(DOMSender.java:150) at
 net.sf.saxon.dom.DOMSender.outputElement(DOMSender.java:235) at
 net.sf.saxon.dom.DOMSender.walkNode(DOMSender.java:150) at
 net.sf.saxon.dom.DOMSender.outputElement(DOMSender.java:235) at
 net.sf.saxon.dom.DOMSender.walkNode(DOMSender.java:150) at

 And the walkNode just repeats to infinity and the request fails.

 Interestingly I can do cfdump
 var=#xmlFileReader.search(/transfer/objectDefinitions/package[@name='event']/object[@name='event'])#
 label=Searching for event.event in the config reader /

 which works and behind the scenes that uses getXMLCollection(), but
 something is borked.  Interestingly if I try changing that search, all of
 these fail with the same stackoverflow error:

 xmlFileReader.search(/transfer/objectDefinitions/package)
 xmlFileReader.search(/transfer/objectDefinitions)
 xmlFileReader.search(//objectDefinitions/package)
 xmlFileReader.search(//objectDefinitions)

 These all failed with a slightly different but XML-related error:

 java.lang.StackOverflowError at
 org.apache.xerces.dom.ParentNode.item(Unknown Source) at
 net.sf.saxon.dom.NodeWrapper$ChildEnumeration.skipFollowingTextNodes(NodeWrapper.java:1166)
 at
 net.sf.saxon.dom.NodeWrapper$ChildEnumeration.next(NodeWrapper.java:1194)
 at
 net.sf.saxon.tree.util.Navigator$EmptyTextFilter.next(Navigator.java:918)
 at
 net.sf.saxon.tree.util.Navigator$DescendantEnumeration.advance(Navigator.java:1052)
 at
 net.sf.saxon.tree.util.Navigator$DescendantEnumeration.advance(Navigator.java:)
 at
 net.sf.saxon.tree.util.Navigator$BaseEnumeration.next(Navigator.java:949)
 at
 net.sf.saxon.tree.util.Navigator$DescendantEnumeration.advance(Navigator.java:1043)
 at  (which repeats until the end)

 I've gotten to the point where I can access a messed up XMLCollection.
 Any suggestions on how to traverse the collection looking for what appears
 to be a recursive problem?

 (thinking about it, maybe I'm not supposed to be able to dump it because
 of links and m2o, o2m, etc?)


 Brian

  --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






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

2 Devs from Down Under Podcast

Re: [transfer-dev] Coldfusion 10 and Transfer ORM?

2013-04-01 Thread Mark Mandel
In the stack overflow - is there any CF code being processed?

Mark


On Tue, Apr 2, 2013 at 12:18 PM, Brian G brian-goo...@vfive.com wrote:


 That could be - but since the stack trace just loops infinitely, I can't
 see where the error is occurring.  I'm not getting any errors in exception
 or coldfusion-out.log either. I get a single line in application.log that
 says:

 Error,ajp-bio-8016-exec-10,03/31/13,20:48:26,,

 FWIW, the error from the XML dump is the same one that I get when trying
 to process these two objects.  The code is pretty basic... load two
 objects, create another two, set some properties, save the two new ones and
 delete the two existing ones.  But it's spread across a few MG controller
 methods which makes it kind of hard to pin point.  I'll see if I can figure
 out a way to replicate in a test script.


 Brian


 On Monday, April 1, 2013 5:02:53 PM UTC-7, Mark Mandel wrote:

 What's the actual error you get from Transfer when trying to create the
 object?

 Seems like the error from the XML dump may be a red herring.

 Mark


 On Tue, Apr 2, 2013 at 8:15 AM, Brian G brian-...@vfive.com wrote:


 Ok, so I let the app run for a few days and now I'm getting errors while
 trying to basically instantiate Transfer objects.  I've made some changes
 to public/private packaging so I can get at the Transfer configuration and
 here's what's happening:

 cfset orm = application.cs.getBean(**ormService) /
 cfset t = orm.getTransfer() /
 cfset objMgr = t.getObjectManager() /
 cfset to = objMgr.getObject(event.event**) /

 cfdump var=#t.getObjectManager().**getObjectGateway().**listClasses()#
 label=array of classes in definitions /

 cfset objDAO = objMgr.getObjectDAO() /
 cfset empty = objMgr.createEmptyObject() /
 cfset objDAO.getObject(empty, event.event) /

 cfset xmlFileReader = objDAO.getConfigReader() /
 cfset xml = xmlFileReader.**getXMLCollection() /
 cfdump var=#xml# label=shows the XML in memory read by transfer
 top=1 /


 I can get up to the point where I getXMLCollection(). As soon as I try
 to navigate it with cfdump or anything else, I get a very terse err with
 a stack overflow:

 Stack Trace java.lang.StackOverflowError at net.sf.saxon.serialize.**
 XMLEmitter.writeCharSequence(**XMLEmitter.java:652) at
 net.sf.saxon.serialize.**XMLEmitter.writeEscape(**XMLEmitter.java:745)
 at net.sf.saxon.serialize.**XMLEmitter.characters(**XMLEmitter.java:591)
 at 
 net.sf.saxon.serialize.**UncommittedSerializer.**characters(**UncommittedSerializer.java:67)
 at net.sf.saxon.event.**ProxyReceiver.characters(**ProxyReceiver.java:186)
 at net.sf.saxon.dom.DOMSender.**walkNode(DOMSender.java:172) at
 net.sf.saxon.dom.DOMSender.**outputElement(DOMSender.java:**235) at
 net.sf.saxon.dom.DOMSender.**walkNode(DOMSender.java:150) at
 net.sf.saxon.dom.DOMSender.**outputElement(DOMSender.java:**235) at
 net.sf.saxon.dom.DOMSender.**walkNode(DOMSender.java:150) at
 net.sf.saxon.dom.DOMSender.**outputElement(DOMSender.java:**235) at
 net.sf.saxon.dom.DOMSender.**walkNode(DOMSender.java:150) at
 net.sf.saxon.dom.DOMSender.**outputElement(DOMSender.java:**235) at
 net.sf.saxon.dom.DOMSender.**walkNode(DOMSender.java:150) at

 And the walkNode just repeats to infinity and the request fails.

 Interestingly I can do cfdump var=#xmlFileReader.search(/**
 transfer/objectDefinitions/**package[@name='event']/object[**@name='event'])#
 label=Searching for event.event in the config reader /

 which works and behind the scenes that uses getXMLCollection(), but
 something is borked.  Interestingly if I try changing that search, all of
 these fail with the same stackoverflow error:

 xmlFileReader.search(/**transfer/objectDefinitions/**package)
 xmlFileReader.search(/**transfer/objectDefinitions)
 xmlFileReader.search(//**objectDefinitions/package)
 xmlFileReader.search(//**objectDefinitions)

 These all failed with a slightly different but XML-related error:

 java.lang.StackOverflowError at 
 org.apache.xerces.dom.**ParentNode.item(Unknown
 Source) at net.sf.saxon.dom.NodeWrapper$**ChildEnumeration.**
 skipFollowingTextNodes(**NodeWrapper.java:1166) at
 net.sf.saxon.dom.NodeWrapper$**ChildEnumeration.next(**NodeWrapper.java:1194)
 at 
 net.sf.saxon.tree.util.**Navigator$EmptyTextFilter.**next(Navigator.java:918)
 at 
 net.sf.saxon.tree.util.**Navigator$**DescendantEnumeration.advance(**Navigator.java:1052)
 at 
 net.sf.saxon.tree.util.**Navigator$**DescendantEnumeration.advance(**Navigator.java:)
 at 
 net.sf.saxon.tree.util.**Navigator$BaseEnumeration.**next(Navigator.java:949)
 at 
 net.sf.saxon.tree.util.**Navigator$**DescendantEnumeration.advance(**Navigator.java:1043)
 at  (which repeats until the end)

 I've gotten to the point where I can access a messed up XMLCollection.
 Any suggestions on how to traverse the collection looking for what appears
 to be a recursive problem?

 (thinking about it, maybe I'm not supposed to be able to dump it because
 of links and m2o, o2m, etc?)


 Brian

Re: [transfer-dev] Coldfusion 10 and Transfer ORM?

2013-04-01 Thread Mark Mandel
Yeah, this sounds like a bizarre issue with the XML parser.

JRuby is very nice though ;)

Mark


On Tue, Apr 2, 2013 at 3:11 PM, Brian G brian-goo...@vfive.com wrote:



 On Monday, April 1, 2013 6:38:18 PM UTC-7, Mark Mandel wrote:

 In the stack overflow - is there any CF code being processed?

 Mark


 Stack trace is just filled with the repetitive XML processing error.  It
 never shows any CFML templates/codes/lines/etc.  Makes it pretty hard to
 diagnose??

 I'm going to try and replicate the code in my controllers/methods and push
 it live and see if I can get it to take.  It's hard to isolate it as
 restarting the server would likely make *this* issue go away but some other
 one pop up in a few days.  I think I'm going to start taking Ruby classes.
 :)


 Brian

 --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






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

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [transfer-dev] Coldfusion 10 and Transfer ORM?

2013-03-27 Thread Mark Mandel
There have been some posts on list of people who have done exactly that.
Pretty sure some people wrote some generators to handle it too, although
I'm not sure if anyone published them.

Mark


On Thu, Mar 28, 2013 at 7:41 AM, Brian G brian-goo...@vfive.com wrote:


 On Tuesday, March 26, 2013 4:12:48 PM UTC-7, Mark Mandel wrote:

 ... Just when I think I've heard the last call for Transfer ;o)
 http://www.2ddu.com/


 I would pay for a Migration-to-ORM guide... hint hint.  It would save me
 from floundering around and the gotchas I'm sure related to relationships
 and caching.

 --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






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

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [transfer-dev] Coldfusion 10 and Transfer ORM?

2013-03-27 Thread Mark Mandel
See! Easy solution! ;) Use abstract classses :)

* ducks and hides *

Sorry, couldn't resist.

Mark


On Thu, Mar 28, 2013 at 11:31 AM, Brian G brian-goo...@vfive.com wrote:


 In my searching I have uncovered people planning to do it or saying they
 did it but no real specifics other than to use abstract classes.


 On Wednesday, March 27, 2013 3:25:24 PM UTC-7, Mark Mandel wrote:

 There have been some posts on list of people who have done exactly that.
 Pretty sure some people wrote some generators to handle it too, although
 I'm not sure if anyone published them.

  --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






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

-- 
-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [transfer-dev] Coldfusion 10 and Transfer ORM?

2013-03-26 Thread Mark Mandel
That is odd.

You can get at it through the ObjectManager:
http://docs.transfer-orm.com/html/transferapi//transfer/com/Transfer.html#getObjectManager()

Mark


On Wed, Mar 27, 2013 at 6:21 AM, Brian G brian-goo...@vfive.com wrote:

 Ok, let me throw out an oddity... and see if anyone can help me think
 through where to log to understand what is happening:

 I have an object, event.event, it has a property, uidRegistrar.  I'm
 trying to create an event object and the decorate has a configure() that
 sets it null: setUidRegistrarNull().  Been in production for 3 years, all
 good.  On CF10 however, I'm getting:

 transfer.com.object.exception.**PropertyNotFoundException: The property
 that was searched for could not be found

 The property 'uidregistrar' could not be found in the object 'event.event'

- /var/www/pukka/shared-prod/**transfer/com/exception/**Exception.cfc (
*30, CFTHROW*)
- 
 /var/www/pukka/shared-prod/**transfer/com/object/exception/**PropertyNotFoundException.cfc
(*29, CF_UDFMETHOD*)
- /var/www/pukka/shared-prod/**transfer/com/object/Object.cfc (*233,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/**transfer/com/sql/Nullable.cfc (*307,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/**transfer/com/sql/Nullable.cfc (*175,
CF_UDFMETHOD*)
- /var/www/pukka/shared-prod/**generated/event.event$**
9BAD77B8699F80787CCAB85B8FEC65**1C.transfer (*212, CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/**generated/event.event@**
9BAD77B8699F80787CCAB85B8FEC65**1C.transfer (*408, CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/**model/event/event.cfc (*36, CF_UDFMETHOD
*)
- /var/www/pukka/shared-prod/**transfer/com/**TransferDecorator.cfc (*46,
CF_UDFMETHOD*)
- /var/www/pukka/shared-prod/**transfer/com/Transfer.cfc (*77,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/**transfer/com/Transfer.cfc (*113,
CF_UDFMETHOD*)
- /var/www/pukka/shared-prod/**model/event/eventGateway.cfc (*138,
CF_TEMPLATEPROXY*)


 Now, as I've mentioned, I'm really, really confident that the property is
 defined in transfer.xml. :)

 Now here's the curious part.  In the file /var/www/pukka/shared-prod/
 **generated/event.event$**9BAD77B8699F80787CCAB85B8FEC65**1C.transfer,
 the methods setuidregistrar, getuidregistrar and setuidregistrarnull are
 all defined.   It's this getNullable().getNullUUID(**getClassName(),
 uidregistrar) line that is throwing the error:


 cffunction name=setuidregistrarNull access=public returntype=void
 default=void hint=Set uidregistrar to its NULL value' output=false
 cfscript
 var nullValue = getNullable().getNulluuid(**getClassName(),
 uidregistrar);
 setuidregistrar(nullValue);
 /cfscript
 /cffunction

 So in Nullable.cfc, hasNullValue() tries to get the uidregistrar property
 on event.event:

 var property = object.getPropertyByName(**arguments.propertyName);

 And it fails to find it in the property map inside Object.cfc:

 cffunction name=getPropertyByName hint=Gets a property by name. Throws
 PropertyNotFoundException if the property doesn't exist access=public
 returntype=Property output=false
 cfargument name=name hint=The name of the property type=string
 required=Yes
 cfscript
 var map = getPropertyMap();

 if(StructKeyExists(map, arguments.name))
 {
 return map[arguments.name];
 }

 if(getPrimaryKey().getName() eq arguments.name)
 {
 return getPrimaryKey();
 }

 createObject(component, transfer.com.object.**exception.**
 PropertyNotFoundException).**init(getClassName(), arguments.name);
 /cfscript
 /cffunction

 So the error is then thrown.  Clearly impossible, I would think, for
 Transfer to know the property exists and generate the transfer file with
 the generated methods but then not know it exists when I try to retrieve it
 and throws an error.  Unfortunately it's happening. :)

 So... what I want to know is, is there a way to get at Transfer's
 configuration after it's parsed by XMLFileReader and dump it somehow?  How
 can I get a reference to what Transfer thinks is the current configuration
 and view it to see how it matches/differs what is in transfer.xml?  I know
 it shouldn't be different, but it is, so at least finding out if there's
 anything consistent in the failure would get me pointed towards a possible
 solution.


 Brian

  --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 

Re: [transfer-dev] Re: Coldfusion 10 and Transfer ORM?

2013-03-20 Thread Mark Mandel
That seems super weird, it's all pretty standard Xpath and XMLSearch.

I'd suggest having a poke around in ObjectDAO, and see what is going on in
getObject() with the xpath that is generated and what result comes back.

http://transfer.riaforge.org/index.cfm?event=page.svnviewpath=%2Ftransfer%2Ftrunk%2Fcom%2Fobjectfile=ObjectDAO%2Ecfc

Mark


On Thu, Mar 21, 2013 at 10:33 AM, Matt Quackenbush quackfu...@gmail.comwrote:

 I can't help you with CF10 (have never even looked at it; hopefully never
 will), but perhaps you can run the Transfer-powered app on a Railo instance
 while you're building out the CF10 ORM-powered app?  I've heard that some
 folks have had success running Transfer on Railo 3.x. You could run it as a
 WAR and should be able to stand CF10 up alongside it.

 HTH




 On Wed, Mar 20, 2013 at 6:01 PM, Brian G brian-goo...@vfive.com wrote:


 I'll share a few more odd errors just to add context.  I restarted the
 app (refreshed Transfer) and now several pages that use Transfer (but not
 all pages) are failing with:

 Expression: Unable to process the result of the XMLSearch for ''.

 ColdFusion is unable to process the result of the XPath search. You may
 have an undefined variable in the xpath expression.

 http://www3.motorsportreg.com:443/em360/index.cfm/event/profile.types

- /var/www/pukka/shared-prod/transfer/com/io/XMLFileReader.cfc (*52,
CF_CFPAGE*)
- /var/www/pukka/shared-prod/transfer/com/object/ObjectGateway.cfc (*103,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/object/ObjectManager.cfc (*294,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/object/ObjectManager.cfc (*66,
CF_UDFMETHOD*)
- /var/www/pukka/shared-prod/transfer/com/sql/TransferGateway.cfc (*109,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/sql/SQLManager.cfc (*138,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/Transfer.cfc (*513,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/model/club/clubService.cfc (*706,
CF_TEMPLATEPROXY*)

 Restarted, this time the random error is:
  The requested object could not be found in the config file Could not
 find 'theme.theme' in
 '/var/www/pukka/main-prod/config/transfer/transfer.xml'.  The error
 occurred in */var/www/pukka/shared-prod/transfer/com/exception/Exception.cfc:
 line 30*
 *Called from* 
 /var/www/pukka/shared-prod/transfer/com/object/exception/TransferObjectNotFoundException.cfc:
 line 31
 *Called from* /var/www/pukka/shared-prod/transfer/com/object/ObjectDAO.cfc:
 line 71
 *Called from* 
 /var/www/pukka/shared-prod/transfer/com/object/ObjectManager.cfc:
 line 61
 *Called from* 
 /var/www/pukka/shared-prod/transfer/com/dynamic/KeyRationalise.cfc:
 line 41
 *Called from* 
 /var/www/pukka/shared-prod/transfer/com/dynamic/DynamicManager.cfc:
 line 59
 *Called from* /var/www/pukka/shared-prod/transfer/com/Transfer.cfc: line
 701
 *Called from* /var/www/pukka/shared-prod/transfer/com/Transfer.cfc: line
 98
 *Called from* /var/www/pukka/shared-prod/model/theme/themeService.cfc:
 line 68


 And

 Could not find 'event.event' in
 '/var/www/pukka/main-prod/config/transfer/transfer.xml'.

- /var/www/pukka/shared-prod/transfer/com/exception/Exception.cfc (*30,
CFTHROW*)
- 
 /var/www/pukka/shared-prod/transfer/com/object/exception/TransferObjectNotFoundException.cfc
(*31, CF_UDFMETHOD*)
- /var/www/pukka/shared-prod/transfer/com/object/ObjectDAO.cfc (*71,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/object/ObjectManager.cfc (*61,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/dynamic/KeyRationalise.cfc (
*41, CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/dynamic/DynamicManager.cfc (
*59, CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/Transfer.cfc (*701,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/Transfer.cfc (*98,
CF_UDFMETHOD*)
- /var/www/pukka/shared-prod/model/event/eventGateway.cfc (*138,
CF_TEMPLATEPROXY*)

 Bizarre-o.

 Hopefully I'm not the last person using this and someone can help?
 Otherwise I am paying for extra servers until I can rewrite the
 (significantly-sized) app to use ORM. :(

 --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To 

Re: [transfer-dev] Coldfusion 10 and Transfer ORM?

2013-03-20 Thread Mark Mandel
Oooh yeah. I'd forgotten about that.

Mark


On Thu, Mar 21, 2013 at 11:32 AM, Jeremy Firsenbaum
jfirsenb...@gmail.comwrote:

 Brian - I've had Transfer running on CF10 in production for close to a
 year now. If I recall correctly the only change I had to make to the newer
 ehcache-based version of transfer is this:

 com.factory.CFMLVersion.cfc
 change line 40 to:
 if(server.coldfusion.productversion.startsWith(8) OR
 server.coldfusion.productversion.startsWith(9) OR
 server.coldfusion.productversion.startsWith(10))

 Hope that helps,
 Jeremy


 On Mar 20, 2013, at 7:01 PM, Brian G brian-goo...@vfive.com wrote:


 I'll share a few more odd errors just to add context.  I restarted the app
 (refreshed Transfer) and now several pages that use Transfer (but not all
 pages) are failing with:

 Expression: Unable to process the result of the XMLSearch for ''.

 ColdFusion is unable to process the result of the XPath search. You may
 have an undefined variable in the xpath expression.

 http://www3.motorsportreg.com:443/em360/index.cfm/event/profile.types

- /var/www/pukka/shared-prod/transfer/com/io/XMLFileReader.cfc (*52,
CF_CFPAGE*)
- /var/www/pukka/shared-prod/transfer/com/object/ObjectGateway.cfc (*103,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/object/ObjectManager.cfc (*294,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/object/ObjectManager.cfc (*66,
CF_UDFMETHOD*)
- /var/www/pukka/shared-prod/transfer/com/sql/TransferGateway.cfc (*109,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/sql/SQLManager.cfc (*138,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/Transfer.cfc (*513,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/model/club/clubService.cfc (*706,
CF_TEMPLATEPROXY*)


 Restarted, this time the random error is:
 The requested object could not be found in the config file Could not find
 'theme.theme' in '/var/www/pukka/main-prod/config/transfer/transfer.xml'.
  The error occurred in 
 */var/www/pukka/shared-prod/transfer/com/exception/Exception.cfc:
 line 30*
 *Called from* 
 /var/www/pukka/shared-prod/transfer/com/object/exception/TransferObjectNotFoundException.cfc:
 line 31
 *Called from* /var/www/pukka/shared-prod/transfer/com/object/ObjectDAO.cfc:
 line 71
 *Called from* 
 /var/www/pukka/shared-prod/transfer/com/object/ObjectManager.cfc:
 line 61
 *Called from* 
 /var/www/pukka/shared-prod/transfer/com/dynamic/KeyRationalise.cfc:
 line 41
 *Called from* 
 /var/www/pukka/shared-prod/transfer/com/dynamic/DynamicManager.cfc:
 line 59
 *Called from* /var/www/pukka/shared-prod/transfer/com/Transfer.cfc: line
 701
 *Called from* /var/www/pukka/shared-prod/transfer/com/Transfer.cfc: line
 98
 *Called from* /var/www/pukka/shared-prod/model/theme/themeService.cfc:
 line 68


 And

 Could not find 'event.event' in
 '/var/www/pukka/main-prod/config/transfer/transfer.xml'.

- /var/www/pukka/shared-prod/transfer/com/exception/Exception.cfc (*30,
CFTHROW*)
- 
 /var/www/pukka/shared-prod/transfer/com/object/exception/TransferObjectNotFoundException.cfc
(*31, CF_UDFMETHOD*)
- /var/www/pukka/shared-prod/transfer/com/object/ObjectDAO.cfc (*71,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/object/ObjectManager.cfc (*61,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/dynamic/KeyRationalise.cfc (*41,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/dynamic/DynamicManager.cfc (*59,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/Transfer.cfc (*701,
CF_TEMPLATEPROXY*)
- /var/www/pukka/shared-prod/transfer/com/Transfer.cfc (*98,
CF_UDFMETHOD*)
- /var/www/pukka/shared-prod/model/event/eventGateway.cfc (*138,
CF_TEMPLATEPROXY*)

 Bizarre-o.

 Hopefully I'm not the last person using this and someone can help?
 Otherwise I am paying for extra servers until I can rewrite the
 (significantly-sized) app to use ORM. :(

  --
 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 Before posting questions to the group please 

Re: [transfer-dev] ColdFusion Security Hotfix APSB12-21 and Transfer ORM/Javaloader

2012-09-12 Thread Mark Mandel
Looking at it, the hotfix doesn't force you to lock down getPageContext(),
so what happens if you do apply the hotfix, does it break anything?

Mark

On Wed, Sep 12, 2012 at 2:35 PM, Dave davidame...@gmail.com wrote:

 I noticed that Adobe has released a hotfix (
 http://helpx.adobe.com/coldfusion/kb/coldfusion-security-hotfix-apsb12-21.html
  )
 that:

 This Hot fix allows you to add getPageContext method in SandBox. For
 securing your applications, you should update ColdFusion sandbox to include
 this method to the list of disabled functions.

 I notice that TransferORM uses getPageContext in the Javaloader in
  arguments.parentClassLoader =
 getPageContext().getClass().getClassLoader();

 So my questions are:
 1. Does anyone know what this hot-fix actually addresses, and if we really
 need to apply it?
 2. Can the Javaloader be re-factored to not need getPageContext().

 Dave

  --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


[transfer-dev] Re: Moving Wiki to Static HTML?

2012-06-09 Thread Mark Mandel
This has now been done. Just waiting for the DNS to propagate out.

Mark

On Sat, Jun 9, 2012 at 2:45 PM, Mark Mandel mark.man...@gmail.com wrote:

 Hey all - I'm in the process of moving from a VPS, and moving all my bits
 and pieces onto AWS.

 I assume there would be no major objection if I take a static snapshot of
 the Transfer Documentation and host that online (instead of the current
 Wiki). I figured there are still people using the documentation, but there
 was no reason for it to be dynamic anymore.

 Let me know if there are any major objections.

 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/




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

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


[transfer-dev] Moving Wiki to Static HTML?

2012-06-08 Thread Mark Mandel
Hey all - I'm in the process of moving from a VPS, and moving all my bits
and pieces onto AWS.

I assume there would be no major objection if I take a static snapshot of
the Transfer Documentation and host that online (instead of the current
Wiki). I figured there are still people using the documentation, but there
was no reason for it to be dynamic anymore.

Let me know if there are any major objections.

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/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] How to retrieve the accessors of a Transferobject?

2011-09-11 Thread Mark Mandel
This is what you are looking for I believe:
http://docs.transfer-orm.com/html/transferapi/transfer/com/Transfer.html#getObjectManager()

Mark

On Sun, Sep 11, 2011 at 9:08 PM, Marc marc.at.comp...@gmail.com wrote:

 Hi,

 I want to retrieve a list of all setters in a Transferobject. What I do is
 this:

 !---
 local.TO = The Transfer factory object
 className= a valid classname
 ---

 !--- Create a new domain object ---
 cfset local.domainObject=local.TO.new(className)

 cfdump var=#local.domainObject#
 cfset local.domainObjectMetaData=GetMetaData(local.domainObject)
 cfdump var=#local.domainObjectMetaData#
 cfdump var=#StructFind(local.domainObjectMetaData,'functions')#
 cfabort

 cfdump var=#local.domainObject#
 This first dump gives a struct with a key functions ccontaining the
 getters and setters I defined in the Transfer.xml. so if I defined there a
 property url in the classname object, this struct contains a setUrl and a
 getUrl function.

 cfdump var=#local.domainObjectMetaData#
 This second dump however, gives me a dump of the Transfer factory object,
 not of the instantiated class I got in the previous dump. It contains a key
 functions but the setters and getters from the instantiated class
 (local.domainObjectMetaData) like getUrl and setUrl are gone.

 cfdump var=#StructFind(local.domainObjectMetaData,'functions')#
 This third dump is of no use for me since it does not contain the accessors
 I am looking for.

 Is there a way to retrieve this information - the accessors of a
 Transferobject?

 Marc

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) + Flex - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

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

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Non case sensitive searches, revisited SOLVED! ... for now

2011-09-04 Thread Mark Mandel
I think you will need to adapt the CF code, as it's the one that walks the
AST that ANTLR generates.

Mark

2011/9/1 Pedro Bezunartea López pe...@bezunartea.net


 I should also add that the changes posted support TQL queries with the
 format Object.Property LIKE :param, and not :param LIKE Object.Property.

 Now that I better understand how antlrTQL works, I'd like to add support
 for SQL functions that only require one argument: LOWER(), UPPER() and the
 like. The plan is:

 - Modify the TQL grammar to support this kind of functions and pass them
 through the parser untouched.
 - Adapt transfer coldfusion code to ignore these functions, and also leave
 them untouched.

 The question is, how should I approach changes in the coldfusion code? Or
 better yet, do I really need to adapt the coldfusion code? If the output
 from antlrTQL is already proper SQL I might not need to modify it at all.

 Any comments?


 Pedro.

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) + Flex - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

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

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] EhCache - Out of process

2011-08-30 Thread Mark Mandel
Be surprised if anyone was, considering the serialisation issues with CFCs.

Mark

On Wed, Aug 31, 2011 at 7:06 AM, Dave davidame...@gmail.com wrote:

 Is anyone using Transfer with EhCache in an Out of process (either
 Terracotta or BigMemory) scenario?

 Dave

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) + Flex - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

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

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] listByProperty() and NULL values

2011-08-28 Thread Mark Mandel
You will need to use TQL for this.

Mark

On Fri, Aug 26, 2011 at 7:34 PM, Robert Rawlins rob...@supporttime.comwrote:

 Hello Guys,

 I want to use listByProperty() to find all instance of a class who's
 particular property is NULL, or NOT NULL

 How can I do this? I know I can search for specific values, but what about
 NULL? Is that possible? Or do I need a TQL query?

 Thanks.

 Robert

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) + Flex - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

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

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Cache Provider for Request Scope cache?

2011-08-25 Thread Mark Mandel
I don't believe there is.

Would be easy to write one though.

Mark

On Wed, Aug 24, 2011 at 10:23 AM, Dave davidame...@gmail.com wrote:

 Hey All,

 With the pluggable cache branch - is there a cache provider for
 request scope based cache?

 Thanks,
 Dave

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) + Flex - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

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

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Problem on busy site with creating Transfer objects

2011-07-05 Thread Mark Mandel
That's weird - the Transfer file doesn't get regenerated unless the
definition changes, and they would fail at the start if they failed at all.

What is the error exactly? Does it give you any sort of error/stack trace?

What do you do when it happens? Delete the files? reboot the server?

Mark

On Tue, Jul 5, 2011 at 7:31 PM, EJ Jaquet ejjaq...@gmail.com wrote:

 Error found in: /model/transfer/definitions/site
 $16D6F39D1F598A5CF5FE1A5E0CE77E06.transfer




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

cf.Objective(ANZ) + Flex - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Problem on busy site with creating Transfer objects

2011-07-05 Thread Mark Mandel
', listLast(arguments.targetPage,
  '/'))gt;br b63: lt;cfset
  application.cbBootstrap.processColdBoxRequest()gt;/bbr 64: lt;/
  cfifgt;br 65: br
  codeprintplain
  string  61: !--- Process A ColdBox Request Only --- 62: cfif
  findNoCase('index.cfm', listLast(arguments.targetPage, '/')) 63:
  cfset application.cbBootstrap.processColdBoxRequest() 64: /cfif
  65:
  column
  number  0
  id
  string  ??
  line
  number  63
  raw_trace
  string  application_cfc$cf.udfCall(E:\var\www\ecs\Application.cfc:63)
  template
  string  E:\var\www\ecs\Application.cfc
  type
  string  cfml
 
  Kind regards,
 
  Erik-Jan
  On 5 jul, 12:01, Mark Mandel mark.man...@gmail.com wrote:
 
 
 
 
 
 
 
   That's weird - the Transfer file doesn't get regenerated unless the
   definition changes, and they would fail at the start if they failed at
 all.
 
   What is the error exactly? Does it give you any sort of error/stack
 trace?
 
   What do you do when it happens? Delete the files? reboot the server?
 
   Mark
 
   On Tue, Jul 5, 2011 at 7:31 PM, EJ Jaquet ejjaq...@gmail.com wrote:
Error found in: /model/transfer/definitions/site
$16D6F39D1F598A5CF5FE1A5E0CE77E06.transfer
 
   --
   E: mark.man...@gmail.com
   T:http://www.twitter.com/neurotic
   W:www.compoundtheory.com
 
   cf.Objective(ANZ) + Flex - Nov 17, 18 - Melbourne
 
  ...
 
  meer lezen »

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) + Flex - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] access denied (java.io.FilePermission) JavaProxy.cfc read

2011-07-03 Thread Mark Mandel
Oooh.. that's a tricky one.

Basically Transfer stored an instance of JavaLoader in the server scope, so
that it never expires out (which can cause a permgen memory leak). If there
are multiple copies of Transfer that are the same version on a server, they
share the same JavaLoader, as they all use the same classes.

This is actually the first time I've heard of this issue - but I can see why
it can be one. Because they have also turned off access to CF internal Java
objects, JavaLoader is using it's own JavaProxy.cfc - which you don't have
access to. If it was just creating it's usual Java objects, you wouldn't
have an issue.

If this is an issue for you - a quick workaround would be - go into the
JavaLoader facade:
http://transfer.riaforge.org/index.cfm?event=page.svnviewpath=%2Ftransfer%2Ftrunk%2Fcom%2Futilfile=JavaLoader%2Ecfc

And change the UUID to something else (maybe something with your application
name in it).

Mark

On Sun, Jul 3, 2011 at 3:29 AM, Marc marc.at.comp...@gmail.com wrote:

 Hi,

 I have a website on a shared hosting server. A while ago I reported a
 problem: my webapplication tried to read a component (JavaLoader) in a
 directory other different than mine so Coldfusion threw a file permission
 error. The problem was finally  resolved by my shared host via a hack. Now I
 get the same problem again:

 access denied (java.io.FilePermission 
 D:\home\spanishwizards.com\wwwroot\transfer\com\util\javaloader\JavaProxy.cfc
 read).

 My domain is hosted a D:\home\marcbakker.com so that error makes sense.
 Transfer should try to read D:\home\marcbakker.com
 \wwwroot\transfer\com\util\javaloader\JavaProxy.cfc

 Backtracking via the CF errortrace I came here at

 D:\home\marcbakker.com\subdomains\eenschoolintogo\transfer\com\util\JavaLoader.cfc
 line 55
 return getJavaLoader().create(arguments.className);

 which is

 cffunction name=getJavaLoader access=public
 returntype=transfer.com.util.javaLoader.JavaLoader output=false
 cfreturn StructFind(application, getJavaLoaderKey()) /
 /cffunction

 Dumping the return value of this function with getMetaData() the path key
 showed the component was located at D:\home\spanishwizards.com
 \wwwroot\transfer\com\util\javaloader\JavaProxy.cfc.

 So basically what happens here is Transfer is retrieving a component which
 is cached in the Server scope. This component is located at a specific
 domain on the shared host that host multiple sites, each of which could be
 using Transfer.. Then I get an error since CF tries to read JAvaProxy.cfc at
 a path location belonging to one of te many hosted sites.

 I'm not quite sure what happens here but am wondering - why does Transfer
 store components in the Server scope? Doesn't this break code in a shared
 hosting environment? Couldn't it better cache stuff in the Application
 scope?

 I attach a dump of the error so you can see the error stack.

 Again - I might be totally off but I was just wondering.

 Thanks,

 Marc

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Stop Transfer automatically setting a date/time on a property of type date

2011-06-28 Thread Mark Mandel
Yep, use configure() to set it back to a null value when it is first
created. It's what configure() is for :)

Mark



On Wed, Jun 29, 2011 at 7:02 AM, Clarkee21 clarke...@gmail.com wrote:

 Hi there,

 Subject line says it all but basically I want to leave a column in the
 database as null until the very end of our application. It's being used as a
 timer for reporting purposes so I don't want to stamp it until completion.

 Is there anyway I can stop it apart from putting it back myself 
 currently I'm using configure() to reset it.

 Cheers,
 James

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Custom ID Generation

2011-06-23 Thread Mark Mandel
BeforeCreate with the class check sounds like the way to go - just use that
to manually set the ID of the object before it is inserted, and you should
be all good to go.

Mark

On Fri, Jun 24, 2011 at 12:27 AM, Robert Rawlins rob...@supporttime.comwrote:

 Hello All,

 I've got a use case which requires me to generate unique ID's for records,
 based on an augmented incrementing numerical ID. This is for a purchasing
 system and will generate ID's like:

 PO-0002
 PO-0003
 PO-0004
 PO-0005

 I can't find any details in the documents about being able to easily define
 a custom generator. Is there a way to do that?

 My other thought is to perhaps use a BeforeCreate event to generate the ID,
 is that a reasonable way of doing this? My worry is that the beforeCreate
 gets called for every single entity, so I assume I'd have to put some logic
 in the event handler that checks the class type before generating the ID?

 Thanks,

 Robert

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] O2M and clone() results in same object returning different values

2011-06-02 Thread Mark Mandel
So.. if I think I understand right...

Basically, I think the issue boils down to this - the object you have in
session may, or may not be in the Transfer cache.

So it may not be updated when the TO in the Transfer cache gets updated.

This is where I would just store the ID of the object you reference in
session, and let Transfer manage the session.

Does that work? Or did I miss the point of this?

Mark

On Fri, Jun 3, 2011 at 7:39 AM, Brian G brian-goo...@vfive.com wrote:

 I have members O2M clubmemberships in my app and I have a workflow
 where members can edit clubmemberships on their account.  The
 clubmembership object is lazy loaded and proxied as an array.  The
 flow looks like:

 * member.getClubMembership(clubid)
 * set the values
 * save it

 Obviously sometimes that returns a persisted object and other times it
 returns an unpersisted object when adding a new clubmembership.  To
 avoid polluting the cache, the code today looks like:

 mem = member.clone();
 clubmem = mem.getClubMembership(clubid);
 clubmem.set*(x,y,z);
 if (not clubmem.validate())
  // report errors to user
 else
  transfer.save(clubmem);

 I use the clone so that, if it doesn't pass validation, it doesn't
 leave the original member in the cache with a broken-but-attached
 clubmembership.

 I have been experiencing weird behavior where saving the
 clubmembership does not eliminate the clone'd member and until the
 cache is flushed (discardAll()), running
 transfer.get(member).getClubMembership(clubid) continues to show me
 old values.  E.g., the parentmember is not discarded/synchronized with
 the cache when I save the clubmembership.

 Now, I figured out via a thread from James Allen how to partially
 correct this by introducing a transfer.discard(member) before the
 transfer.save(clubmembership).  However, it hasn't quite fixed it all
 the way so I suspect I may not be addressing the root issue.

 This manifests itself where clubmembership object is M2O on an
 attendee object.  Basically a clubmember can be an attendee for 1-n
 events so the attendee object has two M2Os: clubmembership and event
 along with some other properties.  During the registration process,
 this attendee object is put into the session scope.  Let's call it
 session.attendee.  The issue I'm having is that even after adding the
 discard() before saving the clubmembership, the attendee object in the
 session is still returning the pre-update version of the
 clubmembership when I call attendee.getClubMembership().  Here it is
 in psuedo code:

 // start with a known memberid
 transfer.get(member, id).getClubMembership(clubid).getMemberID() -
 1234
 // load the registration form, which creates session.attendee:
 session.attendee.getClubMembership().getMemberID() - 1234

 // we want to change the member id, so we edit it
 member = transfer.get(member, id);
 mem = member.clone();
 clubmem = mem.getClubMembership(clubid);
 clubmem.setMemberID(6000);
 transfer.discard(mem);
 transfer.save(clubmem);

 // now compare the objects in the cache and the session:
 transfer.get(member, id).getClubMembership(clubid).getMemberID() -
 6000
 session.attendee.getClubMembership().getMemberID() - 1234
 session.attendee.getClubMembership().equalsTransfer(transfer.get(member,
 id).getClubMembership(clubid)) - TRUE

 

 Am I wrong in thinking that an attendee object in the session will not
 retrieve its clubmembership from the transfer cache?   The attendee
 object in the session is NOT a clone().

 What should I change to get this to work right so that the
 session.attendee object returns the updated clubmembership?  I can
 tolerate a down and dirty fix for now and a clean fix later. :)


 Brian

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe 

Re: [transfer-dev] O2M and clone() results in same object returning different values

2011-06-02 Thread Mark Mandel
That should have read:

*This is where I would just store the ID of the object you reference in
session, and let Transfer manage the cache.*

Mark

On Fri, Jun 3, 2011 at 3:36 PM, Mark Mandel mark.man...@gmail.com wrote:

 This is where I would just store the ID of the object you reference in
 session, and let Transfer manage the session.




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

cf.Objective(ANZ) - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Global update of objects on 2nd+ login

2011-05-27 Thread Mark Mandel
I'm still not exactly sure what the *problem *is. You want to check if there
is a record in the Transfer managed database? Try and get a TransferObject,
and if it's persistant, you will know.

No? Is there something else to this I'm not getting?

Mark

On Wed, May 25, 2011 at 9:32 PM, Clarkee21 clarke...@gmail.com wrote:

 I think writing this I'm maybe talking myself out of this being a Transfer
 job and something I'm going to have to manually do myself :-)

  --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Global update of objects on 2nd+ login

2011-05-24 Thread Mark Mandel
James,

I'm trying to follow exactly what the issue is here - is it that you have 2
TransferFactories or something, and need to move data from one to the other?

Mark

On Mon, May 23, 2011 at 7:10 PM, Clarkee21 clarke...@gmail.com wrote:

 An after though - am I right in thinking that if I try and overwrite the
 Primary Key ( UUID )  of a persisted object that Transfer will stop me?

 I'm just aware that the new objects are set to  so I want to make
 sure the PKs aren't touched in the updates. If they're not then I guess I
 can just do sweep across each of my objects and apply getter to setter.

 Cheers again,

 James

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Event Model - Define Methods in Decorator

2011-05-17 Thread Mark Mandel
Robert,

That is not currently possible.

You will need to set up an application wide handler, and filter by which
class you want to perform action on.

Mark
On May 17, 2011 11:50 PM, Robert Rawlins rob...@supporttime.com wrote:
 Hello Guys,

 I'm looking to use some of the event hooks, like beforeUpdate() and
 afterNew() but only on a specific object rather than application wide.

 Ideally I'd add a method into my decorator called afterNew or beforeUpdate

 which would get trigger at the appropriate time when that particular
object
 is loaded or saved.

 Is this possible? if do, then how?

 Thanks.

 Robert

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/transfer-dev?hl=en

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: transfer.factory.AutoWireException

2011-04-29 Thread Mark Mandel
Marc,

We've mentioned this on a few lists now - you need to get the host to turn
off the *Component cache* in the cfadmin, or these issues are going to
continue.

Mark

On Fri, Apr 29, 2011 at 9:55 PM, Marc marc.at.comp...@gmail.com wrote:

 Ok, the host probably flushed the cfc cache because the site is up
 again.

 So now I know how to have Transfer use application mappings. I might
 even add a config setting for this.

 Marc

 On Apr 29, 11:32 am, Marc marc.at.comp...@gmail.com wrote:
  Hi,
 
  I get a transfer.factory.AutoWireException when running my app in the
  new CF9 environment of my virtual host. My app lives in
  D:\home\marcbakker.com\subdomains\eenschoolintogo\ and my transfer
  files live in D:\home\marcbakker.com\subdomains\eenschoolintogo
  \transfer\.
 
  Below is the error. Note how the last line in the error points to a
  different location:
  =
  [Line: 142 :: D:\home\marcbakker.com\subdomains\eenschoolintogo
  \transfer\com\factory\AbstractBaseFactory.cfc ::
  transfer.factory.AutoWireException ::
  [Line: 142 :: D:\home\marcbakker.com\subdomains\eenschoolintogo
  \transfer\com\factory\AbstractBaseFactory.cfc ::
  transfer.factory.AutoWireException ::
  [Line: -1 :: java.io.FilePermission D :: access denied
  (java.io.FilePermission D:\home\spanishwizards.com\wwwroot\transfer\com
  \util\javaloader\JavaProxy.cfc read) :: ]]]
 
  The error occurred in D:\home\marcbakker.com\subdomains\eenschoolintogo
  \transfer\com\factory\AbstractBaseFactory.cfc: line 142
  Called from D:\home\marcbakker.com\subdomains\eenschoolintogo\transfer
  \com\factory\AbstractBaseFactory.cfc: line 73
  Called from D:\home\marcbakker.com\subdomains\eenschoolintogo\transfer
  \com\factory\Factory.cfc: line 83
  Called from D:\home\marcbakker.com\subdomains\eenschoolintogo\transfer
  \TransferFactory.cfc: line 94
  Called from D:\home\marcbakker.com\subdomains\eenschoolintogo\coldbox
  \system\orm\transfer\TransferLoader.cfc: line 86
  Called from D:\home\marcbakker.com\subdomains\eenschoolintogo\coldbox
  \system\web\context\InterceptorState.cfc: line 139
  Called from D:\home\marcbakker.com\subdomains\eenschoolintogo\coldbox
  \system\web\context\InterceptorState.cfc: line 86
  Called from D:\home\marcbakker.com\subdomains\eenschoolintogo\coldbox
  \system\web\services\InterceptorService.cfc: line 109
  Called from D:\home\marcbakker.com\subdomains\eenschoolintogo\coldbox
  \system\web\services\LoaderService.cfc: line 93
  Called from D:\home\marcbakker.com\subdomains\eenschoolintogo\coldbox
  \system\Coldbox.cfc: line 71
  =
 
  D:\home\spanishwizards.com\wwwroot\transfer\ is someone else's domain,
  they use transfer as well.
 
  Clearing the cache settings in the CF9 admin doesn't help (I asked my
  host, they did it and error returns as soon as a request is made)
 
  So I added an application mapping to application.cfc:
  cfset this.mappings[/transfer]=#ExpandPath('/')#transfer
  which translates to D:\home\marcbakker.com\subdomains\eenschoolintogo
  \transfer
 
  Then I want to make sure that transfer uses the app mapping /
  transfer instead of transfer. The error occurs in \transfer\com
  \factory\AbstractBaseFactory.cfc: at line 73. (line 142 is just where
  the throw() gets called.)
  Line 73 reads:
  object = autowire(createObject(component, arguments.class));
  The first part of arguments.class translates to transfer. I changed
  this to
  object = autowire(createObject(component, '/#arguments.class#'));
  to have the component path start with /transfer and be sure that
  transfer is using my app mapping instead of the other guy's transfer
  instance.
 
  Somehow this does not work, transfer is still looking at
  spanishwizard...
 
  Transfer should be able to work on a shared host, even if there are
  other instances of transfer and there is no mapping transfer in the
  CF9 admin right?
 
  Marc

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

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

Re: [transfer-dev] Framework Initialization/Configuration Exception

2011-04-20 Thread Mark Mandel
Looks like a permission / security error:

[Line: 142 :: 
D:\home\marcbakker.com\subdomains\simplecms.eenschoolintogo\transfer\com\factory\abstractbasefactory.cfc
:: transfer.factory.AutoWireException ::
[Line: -1 :: java.io.FilePermission D :: access denied
(java.io.FilePermission
D:\home\spanishwizards.com\wwwroot\transfer\com\util\javaloader\JavaProxy.cfc
read) :: ]]]

Was this working on your shared server before, or is this the first time you
ran it?

Check the permissions on
D:\home\spanishwizards.com
\wwwroot\transfer\com\util\javaloader\JavaProxy.cfc

Mark

On Wed, Apr 20, 2011 at 7:04 PM, marc marc.at.comp...@gmail.com wrote:

 Hello,

 I get a Transfer error on my shared host:

 
 Framework Initialization/Configuration Exception
 Error Type: Error while attempting to autowire object of type
 transfer.com.sql.transaction.TransactionManager : [N/A]
 Error Messages: transfer.factory.AutoWireException
 

 I wonder if anyone in this group could share some light on this since
 I have no idea how to solve this.

 Here you can get the full error


 http://eenschoolintogo-marcbakker-com.securec20.ezhostingserver.com/?fwreinit=true
 Subsequent calls to
 http://eenschoolintogo-marcbakker-com.securec20.ezhostingserver.com
 keep resulting in the error.

 I run this app on CF9.01,
 Transfer 1.1
 Coldbox v 2.6.3

 Since the error involves autowiring, I'm not sure the error is
 Transfer or Coldbox related so I apologize ahead if this is the wrong
 group to post.

 Marc

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] How to get the original values

2011-04-14 Thread Mark Mandel
The only way I can think of is, if you are editing a clone, and then grab
the original to check.

Or possibly just use tql/sql to get at the db value.

Mark

On Fri, Apr 15, 2011 at 2:47 AM, spiraldev spiral...@gmail.com wrote:

 Is there a way in Transfer to get the original values of a Transfer
 object?  For instance I am updating a users table and I am updating
 the username from Matt to Fred and I want the value Matt

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 17, 18 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] get(xxxx) method - Has anyone written one?

2011-01-26 Thread Mark Mandel
Clarkee... I'm really confused.

Do you want to be able to dynamically get at a Transfer Object's property
value? Is that what you mean?

Mark

On Thu, Jan 27, 2011 at 8:10 AM, Clarkee21 clarke...@gmail.com wrote:

 Hi group,

 I've been doing a bit of Googling on this one but surprised I can't
 actually find anything on it - Maybe I put in the wrong search words :-)

 Basically I want to setup a get() / getByProperty() method on my
 Decorators.

 We've got a situation where our Developers are looping and using evaluate
 to loop over the Transfer getters - Yeuk!!!

 So I thought I could setup this method that they can pass in the property
 variable name and this would return the property from Transfer.

 Has anyone done anything like this?

 Are there any issues that I should be aware of it I do make one. One I can
 think of is I need to sort both the Decorator values and the original
 object, which could get messy.

 Any help is appreciated.

 Cheers,
 James

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] get(xxxx) method - Has anyone written one?

2011-01-26 Thread Mark Mandel
You could always use cfinvoke ;o)

Out of curiosity, you building some sort of scaffolding, or something
similar?

Mark

On Thu, Jan 27, 2011 at 10:12 AM, Clarkee21 clarke...@gmail.com wrote:

 Sorry Mark :-)

 In short - yes.

 So if I've got an object with the properties

 firstName
 surname
 email

 I'd like to do something like this in 

 cfset propertyList = firstName,surname,email /

 cfloop list=#propertyList# index=property
 cfset object.get(property) /
 .
 .
 .
 /cfloop

 At the moment we're having to do this...

 cfset propertyList = firstName,surname,email /

 cfloop list=#propertyList# index=property
 cfset evaluate(object.get#Property#()) /
 .
 .
 .
  /cfloop

 ... which just looks nasty!!

 Does that make more sense?


 Cheers,
 James

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] get(xxxx) method - Has anyone written one?

2011-01-26 Thread Mark Mandel
Knowing how the underlying cfml engine works, I'd be pretty surprised if it
used evaluate under the hood, it wouldn't make any sense really.

Mark

On Thu, Jan 27, 2011 at 10:29 AM, Clarkee21 clarke...@gmail.com wrote:

 The whole handler is written in script :-). Would be a shame to break out
 for something like that...

 Plus cfinvoke component=object method=get#property# surely uses
 evaluate :-).



  --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] get(xxxx) method - Has anyone written one?

2011-01-26 Thread Mark Mandel
Let me ask the question another way - what's your use case for this?

Just curious as to what problem you are trying to solve ;o)

Mark

On Thu, Jan 27, 2011 at 10:29 AM, Clarkee21 clarke...@gmail.com wrote:

 You're confusing me now :-)

 What do you mean by scaffolding?

  --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Need to define relationships in db when using Transfer?

2011-01-19 Thread Mark Mandel
Ditto on what bob said.

Mark

Sent from my mobile device.
On 20/01/2011 12:38 AM, Bob Silverberg bob.silverb...@gmail.com wrote:
 I could be wrong about this, but I don't think you _need_ to do it, on
 the other hand you probably _should_ do it. If you configure Transfer
 properly and write your code correctly then you yourself will be
 ensuring the integrity of the data, but wouldn't it be safer to allow
 the database to also do that for you? Also, unless you create indexes
 you'll be sacrificing performance.

 Bob

 On Wed, Jan 19, 2011 at 7:33 AM, marc marc.at.comp...@gmail.com wrote:
 Hi,

 As the subject reads - do I need to convert the tables to innodb, make
 indexes and define relationships in my database (MySQL) when I use
 Transfer? Or is integrity of data taken care of by Transfer.

 Marc

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/transfer-dev?hl=en




 --
 Bob Silverberg
 www.silverwareconsulting.com

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/transfer-dev?hl=en

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Decorator methods and Transfer.list()

2011-01-11 Thread Mark Mandel
Stefan,

You will get better performance out of the CF9 integrated ORM, and also be
able to get arrays of objects out of list() operations as well.

Mark

On Wed, Jan 12, 2011 at 5:51 AM, Mythrandir stefan.dekon...@gmail.comwrote:

 Thanks again for your responses.

 I indeed started using CF9 recently, and I was not aware of Hibernate,
 so I will definitely look into that too!

 This code is indeed for admin purposes, and I think it's not so bad if
 the initial load is long-ish, as long as subsequent pagerequests can
 make use of the then cached User objects.

 Thanks for your feedback, I know what to do now :)

 Stefan


 On 11 jan, 19:35, James Allen slingsho...@googlemail.com wrote:
  Hey there,
 
  Which version of Coldfusion are you running?
 
  There was an object instantiation performance problem in Java that
 affected
  Coldfusion 8 but this was fixed in Java 6 Update 11. If running CF8, it's
  important to get the Java version updated to remove really awful object
  creation issues.
 
  CF9 is running a later version of Java which doesn't have this problem
 and
  is even faster at object instantiation as CF8. Railo also has superb
 object
  creation speed.
 
  So basically I think that with only a few hundred object you won't have
 any
  real problems using Transfer in this way.
  I've been using it since 2007 and have never really encountered any speed
  issues, especially when in deployment. Things have got better over the
 years
  with improvements in CF and Java which always helps.
 
  James.
 
  ---
  James  Allen
  E: ja...@jamesallen.name
  Blog:http://jamesallen.name
  Twitter: @CFJamesAllen (Coldfusion / Web development)
  Twitter: @jamesallenuk (General)
  Twitter: @JamesAllenVoice (Voiceover)
 
  -Original Message-
  From: transfer-dev@googlegroups.com [mailto:
 transfer-...@googlegroups.com]
 
  On Behalf Of Mythrandir
  Sent: 11 January 2011 18:28
  To: transfer-dev
  Subject: [transfer-dev] Re: Decorator methods and Transfer.list()
 
  Hi James,
 
  thanks for your reply. This is definitely the way I would prefer to
  solve it; even before Transfer I tended to use arrays of entity
  objects rather than querysets. However, I did get the vibe that
  Transfer actively discourages the retrieval of multiple
  TransferObjects, for what seems to be performance reasons.
 
  In this specific case there won't ever be more than a few hundred
  unique user objects, but unfortunately I can't use pagination and have
  to load them all at the same time. So I'm fearing an unacceptably slow
  performance. Is that correct?
 
  regards,
  Stefan
 
  On 11 jan, 19:09, James Allen slingsho...@googlemail.com wrote:
   Hey there Stefan,
 
   The transfer.list method only returns a query. To get your objects you
  then
   need to loop the query and perform a transfer.get() on the ID of each
 row.
   This will return an object which will have the getFullName() method in
 it.
   The usual way is to create an array and populate it with transfer
 objects.
 
   What I generally do is write my own cfquery calls to generate the query
  list
   and then have a base function in my gateways which builds an array of
   objects based upon a passed query (you then only need to select ID from
   table).
   I actually use a stored procedure that handles pagination (for
  performance)
   and then process the query returned to obtain an array of objects.
 
   Hope that helps,
   James.
 
   ---
   James  Allen
   E: ja...@jamesallen.name
   Blog:http://jamesallen.name
   Twitter: @CFJamesAllen (Coldfusion / Web development)
   Twitter: @jamesallenuk (General)
   Twitter: @JamesAllenVoice (Voiceover)
 
   -Original Message-
   From: transfer-dev@googlegroups.com [mailto:
 transfer-...@googlegroups.com]
 
   On Behalf Of Mythrandir
   Sent: 11 January 2011 17:54
   To: transfer-dev
   Subject: [transfer-dev] Decorator methods and Transfer.list()
 
   Hello everybody,
 
   I've been using and learning Transfer for a couple of days now and I'm
   liking it a lot! While coding an implementation, I came across the
   following problem:
 
   I've defined an User object, and wrote a small custom decorator which
   contains the method 'getFullName()', which does concatenation of the
   User's initials and/or firstName with the lastName.
 
   However, when displaying a list of users, using the Transfer.list(),
   this method is not accessible to me, but I do need it to get the
   pretty FullName notation.
 
   I'm guessing that a lot of people have experience with this situation,
   and I'm wondering how do I best go about resolving this?
 
   thanks in advance,
   Stefan
 
   --
   Before posting questions to the group please
  read:
 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-qu..
  .
   -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 

Re: [transfer-dev] No records returned: CF7 and oracle

2011-01-04 Thread Mark Mandel
So that doesn't make sense... If the sql debug says that nothing is
returned, but it returns values when you copy and paste it into a sql
editor?

Is that right?

Mark
On 04/01/2011 9:59 PM, Pedro Bezunartea López pe...@bezunartea.net
wrote:
 Hi Mark,

 So in the debug output - when you see the Transfer generated SQL, how
many
 rows does it return?


 None.

 The table actually has just one row, that I dump using the
 transfer.list(...Session) query. But none using the listByQuery method
 (after the proper setParam, of course), or listByProperty.

 Still researching...

 Pedro.

 2011/1/3 Mark Mandel mark.man...@gmail.com

 So in the debug output - when you see the Transfer generated SQL, how
many
 rows does it return?

 Mark

 On Tue, Jan 4, 2011 at 2:35 AM, pedrobl pe...@bezunartea.net wrote:


 Happy new year everyone!

 I left last year with a strange problem that probably has an easy
 solution which I fail to see. I'm using Coldbox, Coldspring, Transfer
 and Oracle 10g. I have stumbled upon a few driver issues, and this
 probably has something to do with it.

 First, the table: sessions, which just has the following fields:
 PersonId (CHAR 32), Token (CHAR 36).

 The use case is simple, a user wants to be authenticated and doesn't
 remember her password. She accesses a form where she enters her email
 address, the system checks that the email exists, generates a token
 using CreateUUID(), persists the session object to the database, and
 sends an email with a link containing the token just created. The link
 takes the user to a page where all the system has to do is search the
 database for the token, and generate a user session accordingly...
 pretty simple.

 Second, transfer.xml:
 object name=Session table=USER_SESSIONS
 id name=PersonId column=PERSON_ID type=string generate=false /
 
 property name=SessionToken type=string nullable=false
 column=TOKEN /
 /object

 Amazingly, the record is never found. I have tried many transfer
 methods, all unsuccessfully, among others:

 - readByProperty: SessionToken, and the generated token.
 - readByPropertyMap: the map consists of a struct with a
 SessionToken key, and the token as its value.
 - listByQuery: the query is simple FROM ...Session
 WHERE ...Session.SessionToken=:sessionToken
 - Change the TOKEN field to varchar2.

 The first two return a new object, and the third returns an empty
 query. I also cfdump the whole table, to check that the record exists,
 and the sql sent to oracle, and all look just fine... as they do in
 many other parts of the application. If I run the query generated
 directly in SQLDeveloper, it works fine. I have also tried the same
 code using postgresql instead of Oracle, and it works!!

 Sorry for the long post. What else could I try to debug this? Any
 ideas? TIA,

 Pedro.

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
transfer-dev%2bunsubscr...@googlegroups.comtransfer-dev%252bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

 cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
 http://www.cfobjective.com.au

 Hands-on ColdFusion ORM Training
 www.ColdFusionOrmTraining.com

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
transfer-dev%2bunsubscr...@googlegroups.comtransfer-dev%252bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en


 --
 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 transfer-dev@googlegroups.com

Re: [transfer-dev] No records returned: CF7 and oracle

2011-01-03 Thread Mark Mandel
So in the debug output - when you see the Transfer generated SQL, how many
rows does it return?

Mark

On Tue, Jan 4, 2011 at 2:35 AM, pedrobl pe...@bezunartea.net wrote:


 Happy new year everyone!

 I left last year with a strange problem that probably has an easy
 solution which I fail to see. I'm using Coldbox, Coldspring, Transfer
 and Oracle 10g. I have stumbled upon a few driver issues, and this
 probably has something to do with it.

 First, the table: sessions, which just has the following fields:
 PersonId (CHAR 32), Token (CHAR 36).

 The use case is simple, a user wants to be authenticated and doesn't
 remember her password. She accesses a form where she enters her email
 address, the system checks that the email exists, generates a token
 using CreateUUID(), persists the session object to the database, and
 sends an email with a link containing the token just created. The link
 takes the user to a page where all the system has to do is search the
 database for the token, and generate a user session accordingly...
 pretty simple.

 Second, transfer.xml:
 object name=Session table=USER_SESSIONS
 id name=PersonId column=PERSON_ID type=string generate=false /
 
 property name=SessionToken type=string nullable=false
 column=TOKEN /
 /object

 Amazingly, the record is never found. I have tried many transfer
 methods, all unsuccessfully, among others:

 - readByProperty: SessionToken, and the generated token.
 - readByPropertyMap: the map consists of a struct with a
 SessionToken key, and the token as its value.
 - listByQuery: the query is simple FROM ...Session
 WHERE ...Session.SessionToken=:sessionToken
 - Change the TOKEN field to varchar2.

 The first two return a new object, and the third returns an empty
 query. I also cfdump the whole table, to check that the record exists,
 and the sql sent to oracle, and all look just fine... as they do in
 many other parts of the application. If I run the query generated
 directly in SQLDeveloper, it works fine. I have also tried the same
 code using postgresql instead of Oracle, and it works!!

 Sorry for the long post. What else could I try to debug this? Any
 ideas? TIA,

 Pedro.

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Railo-Transfer numerics coming in as strings

2010-12-21 Thread Mark Mandel
As you read on the Railo list... there are a fair few issue with Transfer on
Railo that can cause issues.

Mark

On Wed, Dec 22, 2010 at 6:36 AM, Baz b...@thinkloop.com wrote:

 Hello,

 I have a transfer orm app that was working on ACF, but when I switched
 to Railo I get the message:

 (x) is of invalid type, can't cast String [] to a value of type
 [numeric]

 I see that the value is zero, however I think it may be zero as a
 string, so Railo is not happy.

 Is there a way to get around this? I tried googling to no avail.

 Thanks,
 Baz

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Railo-Transfer numerics coming in as strings

2010-12-21 Thread Mark Mandel
I couldn't say for sure these days.

I know a while ago they had Transfer (and I can only assume some other
frameworks out there as well) unit tests being run as part of the OpenBD
build process.

I've no idea if they do that anymore.

Mark

On Wed, Dec 22, 2010 at 6:13 PM, Baz b...@thinkloop.com wrote:

 OK, thanks Mark, I'll leave it at that then. Does OpenBD play nicer?


 On Tue, Dec 21, 2010 at 9:34 PM, Mark Mandel mark.man...@gmail.comwrote:

 As you read on the Railo list... there are a fair few issue with Transfer
 on Railo that can cause issues.

 Mark

 On Wed, Dec 22, 2010 at 6:36 AM, Baz b...@thinkloop.com wrote:

 Hello,

 I have a transfer orm app that was working on ACF, but when I switched
 to Railo I get the message:

 (x) is of invalid type, can't cast String [] to a value of type
 [numeric]

 I see that the value is zero, however I think it may be zero as a
 string, so Railo is not happy.

 Is there a way to get around this? I tried googling to no avail.

 Thanks,
 Baz

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

 cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
 http://www.cfobjective.com.au

 Hands-on ColdFusion ORM Training
 www.ColdFusionOrmTraining.com

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en


  --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Column names of the same name and different type.

2010-10-22 Thread Mark Mandel
Transfer uses unions in the sql to keep the number of duplicate rows down.

If you hit the issue described above, just make the relationship lazy, so
they don't get called all in one query.

Mark

On Fri, Oct 22, 2010 at 10:00 PM, Stephen Moretti stephen.more...@gmail.com
 wrote:

 Robert,

 What happens if you alias the columns?  (See the updated pastebin)

 Stephen


 On 22 October 2010 11:16, Rawlins rob...@supporttime.com wrote:

 Hello Guys,

 I've stumbled across a problem this morning which is an unusual one.
 It MAY be documented or expected behaviour but it caught me out so I
 thought I would start conversations off here.

 When I have two objects that have matching column names (http://
 pastebin.com/x272btY7 *note the 'Quantity' column) but these two
 columns have different data types, when loading from the database
 Transfer throws a SQL error if the data in the child entity column
 doesn't match the datatype of the parent entity.

 [Macromedia][SQLServer JDBC Driver][SQLServer]Conversion failed when
 converting the varchar value '1.25' to data type int.

 The quantity column in my Fabric table is a varchar, and contains the
 value 1.25. The quantity column in the OrderItem table is int.

 This does not occur when inserting the entity, only when loading it.

 Any ideas? is this normal? or a bug? Sorry for the sketchy
 explanation, it was difficult to describe.

 Thanks,

 Robert

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




 --
 Stephen Moretti
 Blog : http://nil.checksite.co.uk/
 Twitter : http://twitter.com/mr_nil
 More Twitter : http://twitter.com/CFOverflow

  --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Copy object, not clone it

2010-10-07 Thread Mark Mandel
You'll have to copy the values across to a new object, either manually, or
use some meta data to automate it. (either cf meta, or transfer meta)

Mark

On Thu, Oct 7, 2010 at 8:15 AM, Jason Durham jqdur...@gmail.com wrote:

 I have a situation where I want to make a copy of an object, make a change,
 and then save both objects into the database with unique keys.  How should
 this be accomplished with Transfer?

 Jason Durham

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Transfer Query Can't Find Class

2010-09-30 Thread Mark Mandel
   at
 cfSelectStatement2ecfc1551394529$funcEVALUATESELECTSTATEMENT.runFunction(/
 home/david/opt/coldfusion/8/wwwroot/transfer/com/tql/
 SelectStatement.cfc:154)
 TEMPLATE/home/david/opt/coldfusion/8/wwwroot/transfer/com/tql/
 SelectStatement.cfc
 TYPECFML
 8
 Exception - struct
 COLUMN  0
 ID  CF_UDFMETHOD
 LINE102
 RAW_TRACE   at
 cfSelectStatement2ecfc1551394529$funcSELECTSTATEMENT.runFunction(/home/
 david/opt/coldfusion/8/wwwroot/transfer/com/tql/SelectStatement.cfc:
 102)
 TEMPLATE/home/david/opt/coldfusion/8/wwwroot/transfer/com/tql/
 SelectStatement.cfc
 TYPECFML
 9
 Exception - struct
 COLUMN  0
 ID  CF_TEMPLATEPROXY
 LINE28
 RAW_TRACE   at
 cfTQLManager2ecfc624316183$funcEVALUATEQUERY.runFunction(/home/david/
 opt/coldfusion/8/wwwroot/transfer/com/tql/TQLManager.cfc:28)
 TEMPLATE/home/david/opt/coldfusion/8/wwwroot/transfer/com/tql/
 TQLManager.cfc
 TYPECFML
 10
 Exception - struct
 COLUMN  0
 ID  CF_TEMPLATEPROXY
 LINE562
 RAW_TRACE   at cfTransfer2ecfc1685525181$funcLISTBYQUERY.runFunction(/
 home/david/opt/coldfusion/8/wwwroot/transfer/com/Transfer.cfc:562)
 TEMPLATE/home/david/opt/coldfusion/8/wwwroot/transfer/com/
 Transfer.cfc
 TYPECFML
 11
 Exception - struct
 COLUMN  0
 ID  CF_TEMPLATEPROXY
 LINE173
 RAW_TRACE   at cfvariations2ecfc1380500055$funcEDITCUSTOM.runFunction(/
 home/david/opt/coldfusion/8/wwwroot/admin/controllers/variations.cfc:
 173)
 TEMPLATE/home/david/opt/coldfusion/8/wwwroot/admin/controllers/
 variations.cfc
 TYPECFML
 12
 Exception - struct
 COLUMN  0
 ID  CFINVOKE
 LINE1207
 RAW_TRACE   at
 cfframework2ecfc1462850834$funcDOCONTROLLER.runFunction(/
 home/david/opt/coldfusion/8/wwwroot/org/corfield/framework.cfc:1207)
 TEMPLATE/home/david/opt/coldfusion/8/wwwroot/org/corfield/
 framework.cfc
 TYPECFML
 13
 Exception - struct
 COLUMN  0
 ID  CF_UDFMETHOD
 LINE477
 RAW_TRACE   at cfframework2ecfc1462850834$funcONREQUEST.runFunction(/
 home/david/opt/coldfusion/8/wwwroot/org/corfield/framework.cfc:477)
 TEMPLATE/home/david/opt/coldfusion/8/wwwroot/org/corfield/
 framework.cfc
 TYPECFML
 TypeTransferObjectNotFoundException
 code[empty string]

 On Sep 30, 4:24 pm, Mark Mandel mark.man...@gmail.com wrote:
  What's the actual error message?
 
  Sent from my mobile device
  On 1 Oct 2010 03:45, David Long david.lon...@gmail.com wrote:
 
   I am getting an error from Transfer that it can't find a class alias
   that I setup in a query object. I feel like I may have just been
   looking at the code to long to be able to find it, so I figured I
   would post it here and see if maybe someone else can find the error
   point.
   So here is my CF code to create an call the query:
   local.q = 'SELECT c.title,c.catid FROM catalog.relationship AS
   r,catalog.category AS c WHERE r.child = :varid AND c.catid = r.parent
   AND r.type = :type';
   local.q = APPLICATION.transfer.createQuery(local.q);
   local.q.setParam('varid',ARGUMENTS.rc.varid,'numeric');
   local.q.setParam('type','cv2c','string');
   categories = APPLICATION.transfer.listByQuery(local.q);
 
   And here is my transfer.xml file portion required for the error:
   package name=catalog
   object name=category table=categories
   id name=catid type=numeric /
   property name=title type=string /
   property name=parent type=numeric /
   property name=metadesc type=string /
   property name=metakey type=string /
   property name=active type=boolean /
   /object
 
   object name=product table=products
   id name=prodid type=numeric /
   property name=title type=string /
   property name=tagline type=string /
   property name=description type=string /
   property name=sku type=string /
   property name=retailPrice type=numeric /
   property name=ourPrice type=numeric /
   property name=salePrice type=numeric /
   property name=onSale type=boolean /
   property name=active type=boolean /
   property name=dateavailable type=date /
   property name=inventory type=numeric /
   property name=height type=numeric /
   property name=length type=numeric /
   property name=width type=numeric /
   property name=metadesc type=string /
   property name=metakey type=string /
   property name=show0 type=boolean /
   property name=tags type=string /
   property name=taxclass type=numeric /
   property name=weight type=numeric /
 
   manytoone name=primaryImg
   link to=catalog.image column=primaryImg /
   /manytoone
   /object
 
   object name=relationship table=relationships
   id name=relid type=numeric /
   property name=type type=string /
   property name=child type=numeric /
   property name=parent type=numeric /
 
   /object
 
   object name=image table=images
   id name=imgid type=numeric /
   property name=src type=string /
   property name=thumb type=string /
   /object
 
   object name=variation table=variations
   id name=varid type=numeric /
   property name=title type=string /
   property

Re: [transfer-dev] Re: Transfer Query Can't Find Class

2010-09-30 Thread Mark Mandel
I can't see anything from with your SQL syntax.

You sure that is the right TQL query that is failing?

Mark

On Fri, Oct 1, 2010 at 6:33 AM, David Long david.lon...@gmail.com wrote:

 I am sure.  I run another transfer call just before this one and that
 one works just fine.  Nothing is wrong in my TQL syntax?

 On Sep 30, 4:32 pm, Mark Mandel mark.man...@gmail.com wrote:
  That looks like it should work.
 
  You sure you're not pointing it at the wrong config file, or anything
 silly
  like that?
 
  Mark
 
  On Fri, Oct 1, 2010 at 6:25 AM, David Long david.lon...@gmail.com
 wrote:
   The exact error message from ACF
 
   Exception - struct
   Detail  Could not find 'category' in '/home/david/opt/coldfusion/8/
   wwwroot/config/transfer.xml'.
   ErrorCode   [empty string]
   ExtendedInfo[empty string]
   Message The requested object could not be found in the config
 file
   StackTrace  coldfusion.runtime.CustomException: The requested
 object
   could not be found in the config file at
   coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:124) at
   coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661) at
   cfObjectDAO2ecfc95842874$funcTHROW.runFunction(/home/david/opt/
   coldfusion/8/wwwroot/transfer/com/object/ObjectDAO.cfc:637) at
   coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418) at
   coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at
   coldfusion.runtime.UDFMethod
   $ArgumentCollectionFilter.invoke(UDFMethod.java:324) at
  
 coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
   59) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
   at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192) at
   coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471) at
   cfObjectDAO2ecfc95842874$funcGETOBJECT.runFunction(/home/david/opt/
   coldfusion/8/wwwroot/transfer/com/object/ObjectDAO.cfc:72) at
   coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418) at
   coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at
   coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:
   360) at coldfusion.runtime.UDFMethod
   $ArgumentCollectionFilter.invoke(UDFMethod.java:324) at
  
 coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
   59) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
   at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192) at
   coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448) at
   coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308) at
   coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272) at
   cfObjectManager2ecfc211571543$funcGETOBJECT.runFunction(/home/david/
   opt/coldfusion/8/wwwroot/transfer/com/object/ObjectManager.cfc:63) at
   coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418) at
   coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at
   coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:
   360) at coldfusion.runtime.UDFMethod
   $ArgumentCollectionFilter.invoke(UDFMethod.java:324) at
  
 coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
   59) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
   at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192) at
   coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448) at
   coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308) at
   coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272) at
   cfProperty2ecfc2086165857$funcEVALUATEPROPERTYIDENTIFIER.runFunction(/
   home/david/opt/coldfusion/8/wwwroot/transfer/com/tql/walkers/
   Property.cfc:56) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:
   418) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at
   coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:
   360) at coldfusion.runtime.UDFMethod
   $ArgumentCollectionFilter.invoke(UDFMethod.java:324) at
  
 coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
   59) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
   at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192) at
   coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448) at
   coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308) at
   coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2272) at
   cfSelectColumn2ecfc650005570$funcEVALUATESELECTAST.runFunction(/home/
   david/opt/coldfusion/8/wwwroot/transfer/com/tql/walkers/
   SelectColumn.cfc:43) at
   coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418) at
   coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at
   coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:
   360) at coldfusion.runtime.UDFMethod
   $ArgumentCollectionFilter.invoke(UDFMethod.java:324) at
  
 coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
   59) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java

Re: [transfer-dev] Using Relationships to Delete Multiple Records

2010-09-24 Thread Mark Mandel
You will need to do it yourself manually, I'm sorry to say.

Mark

On Sat, Sep 25, 2010 at 1:19 AM, David Long david.lon...@gmail.com wrote:

 I have a database setup and Transfer using a manytoone relationship to
 map two tables (variations and varVals).  The configuration is as
 follows:
object name=variation table=variations
id name=varid type=numeric /
property name=title type=string /
property name=type type=string /
/object

object name=variationVal table=variationVals
id name=valid type=numeric /
property name=title type=string /
property name=price type=numeric /
manytoone name=varid
link to=catalog.variation
 column=varid /
/manytoone
/object

 The objects are, as you can tell, within a package called catalog.
 Not what I am doing is deleting 1 variation.  So I also need to delete
 all of the Variation values.  Is there a way to have transfer do this
 for me or do I need to retrieve a list object, loop over it, get the
 variation value, and delete the variation value?

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Struggling with null values on an object

2010-09-24 Thread Mark Mandel
Stack trace?

Mark

On Sat, Sep 25, 2010 at 1:11 AM, EJ Jaquet ejjaq...@gmail.com wrote:

 Hi all,

 I am struggling with the use of Transfer on Railo. I got a table for
 orders, that holds an orderCompleted field. The field has the NULL
 value if not completed, and a timestap when it is.

 But I can't do a 'get' with Transfer on the object, once instantiated.
 I can create an object just fine, it creates it with the Null values
 in the DB on save. But when I try to retreive that same object from
 Transfer, I get an error saying:

  invalid call of the function setorderCompleted, first Argument
 (orderCompleted) is of invalid type, can't cast String [] to a value
 of type [date]

 But isn't Transfer supposed to transform and handle the Null value? In
 the Transfer config, I have the following code:

 property name=orderCompleted type=date column=orderCompleted
 nullable=true /

 And I even tell them what the NULL value should be:

 nullValues
date value=1/1/100 /
 /nullValues

 And I have created a decorator with a config option:

 cffunction name=configure access=private returntype=void
 output=false
cfset setMMG_SendtoAdyenNull()
cfset setOrdercompletedNull()
 /cffunction

 But nothing helps!

 What am I doing wrong?

 My development environment is a Linux machine, RAILO 3 with Resin,
 Coldbox and Transfer.

 I hope you can help!

 Kind regards,

 Erik-Jan

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] nullvalue Not working

2010-09-21 Thread Mark Mandel
The default null value for dates is already 1/1/100, so you don't need to
explicitley set it.

But the default value for a TransferObject when it is created in Now(), so
if you want it to be inserted as null, you need to explicitley set it.

See:
http://docs.transfer-orm.com/wiki/Handling_Null_Values.cfm

Mark

On Tue, Sep 21, 2010 at 1:53 PM, spiraldev spiral...@gmail.com wrote:

 I having issues with the Nullvalue I have tried adding the nullvalue
 attribute I set it to 1/1/0100 but when I insert into the DB it's
 setting the column to now()
 Here is my object
 object name=Event table=tblRegistrationEvent
 decorator=lib.com.ER.data.bean.transfer.registration.Event
id name=registrationEventID  type=UUID
 generate=true /
property name=registrationIDFK
 type=string
 column=registrationIDFK /
property name=eventIDFK type=string
 column=eventIDFK /
property name=eventRoleIDFK type=string
 column=eventRoleIDFK /
property name=accessCode type=string
 column=accessCode /
property name=Cost type=numeric
 column=Cost /
property name=completeDate
 nullable='true' nullvalue='1/1/0100'
 type=date column=completeDate /
property name=createdBy
 ignore-update='true' type=string
 column=createdBy /
property name=createDate
 ignore-update='true' type=date
 column=createDate /
property name=updatedBy type=string
 column=updatedBy /
property name=updateDate type=date
 column=updateDate /
/object

 Any thoughts?

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Insert key error before even saving the object.

2010-09-14 Thread Mark Mandel
Never seen that before.

What's the code on:
C:\inetpub\wwwroot\sofasandstuff\model\data\transfer\member.entitlementGroup$CAB78228C23D74845EC243B81D72F48D.transfer
(189)

?

Usual details from:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Would also be useful.

Mark

On Tue, Sep 14, 2010 at 8:51 PM, Rawlins rob...@supporttime.com wrote:

 Hello All,

 I'm getting a curious error within the application which looks
 something like this: http://pastebin.com/x36QVcss

 I seem to get this on a semi-regular basis with objects which are
 related somehow to my Member object.

 However, I'm getting this error before we attempt to save() the
 entity, it gets produced even when just reading the entity, or when we
 try and establish a relationship between entities using the
 setParentFoo() or setFoo() methods.

 What could be causing this issue? Under what circumstances should I be
 getting this?

 If you want any more information then please let me know.

 Thanks,

 Robert

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Insert key error before even saving the object.

2010-09-14 Thread Mark Mandel
   - What version of Transfer you are using?
   - What CFML Engine you are on, and what version it is?
   - What database are you using?
   - What Operating System you are on ?

Mark


On Tue, Sep 14, 2010 at 9:12 PM, Rawlins rob...@supporttime.com wrote:

 HI Mark,

 Thanks for the speedy reply. I hope that I've got the right
 circumstances under which this exception is being thrown but I'm
 pretty sure I have.

 This is the code from within that file.

 http://pastebin.com/jYEStQhH

 Let me know your thoughts.

 Robert

 On Sep 14, 12:03 pm, Mark Mandel mark.man...@gmail.com wrote:
  Never seen that before.
 
  What's the code on:
 
 C:\inetpub\wwwroot\sofasandstuff\model\data\transfer\member.entitlementGrou
 p$CAB78228C23D74845EC243B81D72F48D.transfer
  (189)
 
  ?
 
  Usual details from:
 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-qu...
 
  Would also be useful.
 
  Mark
 
 
 
 
 
  On Tue, Sep 14, 2010 at 8:51 PM, Rawlins rob...@supporttime.com wrote:
   Hello All,
 
   I'm getting a curious error within the application which looks
   something like this:http://pastebin.com/x36QVcss
 
   I seem to get this on a semi-regular basis with objects which are
   related somehow to my Member object.
 
   However, I'm getting this error before we attempt to save() the
   entity, it gets produced even when just reading the entity, or when we
   try and establish a relationship between entities using the
   setParentFoo() or setFoo() methods.
 
   What could be causing this issue? Under what circumstances should I be
   getting this?
 
   If you want any more information then please let me know.
 
   Thanks,
 
   Robert
 
   --
   Before posting questions to the group please read:
 
  http://groups.google.com/group/transfer-dev/web/how-to-ask-support-qu.
 ..
 
   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 transfer-dev@googlegroups.com
   To unsubscribe from this group, send email to
   transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 transfer-dev%2bunsubscr...@google groups.com
   For more options, visit this group at
  http://groups.google.com/group/transfer-dev?hl=en
 
  --
  E: mark.man...@gmail.com
  T:http://www.twitter.com/neurotic
  W:www.compoundtheory.com
 
  cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australiahttp://
 www.cfobjective.com.au
 
  Hands-on ColdFusion ORM Trainingwww.ColdFusionOrmTraining.com

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Insert key error before even saving the object.

2010-09-14 Thread Mark Mandel
Looks like it's a bug I fixed in the SVN version.

Just compared the Definition generator, and it's got a:

//set it to overwrite = true, as a child could be used in more than 1
parent.
arguments.buffer.writeLine('StructInsert(composite, parent'
arguments.object.getObjectName() '_transferObject, getThisObject(),
true);');

Looks like that should solve the problem.

Mark

On Tue, Sep 14, 2010 at 9:45 PM, Rawlins rob...@supporttime.com wrote:

 Apologies SQL 2008 Express

 On Sep 14, 12:36 pm, Rawlins rob...@supporttime.com wrote:
  Hi Mark,
 
  Transfer 1.1 Stable build.
  Coldfusion 8.0.1 with all the latest hotfixes applied.
  SQL Server 2005 Express
  Windows Server 2008
 
  Thanks,
 
  Robert
 
  On Sep 14, 12:22 pm, Mark Mandel mark.man...@gmail.com wrote:
 
 
 
  - What version of Transfer you are using?
  - What CFML Engine you are on, and what version it is?
  - What database are you using?
  - What Operating System you are on ?
 
   Mark
 
   On Tue, Sep 14, 2010 at 9:12 PM, Rawlins rob...@supporttime.com
 wrote:
HI Mark,
 
Thanks for the speedy reply. I hope that I've got the right
circumstances under which this exception is being thrown but I'm
pretty sure I have.
 
This is the code from within that file.
 
   http://pastebin.com/jYEStQhH
 
Let me know your thoughts.
 
Robert
 
On Sep 14, 12:03 pm, Mark Mandel mark.man...@gmail.com wrote:
 Never seen that before.
 
 What's the code on:
 
   
 C:\inetpub\wwwroot\sofasandstuff\model\data\transfer\member.entitlementGrou
p$CAB78228C23D74845EC243B81D72F48D.transfer
 (189)
 
 ?
 
 Usual details from:
   
 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-qu...
 
 Would also be useful.
 
 Mark
 
 On Tue, Sep 14, 2010 at 8:51 PM, Rawlins rob...@supporttime.com
 wrote:
  Hello All,
 
  I'm getting a curious error within the application which looks
  something like this:http://pastebin.com/x36QVcss
 
  I seem to get this on a semi-regular basis with objects which are
  related somehow to my Member object.
 
  However, I'm getting this error before we attempt to save() the
  entity, it gets produced even when just reading the entity, or
 when we
  try and establish a relationship between entities using the
  setParentFoo() or setFoo() methods.
 
  What could be causing this issue? Under what circumstances should
 I be
  getting this?
 
  If you want any more information then please let me know.
 
  Thanks,
 
  Robert
 
  --
  Before posting questions to the group please read:
 
 
 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-qu.
..
 
  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
 transfer-dev@googlegroups.com
  To unsubscribe from this group, send email to
  transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 transfer-dev%2bunsubscr...@google groups.com
transfer-dev%2bunsubscr...@google groups.com
  For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en
 
 --
 E: mark.man...@gmail.com
 T:http://www.twitter.com/neurotic
 W:www.compoundtheory.com
 
 cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australiahttp://
   www.cfobjective.com.au
 
 Hands-on ColdFusion ORM Trainingwww.ColdFusionOrmTraining.com
 
--
Before posting questions to the group please read:
 
   
 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-qu...
 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to
transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 transfer-dev%2bunsubscr...@google groups.com
For more options, visit this group at
   http://groups.google.com/group/transfer-dev?hl=en
 
   --
   E: mark.man...@gmail.com
   T:http://www.twitter.com/neurotic
   W:www.compoundtheory.com
 
   cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australiahttp://
 www.cfobjective.com.au
 
   Hands-on ColdFusion ORM Trainingwww.ColdFusionOrmTraining.com

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

Re: [transfer-dev] Problem with cache and composite onetomany with sortorder

2010-09-13 Thread Mark Mandel
Okay,

That's starting to make more sense.

Which items are actually being edited outside of Transfer? blockcontent ?

If that's the case, what is happening when you discard the blockcontent that
is being edited?

Mark

On Mon, Sep 13, 2010 at 2:03 AM, James Allen slingsho...@googlemail.comwrote:

  Hi Mark,



 The problem is that my admin system is updating the data outside of
 Transfer. What I normally do is trigger a cache clear on the relevant object
 being edited which works fine. However, when updating a set of lookup table
 items (with sortorder), I can't find a way to tell Transfer to clear the
 lookup table objects so that they are then read in again on the next object
 get.



 Regarding the generated methods for sorting, would I call
 sortOneToMany(pages) on the block object being edited to force a reload of
 the lookup table to pick up the new sort order?



 onetomany name=Pages lazy=true

 link to=blockmanagement.blockcontent column=lnkIDBlock/
  collection type=array
  order property=sortOrder order=asc/
  /collection

 /onetomany



 Is there no way to just tell the lookup table to be cleared from the cache
 apart from stopping caching on this relationship?



 James.

 ---

 *James  Allen*

 *E:* ja...@jamesallen.name

 *Blog:* http://jamesallen.name

 *Twitter:* @CFJamesAllen (Coldfusion / Web development)

 *Twitter:* @jamesallenuk (General)

 *Twitter: *...@jamesallenvoice (Voiceover)



 *From:* transfer-dev@googlegroups.com [mailto:
 transfer-...@googlegroups.com] *On Behalf Of *Mark Mandel
 *Sent:* 10 September 2010 14:42

 *To:* transfer-dev@googlegroups.com
 *Subject:* Re: [transfer-dev] Problem with cache and composite onetomany
 with sortorder



 But if you update an item through Transfer, any collection it is in should
 re-sort itself implicitly once it is saved.

 Are you not seeing that?

 If you need, there is also an explicit generated function for telling a
 collection to sort.:
 http://docs.transfer-orm.com/wiki/Generated_Methods.cfm

 Mark

 On Wed, Sep 8, 2010 at 7:34 PM, James Allen slingsho...@googlemail.com
 wrote:

 Hi Mark,



 I'm not quite sure what you mean. I need to clear the cache so that the
 sort order of the lookup table is refreshed whenever this field is modified
 (i.e. when the admin system is used to re-order the pages allocated to each
 block).



 At the lowest level I tried looping each item stored in the lookup table
 based on both composite id's but that does not clear the lookup table
 objects from the cache (blockmanagement.blockcontent).



 What is the correct way of refreshing the lookup table without simply
 turning the cache off for this relationship (which I assume is not the only
 answer)?



 Sorry if I've misunderstood though.



 James.



 ---

 *James  Allen*

 *E:* ja...@jamesallen.name

 *Blog:* http://jamesallen.name

 *Twitter:* @CFJamesAllen (Coldfusion / Web development)

 *Twitter:* @jamesallenuk (General)

 *Twitter: *...@jamesallenvoice (Voiceover)



 *From:* transfer-dev@googlegroups.com [mailto:
 transfer-...@googlegroups.com] *On Behalf Of *Mark Mandel
 *Sent:* 08 September 2010 01:29
 *To:* transfer-dev@googlegroups.com
 *Subject:* Re: [transfer-dev] Problem with cache and composite onetomany
 with sortorder



 Stupid question - why do you need to clear the cache?

 If you remove an object from the cache, it will be removed, and any
 relationships it is in will be cleared.

 So work bottom up, rather than top down.

 Mark

 On Mon, Sep 6, 2010 at 9:20 PM, James Allen slingsho...@googlemail.com
 wrote:

 Hi guys,

 I've having problems working out how to correctly remove a lookup
 table from the cache which is constructed using a onetomany
 composition but using compositeid's to allow the use of a manytomany
 lookup table with a sortorder field.

 I'm running Transfer 1.1 final, Railo and MS SQL 2005 on Server 2003.

 Here is my transfer.xml showing the objects:

package name=blockmanagement
object name=building table=tblBuildings
 decorator=model.blockmanagement.building
id name=id type=numeric /
property name=BuildingName type=string
 column=BuildingName /
 
property name=smallImage type=string
 column=SmallImage /

!-- Link between a building and the blocks
 it contains --
onetomany name=Blocks proxied=true
 lazy=true
link to=blockmanagement.block
 column=lnkIDBuilding/

collection type=array
order property=BlockName
 order=asc /
/collection
/onetomany
/object

object name=block table=tblBlocks
 decorator

Re: [transfer-dev] Problem with cache and composite onetomany with sortorder

2010-09-13 Thread Mark Mandel
Both should work, if you discard the block it should be reloaded on next
request for the object.

If you discard the blockcontent it should clear the array that contains it,
so that next lazy load should include it.

Not sure why you aren't doing the updates with Transfer in your admin tool,
if you have it there to discard, why can't you do your updates with it?

Mark



On Tue, Sep 14, 2010 at 8:31 AM, James Allen slingsho...@googlemail.comwrote:

 Hi Mark,

 Yes it's blockmanagement.blockcontent which is a 3 field lookup table:

 lnkIDBlock
 lnkIDContent
 SortOrder

 The admin system queries the lookup table to show the pages that are
 allocated to the block in question. On the admin page the user is able to
 re-order the pages which causes the 'SortOrder' field to be updated in the
 lookup table.

 My problem is knowing how to correctly clear the blockcontent composition
 in the block object. I have tried looping each item in the lookup table and
 clearing each one:

 cfset var pages = getBlock(arguments.blockID).getPagesArray()
 cfset var x = 0
 cfset var keys = StructNew()

 cfloop from=1 to=#ArrayLen(pages)# index=x
 cfset keys[lnkIDBlock] = pages[x].getlnkIDBlock()
 cfset keys[lnkIDContent] = pages[x].getlnkIDContent()

 cfset

 getTransfer().discardByClassAndKey(className=blockmanagement.blockcontent,key=keys)
 /cfloop

 This was my last ditch attempt but the sortorder of the
 blockmanagement.blockcontent composition within the block object does not
 change until I reload transfer.

 I assumed that if I discarded the specific block in question that this
 would also cause the blockcontent composition to be cleared as well. This is
 not the case though?

 Any ideas on how to correctly clear the cache in this case?

 Thanks for your help,
 James.

 On 13 September 2010 23:20, Mark Mandel mark.man...@gmail.com wrote:

 Okay,

 That's starting to make more sense.

 Which items are actually being edited outside of Transfer? blockcontent ?

 If that's the case, what is happening when you discard the blockcontent
 that is being edited?

 Mark

 On Mon, Sep 13, 2010 at 2:03 AM, James Allen 
 slingsho...@googlemail.comwrote:

  Hi Mark,



 The problem is that my admin system is updating the data outside of
 Transfer. What I normally do is trigger a cache clear on the relevant object
 being edited which works fine. However, when updating a set of lookup table
 items (with sortorder), I can't find a way to tell Transfer to clear the
 lookup table objects so that they are then read in again on the next object
 get.



 Regarding the generated methods for sorting, would I call
 sortOneToMany(pages) on the block object being edited to force a reload of
 the lookup table to pick up the new sort order?



 onetomany name=Pages lazy=true

 link to=blockmanagement.blockcontent column=lnkIDBlock/
  collection type=array
  order property=sortOrder order=asc/
  /collection

 /onetomany



 Is there no way to just tell the lookup table to be cleared from the
 cache apart from stopping caching on this relationship?



 James.

 ---

 *James  Allen*

 *E:* ja...@jamesallen.name

 *Blog:* http://jamesallen.name

 *Twitter:* @CFJamesAllen (Coldfusion / Web development)

 *Twitter:* @jamesallenuk (General)

 *Twitter: *...@jamesallenvoice (Voiceover)



 *From:* transfer-dev@googlegroups.com [mailto:
 transfer-...@googlegroups.com] *On Behalf Of *Mark Mandel
 *Sent:* 10 September 2010 14:42

 *To:* transfer-dev@googlegroups.com
 *Subject:* Re: [transfer-dev] Problem with cache and composite onetomany
 with sortorder



 But if you update an item through Transfer, any collection it is in
 should re-sort itself implicitly once it is saved.

 Are you not seeing that?

 If you need, there is also an explicit generated function for telling a
 collection to sort.:
 http://docs.transfer-orm.com/wiki/Generated_Methods.cfm

 Mark

 On Wed, Sep 8, 2010 at 7:34 PM, James Allen slingsho...@googlemail.com
 wrote:

 Hi Mark,



 I'm not quite sure what you mean. I need to clear the cache so that the
 sort order of the lookup table is refreshed whenever this field is modified
 (i.e. when the admin system is used to re-order the pages allocated to each
 block).



 At the lowest level I tried looping each item stored in the lookup table
 based on both composite id's but that does not clear the lookup table
 objects from the cache (blockmanagement.blockcontent).



 What is the correct way of refreshing the lookup table without simply
 turning the cache off for this relationship (which I assume is not the only
 answer)?



 Sorry if I've misunderstood though.



 James.



 ---

 *James  Allen*

 *E:* ja...@jamesallen.name

 *Blog:* http://jamesallen.name

 *Twitter:* @CFJamesAllen (Coldfusion / Web development)

 *Twitter:* @jamesallenuk (General)

 *Twitter: *...@jamesallenvoice (Voiceover)



 *From:* transfer-dev@googlegroups.com [mailto:
 transfer-...@googlegroups.com

Re: [transfer-dev] transfer.EmptyQueryException

2010-09-12 Thread Mark Mandel
If you are on CF9, please try the SVN version.

Mark

On Sun, Sep 12, 2010 at 10:06 PM, marc marc.at.comp...@gmail.com wrote:

 Hi,
 I try to get an application object form Transfer. If the page is not
 requested via a form submit, the application is non-existent, so I use
 cfparam to define it. If the value of rc.applications is , I
 expect a new empty Transfer application object. If it has a value, I
 expect a populated Transfer object.
 This is the code

cfparam name=rc.applications default=
cfset
 rc.userapplications=transfer.get(user.application,rc.applications)

 I get this:

 Error Type:  The query provided to populate this transfer is empty :
 [N/A]
 Error Messages: transfer.EmptyQueryException
 It is likely the ID that has been selected for this query no longer
 exists

 If I fill provide an existing value for rc.applications I get a
 Transfer object.

 Why don't I get what I expect - am I doing something wrong?

 Transfer 1.1
 Coldfusion 9,0,1,274733  on JRun

 I hope Transfer is compatible with CF9. I saw the last update to
 Transfer (1.2) is over a year old...

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Problem with cache and composite onetomany with sortorder

2010-09-10 Thread Mark Mandel
But if you update an item through Transfer, any collection it is in should
re-sort itself implicitly once it is saved.

Are you not seeing that?

If you need, there is also an explicit generated function for telling a
collection to sort.:
http://docs.transfer-orm.com/wiki/Generated_Methods.cfm

Mark


On Wed, Sep 8, 2010 at 7:34 PM, James Allen slingsho...@googlemail.comwrote:

  Hi Mark,



 I'm not quite sure what you mean. I need to clear the cache so that the
 sort order of the lookup table is refreshed whenever this field is modified
 (i.e. when the admin system is used to re-order the pages allocated to each
 block).



 At the lowest level I tried looping each item stored in the lookup table
 based on both composite id's but that does not clear the lookup table
 objects from the cache (blockmanagement.blockcontent).



 What is the correct way of refreshing the lookup table without simply
 turning the cache off for this relationship (which I assume is not the only
 answer)?



 Sorry if I've misunderstood though.



 James.



 ---

 *James  Allen*

 *E:* ja...@jamesallen.name

 *Blog:* http://jamesallen.name

 *Twitter:* @CFJamesAllen (Coldfusion / Web development)

 *Twitter:* @jamesallenuk (General)

 *Twitter: *...@jamesallenvoice (Voiceover)



 *From:* transfer-dev@googlegroups.com [mailto:
 transfer-...@googlegroups.com] *On Behalf Of *Mark Mandel
 *Sent:* 08 September 2010 01:29
 *To:* transfer-dev@googlegroups.com
 *Subject:* Re: [transfer-dev] Problem with cache and composite onetomany
 with sortorder



 Stupid question - why do you need to clear the cache?

 If you remove an object from the cache, it will be removed, and any
 relationships it is in will be cleared.

 So work bottom up, rather than top down.

 Mark


  On Mon, Sep 6, 2010 at 9:20 PM, James Allen slingsho...@googlemail.com
 wrote:

 Hi guys,

 I've having problems working out how to correctly remove a lookup
 table from the cache which is constructed using a onetomany
 composition but using compositeid's to allow the use of a manytomany
 lookup table with a sortorder field.

 I'm running Transfer 1.1 final, Railo and MS SQL 2005 on Server 2003.

 Here is my transfer.xml showing the objects:

package name=blockmanagement
object name=building table=tblBuildings
 decorator=model.blockmanagement.building
id name=id type=numeric /
property name=BuildingName type=string
 column=BuildingName /
 
property name=smallImage type=string
 column=SmallImage /

!-- Link between a building and the blocks
 it contains --
onetomany name=Blocks proxied=true
 lazy=true
link to=blockmanagement.block
 column=lnkIDBuilding/

collection type=array
order property=BlockName
 order=asc /
/collection
/onetomany
/object

object name=block table=tblBlocks
 decorator=model.blockmanagement.block
id name=id type=numeric /
property name=blockName type=string
 column=BlockName /
property name=buildingID type=numeric
 column=lnkIDBuilding /
 
property name=contactEmail type=string
 column=ContactEmail /
 

!-- Link between the block and the content
 pages it has --
onetomany name=Pages lazy=true
link to=blockmanagement.blockcontent
 column=lnkIDBlock/
collection type=array
order property=sortOrder
 order=asc/
/collection
/onetomany
/object

object name=blockcontent
 table=lnkBlock_Content
compositeid
property name=lnkIDBlock/
property name=lnkIDContent/
/compositeid

property name=lnkIDBlock type=numeric
 column=lnkIDBlock /
property name=lnkIDContent type=numeric
 column=lnkIDContent /
property name=sortOrder type=numeric
 column=SortOrder /

!-- Link between a block and a news item
 --
manytoone name=Page lazy=false
link to=content.content
 column=lnkIDContent/
/manytoone
/object
/package

 The only object I'm

Re: [transfer-dev] Problem with cache and composite onetomany with sortorder

2010-09-07 Thread Mark Mandel
Stupid question - why do you need to clear the cache?

If you remove an object from the cache, it will be removed, and any
relationships it is in will be cleared.

So work bottom up, rather than top down.

Mark



On Mon, Sep 6, 2010 at 9:20 PM, James Allen slingsho...@googlemail.comwrote:

 Hi guys,

 I've having problems working out how to correctly remove a lookup
 table from the cache which is constructed using a onetomany
 composition but using compositeid's to allow the use of a manytomany
 lookup table with a sortorder field.

 I'm running Transfer 1.1 final, Railo and MS SQL 2005 on Server 2003.

 Here is my transfer.xml showing the objects:

package name=blockmanagement
object name=building table=tblBuildings
 decorator=model.blockmanagement.building
id name=id type=numeric /
property name=BuildingName type=string
 column=BuildingName /
 
property name=smallImage type=string
 column=SmallImage /

!-- Link between a building and the blocks
 it contains --
onetomany name=Blocks proxied=true
 lazy=true
link to=blockmanagement.block
 column=lnkIDBuilding/

collection type=array
order property=BlockName
 order=asc /
/collection
/onetomany
/object

object name=block table=tblBlocks
 decorator=model.blockmanagement.block
id name=id type=numeric /
property name=blockName type=string
 column=BlockName /
property name=buildingID type=numeric
 column=lnkIDBuilding /
 
property name=contactEmail type=string
 column=ContactEmail /
 

!-- Link between the block and the content
 pages it has --
onetomany name=Pages lazy=true
link to=blockmanagement.blockcontent
 column=lnkIDBlock/
collection type=array
order property=sortOrder
 order=asc/
/collection
/onetomany
/object

object name=blockcontent
 table=lnkBlock_Content
compositeid
property name=lnkIDBlock/
property name=lnkIDContent/
/compositeid

property name=lnkIDBlock type=numeric
 column=lnkIDBlock /
property name=lnkIDContent type=numeric
 column=lnkIDContent /
property name=sortOrder type=numeric
 column=SortOrder /

!-- Link between a block and a news item
 --
manytoone name=Page lazy=false
link to=content.content
 column=lnkIDContent/
/manytoone
/object
/package

 The only object I'm not showing in the above is the content.content
 (pages) object as its not part my issue.

 As you'll see from the above, a building can have a number of blocks.
 Each block can have a number of content pages. Now these content pages
 are composed using a onetomany to the 'blockcontent' object which is
 actually a lookup table with the following d/b structure:

 lnkIDBlock
 lnkIDContent
 SortOrder

 This object then has a manytoone composition to link the lookup table
 to the content pages the block has. I used this method so that I can
 handle 'SortOrder' field in the lookup table.

 The problem I'm having is that I can't find a way to remove the lookup
 table data from the cache. My first thought was that if I simply
 remove the block from the cache:

 cfset

 getTransfer().discardByClassAndKey(className=blockmanagement.block,key=arguments.blockID)

 ... that this would be enough to clear the pages lookup table
 composition as well?

 However, this does not work and the old sortorder is maintained of the
 frontend of the site until a full transfer restart.

 I then thought that perhaps I need to loop the content of the lookup
 table and individually clear each 'blockcontent' object:

 cfset var pages = getBlock(arguments.blockID).getPagesArray()
 cfset var x = 0
 cfset var keys = StructNew()

 cfloop from=1 to=#ArrayLen(pages)# index=x
 cfset keys[lnkIDBlock] = pages[x].getlnkIDBlock()
 cfset keys[lnkIDContent] = pages[x].getlnkIDContent()

 cfset

 

Re: [transfer-dev] Re: Query not parsed?

2010-09-03 Thread Mark Mandel
I meant - what are the query param values?

Do the values of the query params match up to what the columns data types
are in the database?

Mark

On Thu, Sep 2, 2010 at 5:53 PM, Moni rebs...@media-solutions.de wrote:

 Hi Mark,

 Thanks for your reply.

 I send this structure to transfer.get():

 cfset key = StructNew()
 cfset tmp = StructInsert( key, mid, 1)
 cfset tmp = StructInsert( key, bid, 1000)

 cfset oBesucher = application.transfer.get( besucher, key )

 And it works fine but not on the second server (see my first post).

 Anymore hints?

 Greeting, Moni

 On 2 Sep., 09:29, Mark Mandel mark.man...@gmail.com wrote:
  What are the param values?
 
  Looks like you're passing a string to something that is expecting a
 number.
 
  http://ora-01722.ora-code.com/
 
  Mark
 
 
 
  On Thu, Sep 2, 2010 at 3:29 AM, Moni rebs...@media-solutions.de wrote:
   Hi,
 
   I'm using Transfer 1.1 with Oracle 10 Database on Coldfusion MX 7 with
   the Hotfix 2.
 
   I'm trying to receive a resultset with transfer.get() on two different
   server.
   On the first server I get the correct resultset but the second server
   throws an sql-error. It says ORA-01722: invalid Number.
   It seems that the query wasn't parsed, it still contains (param 1),
   (param 2) and so on (see below).
 
   The configurations (CF and Database) on both servers are indentical
   except the OS. The first machine runs with Window Server 2000, the
   other with Windows XP.
 
   Does anyone have any suggestions?
 
   Here is the transfer.xml
 
   transfer
  objectDefinitions
  object name=mandant table=besuv.mandant
  id name=mid type=numeric /
  property name=mandant_sts type=numeric
   column=sts/
  property name=mandant type=string /
  /object
  object name=besucher table=besuv.besucher
  compositeid
  manytoone name=mid /
  property name=bid /
  /compositeid
  manytoone name=mid
  link column=mid to=mandant/
  /manytoone
  property name=bid type=numeric /
  property name=sts type=numeric /
  property name=nname type=string /
  property name=vname type=string /
  /object
  /objectDefinitions
   /transfer
 
   And this is the CF-Code:
 
   cfset key = StructNew()
   cfset tmp = StructInsert( key, mid, 1)
   cfset tmp = StructInsert( key, bid, 1000)
 
   cfset oBesucher = application.transfer.get( besucher, key )
 
   SQL-Query from the SQL-Error:
   SELECT NULL AS mandant,
besuv_besucher_1.mid,
besuv_besucher_1.vname,
besuv_besucher_1.nname,
besuv_besucher_1.sts,
besuv_besucher_1.bid,
besuv_besucher_1.bid
||'|'
||besuv_besucher_1.mid
||'|'  AS transfer_compositeid,
NULL   AS transfer_parentKey,
1  AS transfer_orderIndex,
'besucher' AS transfer_className,
'' AS transfer_parentClassName,
'' AS transfer_parentParentClassName,
'' AS transfer_parentCompositeName,
'false'AS transfer_isArray,
'' AS transfer_compositeName,
'false'AS transfer_isProxied
   FROM besuv.besucher besuv_besucher_1
   WHERE besuv_besucher_1.bid = (param 1)
   AND besuv_besucher_1.mid   = (param 2)
   UNION ALL
   SELECT besuv_mandant_2.mandant,
besuv_mandant_2.mid,
NULL AS vname,
NULL AS nname,
besuv_mandant_2.sts,
NULL AS bid,
''   AS transfer_compositeid,
CAST(besuv_besucher_1.bid
||'|'
||besuv_besucher_1.mid
||'|' AS VARCHAR2(1000)) AS transfer_parentKey,
2AS transfer_orderIndex,
'mandant'AS transfer_className,
'besucher'   AS transfer_parentClassName,
''   AS transfer_parentParentClassName,
''   AS transfer_parentCompositeName,
'false'  AS transfer_isArray,
'mid'AS transfer_compositeName,
'false'  AS transfer_isProxied
   FROM besuv.besucher besuv_besucher_1
   INNER JOIN besuv.mandant besuv_mandant_2
   ON besuv_besucher_1.mid= besuv_mandant_2.mid
   WHERE besuv_besucher_1.bid = (param 3)
   AND besuv_besucher_1.mid   = (param 4)
   AND besuv_mandant_2.mid   IS NOT NULL
   ORDER BY transfer_orderIndex ASC
 
   --
   Before posting questions to the group please read:
 
  http://groups.google.com/group/transfer-dev/web/how-to-ask-support-qu.
 ..
 
   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

Re: [transfer-dev] Query not parsed?

2010-09-02 Thread Mark Mandel
What are the param values?

Looks like you're passing a string to something that is expecting a number.

http://ora-01722.ora-code.com/

Mark

On Thu, Sep 2, 2010 at 3:29 AM, Moni rebs...@media-solutions.de wrote:

 Hi,

 I'm using Transfer 1.1 with Oracle 10 Database on Coldfusion MX 7 with
 the Hotfix 2.

 I'm trying to receive a resultset with transfer.get() on two different
 server.
 On the first server I get the correct resultset but the second server
 throws an sql-error. It says ORA-01722: invalid Number.
 It seems that the query wasn't parsed, it still contains (param 1),
 (param 2) and so on (see below).

 The configurations (CF and Database) on both servers are indentical
 except the OS. The first machine runs with Window Server 2000, the
 other with Windows XP.

 Does anyone have any suggestions?

 Here is the transfer.xml

 transfer
objectDefinitions
object name=mandant table=besuv.mandant
id name=mid type=numeric /
property name=mandant_sts type=numeric
 column=sts/
property name=mandant type=string /
/object
object name=besucher table=besuv.besucher
compositeid
manytoone name=mid /
property name=bid /
/compositeid
manytoone name=mid
link column=mid to=mandant/
/manytoone
property name=bid type=numeric /
property name=sts type=numeric /
property name=nname type=string /
property name=vname type=string /
/object
/objectDefinitions
 /transfer

 And this is the CF-Code:

 cfset key = StructNew()
 cfset tmp = StructInsert( key, mid, 1)
 cfset tmp = StructInsert( key, bid, 1000)

 cfset oBesucher = application.transfer.get( besucher, key )


 SQL-Query from the SQL-Error:
 SELECT NULL AS mandant,
  besuv_besucher_1.mid,
  besuv_besucher_1.vname,
  besuv_besucher_1.nname,
  besuv_besucher_1.sts,
  besuv_besucher_1.bid,
  besuv_besucher_1.bid
  ||'|'
  ||besuv_besucher_1.mid
  ||'|'  AS transfer_compositeid,
  NULL   AS transfer_parentKey,
  1  AS transfer_orderIndex,
  'besucher' AS transfer_className,
  '' AS transfer_parentClassName,
  '' AS transfer_parentParentClassName,
  '' AS transfer_parentCompositeName,
  'false'AS transfer_isArray,
  '' AS transfer_compositeName,
  'false'AS transfer_isProxied
 FROM besuv.besucher besuv_besucher_1
 WHERE besuv_besucher_1.bid = (param 1)
 AND besuv_besucher_1.mid   = (param 2)
 UNION ALL
 SELECT besuv_mandant_2.mandant,
  besuv_mandant_2.mid,
  NULL AS vname,
  NULL AS nname,
  besuv_mandant_2.sts,
  NULL AS bid,
  ''   AS transfer_compositeid,
  CAST(besuv_besucher_1.bid
  ||'|'
  ||besuv_besucher_1.mid
  ||'|' AS VARCHAR2(1000)) AS transfer_parentKey,
  2AS transfer_orderIndex,
  'mandant'AS transfer_className,
  'besucher'   AS transfer_parentClassName,
  ''   AS transfer_parentParentClassName,
  ''   AS transfer_parentCompositeName,
  'false'  AS transfer_isArray,
  'mid'AS transfer_compositeName,
  'false'  AS transfer_isProxied
 FROM besuv.besucher besuv_besucher_1
 INNER JOIN besuv.mandant besuv_mandant_2
 ON besuv_besucher_1.mid= besuv_mandant_2.mid
 WHERE besuv_besucher_1.bid = (param 3)
 AND besuv_besucher_1.mid   = (param 4)
 AND besuv_mandant_2.mid   IS NOT NULL
 ORDER BY transfer_orderIndex ASC

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

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

Re: [transfer-dev] Re: clone() before delete()?

2010-08-16 Thread Mark Mandel
What happens if you try the clone?

Honestly, Transfer was built with this sort of referential failure was an
non-expected error, and can (apparently) cause issues.

I think the easiest option - do the delete by SQL, catch the error. If it
doesn't error, discard the object from the cache.

Mark

On Tue, Aug 17, 2010 at 4:41 AM, Brian G brian-goo...@vfive.com wrote:


 On Aug 12, 2:35 pm, Mark Mandel mark.man...@gmail.com wrote:
  I guess the next question is - why bother with a hard delete at all then?

 A hard delete is desired, there are certain reporting requirements
 that prevent us from deleting records.

 Will clone() before delete() solve this?  Or should Transfer be
 deleting the object before removing the parent from the object?


 Brian


 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Better way of achieving has-many-through relationships.

2010-08-12 Thread Mark Mandel
That's the best way of doing it.

You have to traverse your object model :)

Mark

On Thu, Aug 12, 2010 at 6:40 PM, Rawlins rob...@supporttime.com wrote:

 Hello Chaps,

 I've got a few instances in an application where I have a relationship
 in which an entity can have many of another through a 3rd entity. For
 example let me show you my XML configuration.

 http://pastebin.com/RuF9USfU

 Notice that I have an order object, each order has multiple items in
 it, and each item has a courier assigned to it. Therefor the Order has
 many couriers through an item.

 In the application I need to get a list of all couriers assigned to a
 specific order. At the moment I achieve this by adding a
 'getCouriers()' method to the order decorator which loops over the
 items, creating a struct of the couriers, like so.

 http://pastebin.com/nCqZG4GP

 However, this just doesn't seem all that efficient to me, is there a
 better way of doing this?

 Thanks guys,

 Robert

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Where to find version 1.2 Final?

2010-08-12 Thread Mark Mandel
You got it!

Mark

On Thu, Aug 12, 2010 at 1:49 PM, Göran gsreel...@gmail.com wrote:

 Ah, ok. And in SVN the latest stable is 1.1 Final? The version 689 in
 transfer/trunk is that one experimental?


 On Aug 12, 5:43 am, Mark Mandel mark.man...@gmail.com wrote:
  There is no 1.2 final... there is only SVN.
 
  I've been meaning to push out a 1.2 final from SVN, but have been
 extremely
  busy, so my apologies on that.
 
  Mark
 
 
 
  On Thu, Aug 12, 2010 at 1:42 PM, Göran gsreel...@gmail.com wrote:
   Hi,
   I am using version 1.1, and having some strange problem when I change
   datasource name in Coldbox.
 
   So I was looking for a newer version and saw in the Tracker that there
   was a version 1.2 Final (here:
 
  http://tracker.transfer-orm.com/milestones.cfm?p=89977683-A728-9CD3-A.
 ..
   )
   from 30 September 2009. But I cant find it in the svn (http://
   svn.riaforge.org/transfer/).
 
   So my question is: Is there a version 1.2 Final and where do I
   download it?
 
   --
   Before posting questions to the group please read:
 
  http://groups.google.com/group/transfer-dev/web/how-to-ask-support-qu.
 ..
 
   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 transfer-dev@googlegroups.com
   To unsubscribe from this group, send email to
   transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 transfer-dev%2bunsubscr...@googlegroups.comtransfer-dev%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/transfer-dev?hl=en
 
  --
  E: mark.man...@gmail.com
  T:http://www.twitter.com/neurotic
  W:www.compoundtheory.com
 
  cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australiahttp://
 www.cfobjective.com.au
 
  Hands-on ColdFusion ORM Trainingwww.ColdFusionOrmTraining.com

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Where to find version 1.2 Final?

2010-08-12 Thread Mark Mandel
Yeah... I got held up getting married and then going on honeymoon. (Poor
excuses I know)

I need to get that release out to door!

Mark

On Fri, Aug 13, 2010 at 10:03 AM, Dennis Clark boomf...@gmail.com wrote:


 P.S. Mark: didn't you say prior to your wedding that the next release will
 be version 1.1.1? Not that I care whether you call it 1.1.1 or 1.2, as long
 as you call it ;)




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Checking the discard queue - Possible?

2010-08-11 Thread Mark Mandel
Moving
http://docs.transfer-orm.com/html/transferapi/transfer/com/Transfer.html#isCached()

From packaged to public should do the trick for the situation you describe.

If an object has been discard()'d, then it will be listed as not as being in
the cache, as the SoftReference has been cleared at that point.

Let me know how that goes for you, and I'll commit the fix to SVN.

Interesting problem though - I totally see the issue.

Mark

On Wed, Aug 11, 2010 at 4:00 PM, Mick Hutchinson hutchinso...@gmail.comwrote:

 Mark,

 Not even sure this is possible but would there be any way to add
 methods to an ObjectCache to check if an object has been queued for
 discarding? We're seeing issues whereby bulk operations performed
 directly against the database followed by relevant discard calls are
 not performing ideally. Subsequent calls to a parent object to
 retrieve a child object are effectively creating dirty reads from
 cache. It would be of great help to add an optional boolean parameter
 to the Transfer.getMethod() which, set to true, checks if the object
 is in cache AND IS NOT in the discard queue.

 Mick.

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] clone() before delete()?

2010-08-11 Thread Mark Mandel
Stupid question, why not just do a check with some sql, rather than user a
try/catch?

Sent from my mobile device

On 12 Aug 2010 03:48, Brian G brian-goo...@vfive.com wrote:
 I have this try-delete-fall-back-to-soft-delete code:

 cfset var clubmember = getClubMember(arguments.uidClubMember) /
 cftry
 cfset variables.transfer.delete(clubmember) /
 cfreturn true /

 cfcatch type=any
 !--- there are FK dependencies, so mark as deleted ---
 cfset clubmember.setClubMemberStatus(getClubMemberStatusDeleted()) /

 cfset variables.transfer.save(clubmember) /
 cfreturn false /
 /cfcatch
 /cftry

 My object is member o2m clubmember. There are instances where the SQL
 delete fails for referential integrity reasons but it happens AFTER
 the parent has been removed so when I try to set the status and save,
 the parent ID is already set to null.

 Would cloning the clubmember before deleting resolve this condition?
 Any other suggestions?


 Brian

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/transfer-dev?hl=en

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Checking the discard queue - Possible?

2010-08-11 Thread Mark Mandel
What may be a better test is actually to discard the object, and then re-get
it, and see if it is the same object.

Just looking through how isCached is used, you would need to
rationaliseKey() it, to make sure it is in the standard format... there may
be some case sensitivity issues and Java data types that may be of issue.

Looking through the code of discard(), I'm wondering how this is possible...
there has to be almost something else at play here.

Basically discard() works like this:

gets the class and key from the object
tells the cache to discard the class and key
the cache looks up the SoftReference for that class and key
That SoftReference is then cleared, so there is no reference to the object
at all in the cache.

Subsequent calls to get / have check to see if there is a SoftReference that
refers to a CFC, and only if it exists, and if it's not null, does it return
true.

I'm wondering if maybe there is something in the process that is reloading
the object maybe? Through some sort of lazy load?

Mark


On Thu, Aug 12, 2010 at 9:37 AM, Mick Hutchinson hutchinso...@gmail.comwrote:

 Hi Mark,

 Looking through the code for transfer one would expect objects that
 have been discarded not to exist in the cache. However, I ran a
 simple
 unit test overnight and it proved otherwise. As suggested I made the
 Transfer.isCached() method public. The test involved randomly loading
 1000 parent objects and their child collections. Once everything was
 loaded I looped back through those objects discarding each parent as
 well as each child. The final iteration simply called the isCached()
 method and, if it found the object in cache, wrote a line to the
 console. Of the 1000 parent objects and their several thousand child
 objects there were 25 hits on the cache when there should have been
 zero. This would suggest to me something is amiss.

 Thoughts?

 Mick

 On Aug 11, 4:08 pm, Mark Mandel mark.man...@gmail.com wrote:
  Movinghttp://
 docs.transfer-orm.com/html/transferapi/transfer/com/Transfer.h...()http://docs.transfer-orm.com/html/transferapi/transfer/com/Transfer.h...%28%29
 
  From packaged to public should do the trick for the situation you
 describe.
 
  If an object has been discard()'d, then it will be listed as not as being
 in
  the cache, as the SoftReference has been cleared at that point.
 
  Let me know how that goes for you, and I'll commit the fix to SVN.
 
  Interesting problem though - I totally see the issue.
 
  Mark
 
  On Wed, Aug 11, 2010 at 4:00 PM, Mick Hutchinson hutchinso...@gmail.com
 wrote:
 
 
 
 
 
   Mark,
 
   Not even sure this is possible but would there be any way to add
   methods to an ObjectCache to check if an object has been queued for
   discarding? We're seeing issues whereby bulk operations performed
   directly against the database followed by relevant discard calls are
   not performing ideally. Subsequent calls to a parent object to
   retrieve a child object are effectively creating dirty reads from
   cache. It would be of great help to add an optional boolean parameter
   to the Transfer.getMethod() which, set to true, checks if the object
   is in cache AND IS NOT in the discard queue.
 
   Mick.
 
   --
   Before posting questions to the group please read:
 
  http://groups.google.com/group/transfer-dev/web/how-to-ask-support-qu.
 ..
 
   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 transfer-dev@googlegroups.com
   To unsubscribe from this group, send email to
   transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 transfer-dev%2bunsubscr...@google groups.com
   For more options, visit this group at
  http://groups.google.com/group/transfer-dev?hl=en
 
  --
  E: mark.man...@gmail.com
  T:http://www.twitter.com/neurotic
  W:www.compoundtheory.com
 
  cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australiahttp://
 www.cfobjective.com.au
 
  Hands-on ColdFusion ORM Trainingwww.ColdFusionOrmTraining.com

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http

Re: [transfer-dev] IBO's, are people using them or is there a better solution?

2010-08-09 Thread Mark Mandel
Honestly, no I haven't - but I'm open to community contribution :)

Maybe a way to turn a Decorator into an IBO?

Mark

On Mon, Aug 9, 2010 at 11:00 AM, Matthew matthewbchamb...@gmail.com wrote:

 Mark: have you thought about building the IBO into Transfer? I
 understand the dangers of implementing an IBO when you've got many
 records etc but you could highlight that in the documentation.




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: APSB10-11 hotfix breaks transfer? CONFIRMED!

2010-05-19 Thread Mark Mandel
689 is the latest revision ;o) so there is nothing after that to test on.

Mark

On Thu, May 20, 2010 at 9:31 AM, Dennis Clark boomf...@gmail.com wrote:

 Hey Mark, I've already done regression testing of our apps with SVN
 revision 689 of Transfer in preparation of upgrading our production servers
 to CF9. Is that revision likely to work with the new hotfix, or am I going
 to have to upgrade and do the regression testing all over again?

 -- Dennis


 On Fri, May 14, 2010 at 7:37 PM, Mark Mandel mark.man...@gmail.comwrote:

 So I just ran through the Unit Tests with CF9 + SQL Server, with the patch
 applied, and all passed.

 Make sure you have the latest version of Transfer from SVN.

 Just so you know, the delay in a CF9 stable release is that the full set
 of unit tests can take ~ an hour to run, and I have to do it on 3 different
 CF versions, and 4 different databases, so it takes a while.

 Mark


 On Sat, May 15, 2010 at 8:29 AM, Mark Mandel mark.man...@gmail.comwrote:

 So I'm just setting up a test bed here, but the SVN version of Transfer
 shouldn't access the Service Factory - it should go through cfdbinfo

 Has anyone tried the latest SVN version of Transfer, outside of a
 framework context?

 Mark


 On Sat, May 15, 2010 at 5:52 AM, Tom McNeer tmcn...@gmail.com wrote:

 Mark,

 Thanks for making the contact. I answered your other note. But you're
 obviously ahead of me.

 Thanks for the explanation. Let's hope Mark (the other one) will be able
 to help out with a Transfer patch. He's awfully busy with ColdSpring these
 days.



 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

 Hands-on ColdFusion ORM Training
 www.ColdFusionOrmTraining.com




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

 Hands-on ColdFusion ORM Training
 www.ColdFusionOrmTraining.com

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en


  --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

cf.Objective(ANZ) - Nov 18, 19 - Melbourne Australia
http://www.cfobjective.com.au

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: APSB10-11 hotfix breaks transfer? CONFIRMED!

2010-05-14 Thread Mark Mandel
So I'm just setting up a test bed here, but the SVN version of Transfer
shouldn't access the Service Factory - it should go through cfdbinfo

Has anyone tried the latest SVN version of Transfer, outside of a framework
context?

Mark

On Sat, May 15, 2010 at 5:52 AM, Tom McNeer tmcn...@gmail.com wrote:

 Mark,

 Thanks for making the contact. I answered your other note. But you're
 obviously ahead of me.

 Thanks for the explanation. Let's hope Mark (the other one) will be able to
 help out with a Transfer patch. He's awfully busy with ColdSpring these
 days.



 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: APSB10-11 hotfix breaks transfer? CONFIRMED!

2010-05-14 Thread Mark Mandel
So I just ran through the Unit Tests with CF9 + SQL Server, with the patch
applied, and all passed.

Make sure you have the latest version of Transfer from SVN.

Just so you know, the delay in a CF9 stable release is that the full set of
unit tests can take ~ an hour to run, and I have to do it on 3 different CF
versions, and 4 different databases, so it takes a while.

Mark

On Sat, May 15, 2010 at 8:29 AM, Mark Mandel mark.man...@gmail.com wrote:

 So I'm just setting up a test bed here, but the SVN version of Transfer
 shouldn't access the Service Factory - it should go through cfdbinfo

 Has anyone tried the latest SVN version of Transfer, outside of a framework
 context?

 Mark


 On Sat, May 15, 2010 at 5:52 AM, Tom McNeer tmcn...@gmail.com wrote:

 Mark,

 Thanks for making the contact. I answered your other note. But you're
 obviously ahead of me.

 Thanks for the explanation. Let's hope Mark (the other one) will be able
 to help out with a Transfer patch. He's awfully busy with ColdSpring these
 days.



 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

 Hands-on ColdFusion ORM Training
 www.ColdFusionOrmTraining.com




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

Hands-on ColdFusion ORM Training
www.ColdFusionOrmTraining.com

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Bean creation exception during init() of transfer.TransferFactory

2010-05-11 Thread Mark Mandel
What happens if you instantiate Transfer outside of CS/MII?

Mark

On Tue, May 11, 2010 at 7:09 PM, Mike headc...@gmail.com wrote:

 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=DataSourcePathvalue/config/datasource.xml/
 value/property
property
 name=ConfigPathvalue/config/transfer.xml/value/
 property
/bean
bean id=transferFactory class=transfer.TransferFactory
constructor-arg name=configurationref
 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 

Re: [transfer-dev] Performance of object save.

2010-04-27 Thread Mark Mandel
You don't report execution times on do you?

Mark

On Wed, Apr 28, 2010 at 6:20 AM, John Whish john.wh...@googlemail.comwrote:

 I can't see anything wrong with your config. Do you have any triggers in
 the database? Also is there anything going on in the decorator?


 On 23 April 2010 13:45, Sir Rawlins 
 robert.rawl...@thinkbluemedia.co.ukwrote:

 Hello Guys,

 I've been trying to debug a performance issue in an application which
 I have, after some tracing through I've found it appears to be the
 save method on an object which is causing the problem.

 I have an object definition which looks something like this:
 http://pastebin.com/M3RLwr4u

 This auditing footprint has relationships with a few different
 objects, in the following manor: http://pastebin.com/nSHs2ucM

 Now, when saving this object like so: http://pastebin.com/Rgbea549

 It takes anywhere between 10,000ms and 15,000ms to complete.

 Now, this just seems like an awfully long time to save what is
 essentially a very simple object.

 Perhaps I'm doing something wrong? perhaps this is expected behavior?

 I'd appreciate your help on this guys.

 Robert

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en


  --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Multiple applications with single transfer definition

2010-04-21 Thread Mark Mandel
Are you recycle()'ing objects?

Mark

On Wed, Apr 21, 2010 at 3:31 AM, aurel adeleusi...@gmail.com wrote:

 Hi all -
 Hi Mark -

 I've different website sharing the same model and back office. I've
 shared transfer objects between this different application. I'm
 running out an error, for example :

 --
 The method setParentWebSite was not found in component D:\dev\Workspace
 \lib\transfer\com\TransferObject.cfc.
 Ensure that the method is defined, and that it is spelled correctly.

 The error occurred in D:\dev\Workspace\model\transfer\definitions
 \navigation.WebSite$B89DF3BAA74E833BD2FBBE9CF0D3E118.transfer: line
 362
 Called from D:\dev\Workspace\model\transfer\definitions
 \navigation.webs...@b89df3baa74e833bd2fbbe9cf0d3e118.transfer: line
 255
 Called from D:\dev\Workspace\lib\transfer\com\dynamic
 \MethodInvoker.cfc: line 47
 Called from D:\dev\Workspace\lib\transfer\com\dynamic
 \TransferPopulator.cfc: line 113
 Called from D:\dev\Workspace\lib\transfer\com\dynamic
 \DynamicManager.cfc: line 93
 Called from D:\dev\Workspace\lib\transfer\com\Transfer.cfc: line 770
 Called from D:\dev\Workspace\model\transfer\definitions
 \navigation.WebSite$B89DF3BAA74E833BD2FBBE9CF0D3E118.transfer: line
 195
 Called from D:\dev\Workspace\model\transfer\definitions
 \navigation.WebSite$B89DF3BAA74E833BD2FBBE9CF0D3E118.transfer: line
 955
 Called from D:\dev\Workspace\model\transfer\definitions
 \navigation.webs...@b89df3baa74e833bd2fbbe9cf0d3e118.transfer: line
 200
 Called from D:\dev\Workspace\model\controller\plugins
 \languageManagerPlugin.cfc: line 25
 Called from D:\dev\Workspace\lib\MachII\framework\PluginManager.cfc:
 line 297
 Called from D:\dev\Workspace\lib\MachII\framework\RequestHandler.cfc:
 line 214
 Called from D:\dev\Workspace\lib\MachII\framework\RequestHandler.cfc:
 line 147
 Called from D:\dev\Workspace\lib\MachII\mach-ii.cfc: line 153
 Called from D:\dev\Workspace\lib\MachII\mach-ii.cfc: line 75
 Called from D:\dev\Workspace\model\AbstractApplication.cfc: line 41
 Called from D:\dev\Workspace\paris-exception.com\Application.cfc: line
 145
 360 : if(item.getIsLoaded())
 361 : {
 362 : item.setParentWebSite(getThisObject(), false, true);
 363 : }
 364 : if(NOT isDirty)
 -

 The point is I've several files WebSite$.transfer defined with a
 different hash. By inspecting the code I've understood that the hash
 is computed from the XML content and after with the hash of linked
 objects. It seems to me that the different Application construct their
 objects in different order and maybe conflict with each other.

 More of that it seemed to me that was a gain to share the
 transferFactory and the transfer object in the server scope
 (server.oTransferFactory and server.oTransfer...). I'm going to
 rolling this back to the Application scope and to dedicate a
 definitions directory for each application.

 Does it make sense ? Am I right ?

 Thanks to all,
 Aurélien

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Method to execute in decorator post-population

2010-04-14 Thread Mark Mandel
Stupid question - why?

Mark

On Wed, Apr 14, 2010 at 8:41 PM, James Allen slingsho...@googlemail.comwrote:

 I did a lot of searching about this a while ago but not sure I found
 the definitive answer. I basically need a way to execute a method in a
 decorator when it is first initialised *after* population.

 I asked this a few years ago and was told to look at
 'afterCreateMethod' in Brian Koteks TDOBeanInjector (awesome system)
 that I currently use for bean injection. However, this does NOT
 execute *after* bean population - only after dependent bean injection.

 So is there way to trigger a method in a decorator as the very last
 thing Transfer does when initialising a decorator?

 Thanks in advance.

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 To unsubscribe, reply using remove me as the subject.




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Method to execute in decorator post-population

2010-04-14 Thread Mark Mandel
I've been working 14 hour days, so my brain is totally fried...

But any reason you can't create these data structures lazily? i.e. when you
first request them inside/outside the object.

It's how I tend to do it (in any ORM strategy).

Mark

On Wed, Apr 14, 2010 at 8:56 PM, James Allen slingsho...@googlemail.comwrote:

  I'm creating internal lookup structures based on some of the data the
 object is composed of. I then use these when calling certain methods on the
 BO.



 To be more specific, I have a landlord object which is composed of a list
 of block objects (a block being part of a building the landlord is
 associated with). I need to be able to request the building objects for the
 landlord and the blocks separately. I also have other methods for requesting
 the 'current' building / block which is determined when the BO is retrieved.
 I'm trying to keep all this nicely encapsulated in the BO so being able to
 create my lookup tables ones when the object is retrieved would be very
 useful.



 Though talking it through now I realise that I could just trigger a method
 in my service when getCurrentLandlord() is called. :)



 I assume there is no other way to have a method called on the decorator
 after initial creation?



 ---

 *James  Allen*

 *E:* ja...@jamesallen.name

 *Blog:* http://jamesallen.name

 *Twitter:* @CFJamesAllen (Coldfusion / Web development)

 *Twitter:* @jamesallenuk (General)

 Lead developer of http://errr.com



 *From:* transfer-dev@googlegroups.com [mailto:
 transfer-...@googlegroups.com] *On Behalf Of *Mark Mandel
 *Sent:* 14 April 2010 11:44
 *To:* transfer-dev@googlegroups.com
 *Subject:* Re: [transfer-dev] Method to execute in decorator
 post-population



 Stupid question - why?

 Mark

 On Wed, Apr 14, 2010 at 8:41 PM, James Allen slingsho...@googlemail.com
 wrote:

 I did a lot of searching about this a while ago but not sure I found
 the definitive answer. I basically need a way to execute a method in a
 decorator when it is first initialised *after* population.

 I asked this a few years ago and was told to look at
 'afterCreateMethod' in Brian Koteks TDOBeanInjector (awesome system)
 that I currently use for bean injection. However, this does NOT
 execute *after* bean population - only after dependent bean injection.

 So is there way to trigger a method in a decorator as the very last
 thing Transfer does when initialising a decorator?

 Thanks in advance.

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 To unsubscribe, reply using remove me as the subject.




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

 Hands-on ColdFusion ORM Training @ cf.Objective() 2010
 www.ColdFusionOrmTraining.com/

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try

Re: [transfer-dev] Re: Method to execute in decorator post-population

2010-04-14 Thread Mark Mandel
On Wed, Apr 14, 2010 at 9:13 PM, James Allen slingsho...@googlemail.comwrote:

 Hi Mark,

 14 hours day! Is that even possible!? You must be like a zombie.

 I know what you mean with the first request but I was finding that I
 kept having to put in the same method call in multiple methods to
 ensure the data had been processed.


Confused by this statement - why don't you have:

function getLookupData()
{
  if(NOT lookupDataReady)
  {
 buildLookupData();
  }
  return lookupData;
}

and if you ever only go to get - getLookupData(), noone will ever be the
wiser.

(Add appropriate locking as necessary).

Mark



 I've now switched to simply calling the lookup creation method when I
 get the landlord object in the getCurrentLandlord() service call.

 Would be nice to have a method called automatically so I didn't have
 to worry about it but this fit's pretty well as I always have my
 object creation methods in a single place anyway.

 Thanks for the advice,
 James.

 On Apr 14, 12:08 pm, Mark Mandel mark.man...@gmail.com wrote:
  I've been working 14 hour days, so my brain is totally fried...
 
  But any reason you can't create these data structures lazily? i.e. when
 you
  first request them inside/outside the object.
 
  It's how I tend to do it (in any ORM strategy).
 
  Mark
 
  On Wed, Apr 14, 2010 at 8:56 PM, James Allen slingsho...@googlemail.com
 wrote:
 
 
 
I'm creating internal lookup structures based on some of the data the
   object is composed of. I then use these when calling certain methods on
 the
   BO.
 
   To be more specific, I have a landlord object which is composed of a
 list
   of block objects (a block being part of a building the landlord is
   associated with). I need to be able to request the building objects for
 the
   landlord and the blocks separately. I also have other methods for
 requesting
   the 'current' building / block which is determined when the BO is
 retrieved.
   I'm trying to keep all this nicely encapsulated in the BO so being able
 to
   create my lookup tables ones when the object is retrieved would be very
   useful.
 
   Though talking it through now I realise that I could just trigger a
 method
   in my service when getCurrentLandlord() is called. :)
 
   I assume there is no other way to have a method called on the decorator
   after initial creation?
 
   ---
 
   *James  Allen*
 
   *E:* ja...@jamesallen.name
 
   *Blog:*http://jamesallen.name
 
   *Twitter:* @CFJamesAllen (Coldfusion / Web development)
 
   *Twitter:* @jamesallenuk (General)
 
   Lead developer ofhttp://errr.com
 
   *From:* transfer-dev@googlegroups.com [mailto:
   transfer-...@googlegroups.com] *On Behalf Of *Mark Mandel
   *Sent:* 14 April 2010 11:44
   *To:* transfer-dev@googlegroups.com
   *Subject:* Re: [transfer-dev] Method to execute in decorator
   post-population
 
   Stupid question - why?
 
   Mark
 
   On Wed, Apr 14, 2010 at 8:41 PM, James Allen 
 slingsho...@googlemail.com
   wrote:
 
   I did a lot of searching about this a while ago but not sure I found
   the definitive answer. I basically need a way to execute a method in a
   decorator when it is first initialised *after* population.
 
   I asked this a few years ago and was told to look at
   'afterCreateMethod' in Brian Koteks TDOBeanInjector (awesome system)
   that I currently use for bean injection. However, this does NOT
   execute *after* bean population - only after dependent bean injection.
 
   So is there way to trigger a method in a decorator as the very last
   thing Transfer does when initialising a decorator?
 
   Thanks in advance.
 
   --
   Before posting questions to the group please read:
 
  http://groups.google.com/group/transfer-dev/web/how-to-ask-support-qu.
 ..
 
   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 transfer-dev@googlegroups.com
   To unsubscribe from this group, send email to
   transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 transfer-dev%2bunsubscr...@googlegroups.comtransfer-dev%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/transfer-dev?hl=en
 
   To unsubscribe, reply using remove me as the subject.
 
   --
   E: mark.man...@gmail.com
   T:http://www.twitter.com/neurotic
   W:www.compoundtheory.com
 
   Hands-on ColdFusion ORM Training @ cf.Objective() 2010
  www.ColdFusionOrmTraining.com/
 
   --
   Before posting questions to the group please read:
 
  http://groups.google.com/group/transfer-dev/web/how-to-ask-support-qu.
 ..
 
   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

Re: [transfer-dev] Re: Having CF9 use transfer 1.1SVN's CF8 modifications?

2010-04-13 Thread Mark Mandel
Sincere apology to all.

I got super busy with getting married about two weeks ago (it was a surprise
wedding, so I couldn't tell anyone what was going on), and now prepping for
cf.O(), I just haven't had the time to do a full suite of tests.

When I get back from cf.O my first priority is to release a 1.1.1 for CF9
support.

I'm wrapping in the fix into the SVN trunk version now, and that should be
good to go for CF9.

Mark

On Wed, Apr 14, 2010 at 8:01 AM, Nando d.na...@gmail.com wrote:

 Following up on this thread, which version of Transfer is recommended to
 use on cf9? Is there anything to watch out for, or change? I'm shifting a
 web app built on Transfer to a cf9 server.

 Thanks,
 Nando


 On Fri, Feb 26, 2010 at 5:04 AM, Elliott Sprehn espr...@gmail.com wrote:


 On Feb 25, 6:08 pm, Mark Mandel mark.man...@gmail.com wrote:
  I had originally thought Luis's CacheBox was going to be coming quicker
 than
  it has come out, so it could all be rolled into the 1.2 pluggable cache
  version with another Cache Implementation, and roll it all up.
 
  I'm pretty swamped at the moment, and the fix itself it not the issue -
 its
  going through the full release checklist to make sure nothing is broken
 that
  can take a long time.  I'll see what I can do about getting out a 1.1.1
 with
  fixes for CF9, and also the CF8 vs CF9 performance issue as well as soon
 as
  I can.
 

 Awesome. Thanks!

 --
 Before posting questions to the group please read:

 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To post to this group, send email to transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




 --
 Nando M. Breiter
 The CarbonZero Project
 CP 234
 6934 Bioggio
 Switzerland

 +41 91 606 6372

 na...@carbonzero.ch
 www.carbonzero.ch

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

To unsubscribe, reply using remove me as the subject.


Re: [transfer-dev] Re: Having CF9 use transfer 1.1SVN's CF8 modifications?

2010-04-13 Thread Mark Mandel
Fix for CF9 is now in SVN /trunk so that is the way to go.

Mark

On Wed, Apr 14, 2010 at 9:18 AM, Mark Mandel mark.man...@gmail.com wrote:

 Sincere apology to all.

 I got super busy with getting married about two weeks ago (it was a
 surprise wedding, so I couldn't tell anyone what was going on), and now
 prepping for cf.O(), I just haven't had the time to do a full suite of
 tests.

 When I get back from cf.O my first priority is to release a 1.1.1 for CF9
 support.

 I'm wrapping in the fix into the SVN trunk version now, and that should be
 good to go for CF9.

 Mark


 On Wed, Apr 14, 2010 at 8:01 AM, Nando d.na...@gmail.com wrote:

 Following up on this thread, which version of Transfer is recommended to
 use on cf9? Is there anything to watch out for, or change? I'm shifting a
 web app built on Transfer to a cf9 server.

 Thanks,
 Nando


 On Fri, Feb 26, 2010 at 5:04 AM, Elliott Sprehn espr...@gmail.comwrote:


 On Feb 25, 6:08 pm, Mark Mandel mark.man...@gmail.com wrote:
  I had originally thought Luis's CacheBox was going to be coming quicker
 than
  it has come out, so it could all be rolled into the 1.2 pluggable cache
  version with another Cache Implementation, and roll it all up.
 
  I'm pretty swamped at the moment, and the fix itself it not the issue -
 its
  going through the full release checklist to make sure nothing is broken
 that
  can take a long time.  I'll see what I can do about getting out a 1.1.1
 with
  fixes for CF9, and also the CF8 vs CF9 performance issue as well as
 soon as
  I can.
 

 Awesome. Thanks!

 --
 Before posting questions to the group please read:

 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To post to this group, send email to transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




 --
 Nando M. Breiter
 The CarbonZero Project
 CP 234
 6934 Bioggio
 Switzerland

 +41 91 606 6372

 na...@carbonzero.ch
 www.carbonzero.ch

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

 Hands-on ColdFusion ORM Training @ cf.Objective() 2010
 www.ColdFusionOrmTraining.com/




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

To unsubscribe, reply using remove me as the subject.


Re: [transfer-dev] Is Transfer Dead?

2010-04-13 Thread Mark Mandel
Gary,

This has been rehashed a few times already (on this list no less).

The short answer is - development on Transfer has slowed considerably since
CF9 ORM came along.


A call to the community went out for contributors, and there was not a huge
amount of interest in code contribution, although donations did go towards
building a pluggable cache system (which is still waiting on some CF caches
to be implemented before release).

That being said, the platform is stable, so it's not going to suddenly stop
working under your feet.

Have you guys investigated CF9's ORM implementation? I would suggest doing
so, it is very good.

Mark

On Wed, Apr 14, 2010 at 9:55 AM, Gary Herman gher...@jabico.com wrote:


 I'm fairly new to this group so I might be late to the party per se.

 I don't see much happening on the Transfer website nor the issue tracker
 realted to this site, additionally there does not seem to be much movement
 on the versioning of this tool or the milestones.  My team is begin the to
 prepare for the devleopment of a new project using ColdBox and in doing so
 we're trying to decide on an ORM to use.  We very much like what we've read
 about Transfer but feel a little unsure about moving forward with it due to
 what seems like a lack of activity in this space.  Can anyone shed some
 light on this?

 Thanks,

 Gary

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 To unsubscribe, reply using remove me as the subject.




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Is Transfer Dead?

2010-04-13 Thread Mark Mandel
Dave,

I'm sorry to hear you had such a negative experience with Transfer.

Mark

On Wed, Apr 14, 2010 at 10:51 AM, Dave davidame...@gmail.com wrote:

 Gary,

 If you project will be large, have a complex object model or will be
 performance critical then choose a different ORM, I'd probably go with
 Hibernate (ORM on CF9).

 Transfer gives a great programming model at the expense of performance
 and stability.

 We are currently removing transfer from our application, it's an
 absolute PITA job that will probably cost the company a couple of
 hundred $k by the time it's complete.


 Dave


 On Apr 14, 9:55 am, Gary Herman gher...@jabico.com wrote:
  I'm fairly new to this group so I might be late to the party per se.
 
  I don't see much happening on the Transfer website nor the issue tracker
  realted to this site, additionally there does not seem to be much
 movement
  on the versioning of this tool or the milestones.  My team is begin the
 to
  prepare for the devleopment of a new project using ColdBox and in doing
 so
  we're trying to decide on an ORM to use.  We very much like what we've
 read
  about Transfer but feel a little unsure about moving forward with it due
 to
  what seems like a lack of activity in this space.  Can anyone shed some
  light on this?
 
  Thanks,
 
  Gary

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 To unsubscribe, reply using remove me as the subject.




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Is Transfer Dead?

2010-04-13 Thread Mark Mandel
I believe Railo put out call for private testers for their ORM
implementation, but in the mean time, the $$ cost of paying for CF may be
outweighed by the productivity gains you would get from their ORM
implementation.

Or you could write you model in Java as well as an option ;o) and integrate
it into your CF app, maybe with another OSS tool I may have written ;o)

Mark

On Wed, Apr 14, 2010 at 2:36 PM, Gary Herman gher...@jabico.com wrote:

  Mark,

 Thanks for the reply...  It's a shame to see a solid framework lose so much
 steam, but I surely understand the predicament your in - such is life.

 I've heard great things about Transfer so I was looking forward to getting
 my feet wet.  I'll take your advice and look at the CF9 ORM, however we were
 hoping to focus on developing with Railo.

 Thanks again,

 Gary Herman
 831.454.0850 x.13 (Office)


  --
 *From:* transfer-dev@googlegroups.com [mailto:
 transfer-...@googlegroups.com] *On Behalf Of *Mark Mandel
 *Sent:* Tuesday, April 13, 2010 5:48 PM
 *To:* transfer-dev@googlegroups.com
 *Subject:* Re: [transfer-dev] Is Transfer Dead?

 Gary,

 This has been rehashed a few times already (on this list no less).

 The short answer is - development on Transfer has slowed considerably since
 CF9 ORM came along.


 A call to the community went out for contributors, and there was not a huge
 amount of interest in code contribution, although donations did go towards
 building a pluggable cache system (which is still waiting on some CF caches
 to be implemented before release).

 That being said, the platform is stable, so it's not going to suddenly stop
 working under your feet.

 Have you guys investigated CF9's ORM implementation? I would suggest doing
 so, it is very good.

 Mark

 On Wed, Apr 14, 2010 at 9:55 AM, Gary Herman gher...@jabico.com wrote:


 I'm fairly new to this group so I might be late to the party per se.

 I don't see much happening on the Transfer website nor the issue tracker
 realted to this site, additionally there does not seem to be much movement
 on the versioning of this tool or the milestones.  My team is begin the to
 prepare for the devleopment of a new project using ColdBox and in doing so
 we're trying to decide on an ORM to use.  We very much like what we've
 read
 about Transfer but feel a little unsure about moving forward with it due
 to
 what seems like a lack of activity in this space.  Can anyone shed some
 light on this?

 Thanks,

 Gary

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 To unsubscribe, reply using remove me as the subject.




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

 Hands-on ColdFusion ORM Training @ cf.Objective() 2010
 www.ColdFusionOrmTraining.com/

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

  --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web

Re: [transfer-dev] Cannot insert explicit value for identity column in table when IDENTITY_INSERT is set to OFF

2010-03-31 Thread Mark Mandel
If you manually set the primary key value with Transfer of a new object, it
assumes you know what you are doing, and attempts to insert that value into
the database as the Primary key.

I can only assume somewhere in your code, you are setting the Id value of
your object, and it's getting passed down the line.

Mark

On Thu, Apr 1, 2010 at 4:37 AM, Elliott Sprehn espr...@gmail.com wrote:

 I'm seeing this error, though very infrequently.

 Detail  [Macromedia][SQLServer JDBC Driver][SQLServer]Cannot insert
 explicit value for identity column in table 'SurveyQuestionAnswer'
 when IDENTITY_INSERT is set to OFF.
 Tag Context
 D:\Inetpub\cflibrary\transfer\com\sql\QueryExecution.cfc (82)
 D:\Inetpub\cflibrary\transfer\com\sql\TransferInserter.cfc (376)
 D:\Inetpub\cflibrary\transfer\com\sql\TransferInserter.cfc (137)
 D:\Inetpub\cflibrary\transfer\com\sql\TransferInserter.cfc (66)
 D:\Inetpub\cflibrary\transfer\com\sql\transaction\Transaction.cfc
 (210)
 D:\Inetpub\cflibrary\transfer\com\sql\transaction\Transaction.cfc (89)
 D:\Inetpub\cflibrary\transfer\com\sql\TransferInserter.cfc (50)
 D:\Inetpub\cflibrary\transfer\com\sql\SQLManager.cfc (62)
 D:\Inetpub\cflibrary\transfer\com\Transfer.cfc (199)
 D:\Inetpub\cflibrary\transfer\com\Transfer.cfc (182)

 Transfer is generating the SQL:
 INSERT INTO
 SurveyQuestionAnswer(text,comment,selected,filePath,surveyQuestionId,Id)
 VALUES ( (param 1) , (param 2) , (param 3) , (param 4) , (param 5) ,
 (param 6) )

 (param 1) = [type='IN', class='java.lang.String', value='',
 sqltype='cf_sql_varchar'] , (param 2) = [type='IN',
 class='java.lang.String', value='', sqltype='cf_sql_varchar'] , (param
 3) = [type='IN', class='java.lang.Boolean', value='false',
 sqltype='cf_sql_bit'] , (param 4) = [type='IN',
 class='java.lang.String', value='', sqltype='cf_sql_varchar'] , (param
 5) = [type='IN', class='java.lang.Double', value='3.0',
 sqltype='cf_sql_float'] , (param 6) = [type='IN',
 class='java.lang.Double', value='6654.0', sqltype='cf_sql_float']

 Which doesn't make sense since Id is the primary key. Why would
 Transfer be manually inserting the primary key? This record does exist
 in the database though. It seems almost like Transfer is actually
 doing an INSERT on an object that already exists in the database.

 Here's the XML:
 object name=QuestionAnswer table=SurveyQuestionAnswer
decorator=com.stellr.beans.survey.QuestionAnswer

id name=Id type=numeric/
property name=text type=string/
property name=comment type=string/
property name=selected type=boolean/
property name=filePath type=string/

manytomany name=Choice table=SurveyQuestionAnswerChoice
link to=survey.QuestionAnswer
 column=surveyQuestionAnswerId/
link to=survey.QuestionChoice
 column=surveyQuestionChoiceId/
collection type=array
order property=Id order=asc/
/collection
/manytomany
manytoone name=Question
link to=survey.Question column=surveyQuestionId/
/manytoone
 /object

 The full file is here:
 http://svn.riaforge.org/saa/trunk/library/com/stellr/config/transfer/transfer.xml

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 To unsubscribe, reply using remove me as the subject.




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] is there an issue with the codegen abstractbasegenerator's use of structCopy() in CF9

2010-03-17 Thread Mark Mandel
Sorry about the late reply.

Looks like this is a bug in CF9 that they are looking at fixing.

http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=79029

Just got the email:
*
The bug entered on Thursday, July 23, 2009 has been marked verified by Adobe
ColdFusion Team.

This means Adobe ColdFusion Team has verified the behavior you've observed.

(If this email is addressed to you directly, you've logged this bug.
Otherwise, you've subscribed to this bug through the Adobe beta site and are
receiving a BCC.)

Targeted for: ColdFusion 9.0.1, Beta 1

Note:  Any targeting information included above is an estimate.  Targeting
can change during the course of bug triage.

Product Area:  CFML Function (General)
Severity: 6 - Low (Easy workaround  only affects small group)
Description:  Doing a StructCopy() on the arguments scope doesn't return a
copy of the arguments scope - it simply returns the arguments scope.This is
very confusing, as changes to the returned struct from StructCopy() also
occur on the arguments scope, as it is a reference.
*



On Sat, Mar 13, 2010 at 7:43 AM, Adam Drew epne...@gmail.com wrote:

 Mark,

 Just curious if you've encountered this issue..

 on like 87 of the AbstractBaseGenerator you use structCopy() to set
 the local state from the agruments.. then later you delete two
 arguments (path, and escapeCFML) from that state struct.. however, it
 then goes on to throw an escapeCFML not found in arguments error on my
 CF9 apps unless i change that to a Duplicate(arguments)..

 is this a known issue or could it be something else?


 regards,

 Adam Drew

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

Re: [transfer-dev] Re: error message

2010-03-09 Thread Mark Mandel
What are you setting :menuid to?

It's complaining that you're not passing in a numeric value.

Mark

On Wed, Mar 10, 2010 at 1:45 AM, marc marc.at.comp...@gmail.com wrote:

 Ok, that makes sense. So now I have this:

 cfset query=rc.transfer.createQuery(select CMS.page.text from
 CMS.page join menu.menu on CMS.page.id=menu.menu.FK_page where
 menu.menu.id=:menuId)

 and I get

 Error Type:  Database : n/a
 Error Messages: Invalid data
 [queryData]
 for CFSQLTYPE CF_SQL_FLOAT.

 [queryData] is the result of the query - html.

 The stack trace 's last line is line 82 of D:\www\wwwroot\SimpleCMS
 \transfer\com\sql\QueryExecution.cfc. So there the error got thrown.
 So the query is execurted succesfully, but an error occurs (in line 82
 in QueryExecution.cfc). Somehow the query's output is mixed with the
 error message.
 I don't use a float type in either of the two tables involved in the
 query, so I don't know what is meant by that.

 What could be the problem here?

 Marc

 On Mar 8, 11:18 pm, Mark Mandel mark.man...@gmail.com wrote:
  cfset query=rc.transfer.createQuery(
  select text from pages join
  menus on pages.id=menus.FK_page where menus.id=:menuId)
 
  Should be:
 
  cfset query=rc.transfer.createQuery(
  select *pages.*text from pages join
  menus on pages.id=menus.FK_page where menus.id=:menuId)
 
  You need to qualify the object that the property is coming from.
 
  Mark

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: Date returns as String

2010-03-08 Thread Mark Mandel
Why can't you DateAdd(), DateFormat() them? It all still works?

Mark

On Tue, Mar 9, 2010 at 7:22 AM, Cody Caughlan tool...@gmail.com wrote:

 To manipulate dates, either to add/subtract time from them and/or
 format them differently.

 On Mon, Mar 8, 2010 at 12:16 PM, Elliott Sprehn espr...@gmail.com wrote:
  On Mar 8, 12:09 pm, Louis B. louis.bra...@pixeltex.com wrote:
  Hi there
  I've some problems with Date properties returned as a string (using
  Railo 3.1 and Transfer trunk).
 
  The property is correctly defined as:
  property name=myDate type=date nullable=true /
 
  When I cfdump obj.getMyDate() I get a string returned instead of a
  date object. I've tried to write a decorator which in turn returns a
  ParseDateTime(getMyDate()). This works, but not for
  getPropertyMemento(). It seems that getPropertyMemento() doesn't call
  decorator getters.
 
  Anyone of you know how to get date objects for all date properties
  returned?
 
  Why do you need date objects? CF should automatically handle dates for
  you in almost all cases. Curious where you're seeing issues with the
  date being a string.
 
  --
  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 transfer-dev@googlegroups.com
  To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en
 

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] error message

2010-03-08 Thread Mark Mandel
cfset query=rc.transfer.createQuery(
select text from pages join
menus on pages.id=menus.FK_page where menus.id=:menuId)

Should be:

cfset query=rc.transfer.createQuery(
select *pages.*text from pages join
menus on pages.id=menus.FK_page where menus.id=:menuId)

You need to qualify the object that the property is coming from.

Mark

On Tue, Mar 9, 2010 at 9:01 AM, marc marc.at.comp...@gmail.com wrote:

 Hi I want to retrieve a record via join but keep getting an error
 message

 Table 'menus' contains a foreign key FK_page to table 'pages'.  I have
 a menuId and want to retrieve the corresponding row in table pages.

 This is my transfer config (the relevant part)

package name=menu
!-- This table contains metadata for menuitems --
object name=menu table=menus
 decorator=model.decorators.menuDecorator
id name=id type=numeric/
property name=name type=string
 column=name
 nullable=false /
property name=action type=string
 column=action
 nullable=true /
property name=active type=boolean
 column=active
 nullable=false /
property name=lft type=numeric
 column=lft nullable=false /
 
property name=rght type=numeric
 column=rght
 nullable=false /
property name=FK_page type=numeric
 column=FK_page
 nullable=false /
!-- Link between a menu and it's page--
manytoone name=pages
link to=CMS.page column=FK_page
 /
/manytoone
!-- Link between a menu and it's text--
onetomany name=menutexts
link to=menu.menuTexts
 column=FK_menuid/
collection type=array
order property=id
 order=asc/
/collection
/onetomany
/object

 [...]
package name=CMS
object name=page table=pages
id name=id type=numeric/
property name=title type=string
 column=title
 nullable=false /
property name=text type=string
 column=text
 nullable=false /
property name=contentInfo type=string
 column=contentInfo
 nullable=true /
property name=dateFrom type=date
 column=dateFrom
 nullable=true /
property name=showDateFrom type=boolean
 column=showdateFrom /
property name=dateTo type=date
 column=dateTo
 nullable=true /
property name=showDateTo type=boolean
 column=showDateTo /
manytoone name=status
link to=CMS.status
 column=FK_status/
/manytoone
manytoone name=group
link to=CMS.group
 column=FK_group/
/manytoone
manytoone name=language
link to=Language.language
 column=FK_language/
/manytoone
/object
 [..]

 This is my CF code

 cfset query=rc.transfer.createQuery(select text from pages join
 menus on pages.id=menus.FK_page where menus.id=:menuId)
 cfset query.setParam(menuId,#rc.menuid#,numeric)
 cfset rc.pageContent=rc.transfer.readByQuery(CMS.page,query)

 This is the result I get

 Error Type:  Expression : [N/A]
 Error Messages: The 2 parameter of the Left function, which is now -1,
 must be a positive integer

 A simpe cfquery

 cfquery name=pageContent datasource=eenschoolintogo
select text from pages join menus on pages.id=menus.FK_page where
 menus.id=#rc.menuId#
 /cfquery

 Gives me exactly what I want.

 How can I use transfer to do what I want here??

 Thanks,

 Marc

 --
 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 transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




-- 
E: 

[transfer-dev] Google Custom Search for Transfer

2010-02-26 Thread Mark Mandel
All,

I've noticed that for the past while search on the google group is pretty
fubar (and Verity is currently broken on my VPS), which has resulted in
several questions coming up over and over again.

To kill several birds with one stone, I set up a quick google custom search
that covers several Transfer resources, including the mailing list and the
wiki.

You can find it here:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

Have a play with it, and let me know if it useful at all, and I'll push it
out to the rest of the community.

Mark

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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: transfer.get() not returning a new instance when record does not exist

2010-02-26 Thread Mark Mandel
Aaron,

This error is due to 1.1 not working on ColdFusion 9, you need to use the
SVN version. I'm looking at releasing a 1.1.1 to combat this at the request
of the community in the near future.

Once you have updated Transfer to SVN (or pluggable cache), make sure you
restart Transfer.

Mark

On Sat, Feb 27, 2010 at 4:21 PM, Aaron Roberson aaronarober...@gmail.comwrote:

 Well that didn't work at all. Unlike someone else who reported that
 updating to the SVN version took away the EmptyQueryException problem on my
 app the problem still remains.

 I have no idea where to go from here besides writing a bunch of code to
 accommodate for transfer.get() not returning a new class instance which is
 not something I want to do..

 Any help is appreciated!!

 -Aaron


 On Fri, Feb 26, 2010 at 9:05 PM, Aaron Roberson 
 aaronarober...@gmail.comwrote:

 I just found another thread regarding the same issue. I am updating to the
 SVN version right now and hopefully it resolves the issue and does not cause
 others.

 I'll keep posting here.


 On Fri, Feb 26, 2010 at 8:15 PM, Aaron Roberson aaronarober...@gmail.com
  wrote:

 I'm on CF9 and IIS.

 When I call tranfer.get(object, 0) I get the following error instead of
 a new class instance:

 *Error Type: * The query provided to populate this transfer is empty :
 [N/A]
 *Error Messages:* transfer.EmptyQueryException
 It is likely the ID that has been selected for this query no longer
 exists

 I have the same exact code running on the same setup and am not having
 any problems with it.

 Any reason why this is happening and how to correct it to make it work as
 it is designed besides wrapping the code in conditional logic?



  --
 Before posting questions to the group please read:

 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To post to this group, send email to transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: transfer.get() not returning a new instance when record does not exist

2010-02-26 Thread Mark Mandel
Transfer is not an MVC framework... so there is no URL string.  It's totally
dependent on how you set it up in the first place.

Mark

On Sat, Feb 27, 2010 at 4:27 PM, Aaron Roberson aaronarober...@gmail.comwrote:

 I upgraded to SVN and I was just now looking in the new google group search
 you just posted and the wiki site for how to restart transfer. I don't
 remember what the query string is, can you remind me?


 On Fri, Feb 26, 2010 at 9:24 PM, Mark Mandel mark.man...@gmail.comwrote:

 Aaron,

 This error is due to 1.1 not working on ColdFusion 9, you need to use the
 SVN version. I'm looking at releasing a 1.1.1 to combat this at the request
 of the community in the near future.

 Once you have updated Transfer to SVN (or pluggable cache), make sure you
 restart Transfer.

 Mark

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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
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 transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] found some unscoped variables in trunk and v1.1

2010-02-25 Thread Mark Mandel
Fair enough :D

Mark

On Fri, Feb 26, 2010 at 1:04 AM, Andrew colossina...@gmail.com wrote:

 Yes personal preference.

 I'm just passing along the changes I needed to make to get Transfer
 working with my config of Railo.

 -- Andrew


 On Thu, Feb 25, 2010 at 1:34 AM, Mark Mandel mark.man...@gmail.com
 wrote:
  So I guess here is the question - why do they *have* to be scoped?
 
  Personal preference?
 
  Mark
 
  On Thu, Feb 25, 2010 at 3:39 PM, Andrew Clark colossina...@gmail.com
  wrote:
 
  Hi All,
 
  While running Railo in strict mode I've found some unscoped variables
  in Transfer's Javaloader b/c they're throwing exceptions.
 
  In both trunk and v1.1:
 
  com/util/JavaLoader.cfc
 
  Line 77
  -   libName = ListGetAt(name, 1, -);
  +   libName = ListGetAt(qJars.name, 1, -);
 
  Line 81
  -   ArrayAppend(aJars, directory  / 
  name);
  +   ArrayAppend(aJars, qJars.directory  /
 
  qJars.name);
 
  com/util/javaloader/JavaLoader.cfc
 
  Line 185
  -   libName = ListGetAt(name, 1, -);
  +   libName = ListGetAt(qJars.name, 1, -);
 
  Line 189
  -   ArrayAppend(aJars, path  /  name);
  +   ArrayAppend(aJars, path  / 
  qJars.name);
 
 
  I'm trying to get tBlog running and I'm finding unscoped variables
  there too... but I haven't found them all yet...
 
  -- Andrew
 
  --
  Before posting questions to the group please read:
 
 
 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
 
  You received this message because you are subscribed to the Google
 Groups
  transfer-dev group.
  To post to this group, send email to transfer-dev@googlegroups.com
  To unsubscribe from this group, send email to
  transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/transfer-dev?hl=en
 
 
 
  --
  E: mark.man...@gmail.com
  T: http://www.twitter.com/neurotic
  W: www.compoundtheory.com
 
  Hands-on ColdFusion ORM Training @ cf.Objective() 2010
  www.ColdFusionOrmTraining.com/
 
  --
  Before posting questions to the group please read:
 
 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
 
  You received this message because you are subscribed to the Google Groups
  transfer-dev group.
  To post to this group, send email to transfer-dev@googlegroups.com
  To unsubscribe from this group, send email to
  transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/transfer-dev?hl=en
 

 --
 Before posting questions to the group please read:

 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To post to this group, send email to transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.comtransfer-dev%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en




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

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com/

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] TQL Query Caching Issue

2010-02-24 Thread Mark Mandel
That's a new one on me..never seen that before.

What version of CF is this? What version of Transfer?

Could need to put a StructKeyExists() check around that reap statement, but
it shouldn't be necessary, as the ReferenceQueue.poll() should be
syncronised.

Mark

On Thu, Feb 25, 2010 at 7:18 AM, NickHaggmark nhaggm...@gmail.com wrote:

 Hi Gang!

 I'm running into a little snag right now involving using cache
 evaluation on a TQL query.  My query is relatively simple, however it
 looks like it's intermittently losing it's reference to a cached
 version of the compiled SQL statement in Transfer.  What I'm trying to
 figure out is the reason for this.

 My query looks like this:

 cfset query = getTransfer().createQuery(from template.SMSTemplate as
 t where t.name = :name and t.active = :active and t.parentTemplateID
 is null) /

 cfset query.setParam('active', 1, 'boolean') /
 cfset query.setParam('name', 'whatever name', 'string') /
 cfset query.setCacheEvaluation(true) /

 !--- pull out our queryset ---
 cfset qTemplateID = getTransfer().listByQuery(query) /

 Relatively simple query, however it's intermittently giving me the
 following error in my logs (doesn't appear to follow any real pattern
 for when it happens, but the errors appear to happen in clusters):

 Information,cfthread-7,02/24/10,14:42:18,GSS_MESSENGER,Error
 in action on incoming message = [Cannot find
 java.lang.ref.softrefere...@9aa4a2 key in structure.] [The specified
 key, java.lang.ref.softrefere...@9aa4a2, does not exist in the
 structure.] [] [[{ID={CF_CFPAGE},COLUMN={0},TEMPLATE={C:\nwmdev\apache
 \Apache2\htdocs\workspace\frameworks\transfer11\com\tql\collections
 \EvaluationCache.cfc},RAW_TRACE={   at
 cfEvaluationCache2ecfc344983282$funcREAP.runFunction(C:\nwmdev\apache
 \Apache2\htdocs\workspace\frameworks\transfer11\com\tql\collections
 \EvaluationCache.cfc:81)},TYPE={CFML},LINE={81}},
 {ID={CF_UDFMETHOD},COLUMN={0},TEMPLATE={C:\nwmdev\apache\Apache2\htdocs
 \workspace\frameworks\transfer11\com\tql\collections
 \EvaluationCache.cfc},RAW_TRACE={   at
 cfEvaluationCache2ecfc344983282$funcHAS.runFunction(C:\nwmdev\apache
 \Apache2\htdocs\workspace\frameworks\transfer11\com\tql\collections
 \EvaluationCache.cfc:30)},TYPE={CFML},LINE={30}},
 {ID={CF_TEMPLATEPROXY},COLUMN={0},TEMPLATE={C:\nwmdev\apache
 \Apache2\htdocs\workspace\frameworks\transfer11\com\tql
 \SelectStatement.cfc},RAW_TRACE={   at
 cfSelectStatement2ecfc38660934$funcSELECTSTATEMENT.runFunction(C:
 \nwmdev\apache\Apache2\htdocs\workspace\frameworks\transfer11\com\tql
 \SelectStatement.cfc:83)},TYPE={CFML},LINE={83}},
 {ID={CF_TEMPLATEPROXY},COLUMN={0},TEMPLATE={C:\nwmdev\apache
 \Apache2\htdocs\workspace\frameworks\transfer11\com\tql
 \TQLManager.cfc},RAW_TRACE={at
 cfTQLManager2ecfc1352251664$funcEVALUATEQUERY.runFunction(C:\nwmdev
 \apache\Apache2\htdocs\workspace\frameworks\transfer11\com\tql
 \TQLManager.cfc:28)},TYPE={CFML},LINE={28}},
 {ID={CF_TEMPLATEPROXY},COLUMN={0},TEMPLATE={C:\nwmdev\apache
 \Apache2\htdocs\workspace\frameworks\transfer11\com
 \Transfer.cfc},RAW_TRACE={  at
 cfTransfer2ecfc1351268847$funcLISTBYQUERY.runFunction(C:\nwmdev\apache
 \Apache2\htdocs\workspace\frameworks\transfer11\com\Transfer.cfc:
 564)},TYPE={CFML},LINE={564}},
 {ID={CF_TEMPLATEPROXY},COLUMN={0},TEMPLATE={C:\nwmdev\apache
 \Apache2\htdocs\workspace\cfc\com\nextweb\mobile\gss\service
 \TemplateService.cfc},RAW_TRACE={   at

 cfTemplateService2ecfc651746452$funcGETDEFAULTTEMPLATEIDBYNAME.runFunction(C:
 \nwmdev\apache\Apache2\htdocs\workspace\cfc\com\nextweb\mobile\gss
 \service\TemplateService.cfc:251)},TYPE={CFML},LINE={251}},
 {ID={CF_UDFMETHOD},COLUMN={0},TEMPLATE={C:\nwmdev\apache\Apache2\htdocs
 \workspace\cfc\com\nextweb\mobile\gss\service
 \TemplateService.cfc},RAW_TRACE={   at
 cfTemplateService2ecfc651746452$funcGETTEMPLATEIDBYNAME.runFunction(C:
 \nwmdev\apache\Apache2\htdocs\workspace\cfc\com\nextweb\mobile\gss
 \service\TemplateService.cfc:192)} ...

 I'm not sure what could cause this to happen, however it only seems to
 happen in one place in the application. It's failing in a block that
 takes some information collected from the URL along with a loaded
 service object and fires it off in a CFTHREAD for async processing.
 Do you think that it could possibly be an issue from being executed
 from within CFTHREAD?  When I'm firing off the thread to process the
 action that's intermittently failing from the above error(s), the
 service object that is passed in is loaded with a reference to the
 TransferFactory which is living in the application scope.

 So, in summary, here's what's happening:

 1.) Request comes in, some information is collected and a service
 object is created with a reference to Transfer (which resides in
 APPLICATION (which is persisted for 12 hours)).

 2.) The information that is collected and the service object are
 passed into a uniquely named CFTHREAD for asyc processing.

 3.) The service object processes the 

  1   2   3   4   >