IsDefined("cfcatch.message") returns false?

hello -
i have something strange happening in one of the applications
i support.
i have a cfcatch statement of type="any". within that block,
i have the following statement:
<CFIF
IsDefined("cfcatch.message")>
most of the time, that returns true, and what i have inside
of that statement is evaluated. once in awhile, it returns false.
my question is this:
how is it possible for a cfcatch structure to not have its
"message" key defined??

It checks for the Message URL parameter.
If it is found, it will perform the code within the
<cfif></cfif> block.
If it is not found, it won't do anything.
http://livedocs.adobe.com/coldfusion/7/htmldocs/00000274.htm#1100123
http://livedocs.adobe.com/coldfusion/7/htmldocs/00000520.htm#1106482
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"Coldfusionstudent" <[email protected]>
wrote in message news:f2283r$6e0$[email protected]..
> does any one know what this <cfif
isDefined("url.Message")> is used for?

Similar Messages

  • Captivate 8:  Getting this message "Unable to locate LMS's API, content may not play properly".  Then I get a debug message of "44:Tue Feb 17 2015 : InIsLoaded, returning false".  Has anyone else seen this?

    Captivate 8:  Getting this message "Unable to locate LMS's API, content may not play properly".  Then I get a debug message of "44:Tue Feb 17 2015 : InIsLoaded, returning false".  I also see a message in the preview pane when I view the .htm file in the project folder "This course requires JavaScript to be enabled in your browser.  Please enable JavaScript, then relaunch the course."   JavaScript is already enabled and I'm getting this in IE9 and Chrome 40....Has anyone else seen this? 

    The first part of your issue will be resolved if you load your course from an LMS. If you are not hosting your content on LMS, you can disable the reporting in your Quiz settings (Edit > Preferences > Quiz > Reporting).
    Not sure about the Javascript related issues.
    Sreekanth

  • Webutil_file_transfer.as_to_client_with_progress returns false

    Hi,
    I have the following problem: I want to transfer a file from the application server to the client. I use the following code:
    DECLARE
    l_cache_filename VARCHAR2(150) := 'Q:\OracleReportsTemp\123.html';
    l_report_desname VARCHAR2(150) := 'C:\pcedownload\456.html';
    BEGIN
    IF NOT webutil_file_transfer.is_as_readable(l_cache_filename)
    THEN
    message('error in configuration');
    ELSE
    IF NOT webutil_file_transfer.as_to_client_with_progress(l_report_desname, l_cache_filename, 'Transferring to '||l_report_desname, 'Transferring to '||l_report_desname)
    THEN
    message('error while transferring');
    END IF;
    END IF;
    END;
    The file Q:\OracleReportsTemp\123.html exists on the application server and the directory C:\pcedownload exists on the client PC.
    This is the extract from webutil.cfg from the application server:
    transfer.database.enabled=FALSE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.workAreaRoot=Q:\OracleReportsTemp
    transfer.appsrv.accessControl=TRUE
    transfer.appsrv.read.1=Q:\OracleReportsTemp
    Although this code works fine on my local OC4J, webutil_file_transfer.as_to_client_with_progress always return FALSE on the Application Server. The function webutil_file_transfer.is_as_readable returns true on both environments. Other webutil function such as client_text_io also work fine on both environments.
    Versions:
    Forms 10g Release 2
    Application Server 10g Release2 using OID and SSL
    Webutil 1.0.6
    Jinitiator 1.3.1.22

    Hi,
    You can try as follows in your webutil.cfg file:
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.workAreaRoot=
    transfer.appsrv.accessControl=FALSE
    transfer.appsrv.read.1=
    transfer.appsrv.write.1=
    In formsweb.cfg you might have:
    [webutil]
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar
    archive=frmall.jar
    lookAndFeel=oracle
    userid=user/pwd@mbcprod10g
    width=100%
    height=100%
    then try with the following link:
    http://localhost:8889/forms/frmservlet?config=webutil&form=<Form_Name>
    Hopefully it will work.
    Regards
    Kausar Iqbal

  • ServletAuthentication.weak() makes isUserInRole() always return false

    I have a problem with SSO and authentification. If I authenticate with the weak()
    method(have tried alle of them) authentication works fine and it seem to be single
    signed-on, but
    if we call the isUserInRole() method it always return false.
    If I try to "call" pages from the client the declerativ security-constraints also
    works fine preventing the user from accessing the pages. It is only when we use
    the forward() method that we also use isUserInRole() to check if the user is permitted
    to be forwarded(). WLS 6.1 sp2 tells us that the user is never in Role, no matter
    what, if we use the weak() method to authenticate.
    If I switch to using a j_sec_check form to authenticate the isUserInRole() works
    fine. I can't use j_sec_check as a permanent solution though, because I need to
    do a lot of pre- and post- processing in the login/authenication process.
    Have any of you figured out a solution to this problem? Shouldn't isUserInRole()
    work the same way regardless of if you logged in using SA.weak() or a j_security_check
    form?

    Hi ,
    If I switch to using a j_sec_check form to authenticate the isUserInRole()works
    fine. I can't use j_sec_check as a permanent solution though, because Ineed to
    do a lot of pre- and post- processing in the login/authenication process.You can use the j_security_check and still do the pre and post processing as
    you want.
    You have to following code,
    package examples.servlets;
    import java.io.PrintStream;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import weblogic.servlet.security.AuthFilter;
    public class AuthFilterImpl extends AuthFilter
    public AuthFilterImpl()
    System.out.println("New AuthFilterImpl has been created.");
    public void doPreAuth(ServletRequest servletrequest, ServletResponse
    servletresponse)
    System.out.println("AuthFilterImpl.doPreAuth has been called.");
    System.out.println("Password is " +
    servletrequest.getParameter("j_password"));
    public boolean doSuccessAuth(ServletRequest servletrequest,
    ServletResponse servletresponse)
    System.out.println("AuthFilterImpl.doSuccessAuth has been called.");
    return true;
    public void doFailAuth(ServletRequest servletrequest, ServletResponse
    servletresponse)
    System.out.println("AuthFilterImpl.doFailAuth has been called.");
    In your weblogic.xml have this entry,
    <weblogic-web-app>
    <auth-filter>
    examples.servlets.AuthFilterImpl
    </auth-filter>
    </weblogic-web-app>
    I am not sure about problem with SA.weak().
    -utpal
    "Morten" <[email protected]> wrote in message
    news:[email protected]...
    >
    I have a problem with SSO and authentification. If I authenticate with theweak()
    method(have tried alle of them) authentication works fine and it seem tobe single
    signed-on, but
    if we call the isUserInRole() method it always return false.
    If I try to "call" pages from the client the declerativsecurity-constraints also
    works fine preventing the user from accessing the pages. It is only whenwe use
    the forward() method that we also use isUserInRole() to check if the useris permitted
    to be forwarded(). WLS 6.1 sp2 tells us that the user is never in Role, nomatter
    what, if we use the weak() method to authenticate.
    If I switch to using a j_sec_check form to authenticate the isUserInRole()works
    fine. I can't use j_sec_check as a permanent solution though, because Ineed to
    do a lot of pre- and post- processing in the login/authenication process.
    Have any of you figured out a solution to this problem? Shouldn'tisUserInRole()
    work the same way regardless of if you logged in using SA.weak() or aj_security_check
    form?

  • REP-1825: Before Report Trigger returned FALSE

    Is there any work around for this error...??
    I am running a report in a batch mode. I have an old version 3.0.5.14 for unix.
    There is logic on the Before Report Trigger and an email is sent. A blank email if nothing needs to be reported or with data if there is anything to be reported.
    I updated the report (a different program unit), recompiled it and now I am getting this error and no email.
    any ideas?
    thanks
    simona

    Hi Simona,
    Does this happen when you are not running in batch mode? It sounds like you will need to step through the report, possibly with some srw.message calls to output some of the data values to find out why the Before Report Trigger is now returning false. Without seeing the logic, it's difficult to say.
    Toby

  • Cstmt.execute() returning false

    I am trying to insert values in db table by using
    CallableStatement
    but
    cstmt.execute() always returning false
    here is code
           try
                 //Connection conn = (Connection)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().getJdbcConnection(); 
                   Connection conn = am.getOADBTransaction().getJdbcConnection();
                   CallableStatement cstmt = conn.prepareCall("{call apps.xx_GL_Vacancies.insert_transaction(?)}");
                   String project_id;
                   if(vo.getCurrentRow().getAttribute("VacancyId")!=null)
                     project_id=vo.getCurrentRow().getAttribute("VacancyId").toString();
                   //project_id=Integer.parseInt(project_id);
                    cstmt.setString(1,project_id);
                        pageContext.putDialogMessage(new OAException("hello"+project_id) );
                      boolean temp=cstmt.execute();
                         pageContext.putDialogMessage(new OAException("hello"+project_id+"temp"+temp) );
                       cstmt.close();
                     catch(Exception e)
                         String message = "Error in Data Saving: " + e;
                         throw new OAException(message, OAException.ERROR);
                        }

    HA,
    Replace the code
    public void processFormRequest(OAPageContext pageContext,OAWebBean webBean) {
                super.processFormRequest(pageContext, webBean);
            OAApplicationModule am = pageContext.getRootApplicationModule();
            OAViewObject vo = (OAViewObject)am.findViewObject("IrcEditVacancyVO");
                 if(pageContext.getParameter("FndSubmit")!=null)
                          try
                                  System.out.println("Inside Button Action");
                                //Connection conn = (Connection)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().getJdbcConnection(); 
                                  Connection conn = am.getOADBTransaction().getJdbcConnection();
                                  CallableStatement cstmt = conn.prepareCall("{call apps.xx_GL_Vacancies.insert_transaction(:1)}");
                                  String project_id;
                                  if(vo.getCurrentRow().getAttribute("VacancyId")!=null)
                                         System.out.println("Inside VO Action");
                                    project_id=vo.getCurrentRow().getAttribute("VacancyId").toString();
                                  //project_id=Integer.parseInt(project_id);
                                    cstmt.setString(1, project_id);
                                    pageContext.putDialogMessage(new OAException("hello"+project_id) );
                                    boolean temp=cstmt.execute();
                                          pageContext.putDialogMessage(new OAException("temp"));
                                    cstmt.close();
                                     catch(Exception e)
                                      String message = "Error in Data Saving: " + e;
                                      throw new OAException(message, OAException.ERROR);
               Note - Execute the Page and get the SOP's value. This SOP's will be helpful to trace whether the flow is moving inside all the blocks.
    Regards,
    Gyan

  • SelectInputMethod() method of InputContext always returning false in JWS

    Hi,
    I am setting the Locale on a textArea using the api:
    TextArea.getInputContext().selectInputMethod(Locale).
    This api is always returning false, when run on Java Web Start.
    However, it returns the correct value, when run on Java.
    Has any one faced such issue?
    Thanks,
    Charanjeet
    Message was edited by:
    jannyguy

    When I trace the nativePath of the file I am trying to find it shows "C:\Users\User\AppData\Roaming\Arakaron.debug\Local Store". This is the exact path I am following in Explorer. Now, instead of applicationStorageDirectory I can do documentsDirectory and it reads that the file is in fact there. With the applicationStorageDirectory it only registers that the file exists after I copy from the embedded db file. 

  • Boolean always returning false;

    Ok so i have this
    public static boolean testAuth(){
              try{
                   BufferedReader authReader = new BufferedReader(new FileReader("auth.txt"));
                   String auth = authReader.readLine();
                   authReader.close();
                   URL authUrl = new URL("http://hvc3.com/authTest.php?auth="+auth);
                   BufferedReader urlReader = new BufferedReader(new InputStreamReader(authUrl.openStream()));
                   String authResponse = urlReader.readLine();
                   System.out.println(authResponse);
                   if(authResponse == "active"){
                        return true;
                   }else{
                        return false;
              }catch (IOException e){
                   return false;
         }this is my console outpot:
    kevin-roses-computer:~/Desktop kevinrose$ java test
    active
    NOO
    sorry its not the exception i dot knw whats wong:
    Message was edited by:
    krrose27

    if(authResponse.equalsIgnoreCase("active"))
    {And in this case just write:
    return authResponse.equalsIgnoreCase("active");:-)
    -Puce

  • PartialPageUtils.isPartialRequest(fctx) always return false

    Hi All ,
    I am using Jdeveloper 11g and i can't solve the problem with getting always false from
    PartialPageUtils.isPartialRequest(fctx);
    If i use partialSubmit="true" PartialPageUtils.isPartialRequest(fctx) return false.
    If i don't use partialSubmit PartialPageUtils.isPartialRequest(fctx) return false.
    Could you please give me a solution.
    Thanks in advance,
    JavaDeveLoper

    Hi Mr. Frank Nimphius
    I have a creation form with 7 input text fields. 3 of them are required fields.
    These 3 fields have valueChangeListener , validator and autoSubmit="true".
    The problem is that when i enter info in field 1 and tab to the next field after passing the validator for field1 i get error message, because i've entered nothing in the other required fields.
    Also i've ovveride public void validateModelUpdates(LifecycleContext lifecycleContext) {...}
    public void validateModelUpdates(LifecycleContext lifecycleContext) {
    FacesContext fctx = FacesContext.getCurrentInstance();
    boolean isPPR = PartialPageUtils.isPartialRequest(fctx);
    if (isPPR) {
    System.out.println("No Refresh");
    } else {
    super.validateModelUpdates(lifecycleContext);
    This method always return false.

  • RPCElement instanceof org.w3c.dom.Element returned false??

    I use AXIS api to write a client-side SOAP application and am encountering a very weird problem that org.apache.axis.message.RPCElement instanceof org.w3c.dom.Element returned false. Here's the snippet:
    Object obj= call.invoke(params);
         if (obj instanceof Collection) {
                             System.out.println("--------------TEST OBJ2:" + obj.getClass().toString());
                             if (((Collection) obj).size() == 1) {
                                  obj = ((Collection) obj).iterator().next();
                                  System.out.println("--------------TEST OBJ3:" + obj.getClass().toString());
    System.out.println("--------------TEST RESPONSE OBJECT TYPE:" + obj.getClass().toString());
                    System.out.println("--------------TEST RESPONSE OBJECT TYPE Name:" + obj.getClass().getName());
                    System.out.println("--------------Element:" + Element.class.getName());
                    System.out.println("--------------TEST obj instanceof Element:" + (obj instanceof Element));Here's the output:
    --------------TEST OBJ2:class java.util.Vector
    --------------TEST OBJ3:class org.apache.axis.message.RPCElement
    --------------TEST RESPONSE OBJECT TYPE:class org.apache.axis.message.RPCElement
    --------------TEST RESPONSE OBJECT TYPE Name:org.apache.axis.message.RPCElement
    --------------Element:org.w3c.dom.Element
    --------------TEST obj instanceof Element:false
    Edited by: wildmild1978 on Feb 11, 2009 1:30 PM

    Yeah!
    I have resolved it .
    It take me one day time!
    my error is 1: Element which I used is no namespace.
    2: no import enough jar files
    just so so .
    sorry! I am poor in English

  • Bug Report: ResultSet.isLast() returns false when queries return zero rows

    When calling the method isLast() on a resultset that contains zero (0) rows, false is returned. If a resultset contains no rows, isLast() should return true because returning false would indicate that there are more rows to be retrieved.
    Try the following Java source:
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import oracle.jdbc.driver.*;
    public class Test2 {
    public static void main (String [] args) throws Exception {
    Connection conn = null;
    String jdbcURL = "jdbc:oracle:thin:@" +
    "(DESCRIPTION=(ADDRESS=(HOST=<host computer>)"+
    "(PROTOCOL=tcp)(PORT=<DB port number>))"+
    "(CONNECT_DATA=(SID=<Oracle DB instance>)))";
    String userId = "userid";
    String password = "password";
    try{
    // Load the Oracle JDBC Driver and register it.
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // *** The following statement creates a database connection object
    // using the DriverManager.getConnection method. The first parameter is
    // the database URL which is constructed based on the connection parameters
    // specified in ConnectionParams.java.
    // The URL syntax is as follows:
    // "jdbc:oracle:<driver>:@<db connection string>"
    // <driver>, can be 'thin' or 'oci8'
    // <db connect string>, is a Net8 name-value, denoting the TNSNAMES entry
    conn = DriverManager.getConnection(jdbcURL, userId, password);
    } catch(SQLException ex){ //Trap SQL errors
    // catch error
    //conn = new OracleDriver().defaultConnection(); // Connect to Oracle 8i (8.1.7), use Oracle thin client.
    PreparedStatement ps = conn.prepareStatement("select 'a' from dual where ? = ?", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); // Use any query that will return zero rows.
    ps.setInt(1, 1); // Set the params so that the query returns 0 rows.
    ps.setInt(2, 2);
    ResultSet rs = ps.executeQuery();
    System.out.println("1. Last here? " + rs.isLast());
    while (rs.next()) {
    // do whatever
    System.out.println("2. Last here? " + rs.isLast());
    ps.close();
    rs.close();
    EXPECTED RESULT -
    1. Last here? true
    2. Last here? true
    ACTUAL RESULT -
    1. Last here? false
    2. Last here? false
    This happens to me on Oracle 9.2.0.1.0.

    387561,
    For your information, I discovered this problem from
    running a query that did access an actual DB table.
    Try it and let me know.I did say I was only guessing, and yes, I did try it (after I posted my reply, and before I read yours). And I did check the query plan for the queries I tried -- to verify that they were actually doing some database "gets".
    In any case, the usual way that I determine whether a "ResultSet" is empty is when the very first invocation of method "next()" returns 'false'. Is that not sufficient for you?
    Good Luck,
    Avi.

  • In a javascript function invoked from an onsubmit handler, if the function returns false, the form is still submitted. If I find an error in a form, how do I cancel the submit?

    HTML form has: action="/TTFFRP/addlicense.rex" method="get" onsubmit="validate_data();"
    validate_data is defined in tags:
    function validate_data()
    alert('in validate routine');
    if (document.getElementById('custname').value == '')
    alert('Customer name must not be blank; put in name of organization licensing File RePackager');
    return false;
    }

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
    [http://forums.mozillazine.org/viewforum.php?f=25]
    You'll need to register and login to be able to post in that forum.

  • How do I find a word in all my document, return false if it's not in there.

    Hi,
    I struggle with something that should be easy, and didn't find any answer on this forum.
    I have a list of word that I want to search in a 300 pages catalogue in InDesign. I'd like to know how can i:
    1) Look for the word
    2) Return true if it's in the document
    3) Return false if it's not
    FYI, the words i'm searching are product code, so if they're not in the catalogue, the product isn't in the catalogue.
    Thanks a lot,
    Olivier

    Hi Oliver,
    Use this,
    var doc = app.documents;
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.findWhat = "Text";
    var foundtext = app.activeDocument.stories.everyItem().paragraphs.everyItem().findText();
    for (var i=0;i<foundtext.length;i++){
            if (foundtext[i].length != 0){
                alert("True");
            else{
                alert("False")
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;

  • How can I download and read a SWF file on IPad 2? The message returned is that Safari cannot download that file

    How can I download and read a SWF file on IPad 2? The message returned is that Safari cannot download that file

    SWF files are flash files, which are not supported on the iPad : http://www.apple.com/hotnews/thoughts-on-flash/
    If you want to play the file then the iSwifter or Skyfire browser apps might work (they don't work on all flash sites) but you won't be able to download it

  • (New to C# here) What is the best way to return false in a function if it cannot be executed successfully?

    In Javascript or PHP you can have a function that could return, for example, a string in case of success and false in case of failure.
    I've noticed (in the few days I've been learning C#) that you need to define a type of value that the function will return, so you need to return that type of value but in case of failure you can't return false.
    What is the best way to achieve this behavior and is there an example I can see?
    Thank you in advance,
    Juan

    Juan, be aware that returning null won't work with value types, such as an int, which can't be null. You'd have to use a nullable value type. A nullable int would be declared with a "?", such as:
    int? someOtherFunction(int param)
    if(something goes great)
    return param * 42;
    return null;
    And you have to use it like this:
    int? result = someOtherFunction(666);
    if (result != null) // you can also use result.HasValue
    // it worked, do something with the result
    // if you're doing math with the result, no problem
    int x = result * 2;
    // but if you're assigning it to another an int, you need to use this syntax
    int y = result.Value;
    Before nullable value types came along, for a method that returned an int, I'd use a value of something that wouldn't normally be returned by that method to indicate failure, such as a -1.
    ~~Bonnie DeWitt [C# MVP]
    That's something very very important to keep in mind. Can save you from a lot of headaches!
    So if you have an int function and it might return NULL, if you are doing Math with the return value you can use it directly, but if you're assigning it to another variable you have to use .Value?
    Thanks

Maybe you are looking for