springboot启动错误日志分析

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/HaleyLiu123/article/details/93907585

错误日志分析:

(1)情况描述: 启动springboot工程如果出现以下ERROR日志:

Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)

(2)错误原因:

这是因为spring boot 会默认加载org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration 这个类

DataSourceAutoConfiguration类使用了@Configuration注解向spring注入了dataSource bean。因为工程中没有关于dataSource相关的配置信息,当spring创建dataSource bean因缺少相关的信息就会报错。

(3)解决方案:

在Application类上增加

1

@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})

展开阅读全文

springboot启动错误

04-02

springboot连接mysql数据库后,建立实体类读取数据,启动报错rnCaused by: java.lang.IllegalArgumentException: Unable to locate Attribute with the the given name [busClass] on this ManagedType [com.victorysoft.domain.BsBusinessData]rn at org.hibernate.metamodel.internal.AbstractManagedType.checkNotNull(AbstractManagedType.java:128) ~[hibernate-core-5.2.14.Final.jar:5.2.14.Final]rn at org.hibernate.metamodel.internal.AbstractManagedType.getAttribute(AbstractManagedType.java:113) ~[hibernate-core-5.2.14.Final.jar:5.2.14.Final]rn at org.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:584) ~[spring-data-jpa-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn at org.springframework.data.jpa.repository.query.JpaQueryCreator$PredicateBuilder.getTypedPath(JpaQueryCreator.java:378) ~[spring-data-jpa-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn at org.springframework.data.jpa.repository.query.JpaQueryCreator$PredicateBuilder.build(JpaQueryCreator.java:301) ~[spring-data-jpa-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn at org.springframework.data.jpa.repository.query.JpaQueryCreator.toPredicate(JpaQueryCreator.java:206) ~[spring-data-jpa-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:119) ~[spring-data-jpa-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:56) ~[spring-data-jpa-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn at org.springframework.data.repository.query.parser.AbstractQueryCreator.createCriteria(AbstractQueryCreator.java:119) ~[spring-data-commons-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:95) ~[spring-data-commons-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:81) ~[spring-data-commons-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn at org.springframework.data.jpa.repository.query.PartTreeJpaQuery$QueryPreparer.(PartTreeJpaQuery.java:145) ~[spring-data-jpa-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn at org.springframework.data.jpa.repository.query.PartTreeJpaQuery$CountQueryPreparer.(PartTreeJpaQuery.java:268) ~[spring-data-jpa-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.(PartTreeJpaQuery.java:77) ~[spring-data-jpa-2.0.5.RELEASE.jar:2.0.5.RELEASE]rn 论坛

wince 启动错误

01-24

我新打的板子,烧写了block0、eboot、nk都是正常的,现在有两个问题:rn[b]1、但是系统启动的时候总是死在一个地方:[/b]rnrnWindows CE Kernel for ARM (Thumb Enabled) Built on Jun 24 2004 at 18:25:00rnProcessorType=0926 Revision=5rnsp_abt=ffff5000 sp_irq=ffff2800 sp_undef=ffffc800 OEMAddressTable = 80381920rnDCache: 128 sets, 4 ways, 32 line size, 16384 sizernICache: 128 sets, 4 ways, 32 line size, 16384 sizernFCLK:534000000, HCLK:133500000, PCLK:66750000rn+++BSPIntrInitrn+++++++++IRQ_EINT4++++++++++rn---BSPIntrInit(rc = 1)rnOEM INIT......rn-OEMInit\nSp=ffffc7ccrn[OEMIO:INF] + IOCTL_HAL_POSTINITrn[OEMIO:INF] - IOCTL_HAL_POSTINITrn+OALIoCtlHalInitRTC(...)rnOEMIoControl: Unsupported Code 0x101008c - device 0x0101 func 35rnOEMIoControl: Unsupported Code 0x101008c - device 0x0101 func 35rnOEMIoControl: Unsupported Code 0x10100d0 - device 0x0101 func 52rnOEMIoControl: Unsupported Code 0x10100f8 - device 0x0101 func 62rnPrefetch Abort: Thread=83fc70cc Proc=8136ac90 'filesys.exe'rnAKY=00000003 PC=0000000d(???+0x0000000d) RA=0000000d(???+0x0000000d) BVA=0000000d FSR=00000005rnrn这里应该已经到了nk这部分了,我找不出问题所在,还望各位指教。rnrn2、在eboot中对TOC的写操作是错误的,本来已经对TOC进行了初始化,结果打印出来的信息TOC的参数都是0.rnchainInfo.dwLoadAddress: 0X00000000rnchainInfo.dwFlashAddress: 0X00000000rnchainInfo.dwLength: 0X00000000rnrn这是flash驱动的问题吗? 论坛

mysql启动错误

09-21

在linux下刚装完mysql数据库,安装的时候没有出什么错误,可是启动的时候报错:rnTimeout error occurred trying to start MySQL Daemon.rn[color=#FF0000]下面是一些错误日志[/color]:rn110920 16:46:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysqlrn110920 16:46:21 [Note] Plugin 'FEDERATED' is disabled.rn/usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)rn110920 16:46:21 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.rn110920 16:46:21 InnoDB: The InnoDB memory heap is disabledrn110920 16:46:21 InnoDB: Mutexes and rw_locks use InnoDB's own implementationrn110920 16:46:21 InnoDB: Compressed tables use zlib 1.2.3rn110920 16:46:21 InnoDB: Using Linux native AIOrn110920 16:46:21 InnoDB: Initializing buffer pool, size = 128.0Mrn110920 16:46:22 InnoDB: Completed initialization of buffer poolrnInnoDB: Error: log file ./ib_logfile0 is of different size 0 5042176 bytesrnInnoDB: than specified in the .cnf file 0 5242880 bytes!rn110920 16:46:22 [ERROR] Plugin 'InnoDB' init function returned error.rn110920 16:46:22 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.rn110920 16:46:22 [ERROR] Unknown/unsupported storage engine: InnoDBrn110920 16:46:22 [ERROR] Abortingrnrn110920 16:46:22 [Note] /usr/sbin/mysqld: Shutdown completernrn110920 16:46:22 mysqld_safe mysqld from pid file /var/lib/mysql/localhost.localdomain.pid endedrn请大家帮忙看下阿,找了好久都没有解决!!!!!!!!!!! 论坛

tomcate 启动错误

11-29

信息: Processing Context configuration file URL file:D:\tomcat5\conf\Catalina\lorncalhost\balancer.xmlrn2004-11-29 15:45:04 org.apache.catalina.core.StandardContext resourcesStartrn严重: Error starting static Resourcesrnjava.lang.IllegalArgumentException: Document base D:\tomcat5\webapps\jsp-examplerns\Metadata\website\balancer does not exist or is not a readable directoryrn at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.rnjava:138)rn at org.apache.catalina.core.StandardContext.resourcesStart(StandardConternxt.java:3910)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4rn138)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBasern.java:823)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80rn7)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)rnrn at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDernployer.java:903)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.rnjava:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesrnsorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:324)rn at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.javrna:252)rn at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)rn at org.apache.commons.digester.Rule.end(Rule.java:276)rn at org.apache.commons.digester.Digester.endElement(Digester.java:1058)rn at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigesterrn.java:76)rn at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Sourcern)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(rnUnknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentrnDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unrnknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.apache.commons.digester.Digester.parse(Digester.java:1567)rn at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeprnloyer.java:488)rn at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.jrnava:482)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427rn)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:968)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.javarn:349)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecyclrneSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)rnrn at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rnrn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478rn)rn at org.apache.catalina.core.StandardService.start(StandardService.java:4rn80)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:231rn3)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:556)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.rnjava:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesrnsorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:324)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)rn2004-11-29 15:45:04 org.apache.catalina.core.StandardContext startrn严重: Error in resourceStart()rn2004-11-29 15:45:04 org.apache.catalina.core.StandardContext startrn严重: Error getConfiguredrn2004-11-29 15:45:04 org.apache.catalina.core.StandardContext startrn严重: Context startup failed due to previous errorsrn2004-11-29 15:45:04 org.apache.catalina.core.StandardContext startrn严重: Exception during cleanup after start failedrnLifecycleException: Container StandardContext[/balancer] has not been startedrn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:44rn66)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4rn371)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBasern.java:823)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 论坛

