03-13-2010, 08:59 PM
запускаю гейм сервер с логин сервером ( всё работает отлично ) пытаюсь создать в клиенте аккаунт ( стоит авторег ) в логах ( лог сервера ) выдаёт такое :
Код:
INFO : Account created for user: hellboyw
WARN : SQL Error: 1364, SQLState: HY000
ERROR : Field 'email' doesn't have a default value
ERROR : Could not synchronize database state with session org.hibernate.exceptio
n.GenericJDBCException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException
(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.j
ava:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp
er.java:43)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:
253)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutio
ns(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlus
hEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
:106)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doComm
it(HibernateTransactionManager.java:606)
at org.springframework.transaction.support.AbstractPlatformTransactionMa
nager.processCommit(AbstractPlatformTransactionManager.java:709)
at org.springframework.transaction.support.AbstractPlatformTransactionMa
nager.commit(AbstractPlatformTransactionManager.java:678)
at org.springframework.transaction.interceptor.TransactionAspectSupport.
commitTransactionAfterReturning(TransactionAspectSupport.java:321)
at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:116)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterc
eptor.intercept(Cglib2AopProxy.java:635)
at net.l2emuproject.loginserver.services.AccountsServices$$EnhancerByCGL
IB$$93342aca.addOrUpdateAccount(<generated>)
at net.l2emuproject.loginserver.manager.LoginManager.handleAccountNotFou
nd(LoginManager.java:629)
at net.l2emuproject.loginserver.manager.LoginManager.loginValid(LoginMan
ager.java:511)
at net.l2emuproject.loginserver.manager.LoginManager.loginValid(LoginMan
ager.java:476)
at net.l2emuproject.loginserver.manager.LoginManager.tryAuthLogin(LoginM
anager.java:279)
at net.l2emuproject.loginserver.clientpackets.RequestAuthLogin.run(Reque
stAuthLogin.java:105)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.BatchUpdateException: Field 'email' doesn't have a default v
alue
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStateme
nt.java:1693)
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:
1108)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewPr
oxyPreparedStatement.java:1723)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.jav
a:48)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:
246)
... 23 more
Exception in thread "pool-1-thread-1" org.springframework.jdbc.UncategorizedSQLE
xception: Hibernate flushing: Could not execute JDBC batch update; uncategorized
SQLException for SQL [insert into accounts (password, lastactive, accessLevel,
lastIP, lastServerId, login) values (?, ?, ?, ?, ?, ?)]; SQL state [HY000]; erro
r code [1364]; Field 'email' doesn't have a default value; nested exception is j
ava.sql.BatchUpdateException: Field 'email' doesn't have a default value
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.trans
late(SQLStateSQLExceptionTranslator.java:124)
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.t
ranslate(SQLErrorCodeSQLExceptionTranslator.java:322)
at org.springframework.orm.hibernate3.HibernateTransactionManager.conver
tJdbcAccessException(HibernateTransactionManager.java:750)
at org.springframework.orm.hibernate3.HibernateTransactionManager.conver
tHibernateAccessException(HibernateTransactionManager.java:736)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doComm
it(HibernateTransactionManager.java:614)
at org.springframework.transaction.support.AbstractPlatformTransactionMa
nager.processCommit(AbstractPlatformTransactionManager.java:709)
at org.springframework.transaction.support.AbstractPlatformTransactionMa
nager.commit(AbstractPlatformTransactionManager.java:678)
at org.springframework.transaction.interceptor.TransactionAspectSupport.
commitTransactionAfterReturning(TransactionAspectSupport.java:321)
at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:116)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterc
eptor.intercept(Cglib2AopProxy.java:635)
at net.l2emuproject.loginserver.services.AccountsServices$$EnhancerByCGL
IB$$93342aca.addOrUpdateAccount(<generated>)
at net.l2emuproject.loginserver.manager.LoginManager.handleAccountNotFou
nd(LoginManager.java:629)
at net.l2emuproject.loginserver.manager.LoginManager.loginValid(LoginMan
ager.java:511)
at net.l2emuproject.loginserver.manager.LoginManager.loginValid(LoginMan
ager.java:476)
at net.l2emuproject.loginserver.manager.LoginManager.tryAuthLogin(LoginM
anager.java:279)
at net.l2emuproject.loginserver.clientpackets.RequestAuthLogin.run(Reque
stAuthLogin.java:105)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.BatchUpdateException: Field 'email' doesn't have a default v
alue
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStateme
nt.java:1693)
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:
1108)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewPr
oxyPreparedStatement.java:1723)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.jav
a:48)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:
246)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutio
ns(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlus
hEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
:106)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doComm
it(HibernateTransactionManager.java:606)
... 15 more