java.lang.NoClassDefFoundError

今天在做项目mysql改造时遇到这个错误,java.lang.NoClassDefFoundError,意思是这个类在该路径下没有找到,但是项目里面这个类是存在的。
java.lang.NoClassDefFoundError: com/ygsoft/gris/std/am/data/utils/SQLUtil
at com.ygsoft.gris.cgw.grc.sxsj.impl.role.TRtmAuditProjectQueryRole.queryData(TRtmAuditProjectQueryRole.java:75)
at com.ygsoft.gris.cgw.grc.sxsj.impl.context.TRtmAuditProjectQueryContext.queryData(TRtmAuditProjectQueryContext.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy. P r o x y 4355. q u e r y D a t a ( U n k n o w n S o u r c e ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 39 ) a t s u n . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 25 ) a t j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 597 ) a t c o m . y g s o f t . e c p . s e r v i c e . e x e c u t o r . e n g i n e . L o c a l S e r v i c e H a n d l e r . m e t h o d I n v o k e ( L o c a l S e r v i c e H a n d l e r . j a v a : 184 ) a t c o m . y g s o f t . e c p . s e r v i c e . e x e c u t o r . e n g i n e . L o c a l S e r v i c e H a n d l e r . s e r v i c e ( L o c a l S e r v i c e H a n d l e r . j a v a : 117 ) a t c o m . y g s o f t . e c p . s e r v i c e . e x e c u t o r . e n g i n e . S i n g l e S e r v i c e E x e c u t o r . e x e c u t e ( S i n g l e S e r v i c e E x e c u t o r . j a v a : 43 ) a t c o m . y g s o f t . e c p . s e r v i c e . e x e c u t o r . e n g i n e . D e f a u l t S e r v i c e D i s p a t c h e r . d o P r o c e s s ( D e f a u l t S e r v i c e D i s p a t c h e r . j a v a : 91 ) a t c o m . y g s o f t . e c p . s e r v i c e . e x e c u t o r . e n g i n e . D e f a u l t S e r v i c e D i s p a t c h e r Proxy4355.queryData(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.ygsoft.ecp.service.executor.engine.LocalServiceHandler.methodInvoke(LocalServiceHandler.java:184) at com.ygsoft.ecp.service.executor.engine.LocalServiceHandler.service(LocalServiceHandler.java:117) at com.ygsoft.ecp.service.executor.engine.SingleServiceExecutor.execute(SingleServiceExecutor.java:43) at com.ygsoft.ecp.service.executor.engine.DefaultServiceDispatcher.doProcess(DefaultServiceDispatcher.java:91) at com.ygsoft.ecp.service.executor.engine.DefaultServiceDispatcher Proxy4355.queryData(UnknownSource)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atcom.ygsoft.ecp.service.executor.engine.LocalServiceHandler.methodInvoke(LocalServiceHandler.java:184)atcom.ygsoft.ecp.service.executor.engine.LocalServiceHandler.service(LocalServiceHandler.java:117)atcom.ygsoft.ecp.service.executor.engine.SingleServiceExecutor.execute(SingleServiceExecutor.java:43)atcom.ygsoft.ecp.service.executor.engine.DefaultServiceDispatcher.doProcess(DefaultServiceDispatcher.java:91)atcom.ygsoft.ecp.service.executor.engine.DefaultServiceDispatcherFilterChain.process(DefaultServiceDispatcher.java:237)
at com.ygsoft.ecp.service.executor.engine.DefaultServiceDispatcher.dispatch(DefaultServiceDispatcher.java:65)
at com.ygsoft.ecp.service.tool.ExecutorUtil.synExecute(ExecutorUtil.java:560)
at com.ygsoft.ecp.core.web.role.CommonWebServiceRole.callMethod(CommonWebServiceRole.java:494)
at com.ygsoft.ecp.core.web.role.CommonWebServiceRole.internalCallService(CommonWebServiceRole.java:471)
at com.ygsoft.ecp.core.web.role.CommonWebServiceRole.callService(CommonWebServiceRole.java:98)
at com.ygsoft.ecp.core.web.role.CommonWebServiceRole.callByName(CommonWebServiceRole.java:516)
at com.ygsoft.ecp.core.web.CommonHttpServlet.doGet(CommonHttpServlet.java:362)
at com.ygsoft.ecp.core.web.CommonHttpServlet.doPost(CommonHttpServlet.java:445)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:616)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at com.ygsoft.gap.spring.WebRegUtil 3. s e r v i c e ( W e b R e g U t i l . j a v a : 237 ) a t o r g . e c l i p s e . e q u i n o x . h t t p . h e l p e r . F i l t e r S e r v l e t A d a p t o r 3.service(WebRegUtil.java:237) at org.eclipse.equinox.http.helper.FilterServletAdaptor 3.service(WebRegUtil.java:237)atorg.eclipse.equinox.http.helper.FilterServletAdaptorFilterChainImpl.doFilter(FilterServletAdaptor.java:56)
at net.sf.j2ep.ProxyFilter.doFilter(ProxyFilter.java:296)
at com.ygsoft.gap.spring.WebRegUtil 2. d o F i l t e r ( W e b R e g U t i l . j a v a : 185 ) a t o r g . e c l i p s e . e q u i n o x . h t t p . h e l p e r . F i l t e r S e r v l e t A d a p t o r . s e r v i c e ( F i l t e r S e r v l e t A d a p t o r . j a v a : 37 ) a t o r g . e c l i p s e . e q u i n o x . h t t p . s e r v l e t . i n t e r n a l . S e r v l e t R e g i s t r a t i o n . h a n d l e R e q u e s t ( S e r v l e t R e g i s t r a t i o n . j a v a : 91 ) a t o r g . e c l i p s e . e q u i n o x . h t t p . s e r v l e t . i n t e r n a l . P r o x y S e r v l e t . p r o c e s s A l i a s ( P r o x y S e r v l e t . j a v a : 219 ) a t o r g . e c l i p s e . e q u i n o x . h t t p . s e r v l e t . i n t e r n a l . P r o x y S e r v l e t . s e r v i c e ( P r o x y S e r v l e t . j a v a : 87 ) a t c o m . y g s o f t . g a p . w e b . s e r v l e t . G a p H t t p S e r v i c e S e r v l e t . s e r v i c e ( G a p H t t p S e r v i c e S e r v l e t . j a v a : 62 ) a t c o m . y g s o f t . g a p . w e b a p p . G a p W e b H t t p S e r v i c e S e r v l e t . s e r v i c e ( G a p W e b H t t p S e r v i c e S e r v l e t . j a v a : 50 ) a t j a v a x . s e r v l e t . h t t p . H t t p S e r v l e t . s e r v i c e ( H t t p S e r v l e t . j a v a : 689 ) a t o r g . m o r t b a y . j e t t y . s e r v l e t . S e r v l e t H o l d e r . h a n d l e ( S e r v l e t H o l d e r . j a v a : 428 ) a t o r g . m o r t b a y . j e t t y . s e r v l e t . W e b A p p l i c a t i o n H a n d l e r . d i s p a t c h ( W e b A p p l i c a t i o n H a n d l e r . j a v a : 473 ) a t o r g . m o r t b a y . j e t t y . s e r v l e t . S e r v l e t H a n d l e r . h a n d l e ( S e r v l e t H a n d l e r . j a v a : 568 ) a t o r g . m o r t b a y . h t t p . H t t p C o n t e x t . h a n d l e ( H t t p C o n t e x t . j a v a : 1530 ) a t o r g . m o r t b a y . j e t t y . s e r v l e t . W e b A p p l i c a t i o n C o n t e x t . h a n d l e ( W e b A p p l i c a t i o n C o n t e x t . j a v a : 633 ) a t o r g . m o r t b a y . h t t p . H t t p C o n t e x t . h a n d l e ( H t t p C o n t e x t . j a v a : 1482 ) a t o r g . m o r t b a y . h t t p . H t t p S e r v e r . s e r v i c e ( H t t p S e r v e r . j a v a : 909 ) a t o r g . m o r t b a y . h t t p . H t t p C o n n e c t i o n . s e r v i c e ( H t t p C o n n e c t i o n . j a v a : 820 ) a t o r g . m o r t b a y . h t t p . H t t p C o n n e c t i o n . h a n d l e N e x t ( H t t p C o n n e c t i o n . j a v a : 986 ) a t o r g . m o r t b a y . h t t p . H t t p C o n n e c t i o n . h a n d l e ( H t t p C o n n e c t i o n . j a v a : 837 ) a t o r g . m o r t b a y . h t t p . S o c k e t L i s t e n e r . h a n d l e C o n n e c t i o n ( S o c k e t L i s t e n e r . j a v a : 245 ) a t o r g . m o r t b a y . u t i l . T h r e a d e d S e r v e r . h a n d l e ( T h r e a d e d S e r v e r . j a v a : 357 ) a t o r g . m o r t b a y . u t i l . T h r e a d P o o l 2.doFilter(WebRegUtil.java:185) at org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:91) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:219) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:87) at com.ygsoft.gap.web.servlet.GapHttpServiceServlet.service(GapHttpServiceServlet.java:62) at com.ygsoft.gap.webapp.GapWebHttpServiceServlet.service(GapWebHttpServiceServlet.java:50) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool 2.doFilter(WebRegUtil.java:185)atorg.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)atorg.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:91)atorg.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:219)atorg.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:87)atcom.ygsoft.gap.web.servlet.GapHttpServiceServlet.service(GapHttpServiceServlet.java:62)atcom.ygsoft.gap.webapp.GapWebHttpServiceServlet.service(GapWebHttpServiceServlet.java:50)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:689)atorg.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)atorg.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)atorg.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)atorg.mortbay.http.HttpContext.handle(HttpContext.java:1530)atorg.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)atorg.mortbay.http.HttpContext.handle(HttpContext.java:1482)atorg.mortbay.http.HttpServer.service(HttpServer.java:909)atorg.mortbay.http.HttpConnection.service(HttpConnection.java:820)atorg.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)atorg.mortbay.http.HttpConnection.handle(HttpConnection.java:837)atorg.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)atorg.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)atorg.mortbay.util.ThreadPoolPoolThread.run(ThreadPool.java:534)
Caused by: java.lang.ClassNotFoundException: BundleLoader[com.ygsoft.gris.cgw.grc.sxsj.impl_1.0.0].loadBundleClass(com.ygsoft.gris.std.am.data.utils.SQLUtil)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:407)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
… 56 more
Caused by: java.lang.ClassNotFoundException: com.ygsoft.gris.std.am.data.utils.SQLUtil
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:491)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:404)
… 59 morejava.lang.NoClassDefFoundError_第1张图片
错误原因是配置文件中没有导入com.ygsoft.gris.std.am.data.utils包

你可能感兴趣的:(报错日志)