Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加数据库之前,选择team,报错 #72

Open
Turbo1993 opened this issue Mar 29, 2021 · 4 comments
Open

添加数据库之前,选择team,报错 #72

Turbo1993 opened this issue Mar 29, 2021 · 4 comments

Comments

@Turbo1993
Copy link

image

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'mode_type' in 'field list'
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
java.lang.reflect.Constructor.newInstance(Constructor.java:423)
com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
com.mysql.jdbc.Util.getInstance(Util.java:408)
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:944)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3933)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3869)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2524)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2675)
com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2465)
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1912)
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2020)
com.ctrip.platform.dal.dao.datasource.jdbc.DalPreparedStatement.lambda$executeQuery$0(DalPreparedStatement.java:30)
com.ctrip.platform.dal.dao.datasource.jdbc.DalConnection.innerExecute(DalConnection.java:411)
com.ctrip.platform.dal.dao.datasource.jdbc.DalStatement.innerExecute(DalStatement.java:307)
com.ctrip.platform.dal.dao.datasource.jdbc.DalStatement.executeStatement(DalStatement.java:314)
com.ctrip.platform.dal.dao.datasource.jdbc.DalPreparedStatement.executeQuery(DalPreparedStatement.java:30)
com.ctrip.platform.dal.dao.client.DalDirectClient$10.call(DalDirectClient.java:548)
com.ctrip.platform.dal.dao.client.DalDirectClient$10.call(DalDirectClient.java:546)
com.ctrip.platform.dal.dao.client.DalDirectClient.execute(DalDirectClient.java:599)
com.ctrip.platform.dal.dao.client.DalDirectClient.executeQuery(DalDirectClient.java:546)
com.ctrip.platform.dal.dao.client.DalDirectClient.access$100(DalDirectClient.java:30)
com.ctrip.platform.dal.dao.client.DalDirectClient$1.execute(DalDirectClient.java:73)
com.ctrip.platform.dal.dao.client.DalConnectionManager._doInConnection(DalConnectionManager.java:188)
com.ctrip.platform.dal.dao.client.DalConnectionManager.doInConnection(DalConnectionManager.java:165)
com.ctrip.platform.dal.dao.client.DalDirectClient.doInConnection(DalDirectClient.java:483)
com.ctrip.platform.dal.dao.client.DalDirectClient.query(DalDirectClient.java:91)
com.ctrip.platform.dal.dao.task.FreeSqlQueryTask.execute(FreeSqlQueryTask.java:21)
com.ctrip.platform.dal.dao.task.DalSqlTaskRequest$SqlTaskCallable.execute(DalSqlTaskRequest.java:428)
com.ctrip.platform.dal.dao.task.DalSqlTaskRequest$SqlTaskCallable.call(DalSqlTaskRequest.java:334)
com.ctrip.platform.dal.dao.task.RequestTaskWrapper.call(RequestTaskWrapper.java:39)
com.ctrip.platform.dal.dao.task.DalRequestExecutor.nonCrossShardExecute(DalRequestExecutor.java:245)
com.ctrip.platform.dal.dao.task.DalRequestExecutor.internalExecute(DalRequestExecutor.java:219)
com.ctrip.platform.dal.dao.task.DalRequestExecutor.execute(DalRequestExecutor.java:203)
com.ctrip.platform.dal.dao.DalQueryDao.query(DalQueryDao.java:140)
com.ctrip.platform.dal.dao.DalQueryDao.query(DalQueryDao.java:130)
com.ctrip.platform.dal.daogen.dao.DalGroupDBDao.getGroupDBsByGroup(DalGroupDBDao.java:76)
com.ctrip.platform.dal.daogen.resource.DalGroupDbResource.getGroupUsers(DalGroupDbResource.java:74)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)
org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
org.glassfish.jersey.internal.Errors.process(Errors.java:315)
org.glassfish.jersey.internal.Errors.process(Errors.java:297)
org.glassfish.jersey.internal.Errors.process(Errors.java:267)
org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
com.ctrip.platform.dal.daogen.filter.UserFilter.doFilter(UserFilter.java:53)

@Turbo1993
Copy link
Author

没人遇到相同的报错吗。。。

@Turbo1993
Copy link
Author

image
image
表里没有这个字段,代码的sql里存在这个字段,直接die,我不知道是该把代码里的去掉,还是给数据库增加字段

@Turbo1993
Copy link
Author

用的master版本的代码编译的

@chenmins
Copy link

你解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants