Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Shigeru Nakagaki / Shigeru Nakagaki (Nakagaki Shigeru)
Created: 08/19/2008
Components: General Server
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 222767
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 0
Problem:
From Customer: cfcompile.bat doesn't report about the line of compiling error when we compile mapping based CFC files.
Updated title: Line/Column number is blank when a Parse Exception is thrown by cfcompile when compiling a component with parse errors.
Method:
1. Create a component with the following code:
<cfcomponent output="false">
<cffunction name="init" access="remote" output="false" returnType="Boolean">
<cfset var ret = false>
<cfif>
<cfreturn ret>
</cffunction>
</cfcomponent>
2. Run cfcompile on this component: eg: cfcompile c:\ColdFusion8\wwwroot c:\ColdFusion8\wwwroot\c1.cfc
Exception is thrown. But the exception doesn't contain the line and column number of the error.
Result:
coldfusion.compiler.ParseException: Invalid CFML construct found on line '' at c
olumn ''.
at coldfusion.compiler.cfml40.generateParseException(cfml40.java:8098)
at coldfusion.compiler.cfml40.jj_consume_token(cfml40.java:7973)
at coldfusion.compiler.cfml40.NotExpression(cfml40.java:3231)
at coldfusion.compiler.cfml40.AndExpression(cfml40.java:3201)
at coldfusion.compiler.cfml40.OrExpression(cfml40.java:3182)
at coldfusion.compiler.cfml40.XorExpression(cfml40.java:3163)
at coldfusion.compiler.cfml40.EqvExpression(cfml40.java:3144)
at coldfusion.compiler.cfml40.ImpExpression(cfml40.java:3125)
at coldfusion.compiler.cfml40.expr(cfml40.java:3112)
at coldfusion.compiler.cfml40.cfScriptExpression(cfml40.java:1659)
at coldfusion.compiler.cfml40.cfif(cfml40.java:307)
at coldfusion.compiler.cfml40.cfml(cfml40.java:2569)
at coldfusion.compiler.cfml40.cffunction(cfml40.java:2130)
at coldfusion.compiler.cfml40.cfml(cfml40.java:2583)
at coldfusion.compiler.cfml40.start(cfml40.java:2712)
at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:503)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:29
2)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:11
9)
at coldfusion.tools.Compiler.main(Compiler.java:304)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at coldfusion.tools.CommandLineInvoker.main(CommandLineInvoker.java:108)
successful 0
total 1
elapsed 0.233 sec
Errors found: 1
Error 1: C:\ColdFusion8\wwwroot\hoge.cfc
Invalid CFML construct found on line '' at column ''.
Errors found in 1 of 1 templates
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3035864
External Customer Info:
External Company:
External Customer Name: Shigeru Nakagaki
External Customer Email: 929E53204564EBE0992016B8
External Test Config: 08/19/2008
Attachments:
Comments: