Link to home
Start Free TrialLog in
Avatar of cval-web
cval-web

asked on

CFQUERYPARAM is not working - Crashing Coldfusion 8.0.1

I'm having an issue with my local instance of coldfusion 8.0.1 and running a query with  cfqueryparam using the oracle oci driver.  I have no problems with the same code on a different system, but when I attempt to run the code on the new development server, Coldfusion restarts itself and I receive a Page cannot be displayed error in my browser.  I've tried this with and without all the hotfixes installed and it still doesn't work.  I have uninstalled and reinstalled the software 3 or more times with the same result.  I am sure it's the cfqueryparam that's causing the issue because I've commented it out and the remaining code works.

The system uses Coldfusion 8.0.1 (currently no hotfixes) Multi-Server Developer Edition using the CF Built-in server.  It is installed on a 64-bit Windows 7 system with 32-bit java.  I have added the oracle jdbc drivers to the jrun-root/lib folder and added  
-Doracle.jdbc.V8Compatible=true to the jvm.config java args.
Avatar of SidFishes
SidFishes
Flag of Canada image

Have you checked the connection string in your datasource setup. It's often overlooked as it's in the Advanced Settings which are not visible by default. You would need it with an oracle driver. I don't know what it would be but if you have a working system check it there and make sure it's the same.
Avatar of cval-web
cval-web

ASKER

The datasource settings/drivers used are identical between the new development system and a current working development system.  The settings were imported from the working system using a car file.  We can access other queries, just not any using the cfqueryparam tag.
Hey, I guess there is problem with platform 64-bit and you are using 8.0.1 which support 32-bit.

Try to install coldfusion mx 9 which supports 64-bit.
sumCold - if that were the case, nothing would work...if it's only cfqueryparam, it's got to be a jdbc/db issue. You can easily run 32 bit cf on a 64 bit system... hmmm but now that I think about it, I'm not sure how easy or possible it is using the built in webserver...But still...if you can serve cfm pages using all other tags, it should be ok.

cval- so you are able to do a standard cfquery without using cfqparam?

2nd hmmm -  is there a 64 bit version of the oracle driver - that may be the issue. Drivers must have the same bit-ness
ASKER CERTIFIED SOLUTION
Avatar of sumCold
sumCold

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think you are right about the database.  I have a suspicion that oracle was installed incorrectly on the development machine.  I am uninstalling the oracle instance and trying again.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Good to hear your problem is solved... :)
The solution was related to a database.  I expanded on the database problem to include the steps that were taken to solve the issue.