The Evil Side of Maintain Database Connections and Stored Procedure Errors

A word of caution. When working with Stored Procedures in a development environment, do yourself a favor and untick the 'Maintain Database Connections' option.

If a stored procedure call results in an error, Maintaining Database Connections will sometimes cache the error and hand it back to you regardless of how the call is altered. These are very annoying symptoms to debug! In fact, when I first figured this out, I had already spent 4 hours the previous day combing through an Oracle stored procedure for any possible error when I logged in fresh at 8AM to find the process magically working. I felt like I was on Candid Camera. When I dug deeper, I found unticking 'Maintain Database Connections' would allow my SQL Stored Procedure calls to process fresh each time.

So you can pull out your hair if you want to, or you can untick Maintain Database Connections in your development environment.

A note, the Maintain Database Connections setting is under the Advanced Settings for a specific Datasource configuration. As far as I know, you will have to alter every datasource individually.

Spider Pig

I've been humming the tune to Spider Pig all morning. Anybody know where I can get the soundtrack?

11125 Views Print Print Comments (1) Random

Eclipse Performance Settings

On the CFEClipse mailing list today, Sonny Savage posted a link to Eclipse performance settings. I thought I would repost the link for others. Have a look at the Performance Settings for Eclipse.ini

Also, for posterity, the CFEclipse Wiki has other interesting articles such as:
Installing RDS support
Line Numbers (a common question)
Restoring Deleted Files
The Preference Pane

If you use eclipse, you owe it to yourself to read over the Table of Contents for the CFEclipse Wiki.

Installing Transfer in ModelGlue:Unity

Today we will install the Transfer ORM inside our Contact-O-Matic application. To complete this tutorial, you should have the Contact-O-Matic installed and running. If you have not completed this step, please create the database described at the bottom of Series 6 and install the files at Series 10 download link. Test the application by manually adding several ContactTypes to the ContactType table in your database (I chose Co-Worker, Enemy, Friend). Then use the Contact Form in the ContactOMatic application to enter a few contacts.

[More]

Cheat Sheets by Pete Frietag

I just rediscovered a sweet list of Cheat Sheets at Pete Freitag's blog. I find the cheat sheets very helpful for syntactical questions for common tasks. The list is fairly extensive and covers 30+ topics:

There are extra links at the bottom of the post...Thanks Pete!

Update: Nick Tong maintains another good list of cheetsheets

Replacing a small laptop computer

A long time ago in a land far far away, my no-brainer choice for new computers was Dell. I recommended Dell systems over the years as the safe option for businesses, friends and neighbors. In the last year, I have made an about face.

[More]

From the You Can Not Be Serious file

I was poking around the web today and found a nice post from Doug Hughes about an SQL server issue. The post was commented 88 times. Many people showed their gratitude to Doug for posting the solution to a vexing problem. One commenter takes the cake however:

view plain print about
1Hi
2
3I have a same problem.
4I am Using SQL Server 2000 in my computer.
5I try to access the sql server 2000 from another computer. Its gives error.
6"unale to connect to server"
7
8Please fix it
9
10Thanks
11
12Posted By Jenkins on Jun. 21, 2006 at 7:16 AM

To which Joe Reinhart replied to, rather Tongue in Cheek:

view plain print about
1Jenkins,
2
3Care to send the IP addres and SA password?
4
5Posted By Joe Rinehart on Jun. 21, 2006 at 8:31 AM

Then I laughed even harder when I read: (I placed the x's in there. I have a conscience.)

view plain print about
1Hi Joe
2
3In "connect to SQL Server" Window.
4SQL Server : IP Address(114.x9.130.13)
5I select SQL Server authentication
6Login name : User Name (jenkins)
7Password : pwd (*****)
8
9Then i click ok.
10
11Its gives error.
12"unale to connect to server 114.x9.130.13"
13
14Please fix it
15
16Thanks
17Jenkins
18
19Posted By Jenkins on Jun. 21, 2006 at 8:55 AM

Wow! I'd love to know what happened to that server.....

Fresh Flex Builder Install does not like flash remoting projects

I recently slicked the development environment on one of my laptops and reinstalled everything; ColdFusion, Flex Builder, Eclipse etc.

While testing, I found I could create and run basic projects but creating a Flash Remoting project does not work.
Even if the new application contained simply an mx:application tag and a mx:panel tag, it would throw two runtime errors:

Error #1
view plain print about
1VerifyError: Error #1053: Illegal override of subtopic in mx.messaging.Consumer.
2at flash.display::MovieClip/nextFrame()
3at mx.managers::SystemManager/::deferredNextFrame()
4at mx.managers::SystemManager/::preloader_initProgressHandler()
5at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
6at flash.events::EventDispatcher/dispatchEvent()
7at mx.preloaders::Preloader/::timerHandler()
8at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
9at flash.utils::Timer/flash.utils:Timer::tick()

Error #2
view plain print about
1TypeError: Error #1009: Cannot access a property or method of a null object reference.
2at mx.managers::SystemManager/::docFrameHandler()

Tom and João pointed me to a hotfix for FlexBuilder at http://www.adobe.com/go/kb402000. After installation of the hotfix, the errors went away. I should have looked for a hotfix, but since I downloaded a fresh binary, I thought I was above the law! No one is above the law, are they?

5480 Views Print Print Comments (0) Flex

Residents of the Commonwealth of Virginia, beware!

Man, am I glad I am not a resident of Virginia. Those who are should be mindful of a new law put into effect July 1st, the date new laws go into effect in the Commonwealth. Commonwealth, defined as "government based on the common consent of the people", took on on a spurious new meaning July 1st in House Bill 3202 with the addition of Civil Remediation Fees. What is a Civil Remediation Fee, you ask? Allow me to present two scenarios:

[More]

Learning OO and have questions?

Taking the decision to learn OO programming can be a confusing route. With all the new and complicated taxonomy, variety of opinions and general annoyances of OO programming, where do you turn for advice?

Doesn't it seem that most OO discussions take place on the ModelGlue or MachII mailing list? While that is true, I would like to point out two resources that are truly gems. The #ColdFusion channel on Dalnel IRC is a great place to ask questions and get help. Staffed by a set of ColdFusion Experts, simply join the channel, introduce yourself and ask away...

The second resource is the CFCDev listserv. This listserv has been in operation since CF6 came out. The focus is on OO programming and spans across the various frameworks and methodologies across the ColdFusion landscape.

I confess to having read each one of the archived posts early on in my transition to OO programming. You can find the Archives for CFCDev as well as the Registration for CFCDev

Happy Programming!