tomcat启动错误

09-24

[quote]严重: Dispatcher initialization failedrnUnable to load configuration. - action - file:/D:/xiaomao/apache-tomcat-7.0.55/webapps/mystruts2day02/WEB-INF/classes/cn/itcast/struts2/mydemo4/struts_demo4.xml:7:74rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4828)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: Action class [cn.itcast.struts2.mydemo4.Regist1Action1] not found - action - file:/D:/xiaomao/apache-tomcat-7.0.55/webapps/mystruts2day02/WEB-INF/classes/cn/itcast/struts2/mydemo4/struts_demo4.xml:7:74rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:480)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:424)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:541)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:290)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:239)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)rn ... 21 morern2014-9-24 21:51:57 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - action - file:/D:/xiaomao/apache-tomcat-7.0.55/webapps/mystruts2day02/WEB-INF/classes/cn/itcast/struts2/mydemo4/struts_demo4.xml:7:74rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:483)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4828)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: Unable to load configuration. - action - file:/D:/xiaomao/apache-tomcat-7.0.55/webapps/mystruts2day02/WEB-INF/classes/cn/itcast/struts2/mydemo4/struts_demo4.xml:7:74rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)rn ... 19 morernCaused by: Action class [cn.itcast.struts2.mydemo4.Regist1Action1] not found - action - file:/D:/xiaomao/apache-tomcat-7.0.55/webapps/mystruts2day02/WEB-INF/classes/cn/itcast/struts2/mydemo4/struts_demo4.xml:7:74rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:480)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:424)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:541)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:290)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:239)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)rn ... 21 morern2014-9-24 21:51:57 org.apache.catalina.core.StandardContext startInternalrn严重: Error filterStartrn2014-9-24 21:51:57 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/mystruts2day02] startup failed due to previous errorsrn2014-9-24 21:51:57 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\xiaomao\apache-tomcat-7.0.55\webapps\mystruts2day02 has finished in 4,190 msrn2014-9-24 21:51:57 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\xiaomao\apache-tomcat-7.0.55\webapps\ROOTrn2014-9-24 21:51:57 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\xiaomao\apache-tomcat-7.0.55\webapps\ROOT has finished in 117 msrn2014-9-24 21:51:57 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-apr-8080"]rn2014-9-24 21:51:57 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-apr-8009"]rn2014-9-24 21:51:57 org.apache.catalina.startup.Catalina startrn信息: Server startup in 8673 msrn[/quote] 论坛

没有更多推荐了,返回首页