Link to home
Start Free TrialLog in
Avatar of mobrien118
mobrien118

asked on

The system has attempted to use an undefined value

I am getting this incredibly annoying error, but ONLY on my production server, not on test. It only happens when I try to access a .CFC file. it happens when I try to access ANY .CFC file. Also, the /CFIDE/ directory is not available to the applications which means that none of the CFFORM validation functions work, and I'd immagine there is other deminished functionality. I'm not so worried about the /CFIDE/ directory problem, I just thought they might be related and I need to put this thing into production and this is the only thing holding me back. Also, I need to do it by tomorrow morning at 9. Please Help! Here is the error:



The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.

Null Pointers are another name for undefined values.
 
Resources:

    * Check the ColdFusion documentation to verify that you are using the correct syntax.
    * Search the Knowledge Base to find a solution to your problem.

Browser         Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Remote Address         128.207.232.41
Referrer         
Date/Time         17-Sep-06 08:43 AM
Stack Trace


java.lang.NullPointerException
      at coldfusion.runtime.ServletContextWrapper.doGetRealPath(ServletContextWrapper.java:149)
      at coldfusion.runtime.ServletContextWrapper.getRealPath(ServletContextWrapper.java:114)
      at coldfusion.runtime.TemplateProxyFactory.getFullName(TemplateProxyFactory.java:432)
      at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:138)
      at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:102)
      at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:96)
      at coldfusion.runtime.TemplateProxyFactory.resolveFile(TemplateProxyFactory.java:74)
      at coldfusion.filter.ComponentFilter.invoke(ComponentFilter.java:110)
      at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
      at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
      at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
      at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
      at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
      at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
      at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
      at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
      at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:106)
      at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:157)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
      at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
      at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
      at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:259)
      at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
      at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)


Avatar of gdemaria
gdemaria
Flag of United States of America image


 go into your web server (IIS?) and add /CFIDE/ as a virtual directory pointing to the CFIDE folder something like..

   C:\inetpub\wwwroot\CFIDE


 Regarding your error, you have a variable that you are using and is not yet defined.   The error message pasted in doesn't show the name of the variable or line number from what I can see, perhaps getting the /cfide directory in place may give you this information.

 A good rule of thumb is to place a <cfparam> tag at the top of the file for each variable that you are expecting to receive.   Often if the page is receiving a form submit, it may be caused by a checkbox that is not checked (unchecked checkboxes do not create a form variable).

 <cfparam name="form.my_checkbox" value="No">

 <cfif form.my_checkbox is "yes">  <!---- its being used here, make sure the <cfparam is above ---->

  Try to see what variables you use but don't have set yet.
Avatar of mobrien118
mobrien118

ASKER

My server administrator discovered that the problem is caused by our authentication software in combination with the way CF handles remote .CFC calls.

The problem is internal and thus cannot be solved on this forum. Thank you, gdemaria, for your effort, but I am going to have to request that the administrator close this request.

--mobrien118
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

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've experienced this error after upgrading MySQL from 4 to 5

I've put together this small article on how to temporarily fix it until a hot fix is released from Adobe:

http://www.thebluepipe.com/Developer/tutorials/coldfusion/coldfusion-mysql-5-fix
ing-the-system-has-attempted.html

I hope it helps