-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Problems while updating a user in the database
PostPosted: Fri May 20, 2005 6:13 am 
Newbie

Joined: Fri Apr 22, 2005 8:29 am
Posts: 5
Hibernate version 2.1.6

Microsoft SQL Server 2000


When I try to update a user that I have in the database, I receive this error that I don't know what does it means.
I hope you can help me to solve it.
Thanks a lot.



11:26:03,156 WARN JDBCExceptionReporter:38 - SQL Error: 8152, SQLState: 22001
11:26:03,156 ERROR JDBCExceptionReporter:46 - Les donnÚes cha¯ne ou binaires ser
ont tronquÚes.
11:26:03,156 ERROR JDBCExceptionReporter:38 - could not update: [com.k_buy.accor
.dbobject.User#32]
com.jnetdirect.jsql.x: Les donnÚes cha¯ne ou binaires seront tronquÚes.
at com.jnetdirect.jsql.x.a(Unknown Source)
at com.jnetdirect.jsql.aw.a(Unknown Source)
at com.jnetdirect.jsql.ah.n(Unknown Source)
at com.jnetdirect.jsql.ah.new(Unknown Source)
at com.jnetdirect.jsql.ah.int(Unknown Source)
at com.jnetdirect.jsql.ar.executeUpdate(Unknown Source)
at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatche
r.java:22)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.jav
a:689)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.jav
a:642)
at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:52
)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2414)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2368)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2236)
at com.k_buy.accor.servlet.UserServlet.processRequest(UserServlet.java:1
34)
at com.k_buy.accor.servlet.GenericServlet.doPost(GenericServlet.java:46)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet
.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:1
35)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246
)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:
164)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)
11:26:03,156 ERROR SessionImpl:2375 - Could not synchronize database state with
session
net.sf.hibernate.JDBCException: could not update: [com.k_buy.accor.dbobject.User
#32]
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.jav
a:707)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.jav
a:642)
at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:52
)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2414)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2368)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2236)
at com.k_buy.accor.servlet.UserServlet.processRequest(UserServlet.java:1
34)
at com.k_buy.accor.servlet.GenericServlet.doPost(GenericServlet.java:46)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet
.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:1
35)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246
)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:
164)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)
Caused by: com.jnetdirect.jsql.x: Les donnÚes cha¯ne ou binaires seront tronquÚe
s.
at com.jnetdirect.jsql.x.a(Unknown Source)
at com.jnetdirect.jsql.aw.a(Unknown Source)
at com.jnetdirect.jsql.ah.n(Unknown Source)
at com.jnetdirect.jsql.ah.new(Unknown Source)
at com.jnetdirect.jsql.ah.int(Unknown Source)
at com.jnetdirect.jsql.ar.executeUpdate(Unknown Source)
at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatche
r.java:22)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.jav
a:689)
... 16 more
net.sf.hibernate.JDBCException: could not update: [com.k_buy.accor.dbobject.User
#32]
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.jav
a:707)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.jav
a:642)
at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:52
)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2414)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2368)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2236)
at com.k_buy.accor.servlet.UserServlet.processRequest(UserServlet.java:1
34)
at com.k_buy.accor.servlet.GenericServlet.doPost(GenericServlet.java:46)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet
.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:1
35)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246
)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:
164)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)
Caused by: com.jnetdirect.jsql.x: Les donnÚes cha¯ne ou binaires seront tronquÚe
s.
at com.jnetdirect.jsql.x.a(Unknown Source)
at com.jnetdirect.jsql.aw.a(Unknown Source)
at com.jnetdirect.jsql.ah.n(Unknown Source)
at com.jnetdirect.jsql.ah.new(Unknown Source)
at com.jnetdirect.jsql.ah.int(Unknown Source)
at com.jnetdirect.jsql.ar.executeUpdate(Unknown Source)
at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatche
r.java:22)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.jav
a:689)
... 16 more



_________________
Ger - Learning to Live


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 20, 2005 11:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
I don't speak ?french?, so no :)

What does "Les donnÚes cha¯ne ou binaires seront tronquÚes." mean?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 20, 2005 11:49 am 
Newbie

Joined: Fri Apr 22, 2005 8:29 am
Posts: 5
I don't know. I'm not french and I don't speak french. Anyway, forget it because I solved the problem.

_________________
Ger - Learning to Live


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.