NutzCN Logo
问答 表结构迁移的问题 Daos.migration
发布于 2258天前 作者 Leewell1989 1587 次浏览 复制 上一个帖子 下一个帖子
标签:

表结构迁移的时候报了字段已存在,为啥已经存在了还要add呢??

代码

Daos.migration(dao, "com.yuro.um.entity", true, false, false);
Daos.migration(dao, "com.yuro.credit.bean", true, false, false);

日志

2018-05-09 22:40:42,179 DEBUG [RMI TCP Connection(3)-127.0.0.1] o.n.r.Scans#log [113] Found 18 resource by src( com/yuro/credit/bean/ ) , regex( ^.+[.]class$ )
2018-05-09 22:40:42,748 INFO [RMI TCP Connection(3)-127.0.0.1] o.n.d.u.Daos#log [110] add column[ASS_GD_AMT_3] to table[SSC_FAMILY_QUES]
2018-05-09 22:40:42,750 DEBUG [RMI TCP Connection(3)-127.0.0.1] o.n.d.i.s.r.NutDaoExecutor#log [113] ALTER TABLE SSC_FAMILY_QUES ADD ASS_GD_AMT_3 VARCHAR2(18)
2018-05-09 22:40:42,877 DEBUG [RMI TCP Connection(3)-127.0.0.1] o.n.d.i.s.r.NutDaoExecutor#exec [97] SQLException
java.sql.SQLException: ORA-01430: 表中已存在要添加的列

	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:946) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1687) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1653) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at com.alibaba.druid.pool.DruidPooledStatement.execute(DruidPooledStatement.java:410) ~[druid-0.2.19.jar:0.2.19]
	at org.nutz.dao.impl.sql.run.NutDaoExecutor._runStatement(NutDaoExecutor.java:357) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:60) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:66) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:139) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.sql.run.NutDaoRunner.runCallback(NutDaoRunner.java:159) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithoutTransaction(NutDaoRunner.java:126) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.sql.run.NutDaoRunner._run(NutDaoRunner.java:93) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:82) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:252) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.DaoSupport.execute(DaoSupport.java:236) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.NutDao.execute(NutDao.java:1008) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.util.Daos.migration(Daos.java:812) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.util.Daos.migration(Daos.java:965) [nutz-1.r.65.jar:1.r.65]
	at com.yuro.credit.MainSetup.initDB(MainSetup.java:80) [classes/:na]
	at com.yuro.credit.MainSetup.init(MainSetup.java:53) [classes/:na]
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:278) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69) [nutz-1.r.65.jar:1.r.65]
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285) [catalina.jar:8.5.23]
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266) [catalina.jar:8.5.23]
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) [catalina.jar:8.5.23]
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4591) [catalina.jar:8.5.23]
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233) [catalina.jar:8.5.23]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.23]
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752) [catalina.jar:8.5.23]
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728) [catalina.jar:8.5.23]
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) [catalina.jar:8.5.23]
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1739) [catalina.jar:8.5.23]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) [tomcat-coyote.jar:8.5.23]
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [na:1.8.0_101]
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [na:1.8.0_101]
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:482) [catalina.jar:8.5.23]
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431) [catalina.jar:8.5.23]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) [tomcat-coyote.jar:8.5.23]
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [na:1.8.0_101]
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [na:1.8.0_101]
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) [na:1.8.0_101]
	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) [na:1.8.0_101]
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) [na:1.8.0_101]
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401) [na:1.8.0_101]
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) [na:1.8.0_101]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324) [na:1.8.0_101]
	at sun.rmi.transport.Transport$1.run(Transport.java:200) [na:1.8.0_101]
	at sun.rmi.transport.Transport$1.run(Transport.java:197) [na:1.8.0_101]
	at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_101]
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196) [na:1.8.0_101]
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) [na:1.8.0_101]
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) [na:1.8.0_101]
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683) [na:1.8.0_101]
	at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_101]
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) [na:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_101]
	at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_101]
