Copy link to clipboard
Copied
This problem keeps popping up, I did some updates & patches, even upgraded java, nothing seems to help. I used to be able to restart coldfusion & the problem would go away.... that's not working today.
I get the error only on specific pages, all others will be fine, ~usually~ it's the same page that will throw the error.
The error will also show up if the template is completely blank, not even cfoutput tags & I still get the error.
Also - one of the pages that is affected is the Java & JVM page of the administrator...
Anyone have any ideas what is happening & how to fix this?
500
ROOT CAUSE:
java.lang.NoClassDefFoundError: Could not initialize class org.apache.bcel.util.SyntheticRepository
at org.apache.bcel.classfile.JavaClass.<init>(JavaClass.java:110)
at org.apache.bcel.classfile.JavaClass.<init>(JavaClass.java:229)
at org.apache.bcel.generic.ClassGen.getJavaClass(ClassGen.java:230)
at coldfusion.bytecode.JavaAssembler.getBytes(JavaAssembler.java:379)
at coldfusion.compiler.TemplateAssembler.assemble(TemplateAssembler.java:89)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:316)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:119)
at coldfusion.runtime.TemplateClassLoader$1.fetch(TemplateClassLoader.java:316)
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.filter.PathFilter.invoke(PathFilter.java:79)
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 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)javax.servlet.ServletException: ROOT CAUSE:
java.lang.NoClassDefFoundError: Could not initialize class org.apache.bcel.util.SyntheticRepository
at org.apache.bcel.classfile.JavaClass.<init>(JavaClass.java:110)
at org.apache.bcel.classfile.JavaClass.<init>(JavaClass.java:229)
at org.apache.bcel.generic.ClassGen.getJavaClass(ClassGen.java:230)
at coldfusion.bytecode.JavaAssembler.getBytes(JavaAssembler.java:379)
at coldfusion.compiler.TemplateAssembler.assemble(TemplateAssembler.java:89)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:316)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:119)
at coldfusion.runtime.TemplateClassLoader$1.fetch(TemplateClassLoader.java:316)
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.filter.PathFilter.invoke(PathFilter.java:79)
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 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)at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70)
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)
Copy link to clipboard
Copied
Im having the same issue. all my pages are fine until i modify one, then i get that error.
S'funny how there never are any answers posted... only issues.
Goodbye ColdFusion... Hello PHP!
Copy link to clipboard
Copied
Im having the same issue. all my pages are fine until i modify one, then i get that error.
S'funny how there never are any answers posted... only issues.
Goodbye ColdFusion... Hello PHP!
When the other kids score a goal against you in the playground, do you grab your ball off them and take it home? 😉
You've asked two questions on these forums, and the other one got answered. So that's immediately a 50% strike rate. And your current question is only six hours old, so it's a bit premature to start whining about people who volunteer their own time to help other people haven't quite helped you to your level of satisfaction yet. And how many questions from someone else have you answered? None. So if questions here are not getting answered with an expedience that's to your liking, you're actually part of the problem, not part of the solution.
Looking at the first page of threads (30 of them) on this forum, eight are marked solved by the person who raised them, a further six have also been solved, an additional one has been confirmed as a bug in CF. So that's 15 out of 30 that have been resolved. Again, 50%. Not great, I have to say, but then again the nature of the issues raised here are that they're fairly obscure issues, so I guess that's not surprising. 50% is a pass in most environments though, I think. Another four have had no feedback form the original poster after someone has followed they question up. So if the issue hasn't been solved, it's not for lack of trying.
Now. Not that you are even remotely deserving of help, but let's look at your issue. You say that "all my pages are fine until i modify one, then i get that error". So if you have a CF file that has:
<cfset foo = "bar">
which works fine, and then you change it to:
<cfset foo = "bar2">
and save it, and rebrowse to it, you will get this error?
There is no CF restart in between, nothing else other than open the file, edit it, save it, browse to it, error? And it happens with any file?
As it's a compiler error I doubt much will be getting logged, but have you checked all the CF & JRun logs at the time of the error, to see if they cast any light on the scene? Indeed, what actually have you done to troubleshoot this (you spend all your time throwing your toys from the cot rather than posting a coherent problem statement, so it's hard to tell). You could perhap benefit from reading the psoting guidelines: http://forums.adobe.com/thread/607238. They describe a good way to raise an issue here in a way that is more likely to get good results.
--
Adam
Copy link to clipboard
Copied
I had the same problem "Could not initialize class org.apache.bcel.util.SyntheticRepository" and just resolved it.
This may be a red herring, but it seemed to coincide with my Trial license expiring and converting to a Developer license. I entered the license key and converted to Enterprise license. Then restarted the main ColdFusion Service to activate the license. This stopped my license error but unfortunately the BCEL error was still there.
The next day I restarted ALL ColdFusion services (I have four running) and that solved the problem.
I'm on:
I hope that helps.
JOE CHAHINE
Copy link to clipboard
Copied
hia
having the same issue on one of our servers for the past two days... after years of operating it.
resolution that works for me : stop all coldfusion services, stop apache and delete all files in c:\ColdFusion8\wwwroot\WEB-INF\cfclasses (cache of compiled cfm pages). then restart all services.
on both occurences i had so far, cpu of the server went to 50% for about 10 minutes on the jrun.exe (cf8), but fusion reactor does not show any running jobs...
very strange...
further insights requested.
lukas
Copy link to clipboard
Copied
Hi,
Can you share your jvm.config details.
Regards,
Anit Kumar
Copy link to clipboard
Copied
hello
thanks for your answer. our coldfusion is version 8, standard edition in unaltered base installation mode (on of many cf servers we have). its been running fine for more than three years...
# Arguments to VM
java.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=256m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/flex/jars,{application.home}/../wwwroot/WEB-INF/cfform/jars -Djava.security.manager "-Djava.security.policy=C:\\ColdFusion8\\lib\\coldfusion.policy" "-Djava.security.auth.policy=C:\\ColdFusion8\\lib\\neo_jaas.policy"
java.ext.dirs={jre.home}/lib/ext
java.library.path={application.home}/../lib,{application.home}/../jintegra/bin,{application.home}/../jintegra/bin/international
system.path.first=false
java.user.dir={application.home}/../../lib
java.class.path={application.home}/servers/lib,{application.home}/../lib/macromedia_drivers.jar,{application.home}/lib/cfmx_mbean.jar,{application.home}/lib
Copy link to clipboard
Copied
Hi,
Did you check the ColdFusion logs for the error? Please share the same.
Regards,
Anit Kumar
Copy link to clipboard
Copied
en voilà:
server.log -> empty, except for the previous entries with 30sec runtime warning (regular, some scheduled tasks that take a while - nothing exceptional). only entries that are in there about that time are the messages that cfserver is starting (my manual restarts).
exception.log has entries like this one:
"Error","jrpp-2","03/15/13","07:37:46",,"Could not initialize class org.apache.bcel.util.SyntheticRepository The specific sequence of files included or processed is: D:\home\home\www\index.cfm'' "
java.lang.NoClassDefFoundError: Could not initialize class org.apache.bcel.util.SyntheticRepository
at org.apache.bcel.classfile.JavaClass.<init>(JavaClass.java:110)
at org.apache.bcel.classfile.JavaClass.<init>(JavaClass.java:229)
at org.apache.bcel.generic.ClassGen.getJavaClass(ClassGen.java:230)
at coldfusion.bytecode.JavaAssembler.getBytes(JavaAssembler.java:379)
at coldfusion.compiler.TemplateAssembler.assemble(TemplateAssembler.java:89)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:316)
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.filter.PathFilter.invoke(PathFilter.java:79)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)
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.intergral.fusionreactor.filter.FusionReactorFilter.b(FusionReactorFilter.java:376)
at com.intergral.fusionreactor.filter.FusionReactorFilter.c(FusionReactorFilter.java:254)
at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReactorFilter.java:164)
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)
application.log brings the short version of the above like this:
"Error","jrpp-2","03/15/13","07:33:49","UNICEF Schweiz_2_PUBLIC","Could not initialize class org.apache.bcel.util.SyntheticRepository The specific sequence of files included or processed is: D:\home\unicef\WEB004_KIDS\HTTP\index.cfm, line: 202 "
the error occurs on all possible websites, not only one. there are 39 websites on that server (not a lot and none of them the kind of 'high traffic' pages). so, all websites on that server are affected, not only one. of course, it is unclear wether one page causes the error and takes the server down with it.
there is nothing suspicious in the apache access.log in that timeframe. no excessive POSTs ('guestbook spamming') or the like.
really strange...