Skip to main content
Participant
May 1, 2007
Question

JAVA Error??

  • May 1, 2007
  • 4 replies
  • 1445 views
I've got two ColdFusion MX 6.1 servers, one for development, one for production, both set up almost identically. Code works fine on development site, but not on production site. Error pasted below:

==================
The CFML compiler encountered an unexpected java.lang.NullPointerException exception.
The reason for this was: Occurred at:
java.lang.NullPointerException
at coldfusion.jsp.JRunTagLibraryInfo.getPropertyType(JRunTagLibraryInfo.java:574)
at coldfusion.jsp.JRunTagLibraryInfo.buildTagInfo(JRunTagLibraryInfo.java:544)
at coldfusion.jsp.JRunTagLibraryInfo.getTag(JRunTagLibraryInfo.java:248)
at coldfusion.compiler.NeoTranslationContext.findTagName(NeoTranslationContext.java:317)
at coldfusion.compiler.NeoTranslationContext.isKnownTag(NeoTranslationContext.java:193)
at coldfusion.compiler.CFMLParserBase.isKnownTagName(CFMLParserBase.java:62)
at coldfusion.compiler.cfml40TokenManager.TokenLexicalActions(cfml40TokenManager.java:6507)
at coldfusion.compiler.cfml40TokenManager.getNextToken(cfml40TokenManager.java:6384)
at coldfusion.compiler.cfml40.getToken(cfml40.java:6603)
at coldfusion.compiler.CFMLParserBase.isTrivialAngleBracket(CFMLParserBase.java:135)
at coldfusion.compiler.cfml40.jj_3_1(cfml40.java:5977)
at coldfusion.compiler.cfml40.jj_3R_46(cfml40.java:6016)
at coldfusion.compiler.cfml40.jj_3_28(cfml40.jav...


The error occurred in D:\Operational Web Sites\DeployedTemplates\CF_protected\Application.cfm: line 76

74 : <cfset LDAP_Search2Failed = false>
75 :
76 : <cftry>
77 : <cfldap
78 : action="QUERY"
==================

Any hints as to why this would work fine on one server but not the other?
    This topic has been closed for replies.

    4 replies

    BKBK
    Community Expert
    Community Expert
    May 3, 2007
    And if you apply j2sdk1.4.2_11? That was the one Adobe actually recommended. See the TechNote ColdFusion MX/JRun and Sun's JVM: U.S. Daylight Saving Time changes in 2007. As an added bonus, it also tells you something about "a known issue with NullPointerExceptions occurring in ColdFusion MX 6.1 Updater after upgrading the JRE to version 1.4.2_06 or higher".




    GeneVogtAuthor
    Participant
    May 8, 2007
    Didn't help. I finally threw in the towel, created another virtual machine, installed everything from scratch, and it's working fine. Can't afford to spend any more time tinkering with it. Thanks for all the advice and counsel!!

    Gene
    Inspiring
    May 2, 2007
    Also,

    Try installing this hotfix.. This may perhaps solve your problem,

    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b3c51ba1
    GeneVogtAuthor
    Participant
    May 2, 2007
    A very promising possibility, but it didn't help. Thanks anyway! BTW, do you know if there is an obvious way to tell if 6.1 Updater 1 has been installed? I'm pretty sure I did install it, but there's that lingering little shred of doubt.....

    I tried both of the patches listed one at a time (one for Updater1, one for no Updater 1). Neither worked.

    Gene
    Inspiring
    May 2, 2007
    Also,

    Try installing this hotfix.. This may perhaps solve your problem,

    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b3c51ba1
    Inspiring
    May 2, 2007
    Hi,

    Did you enforce enough checks for handling null values (variables) in your page before displaying the variables?.
    GeneVogtAuthor
    Participant
    May 2, 2007
    The short answer is; I believe so, but my original submission was long and more detailed and was wiped out because I forgot to give it a title (not very friendly, Mr. Forum-Coder!!).

    I have set up both servers (development and production) to be as identical as possible (the development one's a Compaq ProLiant ML-350 dual-processor beast, running Windows Server 2003 Standard, the production is a VMWare virtual machine running Windows Server 2003 Standard). Both licensed copies of CF-MX 6.1 are configured the same.

    I took one of many web sites I have running on both machines, and visually updated it. The old web site was (and still is) running fine on both machines. I cloned the web site, and re-did the graphics, buttons, page layouts (converting the site to DreamWeaver Templates in the process). I made one-for-one copies of each page, and where there was CF code on a page, I cut-n-pasted everything from the old (working) page to the new page. Visually the pages looked different, but the coding and output was exactly the same.

    Once the site was converted and working properly on the development server, I then added a couple of small enhancements to some - not a lot - of the pages, to respond to user requests for more features. The page that is crashing was actually my Application.cfm page in the protected (login required) area, and this page was not changed at all except to add a few more field pulls from the corporate LDAP database to support the new features.

    My modus operandi in this environment is to test thoroughly on the fully-functional development server first, then copy the entire web site from one server to the other when going live, change one line in the top-level Application.cfm file to indicate which server it's on, and then test it out on the operational server.

    This I did, and everything was working fine for about a month. Then the production server started spitting this error on this one page in this one web site - all the other CF web sites hosted on the production server continued - and still continue - to function correctly.

    Hindsight on this is fuzzy, but I believe my problem started when I chased down a time-reporting error introduced when the daylight savings time shift happened. Old JREs had a "bug" that still reported time in old format, even when the server OS had been patched correctly ( http://java.sun.com/developer/technicalArticles/Intl/USDST/). I updated both JREs on both servers to j2sdk1.4.2_12. The developer server continued to work properly with all the sites, and the time was reported correctly. The production server continued to work correctly on all sites except this one.

    I just noticed that the Sun web page referenced above lists j2sdk1.4.2_13 as the one with the DST patch, not j2sdk1.4.2_12 (which it did list before when I was troubleshooting). I'm not hopeful, but I'll try bumping my JRE up another notch to see if that works.

    Thanks for your reply. All ideas welcome; I'm stumped on this one.

    Gene
    GeneVogtAuthor
    Participant
    May 2, 2007
    As further info, I upgraded to j2sdk1.4.2_13 and the problem is still there.

    Sigh....

    Gene Vogt