Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default null is undefined

    Hi,

    I am using createObject to instantiate Java classes. I am getting variable
    null is undefined error when calling the constructor.

    <cfset ht = createObject("java","java.util.Hashtable")>
    <cfset ctx = createObject("java","javax.naming.ldap.InitialLdap Context")>
    <cfset ctx = ctx.init(ht,null)>

    Any help would be appreciated.

    Thanks,
    VMRao

    vayumahesh Guest

  2. Similar Questions and Discussions

    1. Stuck email, getting error "undefined mailbox domainstring is null"
      Recently there have been numerous emails in our system that are being moved to the undelivered folder. The following is the error that displays in...
    2. NULL NULL Error
      I have run out of things to check for and could use some help. We are on a unix box, CFMX 7, and have started to use the CFDOCUMENT tag. The tag...
    3. "null null" error on line -1
      Hi, A different, new, ocasional error this time. Since we are using CFMX7, occasionally we get this error: " Application Exception Monitor...
    4. What is an undefined offset? An undefined index?
      I just switched error_reporting to ALL so I could debug my site. I got a huge page full of errors. One of the most common was that in my arrays I'm...
    5. Error: ?null? is null or not an object
      eloine: That is a bogus error message in that it probably refers to something you have done (or not done) on the page. So, looking in the...
  3. #2

    Default Re: null is undefined

    If you're using MX 7, try using javacast() with type "null".
    mxstu Guest

  4. #3

    Default Re: null is undefined


    Thanks. I used <cfset ctx = ctx.init(ht,javaCast("null", ""))> and it worked.
    vayumahesh Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139