ColdFusion 11 Throws Error Session Variable Undefined, When in fact it is Defined as shown by CFDump.

I've been having a particularly annoying error with ColdFusion 11, and unable to track down the source of this problem.
Basically There are a few variables defined in the session scope we check with isdefined a few lines above to make sure they are defined. Subsequent lines may or may not throw a #variablename# is undefined on random lines.
What can I do to fix this issue? Is this a known bug?

I am doing isDefined checks for relevant variables when neccessary. The problem is not that the code errors out undefined ... it's that the variable is actually defined and errors out undefined.
As a simplified example;
Login.cfm Form supplies form.username and form.password to login_action.cfm then redirects to index.cfm after succesful LDAP authentication. I will not include all lines as it would be too long.
Login_action.cfm
<cfinclude template="ldap.cfm">
<!--- LDAP login code goes here; checks if credential's supplied are valid and sets variable #logged_in# ... --->
<cftry>
    <cfif isdefined("logged_in") and logged_in>
        <!--- Create Session User Structure and Default Profile --->
        <cfset session.user=StructNew()>
        <cfset session.user.username=form.username>
        <cfset session.user.firstname="">
        <cfset session.user.surname="">
        <cfset session.user.email="">
        <!--- Pull in additional Details --->
        <cfquery name="qDetails" datasource="userdetails">
        SELECT firstname,surname,email FROM Profiles
        WHERE username = '#session.user.username#'
        </cfquery>
        <cfif isdefined("qDetails") and qDetails.recordcount>
            <cfoutput query="qDetails">
            <cfset session.user.firstname ="#qDetails.firstname#">
            <cfset session.user.surname="#qDetails.surname#">
            <cfset session.user.email="#qDetails.email#">
            </cfouput>
        </cfif>
    <cfelse>
        <!--- Throw Error back to login page --->
        <cfthrow message="1" type="Custom_Security" ErrorCode="Fail">
    </cfif>
    <cfcatch type="any">
        <!--- Throw Error back to login page --->
        <cfthrow message="2" type="Custom_Security" ErrorCode="Fail">
    </cfcatch>
</cftry>
<!--- Redirect User to login page after Successful Login --->
<cflocation url="index.cfm">
Index.cfm
<!--- At Top of Index session.user.email always exists, in the event it is undefined it will be set to "" --->
<cfparam name="session.user.email" default="">
<!--- Lots of lines of code above here build HTML page etc <cfoutput> references to #session.user.email# and other session vars --->
<!--- Example pull some more information this line may or may not error... --->
<cfquery name="qUserInformation" datasource="userdetails">
SELECT * FROM Information
WHERE user_email = '#session.user.email#'
ORDER BY SomeOtherColumn
</CFQUERY>
<!--- Example point where a session error can be generated less than 2 lines above it has just finished getting information using session.user.email --->
<cfquery name="qUserGroups" datasource="userdetails">
SELECT * FROM Groups
WHERE user_email = '#session.user.email#'
ORDER BY SomeColumn
</CFQUERY>
<!--- Some other common examples require cfscript - and throw errors; above lines may not ... --->
<cfscript>
oHomePage=CreateObject("component","site_components.homepage");
qNews=oHomePage.getNews("#session.user.category#");
</cfscript>
<!--- More lines to do with HTML Footer etc <cfoutput> more stuff --->
in the wwwroot the Application.cfm handles all errors generated during rendering of the page, which includes generating a cfdump of the session scope.
When I get the Error Log I can see in the cfcatch cfdump the error... Element USER.EMAIL UnDefined in SESSION.
struct
Browser
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36
DateTime
{ts '2014-09-28 11:38:48'}
Diagnostics
Element USER.EMAIL is undefined in SESSION. <br>The error occurred on line 15.
However when I check the SESSION scope which is also dumped ... It is defined!
struct
user
struct
COLOR
cccccc
EMAIL
[email protected]
FIRSTNAME
Example
SURNAME
Surname
EXAMPLE1
1
TEMPLATE
template14
TEMPLATE_DETAILS
0
What is causing this strange and irratic behaviour? The problem is so far I cannot replicate the issue. It is intermittant. The issue only started after upgrading to ColdFusion 11. This code has worked flawlessly for years on CF8.

