Closed UsernameFull closed 4 years ago
看起来是没获取到文件,应该只是简单的服务器文件不存在
可以在服务器上访问此文件试试 https://getrebuild.com/gh/getrebuild/rebuild-datas/metaschemas/SALESORDER-1.0.json
同时也有一个类似的问题,就是上传excel也会出错,应该都是网络方面的问题。服务器上直接wget访问文件没问题
启动 RB 使用的是哪个用户?是否有写权限的问题?
可以把完整的日志文件发出来,上面贴的堆栈不是很全面。(日志文件位于 $TOMCAT$/temp/logs/
)
启动 RB 使用的是哪个用户?是否有写权限的问题? 可以把完整的日志文件发出来,上面贴的堆栈不是很全面。(日志文件位于
$TOMCAT$/temp/logs/
)
13-Aug-2020 14:48:05.995 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.40
13-Aug-2020 14:48:05.996 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Apr 10 2019 14:31:19 UTC
13-Aug-2020 14:48:05.996 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.40.0
13-Aug-2020 14:48:05.996 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
13-Aug-2020 14:48:05.997 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-1127.13.1.el7.x86_64
13-Aug-2020 14:48:05.997 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
13-Aug-2020 14:48:05.997 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/local/jdk1.8.0_121/jre
13-Aug-2020 14:48:05.997 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_121-b13
13-Aug-2020 14:48:05.997 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
13-Aug-2020 14:48:05.997 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/rebuild-standalone
13-Aug-2020 14:48:05.997 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /home/rebuild-standalone
13-Aug-2020 14:48:05.997 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/rebuild-standalone/conf/logging.properties
13-Aug-2020 14:48:05.997 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
13-Aug-2020 14:48:05.997 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
13-Aug-2020 14:48:05.997 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
13-Aug-2020 14:48:05.998 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
13-Aug-2020 14:48:05.998 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
13-Aug-2020 14:48:05.998 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/rebuild-standalone
13-Aug-2020 14:48:05.998 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/home/rebuild-standalone
13-Aug-2020 14:48:05.998 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/rebuild-standalone/temp
13-Aug-2020 14:48:05.998 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
13-Aug-2020 14:48:06.248 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-18080"]
13-Aug-2020 14:48:06.278 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
13-Aug-2020 14:48:06.309 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 995 ms
13-Aug-2020 14:48:06.325 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
13-Aug-2020 14:48:06.325 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.40
13-Aug-2020 14:48:11.160 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[INFO 14:48:11,306]
REBUILD IS WAITING FOR INSTALL ...
Install URL : http://localhost:18080/
Version : 1.10.3 OS : Linux amd64 Report an issue : https://getrebuild.com/report-issue?title=boot
###################################################################
13-Aug-2020 14:48:14.062 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-18080"]
13-Aug-2020 14:48:14.154 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 7844 ms
[INFO 14:48:16,038]
已经修复了,会在 V1.11 中发布(预计1-2周内)。原因是任务执行数未考虑单核 CPU 的情况,https://github.com/getrebuild/rebuild/blob/99cecf4795b89b9919a0454a5cff4a008239cb5b/src/main/java/com/rebuild/server/helper/task/TaskExecutors.java#L40
已经修复了,会在 V1.11 中发布(预计1-2周内)。原因是任务执行数未考虑单核 CPU 的情况,
难怪我换了系统都解决不了。。。。原来是服务器不行
版本
1.10.3
什么问题
导入实体出错。 错误日志 [ERROR 14:30:41,191] web.RebuildExceptionResolver#resolveException:42 -
Handler : public void com.rebuild.web.admin.rbstore.MetaschemaControll.imports(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.io.IOException
Exception :
org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:982)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1626)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ExceptionInInitializerError
at com.rebuild.web.admin.rbstore.MetaschemaControll.imports(MetaschemaControll.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:854)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:765)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
... 32 more
Caused by: java.lang.IllegalArgumentException
at java.util.concurrent.LinkedBlockingQueue.(LinkedBlockingQueue.java:261)
at com.rebuild.server.helper.task.TaskExecutors.(TaskExecutors.java:44)
... 44 more
如何复现此问题
配置好环境后只要选择从RB仓库导入实体就会报错
系统环境(操作系统/MySQL版本/浏览器)
centos7 mysql5.6 java8