NutzCN Logo
问答 BorningException: Fail to born异常!!
发布于 3023天前 作者 Lewe© 4599 次浏览 复制 上一个帖子 下一个帖子
标签:
2016-08-15 22:11:44,660 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:191) DEBUG - JDBC Driver --> mysql-connector-java-5.1.38 ( Revision: fe541c166cec739c74cc727c5da96c1028b4834a )
2016-08-15 22:11:44,660 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:192) DEBUG - JDBC Name   --> MySQL Connector Java
2016-08-15 22:11:44,661 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:194) DEBUG - JDBC URL    --> jdbc:mysql://127.0.0.1:3306/nutz-template
2016-08-15 22:11:44,828 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:210) DEBUG - Mysql : character_set_client=utf8
2016-08-15 22:11:44,829 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:210) DEBUG - Mysql : character_set_connection=utf8
2016-08-15 22:11:44,829 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:210) DEBUG - Mysql : character_set_database=utf8
2016-08-15 22:11:44,829 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:210) DEBUG - Mysql : character_set_filesystem=binary
2016-08-15 22:11:44,830 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:210) DEBUG - Mysql : character_set_results=
2016-08-15 22:11:44,830 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:210) DEBUG - Mysql : character_set_server=utf8
2016-08-15 22:11:44,830 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:210) DEBUG - Mysql : character_set_system=utf8
2016-08-15 22:11:44,831 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:210) DEBUG - Mysql : character_sets_dir=D:\SOFTWARE\mysql-5.7.13-winx64\share\charsets\
2016-08-15 22:11:44,833 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:217) DEBUG - Mysql : database=nutz-template
2016-08-15 22:11:44,835 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:223) DEBUG - Mysql : user=root@localhost
2016-08-15 22:11:44,959 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:238) DEBUG - Database info --> MYSQL:[MySQL - 5.7.13]
2016-08-15 22:11:44,972 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:79) DEBUG - Remove object 'selectDict' from [app] 
2016-08-15 22:11:44,977 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:79) DEBUG - Remove object 'mapTags' from [app] 
2016-08-15 22:11:44,980 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:124) ERROR - Error happend during start serivce!
org.nutz.ioc.IocException: [mapTags, selectDict] # FAIL to create Ioc Bean name=[selectDict]
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.val.MapValue.get(MapValue.java:39)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:75)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:265)
	at org.nutz.ctemplate.MainSetup.init(MainSetup.java:27)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:276)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:120)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
	at org.nutz.ctemplate.mvc.NutzTemplateNutFilter.init(NutzTemplateNutFilter.java:21)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5193)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1648)
	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:483)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:463)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:413)
	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:483)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466)
	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:828)
	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:483)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
	at sun.rmi.transport.Transport$1.run(Transport.java:178)
	at sun.rmi.transport.Transport$1.run(Transport.java:175)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:174)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:557)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.nutz.lang.born.BorningException: Fail to born 'org.nutz.ctemplate.support.freemarker.directive.DictionaryDirective'
 by args: [
  @(org.nutz.ctemplate.service.DictionaryService@25b56288)]
	at org.nutz.lang.Mirror.getBorning(Mirror.java:954)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:107)
	... 59 more
2016-08-15 22:11:45,000 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:126) ERROR - try to depose ioc
2016-08-15 22:11:45,004 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:281) INFO  - org.nutz.ioc.impl.NutIoc@259806889 is closing. startup date [16-08-15 22:11:41.494]
2016-08-15 22:11:45,004 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:91) DEBUG - Depose object 'redisService' ...
2016-08-15 22:11:45,004 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:91) DEBUG - Depose object 'freeMarkerConfigurer' ...
2016-08-15 22:11:45,005 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:91) DEBUG - Depose object 'configuration' ...
2016-08-15 22:11:45,005 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:91) DEBUG - Depose object 'conf' ...
2016-08-15 22:11:45,005 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:91) DEBUG - Depose object 'jedisPool' ...
2016-08-15 22:11:45,008 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:91) DEBUG - Depose object 'redis' ...
2016-08-15 22:11:45,008 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:91) DEBUG - Depose object 'dao' ...
2016-08-15 22:11:45,008 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:91) DEBUG - Depose object 'freemarkerDirectiveFactory' ...
2016-08-15 22:11:45,008 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:91) DEBUG - Depose object 'dictionaryService' ...
2016-08-15 22:11:45,008 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:91) DEBUG - Depose object 'jedisPoolConfig' ...
2016-08-15 22:11:45,009 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:91) DEBUG - Depose object 'dataSource' ...
2016-08-15 22:11:45,016 com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1436) INFO  - {dataSource-1} closed
2016-08-15 22:11:45,016 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:288) INFO  - org.nutz.ioc.impl.NutIoc@259806889 is deposed. startup date [16-08-15 22:11:41.494]
15-Aug-2016 22:11:45.017 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
15-Aug-2016 22:11:45.018 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
15-Aug-2016 22:11:45.034 WARNING [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
15-Aug-2016 22:11:45.034 WARNING [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
[2016-08-15 10:11:45,071] Artifact nutz-template:war exploded: Error during artifact deployment. See server log for details.
3 回复

DictionaryDirective 缺一个构造方法, 该构造方法只带一个selectDict参数?

贴相关配置文件

@wendal
public DictionaryDirective(DictionaryService dictionaryService) {
this.dictionaryService = dictionaryService;
}

真是缺少构造方法,。。。。

```
selectDict : {
    type : "org.nutz.ctemplate.support.freemarker.directive.DictionaryDirective",
    args : [ {
        refer : "dictionaryService"
    } ]
}
```
这个是往构造方法注入参数 哈哈

恩, 这错误提示得改进一下

添加回复
请先登陆
回到顶部