NutzCN Logo
问答 oracle插入数据时报ORA-01400
发布于 2923天前 作者 qq_152b6ff2 2693 次浏览 复制 上一个帖子 下一个帖子
标签: dao oracle
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.dao.DaoException: !Nutz SQL Error: 'INSERT INTO t_user(name,passwd) VALUES('admin','123456') '
PreparedStatement: 
'INSERT INTO t_user(name,passwd) VALUES(?,?) '
CaseMessage=ORA-01400: ¿¿¿ NULL ¿¿ ("PLAYTIME"."T_USER"."ID")

	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:990)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:198)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
	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.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.nutz.dao.DaoException: !Nutz SQL Error: 'INSERT INTO t_user(name,passwd) VALUES('admin','123456') '
11 回复

为id属性配置个触发器,在数据库里面

= =跟着book走的怎么需要配置触发器了

@wendal 换了个新表就可以了。。这是为什么呀

@qq_152b6ff2 对比一下两个表

字段名不一样。别的都一样呀

之前那个表就设置了@Column(字段名) 别的都一样= =

@qq_152b6ff2 看触发器

@wendal 请问如果我想在登录之后重定向到另一个jsp页面的话应该怎么做呀?用response.sendredirect可以么?

@wendal 用@Ok这个跳转可以实现么?应该写在类内方法上面么?

@qq_152b6ff2 一个帖子一个话题

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