Similar Messages

  • Extendscript variables undefined when triggered from PostFrameMakerDocUpdate event

    I am trying to run an Extendscript script in RH10.0.1.292.
    This script is registered to the PostFrameMakerDocUpdate event so that it runs evey time I update my FM sources.
    Every time I Update or Force Update, when the script runs, I get an 'undefined variable' message.
    However, when I run the same script from within  RoboHelp, or from the ExtendScript Toolkit, everything is fine. The script runs to completion without any errors.
    Initially, the undefined variable is a global (defined at the top of the file before any functions)
    var Rev = "Rev 2.3 December 22, 2013";
    If I move Rev into the only function where it is used, I get another error: the numParaStyles is now an undefined variable. This is a local variable, defined in the one and only function where it is ued.
    var numParaStyles = FM_paragraphStyles.length;
    Although FM_paragraphStyles is a global array:
    var FM_paragraphStyles = ["TipText", "CautionText", "WarningText"];
    This script is is based on the Reference Page Image Updater.jsx script included in the
    Adobe\RoboHTML\10.00\Scripts\Sample Scripts
    folder. I added the Rev string as part of my debugging efforts,
    Since the script works find from the ExtendScript Toolkit and from within RoboHelp, I suspect something is happening to mess up with the script's variable scoping when the script is run in response to an event. But that's just a guess. I am not an expert in JavaScript, let alone ExtendScript.
    Has anyone else seen this behavior? Is there something I can do to prevent the error messages?
    Thanks!

    Extendscript doesn't work nice with globals if you are using scripting
    events. In my experience, the easiest workaround is to create functions
    that create globals and call that function in the function linked to an
    event. Personally, I normally make a script and then add an extra
    function specifically for events that initiates any globals and then
    runs the script normally. There's no easy fix, sorry.
    I believe this is a bug. You can report bugs to Adobe via
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Kind regards,
    Willam

  • Javascript error "'_jspDir' is undefined" when clicking af:selectInputDate

    I have a af:selectInputDate component inside a af:showDetailItem (af:showDetailItem is inside a af:showOneTab).
    When the attribute Disclose of the af:showDetailItem set to true. There are no probelms to pop up date picker. But if the Disclose set to false, I got the javascript error : '_jspDir' is undefined. This error only happend in IE (my version is IE7).
    Any ideas / helps?
    JDeveloper 10.1.3.3.0 (cannot upgrade to JDeveloper 11g)
    Thanks
    Joyce
    Message was edited by:
    xpp

    Hi,
    doesn't reproduce on 10.1.3.4
    Frank

  • Error 'mochikit' is undefined when pop-up opens to enter parameters

    Hello,
    when I refresh parameter value for any report, a pop up comes up:
    "A Runtime Error ocurred. Do you wish to debug? Error: 'Mochikit' is undefined"
    In the debugger (Microsof Script Editor) it stops in file "../Business Objects/Common/4.0/crystalreportsviewer12/js/crviewer/html.js"
    at line "bobj.html.TABLE = MochiKit.Base.partial(bobj.html.createHtml, 'table');"
    If I select not to debug, it proceeds as expected. Astonishing is that I run the report in crystal reports designer and not in viewer as it is indicated in the script editor.
    Best regards,
    Guido

    I have visual studio 2010 with the version 13 installed.  I also have the cr 12 client installed.
    After running the java sdk.  Should I repair all versions of crystal?
    CR 2008 SP2
    SAP runtime engine for .net 32 bit
    SAP runtime engine for .net 64 bit
    SAP for Visual Studio 2010
    Do I need to run a repair on all of these?

  • Error "Session Timed Out" When saving  webi report as PDF

    Hi,
    I am getting below error when saving  report as PDF
    The Session Timed Out.The document *.wid has been auto saved  in the Favorites~WebIntelligence Folder..Click Restore to retrieve it.
    (ERROR : WIJ600001).
    I get above error in PROD  but works fine in DEV.
    Version :  BOE 3.1 SP7 (DEV & PROD).
    Session Time out  set as  one hour.
    Report runs for 3 minutes .once I get the data if I try to save it as PDF immediately I get the above mentioned Error.

    The default Webi auto-save is every 600 seconds, which is 10 minutes.  You could increase it to 3600 seconds (1 hour) in CMC -> Applications > Web Intelligence > Properties > Auto-save Settings on "Auto-save time delay".
    See KB 1297132 - Error: WIJ 60001 after the Web Intelligence Java Report Panel is left inactive some time on http://service.sap.com/sap/support/notes/1297132.
    Hope this helps,
    Jin-Chong

  • 10.1.3.4 - ESB throwing error code: 2006 : 5  when registering esb project

    When we try to register an esb project, we are getting the following error in jdeveloper
    error code: 2006 : 5
    summary: ESB DT Cache is not initialized.May be ESB bootstrap failed
    Fix: Please review ESB prameters for their correctness.
    Also when I navigate to the esb console, all my service groups come up empty. No errors in the opmn log.
    Any idea what might be going on ?

    increased the open cursors on the database and bounced soa.

  • Purchased ColdFusion 10: Having problem with session variables

    My Dept. has just bought CF10 and I'm finally updating my existing web app to CF10 from CF8. My First Problem with CF10 is using session variables.
    When using the lower version of CF (since CF 4 to 8) I have never had any problem setting up session variables and getting or using these variables in other pages after a successful login but with CF 10 it seems setting session variables and using them in other pages are a major problems. I'm not sure where have I done wrong in the codes.
    First I'm setting the session in my Application.cfc This way:
    <cfcomponent displayname="Application" output="true">
      <cfset THIS.Name ="MyNewApp"/>
      <cfset THIS.ApplicationTimeout = CreateTimeSpan(0,0,20,0) />
      <cfset THIS.SessionManagement ="YES"/>
      <cfset THIS.SessionTimeout = CreateTimeSpan( 0, 0, 20, 0 ) />
      <cfset THIS.SetClientCookies = false />
    <cffunction name="OnApplicationStart" access="public" returntype="boolean" output="false">
    <cfset application.Main_DSN = "TESTDB">
    <cfreturn true />
    </cffunction>
    <cffunction name="onApplicationEnd" output="false">
          <cfargument name="applicationScope" required="true">
        </cffunction>
    <cffunction name="OnSessionStart" access="public" returntype="void" output="false" hint="Fires when user session initializes.">
    <cfset session.loggedin = "NO">
    <cfset session.username = "">
    <cfset session.userrights = "">
    <cfset session.usergroup = "">
    </cffunction>
    </cfcomponent>
    After login, user is validated and set values to those session.variables:
    ........user validation codes here......................
    <cfif mylogin NEQ true>
          <cflocation url="/login/login.cfm">
          <cfabort
    <cfelse>
          <cfset session.loggedin="Yes">
          <cfset session.username="#Trim(Form.username)#">
         <CFSET qUserRights = LoginObj.getUserRights('#Trim(Form.username)#')>
         <cfset session.userrights = qUserRights><!--- it's a query --->
        <CFSET qUserGroup = LoginObj.getUserGroup('#Trim(Form.username)#')>
            <cfloop query="qUserGroup">
               <cfset session.usergroup = user_group>
               <cfbreak>
            </cfloop>
        <!--- ****************** ???????????????????????????????????????????????????????????????????????????
        When I do cfdump in at this level, I can see that all of these session variables have been assigned to their values.
        But these session variables are not accessible from other pages. Other pages still show these session variable without its value.
        So, when I use these cfdumps in the index.cfm it is shown as they're not yet assigned with any values   ****************** --->
       <cfdump var="#session.loggedin#">
       <cfdump var="#session.username#">
       <cfdump var="#session.userright#">
       <cfdump var="#session.usergroup#">
    </cfif>
    In index.cfm, Before Login I got:
    session.loggedin = NO
    session.username = ["empty string"]
    session.userrights = ["empty string"]
    session.usergroup = ["empty string"]
    After a successful Login:
    session.loggedin = NO
    session.username = ["empty string"]
    session.userrights = ["empty string"]
    session.usergroup = ["empty string"]
    Have I done something wrong? These codes work on CF8. Please help.
    I need to mentioned:
    CF10 is in Linux and my web app is under https not http. But these session variables should be shared bentween http and https because some older application are still in http.

    On which page is the following code?
    After login, user is validated and set values to those session.variables:
    ........user validation codes here......................
    <cfif mylogin NEQ true>
          <cflocation url="/login/login.cfm">
          <cfabort
    <cfelse>
          <cfset session.loggedin="Yes">
          <cfset session.username="#Trim(Form.username)#">
         <CFSET qUserRights = LoginObj.getUserRights('#Trim(Form.username)#')>
         <cfset session.userrights = qUserRights><!--- it's a query --->
        <CFSET qUserGroup = LoginObj.getUserGroup('#Trim(Form.username)#')>
            <cfloop query="qUserGroup">
               <cfset session.usergroup = user_group>
               <cfbreak>
            </cfloop>
        <!--- ****************** ???????????????????????????????????????????????????????????????????????????
        When I do cfdump in at this level, I can see that all of these session variables have been assigned to their values.
        But these session variables are not accessible from other pages. Other pages still show these session variable without its value.
        So, when I use these cfdumps in the index.cfm it is shown as they're not yet assigned with any values   ****************** --->
       <cfdump var="#session.loggedin#">
       <cfdump var="#session.username#">
       <cfdump var="#session.userright#">
       <cfdump var="#session.usergroup#">
    </cfif>

  • Variable undefined

    Good morning I have a situation wherein  during an insert into my database, the variable that I created from an cfif/cfset throws an error. Am I missing something? My code is below...
    <cfset gradepoint =VAL('#fcnpoint#') + VAL('#attitudepoint#') +
    VAL('#guestpoint#') + VAL('#contactpoint#') + VAL('#attendancepoint#')
    + VAL('#nspoint#') + VAL('#foidpoint#') + VAL('#otherpoint#')>
    <cfif "#gradepoint#" GTE "-20.45" AND "#gradepoint#" LTE "11.1"><cfset
    maingrade= 'F'></cfif>
    INSERT INTO squadreport (squid,  squgrade)
    VALUES ('00', '#maingrade#')
    </cfquery>

    Agreed.  I've never been a fan of using the hashmarks when not necessary.
    To fix the issue, you need to cover all bases.  You provided only one conditional, but I'm assuming you have more.  But if the CF Server is throwing the error message "Variable undefined", then there is an open condition (or, more accurately, a lack of a default condition.)
    <cfif gradepoint gte -20.45 AND gradepoint lte 11.1>
      <cfset maingrade = "F">
    <cfelseif gradepoint gt 11.1 AND gradepoint lte 41.1>
      <cfset maingrade = "D">
    <cfelseif gradepoint gt 41.1 AND gradepoint lte 72.2>
           and so on, until
    <cfelse>
      <cfset maingrade = "A">
    </cfif>
    ^_^

  • Session variables or ???

    First I should say I am very much a novice at web design, so
    please go easy on me! :)
    I am trying to create a "confirmation page" which will
    display a recap of information input by the user from an online
    registration form. I created a register page using php and MySQL
    (which works fine), but I can't seem to figure out how to display
    the person's information on a follow up confirmation page. I want
    this follow up page to only show the information input by the
    single user as a summary (as opposed to showing multiple records
    from the database). I thought adding session variables was the
    answer, but when I followed the instructions in my manual all I get
    is a blank page.
    Can anyone help me figure out the easiest way to accomplish
    this task? Thanks!

    Remipub posted in macromedia.dreamweaver:
    > Thanks so much for the reply Mark. I checked the php
    website you
    > provided and it sounds like the first method is the most
    ideal.
    > Unfortunately I wasn't quite clear on exactly how you
    use the
    > code. So if I may ask... my manual states that I need to
    put in
    > the following code at the top of the page:
    >
    > <?php if (!isset($_SESSION)) session_start(): >?
    >
    > Do I put this in as the first line on both the data
    collection
    > page AND the confirmation page?
    Yes. On every page that you need to use session variables.
    > And when using --
    > $_SESSION['ID']=mysql_insert_id(); -- where do I place
    this line?
    You mentioned that you had a register page that is working
    fine. I
    assume that you have a mysql_query() with the INSERT command
    in there.
    Put it immediately after the mysql_query() line.
    > Also, I'm assuming I need to add the auto increment
    field to the
    form. Can this be hidden? Would I need to place it on both
    pages (and
    can it be as a hidden field on both pages assuming it's even
    necessary)?
    You won't need it in the form at all. That's the beauty of
    using
    session variables.
    When you want to show that user's information, use
    $_SESSION['ID'] with
    a MySQL SELECT to pull it from the database. Something like
    the
    following example[1]:
    $query = "SELECT `first`,`last`,`phone` FROM `users` WHERE
    `ID` =
    $_SESSION['ID']";
    $result = mysql_query($query) or die('yada, yada, yada');
    if (mysql_numrows($result)) {
    $aRow=mysql_fetch_assoc($result);
    $first=htmlentities($aRow['first']);
    $last=htmlentities($aRow['last']);
    $phone=htmlentities($aRow['phone']);
    And later, maybe in the HTML,
    <p>Thank you, <?php echo $first;?></p>
    [1] I'm away from my work machine, so there's a good chance
    there are
    syntax errors in the psuedo code. And, of course, I have no
    idea what
    your database looks like.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Error: 'bobj' is undefined - crystal report for VS2013 - please help ASAP

    Currently we are trying to migrate from VS2008 to VS2013 and we installed Microsoft Visual Studio Ultimate 2013 on a windows 7 laptop. All our crystal report programs are migrated to VS2013. I downloaded Crystal report Support Pack 10 (v. 13.0.10.1385) executable version and installed it. Then opened our old project (from vs2008) in VS2013 and it went through the conversion process. Later I opened each .rpt file and saved in VS2013 so that the crystal report files will be saved in the new format.
    I am getting the Error: 'bobj' is undefined when I try to run the report. Am I using the correct service pack 10, or should I use service pack 9. I have read through all the posts related to this error in earlier version of VS. Is there any correct fixes for VS2013?
    This is urgent, I am stuck with this error. please help??? Thank you.
    JS

    Don,
    I followed Adil Siddiqui's Blog and it worked!!!!
    Add Following code to web.config file
    <configSections>
    <sectionGroup name=“businessObjects“>
    <sectionGroup name=“crystalReports“>
    <section name=“rptBuildProvider” type=“CrystalDecisions.Shared.RptBuildProviderHandler,
    CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral,PublicKeyToken=692fbea5521e1304,  Custom=null“ />
           <section name=“crystalReportViewer” type=“System.Configuration.NameValueSectionHandler“ />
    </sectionGroup>
    </sectionGroup>
    </configSections>
    <businessObjects>
    <crystalReports>
    <rptBuildProvider>
    <add embedRptInResource=“true“ />
    </rptBuildProvider>
    <crystalReportViewer>
    <add key=“ResourceUri” value=“~/crystalreportviewers13“ />
    </crystalReportViewer>
    </crystalReports>
    </businessObjects>
    NOTE: “<add key=“ResourceUri” value=“/crystalreportviewers13“ />” worked without the ~ sign.
    Click the link below for the complete post:
    Visual Studio 2012 Crystal Report not working on Windows Server 2012/ 0x800a1391 &amp;#8211; JavaScript runtime error: &…
    Thank you Don for your help.
    JS

  • Null session variable

    Ok, i have a problem which is really annoying me and i have been stuck on for a while. I am developing a website for my brothers company and am really stuck for time for the launch date. I developed a website last year which worked fine and i am re using the code from that. I am setting a session variable "sessEmail" when the user logs in and want to retrieve it when they go to add a produt to their cart. Here is my code
    String Email = request.getParameter("txtEmail");
    String Password = request.getParameter("txtPassword");
    session.setAttribute("sessEmail",Email);
    Object o = session.getAttribute("sessEmail");
    String s = o.toString();
    out.print(s);
    I am just printing out the "sessEmail" to make sure it is working. It works fine when i try and retrieve the session variable on the same page were i set it but on a seperate page it wont work. It is returning a null pointer exception because the session variable has no value. It is occuring when i try to convert an object to a string.
    Any help would be much appreciated as i am stuck for time.
    Cheers

    Ok the first question to be asked is why it is null?
    The most obvious answer is that you have cookies disabled, and are not using URL rewriting.
    To retain the session, the server issues a "Session Cookie" with your jsessionid in it. If you have cookies switched off on your browser, it won't retain the session.
    To confirm this print out session.getId() on your pages. If it continually changes, you aren't keeping your session. If it remains the same, you HAVE got a session, and need to check why you are putting a null value there.
    To retain session, you need to run every link/url that gets printed to your page through the method response.encodeURL() which will add on the session id manually if cookies are not supported.
    Hope this helps,
    evnafets

  • SESSION VARIABLE in PHP

    I am new to web applications, but for what I need is to know
    how to use session variables. When a user logins I want thier
    information stored so when they visit my account they are able to
    see thier information and not someone elses. Any help should be in
    PHP format. Thank you in advance.

    prashi123 wrote:
    > I am new to web applications, but for what I need is to
    know how to use session
    > variables. When a user logins I want thier information
    stored so when they
    > visit my account they are able to see thier information
    and not someone elses.
    > Any help should be in PHP format. Thank you in advance.
    http://www.php.net/manual/en/features.sessions.php
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Error: SOAP is undefined

    Hello,
    I am attempting to use the SOAP object to access a WSDL definition and soap service.
    I have use the same out of the book code that appears frequently on the forums.
    However, my page throws "Error: SOAP is undefined" on PDF render time with only this line:
    SOAP.wireDump = false;
    I am using Adobe Designer version 7,0,0411260.
    Any help in resolving this is much appreciated.
    Thanks.
    Dylan Doxey
    UCSD / eForms

    I find it remarkable that Adobe has no policy about responding to the issues of paying customers.
    This issue has been resolved.
    To the best of my recollection it was because I was using Adobe Designer on a machine which did not have Adobe Acrobat professional installed.

  • Coldfusion session variables being lost

    ok so when my users login I establish session variables. one of these is employee id. in my Application.cfc I have this at the top:
    <cfscript>
    this.name = "My App";
    this.sessiontimeout=CreateTimeSpan("0", "0", "45", "0");
    this.SESSIONMANAGEMENT="YES";
    this.SetClientCookies = "true";
    this.setDomainCookies = "true";
    </cfscript>
    i also set the timeout for sessions at 45 in the CFadmin too.
    after a successfull login i capture their session.employeenumber by authenticating through our corporate LDAP. no problem there. note: this app has run smoothly for 6+ years now but something has recently gone wrong.
    on every page i reference a file in my application directory called "check_session.cfm" like this:
    <cfmodule template="/myApp/Tags/check_session.cfm">
    In that file I have code that checks for the existence of the session.employee_number. if it doesn't exist they either timed out or book-marked a page in the app in which they need to be logged in to view:
    <cflock timeout="30" throwontimeout="Yes" type="READONLY" scope="SESSION">
    <!--- Checks to make sure the user has a session--->
    <CFIF NOT IsDefined("Session.employee_number")>
         <CFLOCATION URL="http://#cgi.HTTP_HOST#/myApp/LoginAgain.cfm">
    </CFIF>
    </cflock>
    every now and then (i'd say on average 5 times per week) i get an error message from a user (i re-direct all errors to my email with diagnostic info). the error reads "Element EMPLOYEE_NUMBER is undefined in SESSION". when i look at the page the error came from i see my call to the check_session.cfm file about 50 lines above where this error happened when i tried to reference session.employee_number. why wouldn't it not find it and re-direct the user to the timeout page? i can never duplicate this error on my machine either... i always get the right result without the error message. its a random, sporadic, intermittent error.

    Here is the diagnostic error information. Where you see [omitted] i've changed the URL for the purposes of displaying this detail in a public forum:
    struct
    Browser
    Mozilla/4.0   (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR   2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0;   InfoPath.2; .NET4.0C; .NET4.0E; MS-RTC LM 8)
    DateTime
    {ts   '2011-02-21 20:59:21'}
    Diagnostics
    Element   EMPLOYEENUMBER is undefined in SESSION. <br>The error occurred on line   162.
    GeneratedContent
    <!DOCTYPE   html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   <html xmlns="http://www.w3.org/1999/xhtml">   <!-- DW6 --> <head> <!-- Copyright 2005 Macromedia, Inc. All   rights reserved. --> <title>My Home</title> <meta   http-equiv="Content-Type" content="text/html;   charset=iso-8859-1" /> <link rel="stylesheet"   href="mm_training.css" type="text/css" /> <link   rel="stylesheet" type="text/css" href="../template/organized.css">   </head> <body bgcolor="#ffffff"   onLoad="onInit()">
    HTTPReferer
    http://[omitted]/mypage/myhome.cfm?CFID=101686&CFTOKEN=53097237
    Mailto
    [empty   string]
    Message
    Element   EMPLOYEENUMBER is undefined in SESSION.
    QueryString
    [empty   string]
    RemoteAddress
    10.x.x.x   [remote address omitted for purposes of this forum]
    RootCause
    struct
    Detail
    [empty     string]
    ErrNumber
    0
    Message
    Element     EMPLOYEENUMBER is undefined in SESSION.
    Resolvedname
    SESSION
    StackTrace
    coldfusion.runtime.UndefinedElementException:     Element EMPLOYEENUMBER is undefined in SESSION. at     coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1659) at     coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1612) at     coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1747)     at     coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1740)     at cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162)     at cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1)     at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at     coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at     coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at     coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273) at     coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)     at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at     coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at     coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at     coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)     at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at     coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at     coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at     coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at     coldfusion.CfmServlet.service(CfmServlet.java:175) at     coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at     jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at     coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )     at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)     at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at     jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)     at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at     jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)     at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)     at     jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)     at     jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)     at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)     at     jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)     at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    LINE
    162
    RAW_TRACE
    at         cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_MYHOME
    LINE
    1
    RAW_TRACE
    at         cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    Type
    Expression
    element
    EMPLOYEENUMBER
    objectType
    object of java.lang.Class
    Class       Name
    java.lang.Class
    Methods
    Method
    Return Type
    asSubclass(java.lang.Class)
    java.lang.Class
    cast(java.lang.Object)
    java.lang.Object
    desiredAssertionStatus()
    boolean
    forName(java.lang.String,         boolean, java.lang.ClassLoader)
    java.lang.Class
    forName(java.lang.String)
    java.lang.Class
    getAnnotation(java.lang.Class)
    java.lang.annotation.Annotation
    getAnnotations()
    java.lang.annotation.Annotation[]
    getCanonicalName()
    java.lang.String
    getClassLoader()
    java.lang.ClassLoader
    getClasses()
    java.lang.Class[]
    getComponentType()
    java.lang.Class
    getConstructor(java.lang.Class[])
    java.lang.reflect.Constructor
    getConstructors()
    java.lang.reflect.Constructor[]
    getDeclaredAnnotations()
    java.lang.annotation.Annotation[]
    getDeclaredClasses()
    java.lang.Class[]
    getDeclaredConstructor(java.lang.Class[])
    java.lang.reflect.Constructor
    getDeclaredConstructors()
    java.lang.reflect.Constructor[]
    getDeclaredField(java.lang.String)
    java.lang.reflect.Field
    getDeclaredFields()
    java.lang.reflect.Field[]
    getDeclaredMethod(java.lang.String,         java.lang.Class[])
    java.lang.reflect.Method
    getDeclaredMethods()
    java.lang.reflect.Method[]
    getDeclaringClass()
    java.lang.Class
    getEnclosingClass()
    java.lang.Class
    getEnclosingConstructor()
    java.lang.reflect.Constructor
    getEnclosingMethod()
    java.lang.reflect.Method
    getEnumConstants()
    java.lang.Object[]
    getField(java.lang.String)
    java.lang.reflect.Field
    getFields()
    java.lang.reflect.Field[]
    getGenericInterfaces()
    java.lang.reflect.Type[]
    getGenericSuperclass()
    java.lang.reflect.Type
    getInterfaces()
    java.lang.Class[]
    getMethod(java.lang.String,         java.lang.Class[])
    java.lang.reflect.Method
    getMethods()
    java.lang.reflect.Method[]
    getModifiers()
    int
    getName()
    java.lang.String
    getPackage()
    java.lang.Package
    getProtectionDomain()
    java.security.ProtectionDomain
    getResource(java.lang.String)
    java.net.URL
    getResourceAsStream(java.lang.String)
    java.io.InputStream
    getSigners()
    java.lang.Object[]
    getSimpleName()
    java.lang.String
    getSuperclass()
    java.lang.Class
    getTypeParameters()
    java.lang.reflect.TypeVariable[]
    isAnnotation()
    boolean
    isAnnotationPresent(java.lang.Class)
    boolean
    isAnonymousClass()
    boolean
    isArray()
    boolean
    isAssignableFrom(java.lang.Class)
    boolean
    isEnum()
    boolean
    isInstance(java.lang.Object)
    boolean
    isInterface()
    boolean
    isLocalClass()
    boolean
    isMemberClass()
    boolean
    isPrimitive()
    boolean
    isSynthetic()
    boolean
    newInstance()
    java.lang.Object
    toString()
    java.lang.String
    StackTrace
    coldfusion.runtime.UndefinedElementException:   Element EMPLOYEENUMBER is undefined in SESSION. at coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1659)   at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1612) at   coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1747) at   coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1740) at   cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162) at   cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1) at   coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)   at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at   coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273) at   coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)   at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at   coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at   coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at   coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)   at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at   coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at   coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at   coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at   coldfusion.CfmServlet.service(CfmServlet.java:175) at   coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at   jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at   coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )   at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at   jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101)   at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at   jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at   jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at   jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at   jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)   at   jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)   at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)   at   jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)   at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    LINE
    162
    RAW_TRACE
    at       cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_MYHOME
    LINE
    1
    RAW_TRACE
    at       cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    Template
    /[omitted]/mypage/myhome.cfm
    Type
    coldfusion.runtime.CfErrorWrapper

  • Session Variable in filter view error

    Hello,
    My prompt is defaulted to current 12Weeks. I used session variable in the prompt to capture 12 Weeks (Current Week and Current+12).
    so the default value is @{biServer.variables['NQ_SESSION.PERIOD_STDATE']} where PERIOD_STDATE is my session varible.
    I am using a filter view to display the filters being applied.
    When the user opens a tab, the filter view is throwing error
    ***The syntax of the expression to be evaluated is invalid.***
    ***Expression: @{biServer.variables['NQ_SESSION.PERIOD_STDATE']}***
    My report is running fine. I just have the date column as prompted in my report request.
    When the user hits go button on the prompt then the filter view comes up just fine.
    What is that I am doing wrong? Why does the filter view gives result after hitting GO button?
    Please help.
    thanks,
    deep

    Hi,
    1. Set the default using logical SQL. Select <presentation table>.<presentation column> from <subject area> where <presentation table>.<presentationation column> =valueof(NQ_SESSION.<session variable>)
    2. You dont have to write the exact syntax for entering the session variable in the default values. You just need to use the session variable name after selecting the session variable type in the drop down.
    Hope this helped/ answered.
    Regards
    MuRam