2018-05-09 22:40:42,880 ERROR [RMI TCP Connection(3)-127.0.0.1] c.y.c.MainSetup#init [62] 系统初始化异常:
org.nutz.dao.DaoException: !Nutz SQL Error: 'ALTER TABLE SSC_FAMILY_QUES ADD ASS_GD_AMT_3 VARCHAR2(18)'
PreparedStatement: 
'ALTER TABLE SSC_FAMILY_QUES ADD ASS_GD_AMT_3 VARCHAR2(18)'
CaseMessage=ORA-01430: 表中已存在要添加的列

	at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:104) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:66) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:139) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.sql.run.NutDaoRunner.runCallback(NutDaoRunner.java:159) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithoutTransaction(NutDaoRunner.java:126) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.sql.run.NutDaoRunner._run(NutDaoRunner.java:93) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:82) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:252) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.DaoSupport.execute(DaoSupport.java:236) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.NutDao.execute(NutDao.java:1008) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.util.Daos.migration(Daos.java:812) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.util.Daos.migration(Daos.java:965) ~[nutz-1.r.65.jar:1.r.65]
	at com.yuro.credit.MainSetup.initDB(MainSetup.java:80) ~[classes/:na]
	at com.yuro.credit.MainSetup.init(MainSetup.java:53) ~[classes/:na]
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:278) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91) [nutz-1.r.65.jar:1.r.65]
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69) [nutz-1.r.65.jar:1.r.65]
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285) [catalina.jar:8.5.23]
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266) [catalina.jar:8.5.23]
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) [catalina.jar:8.5.23]
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4591) [catalina.jar:8.5.23]
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233) [catalina.jar:8.5.23]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.23]
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752) [catalina.jar:8.5.23]
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728) [catalina.jar:8.5.23]
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) [catalina.jar:8.5.23]
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1739) [catalina.jar:8.5.23]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) [tomcat-coyote.jar:8.5.23]
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [na:1.8.0_101]
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [na:1.8.0_101]
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:482) [catalina.jar:8.5.23]
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431) [catalina.jar:8.5.23]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) [tomcat-coyote.jar:8.5.23]
[2018-05-09 10:40:42,946] Artifact ssc:war exploded: Artifact is deployed successfully
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [na:1.8.0_101]
[2018-05-09 10:40:42,946] Artifact ssc:war exploded: Deploy took 11,573 milliseconds
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [na:1.8.0_101]
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) [na:1.8.0_101]
	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) [na:1.8.0_101]
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) [na:1.8.0_101]
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401) [na:1.8.0_101]
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) [na:1.8.0_101]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) ~[na:1.8.0_101]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324) [na:1.8.0_101]
	at sun.rmi.transport.Transport$1.run(Transport.java:200) [na:1.8.0_101]
	at sun.rmi.transport.Transport$1.run(Transport.java:197) [na:1.8.0_101]
	at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_101]
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196) [na:1.8.0_101]
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) [na:1.8.0_101]
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) [na:1.8.0_101]
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683) [na:1.8.0_101]
	at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_101]
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) [na:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_101]
	at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_101]
Caused by: java.sql.SQLException: ORA-01430: 表中已存在要添加的列

	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:946) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1687) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1653) ~[jdbc-driver-14.jar:Oracle JDBC Driver version - "10.2.0.2.0"]
	at com.alibaba.druid.pool.DruidPooledStatement.execute(DruidPooledStatement.java:410) ~[druid-0.2.19.jar:0.2.19]
	at org.nutz.dao.impl.sql.run.NutDaoExecutor._runStatement(NutDaoExecutor.java:357) ~[nutz-1.r.65.jar:1.r.65]
	at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:60) ~[nutz-1.r.65.jar:1.r.65]
	... 75 common frames omitted
1 回复

发现问题了,是有两个属性的@Column值重复了...不好意思不好意思。

添加回复
该帖子已被锁定,不能回复.
回到顶部