关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、418799587 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 6464|回复: 1

jeecg本地运行出现的外键问题

[复制链接]
发表于 2017-5-12 10:05:03 | 显示全部楼层 |阅读模式
[2017-05-12 10:03:51] [WARN] [org.hibernate.id.UUIDHexGenerator:59] HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator instead
[2017-05-12 10:03:54] [ERROR] [org.hibernate.tool.hbm2ddl.SchemaUpdate:235] HHH000388: Unsuccessful: alter table cgform_field add index null (table_id), add constraint null foreign key (table_id) references cgform_head (id)
[2017-05-12 10:03:54] [ERROR] [org.hibernate.tool.hbm2ddl.SchemaUpdate:236] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null (table_id),
        add constraint null
        foreign key (table_id)
' at line 2
[2017-05-12 10:03:54] [ERROR] [org.hibernate.tool.hbm2ddl.SchemaUpdate:235] HHH000388: Unsuccessful: alter table cgform_index add index null (table_id), add constraint null foreign key (table_id) references cgform_head (id)
[2017-05-12 10:03:54] [ERROR] [org.hibernate.tool.hbm2ddl.SchemaUpdate:236] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null (table_id),
        add constraint null
        foreign key (table_id)
' at line 2
[2017-05-12 10:03:54] [ERROR] [org.hibernate.tool.hbm2ddl.SchemaUpdate:235] HHH000388: Unsuccessful: alter table cgform_uploadfiles add index FK8C566E7FE8B68061 (id), add constraint FK8C566E7FE8B68061 foreign key (id) references t_s_attachment (ID)
[2017-05-12 10:03:54] [ERROR] [org.hibernate.tool.hbm2ddl.SchemaUpdate:236] Cannot add or update a child row: a foreign key constraint fails (`jeecg`.`#sql-674_3074f`, CONSTRAINT `FK8C566E7FE8B68061` FOREIGN KEY (`id`) REFERENCES `t_s_attachment` (`ID`))
[2017-05-12 10:03:55] [ERROR] [org.hibernate.tool.hbm2ddl.SchemaUpdate:235] HHH000388: Unsuccessful: alter table t_s_data_rule add index FK629F325A5486A5AE (functionId), add constraint FK629F325A5486A5AE foreign key (functionId) references t_s_function (ID)
[2017-05-12 10:03:55] [ERROR] [org.hibernate.tool.hbm2ddl.SchemaUpdate:236] Cannot add or update a child row: a foreign key constraint fails (`jeecg`.`#sql-674_3074f`, CONSTRAINT `FK629F325A5486A5AE` FOREIGN KEY (`functionId`) REFERENCES `t_s_function` (`ID`))
[2017-05-12 10:03:56] [WARN] [net.sf.ehcache.distribution.RMICacheManagerPeerListener:120] Explicitly setting the listener hostname to 'localhost' is not recommended. It will only work if all CacheManager peers are on the same machine.
[2017-05-12 10:03:56] [ERROR] [net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider:98] Error starting heartbeat. Error was: Can't assign requested address
java.net.SocketException: Can't assign requested address
        at java.net.PlainDatagramSocketImpl.join(Native Method)
        at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:179)
        at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319)
        at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver.init(MulticastKeepaliveHeartbeatReceiver.java:88)
        at net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init(MulticastRMICacheManagerPeerProvider.java:95)
        at net.sf.ehcache.CacheManager.init(CacheManager.java:362)
        at net.sf.ehcache.CacheManager.<init>(CacheManager.java:299)
        at net.sf.ehcache.CacheManager.create(CacheManager.java:697)
        at net.sf.ehcache.CacheManager.getInstance(CacheManager.java:717)
        at org.jeecgframework.web.cgform.engine.TempletContext.<clinit>(TempletContext.java:46)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1070)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1022)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
        at org.apache.catalina.startup.Embedded.start(Embedded.java:825)
        at org.codehaus.mojo.tomcat.AbstractRunMojo.startContainer(AbstractRunMojo.java:558)
        at org.codehaus.mojo.tomcat.AbstractRunMojo.execute(AbstractRunMojo.java:255)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
 楼主| 发表于 2017-5-12 10:06:08 | 显示全部楼层
使用的是mysql,sql脚本已经在数据库运行了,程序启动时出现的错误
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表