|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
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> -------------------------------------------------------------------------------- |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > urgent:You have attempted to dereference a scalar variable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|