阅读:14537回复:3
could not acquire lock on @Synchronized component: com.sunsheen.nddc.data.imp.DataImportUtils
帮忙看一下这是什么问题啊
java.lang.reflect.InvocationTargetException 16:26:19,613 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 16:26:19,613 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 16:26:19,613 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 16:26:19,613 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:606) 16:26:19,613 ERROR [STDERR] at org.jboss.seam.remoting.Call.processInvocation(Call.java:208) 16:26:19,613 ERROR [STDERR] at org.jboss.seam.remoting.Call.execute(Call.java:140) 16:26:19,613 ERROR [STDERR] at org.jboss.seam.remoting.ExecutionHandler$1.process(ExecutionHandler.java:120) 16:26:19,613 ERROR [STDERR] at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65) 16:26:19,613 ERROR [STDERR] at org.jboss.seam.remoting.ExecutionHandler.handle(ExecutionHandler.java:141) 16:26:19,613 ERROR [STDERR] at org.jboss.seam.remoting.Remoting.getResource(Remoting.java:111) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.servlet.SeamResourceServlet.service(SeamResourceServlet.java:80) 16:26:19,614 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 16:26:19,614 ERROR [STDERR] at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:99) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 16:26:19,614 ERROR [STDERR] at com.sunsheen.jfids.system.servlet.SystemPageFilter.doFilter(Unknown Source) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:79) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:67) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:67) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:67) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:67) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) 16:26:19,614 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:156) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 16:26:19,614 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) 16:26:19,614 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) 16:26:19,614 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 16:26:19,614 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 16:26:19,614 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) 16:26:19,615 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) 16:26:19,615 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) 16:26:19,615 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) 16:26:19,615 ERROR [STDERR] at java.lang.Thread.run(Thread.java:745) 16:26:19,615 ERROR [STDERR] Caused by: org.jboss.seam.core.LockTimeoutException: could not acquire lock on @Synchronized component: com.sunsheen.nddc.data.imp.DataImportUtils 16:26:19,615 ERROR [STDERR] at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:41) 16:26:19,615 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) 16:26:19,615 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) 16:26:19,615 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) 16:26:19,615 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) 16:26:19,615 ERROR [STDERR] at com.sunsheen.nddc.data.imp.DataImportUtils_$$_javassist_seam_47.doImport(DataImportUtils_$$_javassist_seam_47.java) 16:26:19,615 ERROR [STDERR] ... 50 more 图片:QQ截图20160929163017.png 图片:QQ截图20160929163044.png |
|
|
沙发#
发布于:2016-09-29 16:28
这个错多线程访问资源时出现的一个问题,主要是同一个组件被多个线程访问时,如果某个线程在超时时间段内没有得到锁,将抛出该异常。解决办法就是把你这个组件的申明@Synchronized移除(需要保证你这个组件是无状态的)。
|
|
板凳#
发布于:2016-09-29 17:26
|
|
|