• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

NoClassDefFoundError from sun.misc.Unsafe.ensureClassInitialized

New Here ,
Aug 28, 2007 Aug 28, 2007

Copy link to clipboard

Copied

I've been receiving an error when I try to access a Java object, more specifically a constant in a Java object. What's frustrating is that this error occurs on one ColdFusion server but not on another. As far as I can tell there is no major difference between these two CF servers. The constant in question is an object itself, though this doesn't matter as calling a method in the object yields the same result.

What I'm hoping to get from this forum is some idea of why this error might be occurring. That is, what the error means. The exception.log message has me baffled, but perhaps other people have dealt with a similar error. Below is the stack trace (with some pieces of data removed for security's sake). Note that the NoClassDefFoundError cannot be referring to my Java object, as the constant I'm referring to is quite clearly there. Also note that the Java object has a unique name and wouldn't be confused with another class on the server (I've tried changing its name, but still got the same result).


"Error","jrpp-33","08/28/07","18:09:51","<removed>"," The specific sequence of files included or processed is: <path removed>/test.cfm, line: 29 "
java.lang.NoClassDefFoundError
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:20)
at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:779)
at java.lang.reflect.Field.getFieldAccessor(Field.java:760)
at java.lang.reflect.Field.get(Field.java:228)
at coldfusion.runtime.StructBean.resolveName(StructBean.java:117)
at coldfusion.runtime.Scope.get(Scope.java:54)
at coldfusion.runtime.DotResolver.resolve(DotResolver.java:42)
at coldfusion.runtime.DotResolver.resolve(DotResolver.java:62)
at coldfusion.runtime.DotResolver.resolveSplitNameInMap(DotResolver.java:96)
at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1011)
at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1123)
at cftest2ecfm584827743.runPage(<path removed>/test.cfm:29)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
at coldfusion.CfmServlet.service(CfmServlet.java:107)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at com.intergral.fusionreactor.filter.FusionReactorFilter.B(Unknown Source)
at com.intergral.fusionreactor.filter.FusionReactorFilter.A(Unknown Source)
at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(Unknown Source)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Any help or suggestions are greatly appreciated.
TOPICS
Advanced techniques

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Aug 28, 2007 Aug 28, 2007

Copy link to clipboard

Copied

LATEST
Any chance you could you be more specific? 🙂 Are you working with an in-house java class or something publicly accessible?

Did you check the complete stack trace? The traces often contain nested exceptions. I don't know what else to suggest without more information.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation