0
JAVA Error??
New Here
,
/t5/coldfusion-discussions/java-error/td-p/520320
May 01, 2007
May 01, 2007
Copy link to clipboard
Copied
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?
==================
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?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Advocate
,
/t5/coldfusion-discussions/java-error/m-p/520321#M47632
May 01, 2007
May 01, 2007
Copy link to clipboard
Copied
Hi,
Did you enforce enough checks for handling null values (variables) in your page before displaying the variables?.
Did you enforce enough checks for handling null values (variables) in your page before displaying the variables?.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
GeneVogt
AUTHOR
New Here
,
/t5/coldfusion-discussions/java-error/m-p/520322#M47633
May 02, 2007
May 02, 2007
Copy link to clipboard
Copied
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
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
GeneVogt
AUTHOR
New Here
,
/t5/coldfusion-discussions/java-error/m-p/520326#M47637
May 02, 2007
May 02, 2007
Copy link to clipboard
Copied
As further info, I upgraded to j2sdk1.4.2_13 and the problem
is still there.
Sigh....
Gene Vogt
Sigh....
Gene Vogt
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Advocate
,
/t5/coldfusion-discussions/java-error/m-p/520323#M47634
May 02, 2007
May 02, 2007
Copy link to clipboard
Copied
Also,
Try installing this hotfix.. This may perhaps solve your problem,
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b3c51ba1
Try installing this hotfix.. This may perhaps solve your problem,
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b3c51ba1
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Advocate
,
/t5/coldfusion-discussions/java-error/m-p/520324#M47635
May 02, 2007
May 02, 2007
Copy link to clipboard
Copied
Also,
Try installing this hotfix.. This may perhaps solve your problem,
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b3c51ba1
Try installing this hotfix.. This may perhaps solve your problem,
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=b3c51ba1
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
GeneVogt
AUTHOR
New Here
,
/t5/coldfusion-discussions/java-error/m-p/520325#M47636
May 02, 2007
May 02, 2007
Copy link to clipboard
Copied
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
I tried both of the patches listed one at a time (one for Updater1, one for no Updater 1). Neither worked.
Gene
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/coldfusion-discussions/java-error/m-p/520327#M47638
May 02, 2007
May 02, 2007
Copy link to clipboard
Copied
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....
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
GeneVogt
AUTHOR
New Here
,
LATEST
/t5/coldfusion-discussions/java-error/m-p/520328#M47639
May 08, 2007
May 08, 2007
Copy link to clipboard
Copied
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
Gene
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

