ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old May 12th, 2004, 01:33 AM
vishnu78 vishnu78 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 vishnu78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
urgent:You have attempted to dereference a scalar variable

i am getting the following error ,pls give me a solution to colve this issue ?
i am attaching all the 5 files that has been processed in zip format


You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members.

The error occurred in C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\CustomTags\Queries\queryParams.cfm: line 41
Called from C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\CustomTags\Queries\select.cfm: line 50
Called from C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\CustomTags\Utility\authenticate.cfm: line 30
Called from C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\CustomTags\Queries\RecordSheets\Utility\checkUser.cfm: line 37
Called from C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\Myriad\RecordSheets\frontPage.cfm: line 13

39 : <cfset datasource = application.datasources[dsName]>
40 : <cfparam name="datasource.dbType" default="ODBC">
41 : <cfset "caller.#attributes.datasource#" = datasource>
42 :
43 : <cfelse>



--------------------------------------------------------------------------------
Attached Files
File Type: zip cf_files.zip (8.5 KB, 123 views)

Reply With Quote
  #2  
Old May 12th, 2004, 08:25 AM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,488 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 18 h 10 m 11 sec
Reputation Power: 42
Hmmm, that's a very complicated set of custom tags, and I'm afraid that only some diligent debugging is going to determine the real cause of the problem.

In this custom tag queryParams.cfm, you are setting attributes.datasource to a default of "datasource". Then you are trying to set a variable in the caller to this value by using <cfset "caller.#attributes.datasource#" = datasource>. This evaluates to <cfset caller.datasource = datasource>. Can you dump #datasource# in the caller? Can you dump the attributes scope in the queryParams.cfm custom tag? I'd start with a lot of cfdumps and try to determine what CF doesn't agree with.

Reply With Quote
  #3  
Old May 13th, 2004, 11:22 PM
vishnu78 vishnu78 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 vishnu78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CFdump

Hi never use cfdump

willu pls tell me what r the stpes that has to done
what the info that i need to give to u

u can also mail me to URL

Reply With Quote
  #4  
Old May 14th, 2004, 09:27 AM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,488 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 18 h 10 m 11 sec
Reputation Power: 42
Did you write these custom tags? If not, I would say you are going to have a difficult time debugging them as they are extremely complex.

CFDUMP is a debugging tag and is straightforward to use. http://livedocs.macromedia.com/cold...1.htm#wp1734655

I'm afraid that asking me to "tell you want steps have to be done" is rather useless. Asking me to tell you what to do would be like a mechanic trying to tell me how to diagnose a problem with my car's engine. Debugging code, especially complex code, is not something that can be explained readily. Experience is the only real teacher in these sorts of instances.

Last edited by kiteless : May 14th, 2004 at 09:32 AM.

Reply With Quote
  #5  
Old May 14th, 2004, 10:46 PM
vishnu78 vishnu78 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 vishnu78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi

yes its not written by me
some had written this code ,we r migrating this to mx
while we do that we r getting this error ???

can i send the snapshot of cfdum of the "datasource"


thanks and regards
Vishnu Prasad

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > urgent:You have attempted to dereference a scalar variable


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