NoClassDefFoundError for CFCHART

51 views
Skip to first unread message

Yuri

unread,
Nov 19, 2011, 2:20:38 PM11/19/11
to Railo
Hi everyone.

I have a pretty weird question: my CFCHARTs suddenly stopped working
(they worked fine a week ago).
Calling a page with CFCHART in it displays a NoClassDefFoundError
error. Can anyone help me? OSX, Lion, Java 1.6.0_29, Railo Railo
3.3.1.000 final. Nothing has been changed locally since the last week.

Stacktrace:

Could not initialize class railo.runtime.tag.Chart
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method):-2
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39):39
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27):27
at java.lang.reflect.Constructor.newInstance(Constructor.java:513):
513
at java.lang.Class.newInstance0(Class.java:355):355
at java.lang.Class.newInstance(Class.java:308):308
at railo.runtime.tag.TagHandlerPool.loadTag(TagHandlerPool.java:56):
56
at railo.runtime.tag.TagHandlerPool.use(TagHandlerPool.java:36):36
at railo.runtime.PageContextImpl.use(PageContextImpl.java:2267):
2267
at erp.report.dsp_ytd_customer_cfm$cf.call(/Developer/Railo/tomcat/
webapps/espresso.railo/erp/report/dsp_ytd_customer.cfm:68):68
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:
762):762
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:
715):715
at erp.report.index_cfm$cf.call(/Developer/Railo/tomcat/webapps/
espresso.railo/erp/report/index.cfm:216):216
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:
762):762
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:
715):715
at application_cfc$cf.udfCall(/Developer/Railo/tomcat/webapps/
espresso.railo/Application.cfc:54):54
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214
at railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418
at railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383
at railo.runtime.ComponentImpl._call(ComponentImpl.java:609):609
at railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1794):1794
at
railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:
347):347
at
railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:
174):174
at
railo.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:
83):83
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1991):
1991
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1958):
1958
at
railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:
297):297
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717):717
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290):290
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206):206
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233):233
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191):191
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127):127
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102):102
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109):109
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
298):298
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
852):852
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:588):588
at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:489):489
at java.lang.Thread.run(Thread.java:680):680

Thanks a million!

Yuri

Azadi Saryev

unread,
Nov 19, 2011, 10:51:27 PM11/19/11
to ra...@googlegroups.com
Are you running Railo on Tomcat? I had a similar issue before with no image manipulation functions working, throwing a similar error. The problem had to do with how Tomcat was started: as a system daemon instead of as a specific user. Due to Apple's java api implementation, some classes are only accessible when java process (tomcat in this case) is run as a specific user OR if java is run in headless mode.

Try this:
- edit (or create) $CATALINA_HOME/bin/setenv.sh script ($CATALINA_HOME is your Tomcat install dir)
- add this line to it:
export JAVA_OPTS="-server -Djava.awt.headless=true"
(or if you already have a JAVA_OPTS line in there, add -Djava.awt.headless=true setting to it.
- restart Tomcat

(PS: in the same line you can include other java-related settings, like -Xms and -Xmx, to optimize memory settings)

Azadi

Michael Offner

unread,
Nov 20, 2011, 3:38:52 AM11/20/11
to ra...@googlegroups.com
I can just say what is happening. Railo tries to load a tag from the core library, but this fails because it was not found. The weird thing is that the tag Railo tries to load and the class that does this try is in the same lib (core). I think it is not a access problem, sound more like a memory problem to me, check your perm gen memory size, in the entry page of the admin.

/micha

Vo mim iPhone gschickt

Yuri

unread,
Nov 20, 2011, 8:47:17 AM11/20/11
to Railo
Thanks a lot!!! Switching to the headless mode did the trick!

Gr
Yuri

Reply all
Reply to author
Forward
0 new messages