Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / August 2007



Tip: Looking for answers? Try searching our database.

NoClassDefFoundError from sun.misc.Unsafe.ensureClassInitialized

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mminer2 - 28 Aug 2007 21:43 GMT
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(UnsafeFieldAccessorFacto
ry.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(ClientScopePersistenceFilt
er.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.
cf_dev2 - 28 Aug 2007 22:13 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.