Skip to main content
Participant
June 18, 2010
Question

unexpected constant #2 42

  • June 18, 2010
  • 2 replies
  • 1624 views

Anyone knows what this is? in seems the server generate the issue when encountering <CFINCLUDE Template="name"> statement in only specific coldfusion 8.0 hosting configuration.

unexpected constant #2 42

The error occurred in C:\Websites\207395xxx\Application.cfm: line 17
15 :      <cfset #parmcfc# = "MYCFCH"> <!--- CFC mapping name ---> 16 :       <!--- IMPORTANT DO NOT CHANGE OR REMOVE THESE TEMPLATES ---> 17 :           <cfinclude template="MyInfo.cfm"> 18 :           <cfinclude template="applicationNote.cfm"> 19 :           <cfinclude template="MyParameters.cfm">

Resources:

Browser  Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2)
Remote Address  65.96.100.100
Referrer 
Date/Time  18-Jun-10 01:38 PM
Stack Trace (click to expand)
at cfApplication2ecfm558288217.runPage(C:\Websites\207395xxx\Application.cfm:17)

java.lang.IllegalStateException: unexpected constant #2 42      at coldfusion.compiler.ClassReader.readCpool(ClassReader.java:155)      at coldfusion.compiler.ClassReader.findEndOfClass(ClassReader.java:224)      at coldfusion.compiler.NeoTranslator.parseClasses(NeoTranslator.java:401)      at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:278)      at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:119)      at coldfusion.runtime.TemplateClassLoader$1.fetch(TemplateClassLoader.java:310)      at coldfusion.util.LruCache.get(LruCache.java:180)      at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java:254)      at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)      at coldfusion.util.SoftCache.get(SoftCache.java:81)      at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:476)      at coldfusion.runtime.RuntimeServiceImpl.getFile(RuntimeServiceImpl.java:752)      at coldfusion.runtime.RuntimeServiceImpl.resolveTemplatePath(RuntimeServiceImpl.java:719)      at coldfusion.tagext.lang.IncludeTag$ResolveTemplatePathPrivilege.run(IncludeTag.java:242)      at java.security.AccessController.doPrivileged(Native Method)      at coldfusion.tagext.lang.IncludeTag.setTemplate(IncludeTag.java:409)      at cfApplication2ecfm558288217.runPage(C:\Websites\207395xxx\Application.cfm:17)      at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)      at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:483)      at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)      at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)      at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:221)      at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)      at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)      at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)      at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)      at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)      at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)      at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)      at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)      at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)      at coldfusion.CfmServlet.service(CfmServlet.java:198)      at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)      at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)      at com.seefusion.Filter.doFilter(Filter.java:49)      at com.seefusion.SeeFusion.doFilter(SeeFusion.java:1471)      at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)      at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)      at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)      at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)      at jrun.servlet.FilterChain.service(FilterChain.java:101)      at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)      at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)      at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)      at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)      at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)      at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)      at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    This topic has been closed for replies.

    2 replies

    Inspiring
    June 18, 2010

    This is old, but could it be this sort of thing: http://www.talkingtree.com/blog/index.cfm?mode=entry&entry=B11F99A1-45A6-2844-7E6E11C8B765E19B ?

    Did you google the error msg to see if anyone else has had it?

    --

    Adam

    Inspiring
    June 18, 2010

    Things to try:

    1. You can remove the hash signs that surround parmcfc.

    2. Please post the contents of the page the error occurs on, the application.cfm page, and your includes.  I suspect that the problem is actually somewhere before line 17.

    3. Try clearing the java compiled class files.  It is possible that one was compiled incorrectly.

    KamH2000Author
    Participant
    June 18, 2010

    Thanks - It seems that the issue is with the compilation - This runs under my configuration but hosting site seems to have a different configuration; because the source works find on the hosting site. Thanks again for your input.