rss
twitter
Find out what I'm doing, Follow Me :)
0

Few months back I found a bug in ORMExecuteQuery(), which I forgot to report. I think I mentioned on the ORM google group. Basically, in ORMExecuteQuery() if you pass the queryOption argument then the "unique" argument is ignored and it always returns array.

It wasn't a big deal before, but now with multiple datasource, it's an issue because the datasource is passed in the queryOption argument. So, if you pass the datasource, you will never get a unique object back. 

Once I report the issue I will update the post with Bug#.

Update:

Adobe has verified the bug and it is targeted for CF 10 Alpha 1

Bug# 83620

0

We are running CF 9 on Win 2008. We were having issues with our server crashing every few days. We would see ColdFusion become unresponsive, stops processing requests and CPU Spike up and stay busy at above 50%. Normal CPU usage are around 10%. I have another instance of ColdFusion running on that server and that stays up and responsive when the other goes down. So, that eliminated any server/network related issue.

Looking at application and exception log I couldn't find any issue. Running SeeFusion and Fusion Reactor didn't reveal anything either. 

Then finally, when looking at the ColdFusion server logs here is what I found:

"java.lang.OutOfMemoryError: PermGen space".

Many of these error at the time of crash! After doing some Google'ing, I found this article which confirmed the issue we were having.

http://www.cfconsultant.com/blog/2010/01/27/jvm-permgen-memory-usage-with-many-cfm-templates/

I changed the -XX:MaxPermSize to 512m. Default JVM setting for MaxPermSize is 192m. 

Happy to report that server has been up for 4 days. So, if you are running application that uses any kind of framework that creates lot of class files, make sure you set MaxPermSize appropriately.

2

It seems like Coldfusion 9 Cumulative Hot Fix 1 broke all my Mach-ii apps! Spent a day trying to debug everything rolling back my changes,
updating Mach-II etc. just to find out it was the hot fix!

Was getting all kind of weird errors on dependency injection from coldspring. I use CF ORM as well.

I'm glad I did the update only on my local machine. 

Any one else seen it? All is well now that I removed the hot fix...

Update:

This has been verified by Adobe (Bug # 82621). Here is the response from one of Adobe Engineer:

"Engineering was able to reproduce the issue you have reported and found that this issue is same as another bug we fixed recently. Bug – 82504. This bug is also caused because of regression with CHF  1. We are planning to release this bug fix along with CHF 2"

Keywords: No Parent error, CHF 1

0

ColdFusion Builder is finally here! You can buy it from here.

I have to say, I'm surprised by pricing. In a good way. At $299, it sure is worth the money. But there is more... You also get a complimentary license for Flash Builder 4 (Standard) with it! Additionally Flash Builder 4 now include pretty much all the features. See here for a version comparison.

Find out a CFBuilder tour near you to explore what CFB can do for you. If you are in Boston area, don't miss this one.

0

I'm still trying to wrap my head around the relationships in ORM. Yesterday I wanted to delete all the child entities with the parent is delete. No problem, there is an attribute for that. cascade="all-delete-orphan". Well, it wasn't working for me.

It turned out, in my Mach-II app I was using event-bean (by mistake) to prepare the bean and then calling EntityDelete() on it. The entity was getting deleted but the child entities were not getting deleted. No error either. Once I realized my mistake (event-bean), and changed to call-method to load the entity and then call entityDelete() on it everything worked fine.

So, what is the bug? Here is the code equivalent (artist-art example) of my mumbo-jumbo above:

 

var artist = new Artist();


artist.setArtistID(1);


entityDelete(artist);


 

In the code above artist is a transient object and I believe it should _not_ delete the record from the database. It should either throw error or ignore the delete. As it stands, it will delete the artist but not the arts, even with cascade="all-delete-orphan".  It even behaves a little funcky with inverse="true" option on relationship. 

Here is the code that works properly:

 

var artist = entityLoad("Artist", 1, true);


entityDelete(artist);


 

Here is thread on ORM google groups with examples:

http://groups.google.com/group/cf-orm-dev/browse_thread/thread/1d924dcc28185ddd

 

 

More Results: