Solved

CFQUERYPARAM is not working - Crashing Coldfusion 8.0.1

Posted on 2012-04-03
9
365 Views
Last Modified: 2012-04-10
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.
0
Comment
Question by:cval-web
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 36

Expert Comment

by:SidFishes
ID: 37803443
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.
0
 

Author Comment

by:cval-web
ID: 37803871
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.
0
 
LVL 2

Expert Comment

by:sumCold
ID: 37805711
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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 36

Expert Comment

by:SidFishes
ID: 37806320
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
0
 
LVL 2

Accepted Solution

by:
sumCold earned 500 total points
ID: 37807529
Try to connect other database like MS -Access, SQL server using <cfqueryparam in query.

If this work then there is only problem with oracle connection... or if not work then probably problem with platform.
0
 

Author Comment

by:cval-web
ID: 37809257
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.
0
 

Assisted Solution

by:cval-web
cval-web earned 0 total points
ID: 37813963
This is now fixed.  It turns out that the Oracle Server software was installed on the machine and not the client.  Everything is working perfectly now.  Thanks for the help!
0
 
LVL 2

Expert Comment

by:sumCold
ID: 37818572
Good to hear your problem is solved... :)
0
 

Author Closing Comment

by:cval-web
ID: 37826802
The solution was related to a database.  I expanded on the database problem to include the steps that were taken to solve the issue.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using coldfusion <cfexecute> to restore mysql database 7 65
ColdFusion not showing binary json data in request 4 53
oracle numeric condition check 4 37
Combining Queries 7 42
Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question