【急等】从Git 上克隆完项目 就跑不起来,求 大佬帮助下。感谢

2018-03-25 13:53:53

[ERROR]-[Thread: main]-[com.alibaba.druid.pool.DruidDataSource.init()]: init datasource error, url: jdbc:mysql://101.200.37.48/codedances?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull

java.sql.SQLException: The connection property 'zeroDateTimeBehavior' acceptable values are: 'CONVERT_TO_NULL', 'EXCEPTION' or 'ROUND'. The value 'convertToNull' is not acceptable.

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:127)

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:95)

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:87)

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:61)

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:71)

at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:85)

at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:452)

at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:234)

at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:227)

at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1513)

at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1578)

at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:859)

at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1227)

at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1223)

at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:90)

at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:90)

at com.jfinal.plugin.activerecord.generator.Generator.generate(Generator.java:262)

at com.codedances.model.generator.ModelGenerator.main(ModelGenerator.java:28)

Caused by: com.mysql.cj.core.exceptions.WrongArgumentException: The connection property 'zeroDateTimeBehavior' acceptable values are: 'CONVERT_TO_NULL', 'EXCEPTION' or 'ROUND'. The value 'convertToNull' is not acceptable.

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:60)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:99)

at com.mysql.cj.core.conf.DefaultPropertySet.initializeProperties(DefaultPropertySet.java:198)

at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:393)

... 11 more

Caused by: com.mysql.cj.core.exceptions.CJException: The connection property 'zeroDateTimeBehavior' acceptable values are: 'CONVERT_TO_NULL', 'EXCEPTION' or 'ROUND'. The value 'convertToNull' is not acceptable.

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:60)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:99)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:139)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:118)

at com.mysql.cj.core.conf.EnumPropertyDefinition.parseObject(EnumPropertyDefinition.java:65)

at com.mysql.cj.core.conf.EnumPropertyDefinition.parseObject(EnumPropertyDefinition.java:40)

at com.mysql.cj.core.conf.AbstractRuntimeProperty.setFromString(AbstractRuntimeProperty.java:98)

at com.mysql.cj.core.conf.AbstractRuntimeProperty.initializeFrom(AbstractRuntimeProperty.java:93)

at com.mysql.cj.core.conf.AbstractRuntimeProperty.initializeFrom(AbstractRuntimeProperty.java:77)

at com.mysql.cj.core.conf.DefaultPropertySet.initializeProperties(DefaultPropertySet.java:195)

... 12 more

Caused by: java.lang.IllegalArgumentException: No enum constant com.mysql.cj.core.conf.PropertyDefinitions.ZeroDatetimeBehavior.CONVERTTONULL

at java.lang.Enum.valueOf(Enum.java:238)

at com.mysql.cj.core.conf.EnumPropertyDefinition.parseObject(EnumPropertyDefinition.java:63)

... 17 more


2018-03-25 13:53:53

[ERROR]-[Thread: main]-[com.alibaba.druid.pool.DruidDataSource.init()]: {dataSource-1} init error

java.sql.SQLException: The connection property 'zeroDateTimeBehavior' acceptable values are: 'CONVERT_TO_NULL', 'EXCEPTION' or 'ROUND'. The value 'convertToNull' is not acceptable.

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:127)

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:95)

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:87)

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:61)

at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:71)

at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:85)

at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:452)

at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:234)

at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:227)

at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1513)

at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1578)

at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:859)

at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1227)

at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1223)

at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:90)

at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:90)

at com.jfinal.plugin.activerecord.generator.Generator.generate(Generator.java:262)

at com.codedances.model.generator.ModelGenerator.main(ModelGenerator.java:28)

Caused by: com.mysql.cj.core.exceptions.WrongArgumentException: The connection property 'zeroDateTimeBehavior' acceptable values are: 'CONVERT_TO_NULL', 'EXCEPTION' or 'ROUND'. The value 'convertToNull' is not acceptable.

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:60)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:99)

at com.mysql.cj.core.conf.DefaultPropertySet.initializeProperties(DefaultPropertySet.java:198)

at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:393)

... 11 more

Caused by: com.mysql.cj.core.exceptions.CJException: The connection property 'zeroDateTimeBehavior' acceptable values are: 'CONVERT_TO_NULL', 'EXCEPTION' or 'ROUND'. The value 'convertToNull' is not acceptable.

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:60)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:99)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:139)

at com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:118)

at com.mysql.cj.core.conf.EnumPropertyDefinition.parseObject(EnumPropertyDefinition.java:65)

at com.mysql.cj.core.conf.EnumPropertyDefinition.parseObject(EnumPropertyDefinition.java:40)

at com.mysql.cj.core.conf.AbstractRuntimeProperty.setFromString(AbstractRuntimeProperty.java:98)

at com.mysql.cj.core.conf.AbstractRuntimeProperty.initializeFrom(AbstractRuntimeProperty.java:93)

at com.mysql.cj.core.conf.AbstractRuntimeProperty.initializeFrom(AbstractRuntimeProperty.java:77)

at com.mysql.cj.core.conf.DefaultPropertySet.initializeProperties(DefaultPropertySet.java:195)

... 12 more


评论区

JFinal

2018-03-25 14:22

谁能猜到是什么项目?

codedance

2018-03-25 14:26

@JFinal 波总啊 别挖苦我了 这是 错误 求您帮助啊

jiaoshuren

2018-03-25 14:33

@codedance 检查数据源配置

codedance

2018-03-25 14:43

@jiaoshuren 去哪里检查??

JFinal

2018-03-25 14:44

jdbcurl 的配置中后面那个参数去掉,异常明说不支持

codedance

2018-03-25 14:45

@jiaoshuren db.properties??

codedance

2018-03-25 14:47

@JFinal The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support. 报这个了

热门反馈

扫码入社