Maybe you are looking for

  • HP Laserjet 2100TN - how to add IP printer in Snow Leopard

    I am not a very technical person, so this was quite an ordeal for me.  I was very frustrated by the process and almost gave up.  I am glad that I did not I just upgraded to Snow Leopard and after many hours of reading blogs and instructions etc. I fi

  • Windows 8 driver cannot find HP Officejet Pro L7590 ethernet printer on my new router

    I'm changing to a new router and had to change the IP address of my ethernet Officejet Pro L7590 from fixed assigned 192.168.1.7 into fixed assigned 192.168.2.168 (my new provider provided router doesn't support the 192.168.1.xx range). At installati

  • Problems with 10.6.7 update

    Dear All, I had given in my MBP for a Hard drive update and subsequent to it being done updated all the software etc as prompted by Software Update. Prior to the hard drive update, I used to run Traktor Pro seamlessly and encountered perhaps one or t

  • 11.1.0.6 RAC

    hey we are using 11.1.0.6.0 cluster and RDBMS. for disaster recover purpose we are using metro mirror to copys all the binaries. but the miiroing has problem with copying ASM file system. does any one had similar kind of scenario. that will help me a

  • Calling a procedure dynamically in forms

    Hi all I'm using Oracle 6, is there anyway to call a procedure dynamically, i mean the procedure called differs according to a certain condition. The procedure is local in the form not in the database, how can this be achieved Thanks