Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

could not update & Optional feature not implemented

  Asked By: Arland    Date: Mar 24    Category: Java    Views: 1570
  

anybody knows how to solve the problem below?


javax.servlet.ServletException:
net.sf.hibernate.exception.GenericJDBCException: could not update:
[eg.User#2]
at org.apache.struts.action.RequestProcessor.processException
(RequestProcessor.java:516)
at
org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:423)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet
(ActionServlet.java:397)
...
root cause

java.lang.RuntimeException:
net.sf.hibernate.exception.GenericJDBCException: could not update:
[eg.User#2]
at eg.UserService.updateUser(UserService.java:148)
at eg.Action1.execute(Action1.java:34)
at
org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:226)

...
Caused by: net.sf.hibernate.exception.GenericJDBCException: could
not update: [eg.User#2]
at
net.sf.hibernate.exception.SQLStateConverter.handledNonSpecificExcept
ion(SQLStateConverter.java:80)
at net.sf.hibernate.exception.SQLStateConverter.convert
(SQLStateConverter.java:69)
at net.sf.hibernate.exception.JDBCExceptionHelper.convert
(JDBCExceptionHelper.java:29)
at net.sf.hibernate.persister.AbstractEntityPersister.convert
(AbstractEntityPersister.java:1331)
at net.sf.hibernate.persister.EntityPersister.update
(EntityPersister.java:681)
at net.sf.hibernate.persister.EntityPersister.update
(EntityPersister.java:621)
at net.sf.hibernate.impl.ScheduledUpdate.execute
(ScheduledUpdate.java:52)
at net.sf.hibernate.impl.SessionImpl.execute
(SessionImpl.java:2449)
at net.sf.hibernate.impl.SessionImpl.executeAll
(SessionImpl.java:2435)
at net.sf.hibernate.impl.SessionImpl.execute
(SessionImpl.java:2393)
at net.sf.hibernate.impl.SessionImpl.flush
(SessionImpl.java:2261)
at eg.UserService.updateUser(UserService.java:143)
... 37 more
Caused by: java.sql.SQLException: [Microsoft][ODBC Microsoft Access
Driver]Optional feature not implemented
at sun.jdbc.odbc.JdbcOdbc.createSQLException
(JdbcOdbc.java:6879)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterBigint
(JdbcOdbc.java:1179)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setLong
(JdbcOdbcPreparedStatement.java:592)
at net.sf.hibernate.type.LongType.set(LongType.java:35)
at net.sf.hibernate.type.NullableType.nullSafeSet
(NullableType.java:48)
at net.sf.hibernate.type.NullableType.nullSafeSet
(NullableType.java:35)
at net.sf.hibernate.persister.EntityPersister.dehydrate
(EntityPersister.java:393)
at net.sf.hibernate.persister.EntityPersister.update
(EntityPersister.java:642)
... 44 more

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Poppy Brown     Answered On: Mar 24

In order your problem  could be solved you should provide more information. From exception  stacktrace I can guess that you use hibernate  with Access database and its driver which provided by Microsoft and you are trying to update  a table which has BIGINT type the other things needed are your hibernate mapping, Table SQL Schema and the code where you get this exception.

 
Didn't find what you were looking for? Find more on could not update & Optional feature not implemented Or get search suggestion and latest updates.




Tagged: