| Posted By |
Discussion Topic: Error Occurred While Processing Request
|
|
viswapsp |
06-03-2003 @ 11:47 PM |
|
|
Junior Member
Posts: 58
Joined: Jun 2003
|
I am new to CFM. I just created application.cfm, index.cfm, siteheader.cfm, siterfooter.cfm, onrequestEnd.cfm, ErrorException.cfm, ErrorRequest.cfm templates (from Ben Forta and Nate Weiss book, Macromedia) and when I try to open index.cfm, suddenly I started getting this error. Not sure of how to resolve this. Any help is highly appreciated. I saw posting with similar problem, but the cause seems entirely different. Errors reported by Java compiler: Found 1 semantic error compiling "D:/Program Files/CFusionMX/wwwroot/WEB-INF/cfclasses/cfIndex2ecfm1479507155.java": 1. public final class cfIndex2ecfm1479507155 extends coldfusion.runtime.CFPage{ <--------------------> *** Error: Cannot write class file "cfIndex2ecfm1479507155.class" because that name conflicts with the name of the class file "cfindex2ecfm1479507155.class" in directory "cfclasses". This is illegal because file names are case-insensitive in this system. .
Viswa
|
Robby |
06-04-2003 @ 12:30 AM |
|
|
New Member
Posts: 22
Joined: Jun 2003
|
Welcome to Coldfusion Unless you have a small amount of code in each file, (if so just post it on here) try this.. make sure you have updater 3 installed. if so. try opening each one on their own. The error itself is inside of index because of the includes and application&onrequestend.cfm templates ,. but 9 times out of ten ,. it's prolly related to just one of those "included" templates. If one is erroring by itself, . let me know and we'll go through that template. Robby
|
viswapsp |
06-04-2003 @ 6:02 PM |
|
|
Junior Member
Posts: 58
Joined: Jun 2003
|
Thank you very much. I have a vitual directory "localhost/Timesheet" pointing to "e:\Timesheet" and the physical folder contain the following files. Application.cfm ---------------- <cfset DataSource="ORCL92"> <cfset CompanyName="Mega Minds INC"> <cfset ErrorEmailID="viswapsp@hotmail.com"> <cfset ErrorSenderEmailID="viswapsp@hotmail.com"> <cferror type="request" template="ErrorRequest.cfm" mailto="#ErrorEmailID#" > <cfinclude template="SiteHeader.cfm"> ------------------ ErrorException.cfm ------------------ <html> <head> <title>Error Exception</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <p>We are working to resolve the problem as soon as possible. Please visit shortly. </p> <cfif Error.MailTo neq ""> <cfmail to="#Error.MailTo#" from="#ErrorSenderEmailID#" subject="#Error.Template#"> Error on page : #Error.Template# Error Date/Time: #Error.DateTime# User Browser : #Error.Browser# URL Parameter: #Error.QueryString# Previous Page: #error.HTTPReferer# ----------------------- #Error.Diagnostics# </cfmail> </cfif> </body> </html> ------------------ ErrorRequest.cfm ----------------- <html> <head> <title>Error</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <h2>Oops!!</h2> <p>We are so sorry for the Error encountered during this time. We are fixing the problem currently. If you want to inform you can <a href="mailto:#ERROR.MailTo#">send a mail.</a></p> </body> </html> ----------------- Index.cfm ---------------- <cfoutput> <blockquote> Welcome to #CompanyName# website. We certainly hope that you will enjoy your visit. We take pride in producing the best XYZ for a long time. Have fun and happy shopping!! </blockquote> </cfoutput> ----------------- OnRequestEnd.cfm ---------------- <cfinclude template="SiteFooter.cfm"> -------------------- SiteFooter.cfm -------------- <font color="#666666" face="Courier New, Courier, mono" size="-2"> <cfoutput> © #Year(Now())# #CompanyName# </cfoutput> </font> </body> </html> ------------------------------------------ SiteHeader.cfm -------------- <html> <head> <title><cfoutput>#CompanyName#</cfoutput></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <p align="center"> <b> <font color="#330099" face="Times New Roman, Times, serif" size="+2"> <cfoutput> #CompanyName#</cfoutput> </font> </b> </p> ------------------------- ------------------------- Error I am receiving: Error Occurred While Processing Request Errors reported by Java compiler: Found 1 semantic error compiling "D:/Program Files/CFusionMX/wwwroot/WEB-INF/cfclasses/cfIndex2ecfm1479507155.java": 1. public final class cfIndex2ecfm1479507155 extends coldfusion.runtime.CFPage{ <--------------------> *** Error: Cannot write class file "cfIndex2ecfm1479507155.class" because that name conflicts with the name of the class file "cfindex2ecfm1479507155.class" in directory "cfclasses". This is illegal because file names are case-insensitive in this system. .
Viswa
|
viswapsp |
06-04-2003 @ 6:07 PM |
|
|
Junior Member
Posts: 58
Joined: Jun 2003
|
This information may be useful for debugging the error. Version Information Server Details Server Product ColdFusion Server Version 6,0,0,48097 Edition Evaluation Serial Number Operating System Windows 2000 OS Version 5.0 JVM Details Java Version 1.3.1_03 Java Vendor Sun Microsystems Inc. Java Vendor URL http://java.sun.com/ Java Home D:\Program Files\CFusionMX\runtime\jre File Separator \ Path Separator ; Line Separator Chr(13) User Name SYSTEM User Home C:\Documents and Settings\Default User User Dir D:\Program Files\CFusionMX\runtime\bin Java VM Specification Version 1.0 Java VM Specification Vendor Sun Microsystems Inc. Java VM Specification Name Java Virtual Machine Specification Java VM Version 1.3.1_03-b03 Java VM Vendor Sun Microsystems Inc. Java VM Name Java HotSpot(TM) Client VM Java Specification Version 1.3 Java Specification Vendor Sun Microsystems Inc. Java Specification Name Java Platform API Specification Java Class Version 47.0 Java Class Path D:\Program Files\CFusionMX\runtime\servers\lib; D:\Program Files\CFusionMX\runtime\..\..\src; D:\Program Files\CFusionMX\runtime\..\lib\cfusion.jar; D:\Program Files\CFusionMX\runtime\lib\jrun.jar Java Ext Dirs D:\Program Files\CFusionMX\runtime\jre\lib\ext
Viswa
|
viswapsp |
06-07-2003 @ 10:24 PM |
|
|
Junior Member
Posts: 58
Joined: Jun 2003
|
I found how the problem occurs... But, I am not sure what the solution is.. When I add ClientManagement="YES" to <CFApplication> tag, then the problem started. But after that, even when I remove the attribute, the error did not go away. No problematic code: -------------------- <cfapplication name="#CompanyName#"> Problematic code: ----------------- <cfapplication name="#CompanyName#" clientmanagement="Yes"> Any help is highly appreciated. Thanks Viswa
|
Robby |
06-08-2003 @ 9:25 AM |
|
|
New Member
Posts: 22
Joined: Jun 2003
|
<cfapplication name="#CompanyName#" clientmanagement="Yes" clientStorage="Cookie"> Try that and lets see if it works without an error (though the default should take care of it on it's own.) Have you taken out all of the includes and info on each template and put one at a time to find out that the cfapplication tag was the core of the problem? I can't see anything offhand that thorws it from here all but the fact in your first reply back there wasn't any cfapplication tag in the Application at all. and this caught me as well.. <cfapplication name="#CompanyName#" clientmanagement="Yes"> is the variable #companyname# set before the cfapplication tag? if not, it needs to be. I'm pretty sure dynamic names on the cfapplication tag are just fine but if it still fails, try it without the dynamic part of it.(hard code the string in) (Is there a reason why it "needs" to be dynamic anyways?) Give those a go and let me know.. Robby
|
viswapsp |
06-08-2003 @ 12:38 PM |
|
|
Junior Member
Posts: 58
Joined: Jun 2003
|
Hi Rob, Thanks for your reply. <CFApplication> tag is accepting dynamic values, and displaying them properly, as I have defined them in a include file and included prior to the <CFApplication> tag. Coming to your statement "make sure you have updater 3 installed", is this a kind of Service pack? I am using the latest trial version from Macromedia site, so, I am not sure if there is any necessity to install a service pack. Also I am not sure if it is possible as I am using the trial software. I will try the 'ClientStorage="Cookies"' attribute and see what happens. I can think of only one cause for this problem. When I tried installing Apache, Java (through installation of Oracle), I installed/deinstalled several times which might have not deinstalled the Java classes properly. That is the only reason I can think of. Any how, I will give a shot with your suggestions and post the results, tonight. For your other question, I am sure that this problem started as and when I added the attribute "ClientManagement" to the <CFApplication> tag. For your other question, basically, I want to have any constant values defined in a separate file, so that I can make the future changes easy. Thanks for your efforts. Viswa
|
viswapsp |
06-08-2003 @ 8:29 PM |
|
|
Junior Member
Posts: 58
Joined: Jun 2003
|
I tried with <CFApplication Name="ABCCompany" clientmanagement="yes" clientstorage="Cookie"> as well as <CFApplication Name="#CompanyName#" clientmanagement="yes" clientstorage="Cookie"> Did not work. Any more idea!! Thanks Viswa
|
jmarlin |
07-16-2003 @ 12:09 PM |
|
|
New Member
Posts: 1
Joined: Jul 2003
|
Hi Viswa, I stumbled upon your message in my quest for more information regarding this problem. I have had the same issue since installing Updater 3. The only fix I have been able to find is to run the file "updater_compile.bat" (maybe different on non-Windows system) on the directory with the offending application.cfm. (e.g. updater_compile.bat c:\inetpub\wwwroot c:\inetpub\wwwroot\www.yoursite.com\htdocs) It seems to only happen with application.cfm, although this is a general error and can be produced through other means. When you run the updater on that directory, it will just recompile everything and your site should work fine again - *UNTIL* you make a change to application.cfm - then, it's been my experience that the problem will start all over again and require recompiling. This is really wierd - I never bothered mailing MM about it because I assumed they knew of such a glaring issue and would address it in the next update (which is a major one). But perhaps this error is rare and due to some particular configuration since I have yet to find additional information on the net. Please let us know if you find a better fix to this - it's really killing me to go through this process everytime I want to change application.cfm... in fact, I've considered just calling an include from application.cfm to keep from changing application.cfm directly! Hope this helps, Jason
|