ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
The Best Selling PC Migration Utility.
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old February 1st, 2004, 05:41 PM
vivek_rai vivek_rai is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Delhi - India
Posts: 2 vivek_rai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
not able to call Stroed procedure in MX

Hi All,

We are facing one problem in cold fusion, attached is the code.
In the below code, We call the stored procedure through Cold Fusion page and
this was working fine in Version 5, but same is not working in MX 6.0 version.
The only problem coming becuase Out/return type is an Array.If we make it String then it works

We also tried Cfprocresult this also does not work.

Below error comes when we call this
Error Executing - Database Query (Macromedia) [Oracle JDBC Driver] Oracle ORA - 06550:line1 ,column1:PLS-00306: wrong number of types of arguments in call to 'LOGON' ORA-06550:line1,column7:PL/SQL Statement ignored
The error occurred on line 18.

CODE IS

<cfstoredproc datasource="#appDataSource#"
procedure="CF_SECURITY_PKG.LogOn"
returncode="No">
<cfprocparam cfsqltype="CF_SQL_VARCHAR" type="In" value="
#Form.txtUserid#">
<cfprocparam cfsqltype="CF_SQL_VARCHAR" type="In" value="
#form.txtPassword#">
<cfprocparam cfsqltype="CF_SQL_VARCHAR" type="In" value="
#CGI.REMOTE_ADDR#">
<cfprocparam cfsqltype="CF_SQL_VARCHAR" type="In" value="WEB
APPLICATIONS">
<cfprocparam cfsqltype="CF_SQL_VARCHAR" type="Out" variable="vUserInfo">
</cfstoredproc>

Any help in this regard will be greatly appriciated.

Regards
Vivek

Reply With Quote
  #2  
Old February 1st, 2004, 08:31 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,480 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 33 m 17 sec
Reputation Power: 42
Are you using CFMX 6.1 with the latest patches? 6.0 may have had issues.

Though from the look of the error and your code it is either in the PL/SQL or in the way you are calling the procedure. I notice you are not specifying the "variable" attribute for each cfprocparam tag, you could try that. Also confirm that the data types for each parameter are correct.

Other than that all I can say is "trial and error". I know that PL/SQL stored procedures work in CFMX 6.1 so it has to be something in the way it's being called or the procedure itself.

Reply With Quote
  #3  
Old February 1st, 2004, 09:33 PM
vivek_rai vivek_rai is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Delhi - India
Posts: 2 vivek_rai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks kiteless,

We will try the option you suggested. we are using MX 6.1 only. what is the difference between MX 6.1 or MX 6.1 with patches.

One thing I would say same code, with same stored procedure is working fine in version 5 but it is not working in version MX 6.1

Reply With Quote
  #4  
Old February 1st, 2004, 09:59 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,480 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 33 m 17 sec
Reputation Power: 42
There are several hotfixes out for CFMX 6.1. Check the CF page at Macromedia.

And due to the switch to Java there is occasionally code that ran on 5 that doesn't work the same on CFMX, mainly due to MX's conversion under the hood to Java datatypes, using JDBC instead of ODBC, etc. CFMX can be more fickle with data types so be extra careful when specifying the data types in your stored proc.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > not able to call Stroed procedure in MX


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway