-->
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.  [ 1 post ] 
Author Message
 Post subject: After delete record, select all records are wrong
PostPosted: Mon Jan 21, 2008 3:34 pm 
Newbie

Joined: Sun Jan 20, 2008 3:05 pm
Posts: 1
After selected record is deleted, remaining records are displayed correctly. When all records are selected again, they are as before delete
Deleted record is displayed.
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.1

Mapping documents:
<hibernate-mapping>
<class name="novice.hibernate.Subscription" table="SUBSCRIPTION" schema="FPRS">
<id name="subscid" type="java.lang.String">
<column name="SUBSCID" length="20" />
<generator class="sequence" >
<param name="sequence">Subscription_sequence</param>
</generator>

</id>
<many-to-one name="noviceuser" class="novice.hibernate.Noviceuser" fetch="select">
<column name="USERID" length="20" />
</many-to-one>
<property name="autoconnect" type="java.lang.String">
<column name="AUTOCONNECT" length="5" />
</property>
<property name="category" type="java.lang.String">
<column name="CATEGORY" />
</property>
<property name="description" type="java.lang.String">
<column name="DESCRIPTION" />
</property>
<property name="host" type="java.lang.String">
<column name="HOST" />
</property>
<property name="password" type="java.lang.String">
<column name="PASSWORD" />
</property>
<property name="type" type="java.lang.String">
<column name="TYPE" />
</property>
<property name="username" type="java.lang.String">
<column name="USERNAME" />
</property>
<property name="textvalue" type="java.lang.String">
<column name="TEXTVALUE" />
</property>
<property name="textvalue1" type="java.lang.String">
<column name="TEXTVALUE1" />
</property>
<property name="textvalue2" type="java.lang.String">
<column name="TEXTVALUE2" />
</property>
<property name="datumVnos" type="java.util.Date">
<column name="DATUM_VNOS" length="7" />
</property>
<property name="parentcategory" type="java.lang.String">
<column name="PARENTCATEGORY" />
</property>
</class>
</hibernate-mapping>

hibernate.xml.cfg
<hibernate-configuration>
<session-factory>
<property name="connection.url">
jdbc:mysql://linux:3306/enovice
</property>
<property name="myeclipse.connection.profile">
mysqlNovice
</property>
<property name="connection.username">scott</property>
<property name="connection.password">tiger</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>

<!-- use thread local Session context prekopiral iz roller-->
<property name="hibernate.current_session_context_class">thread</property>

<!-- Hibernate L2 Caching prekopiral iz roller -->
<property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
<property name="hibernate.generate_statistics">true</property>
<property name="hibernate.cache.use_structured_entries">true</property>

<mapping resource="novice/hibernate/Subscription.hbm.xml" />
<mapping resource="novice/hibernate/Noviceuser.hbm.xml" />
<mapping resource="novice/hibernate/Clipping.hbm.xml" />
<mapping resource="novice/hibernate/Roles.hbm.xml" />
<mapping resource="novice/hibernate/Noviceuserrole.hbm.xml" />
<mapping resource="novice/hibernate/Rssnovice.hbm.xml" />
</session-factory>
</hibernate-configuration>

Code between sessionFactory.openSession() and session.close():
/**
* Returns the ThreadLocal Session instance. Lazy initialize
* the <code>SessionFactory</code> if needed.
*
* @return Session
* @throws HibernateException
*/
public static Session getSession() throws HibernateException
{
StringBuffer buf = null;

Session session = (Session) threadLocal.get();

if (session == null || !session.isOpen()) {
// lazy initialization of internal instance. First check if there
// is an instance. There can be multiple threads that find that
// this evaluates to true.
if (sessionFactory == null)
{
// synchronize with the class to make sure two threads don't attempt to
// create the same factory twice.
synchronized (HibernateSessionFactory.class)
{
// need to check again that factory is null b/c a thread
// could be queued up waiting for the lock. This test will
// let a thread know if it needs to actually create the instance.
if (sessionFactory == null)
{
// log that
if (log.isDebugEnabled())
{
buf = new StringBuffer();
buf.append(" : getSession()");
buf.append(" : Rebuilding Session Factory");

log.debug(buf.toString());
}
rebuildSessionFactory();
}
}

}
else
{
// log that the session has already been created
if (log.isDebugEnabled())
{
buf = new StringBuffer();
buf.append(" : getSession()");
buf.append(" : Session Factory has already been created.");

log.debug(buf.toString());
}
}

session = (sessionFactory != null) ? sessionFactory.openSession()
: null;
threadLocal.set(session);
}

return session;
}

/**
* Rebuild hibernate session factory
*
*/
public static void rebuildSessionFactory() {
try {
configuration.configure(configFile);
sessionFactory = configuration.buildSessionFactory();
} catch (Exception e) {
System.err
.println("%%%% Error Creating SessionFactory %%%%");
e.printStackTrace();
}
}
Full stack trace of any exception that occurs:
2008-01-21 20:32:05,755 ERROR org.hibernate.jdbc.AbstractBatcher - Exception executing batch:
org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at boris.webapp.enovice.database.NoviceFacadeDatabase.save(NoviceFacadeDatabase.java:1014)
at boris.webapp.enovice.SaveSubscriptionAction.execute(SaveSubscriptionAction.java:207)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1146)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:410)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at util.filters.EncodingFilter.doFilter(EncodingFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:595)
2008-01-21 20:32:05,785 ERROR org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database state with session
org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at boris.webapp.enovice.database.NoviceFacadeDatabase.save(NoviceFacadeDatabase.java:1014)
at boris.webapp.enovice.SaveSubscriptionAction.execute(SaveSubscriptionAction.java:207)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1146)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:410)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at util.filters.EncodingFilter.doFilter(EncodingFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:595)
2008-01-21 20:32:05,795 ERROR boris.webapp.enovice.database.NoviceFacadeDatabase - Save subscription failed.
org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at boris.webapp.enovice.database.NoviceFacadeDatabase.save(NoviceFacadeDatabase.java:1014)
at boris.webapp.enovice.SaveSubscriptionAction.execute(SaveSubscriptionAction.java:207)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1146)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:410)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at util.filters.EncodingFilter.doFilter(EncodingFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:595)
Save subscription failed.
org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at boris.webapp.enovice.database.NoviceFacadeDatabase.save(NoviceFacadeDatabase.java:1014)
at boris.webapp.enovice.SaveSubscriptionAction.execute(SaveSubscriptionAction.java:207)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1146)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:410)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at util.filters.EncodingFilter.doFilter(EncodingFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:595)
2008-01-21 20:32:05,795 ERROR boris.webapp.enovice.database.NoviceFacadeDatabase - Save subscription failed.
org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at boris.webapp.enovice.database.NoviceFacadeDatabase.save(NoviceFacadeDatabase.java:1014)
at boris.webapp.enovice.SaveSubscriptionAction.execute(SaveSubscriptionAction.java:207)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1146)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:410)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at util.filters.EncodingFilter.doFilter(EncodingFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:595)
2008-01-21 20:32:05,795 ERROR boris.webapp.enovice.database.NoviceFacadeDatabase - Save subscription failed.
org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
at org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93)
at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:79)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at boris.webapp.enovice.database.NoviceFacadeDatabase.save(NoviceFacadeDatabase.java:1014)
at boris.webapp.enovice.SaveSubscriptionAction.execute(SaveSubscriptionAction.java:207)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1146)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:410)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at util.filters.EncodingFilter.doFilter(EncodingFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:595)
2008-01-21 20:32:05,875 INFO org.apache.struts.webapp.SubscriptionListAction - Processing list action

Name and version of the database you are using:
mysql 5
The generated SQL (show_sql=true):
find Subscription Category
2008-01-21 20:18:18,375 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - find Subscription Category
2008-01-21 20:18:18,375 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - find Subscription Category
2008-01-21 20:18:22,441 INFO boris.webapp.enovice.EditSubscriptionAction - Subscription for user bmil

http%3A%2F%2Fwww.gore-ljudje.net%2Frss%2Fobjave.php
Subscription for user bmil http%3A%2F%2Fwww.gore-ljudje.net%2Frss%2Fobjave.php
2008-01-21 20:18:22,441 INFO boris.webapp.enovice.EditSubscriptionAction - Subscription for user bmil

http%3A%2F%2Fwww.gore-ljudje.net%2Frss%2Fobjave.php
2008-01-21 20:18:22,441 INFO boris.webapp.enovice.EditSubscriptionAction - Subscription for user bmil

http%3A%2F%2Fwww.gore-ljudje.net%2Frss%2Fobjave.php
Delete id:47 desc:Gore-Ljudje - Objave host:http%3A%2F%2Fwww.gore-ljudje.net%2Frss%2Fobjave.php send:false

cat:gorništvo
id:47 desc:Gore-Ljudje - Objave host:http%3A%2F%2Fwww.gore-ljudje.net%2Frss%2Fobjave.php send:false

cat:gorništvo 6 bmil Boris Milikič winsum.ws@gmail.com null
Hibernate: delete from SUBSCRIPTION where SUBSCID=?
Hibernate: select noviceuser0_.USERID as USERID1_0_, noviceuser0_.FOREIGNKEY as FOREIGNKEY1_0_,

noviceuser0_.USERNAME as USERNAME1_0_, noviceuser0_.PASSWORD as PASSWORD1_0_, noviceuser0_.FROMADDRESS as

FROMADDR5_1_0_, noviceuser0_.FULLNAME as FULLNAME1_0_, noviceuser0_.REPLYTOADDRESS as REPLYTOA7_1_0_,

noviceuser0_.MOBILEADDRESS as MOBILEAD8_1_0_, noviceuser0_.TEXTVALUE as TEXTVALUE1_0_, noviceuser0_.AUTOSEND

as AUTOSEND1_0_, noviceuser0_.DATECREATED as DATECRE11_1_0_, noviceuser0_.ACTIVE as ACTIVE1_0_,

noviceuser0_.TEXTVALUE1 as TEXTVALUE13_1_0_, noviceuser0_.TEXTVALUE2 as TEXTVALUE14_1_0_,

noviceuser0_.TIMEZONE as TIMEZONE1_0_, noviceuser0_.LOCALE as LOCALE1_0_ from NOVICEUSER noviceuser0_ where

noviceuser0_.USERID=?
2008-01-21 20:18:24,884 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - delete subscription
delete subscription
2008-01-21 20:18:24,884 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - delete subscription
2008-01-21 20:18:24,884 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - delete subscription
Hibernate: select subscripti0_.USERID as USERID1_, subscripti0_.SUBSCID as SUBSCID1_, subscripti0_.SUBSCID as

SUBSCID0_0_, subscripti0_.USERID as USERID0_0_, subscripti0_.AUTOCONNECT as AUTOCONN3_0_0_,

subscripti0_.CATEGORY as CATEGORY0_0_, subscripti0_.DESCRIPTION as DESCRIPT5_0_0_, subscripti0_.HOST as

HOST0_0_, subscripti0_.PASSWORD as PASSWORD0_0_, subscripti0_.TYPE as TYPE0_0_, subscripti0_.USERNAME as

USERNAME0_0_, subscripti0_.TEXTVALUE as TEXTVALUE0_0_, subscripti0_.TEXTVALUE1 as TEXTVALUE11_0_0_,

subscripti0_.TEXTVALUE2 as TEXTVALUE12_0_0_, subscripti0_.DATUM_VNOS as DATUM13_0_0_,

subscripti0_.PARENTCATEGORY as PARENTC14_0_0_ from SUBSCRIPTION subscripti0_ where subscripti0_.USERID=?
2008-01-21 20:18:24,904 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - findSubscription by userid

6 79
findSubscription by userid 6 79
2008-01-21 20:18:24,904 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - findSubscription by userid

6 79
2008-01-21 20:18:24,904 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - findSubscription by userid

6 79
Hibernate: select clippings0_.USERID as USERID1_, clippings0_.CLIPPID as CLIPPID1_, clippings0_.CLIPPID as

CLIPPID2_0_, clippings0_.USERID as USERID2_0_, clippings0_.DESCRIPTION as DESCRIPT3_2_0_, clippings0_.HOST as

HOST2_0_, clippings0_.TEXTVALUE as TEXTVALUE2_0_, clippings0_.TEXTVALUE1 as TEXTVALUE6_2_0_,

clippings0_.DATUM_VNOS as DATUM7_2_0_, clippings0_.CATEGORY as CATEGORY2_0_, clippings0_.PARENTCATEGORY as

PARENTCA9_2_0_ from CLIPPING clippings0_ where clippings0_.USERID=?
2008-01-21 20:18:24,924 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - find clipping 158
find clipping 158
2008-01-21 20:18:24,924 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - find clipping 158
2008-01-21 20:18:24,924 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - find clipping 158
2008-01-21 20:18:24,944 INFO boris.webapp.enovice.FeedMenu - Creating menu for 6
Creating menu for 6
2008-01-21 20:18:24,944 INFO boris.webapp.enovice.FeedMenu - Creating menu for 6
2008-01-21 20:18:24,944 INFO boris.webapp.enovice.FeedMenu - Creating menu for 6
2008-01-21 20:18:24,944 INFO org.apache.struts.webapp.SubscriptionListAction - Processing list action
2008-01-21 20:18:24,974 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - findSubscription by userid

6 for gorništvo 2 79
findSubscription by userid 6 for gorništvo 2 79
2008-01-21 20:18:24,974 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - findSubscription by userid

6 for gorništvo 2 79
2008-01-21 20:18:24,974 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - findSubscription by userid

6 for gorništvo 2 79
2008-01-21 20:18:24,974 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - find Subscription Category
find Subscription Category
2008-01-21 20:18:24,974 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - find Subscription Category
2008-01-21 20:18:24,974 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - find Subscription Category
2008-01-21 20:18:27,538 INFO org.apache.struts.webapp.SubscriptionListAction - Processing list action
2008-01-21 20:18:27,538 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - findSubscription by userid

6 for gorništvo 3 80
findSubscription by userid 6 for gorništvo 3 80
2008-01-21 20:18:27,538 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - findSubscription by userid

6 for gorništvo 3 80
2008-01-21 20:18:27,538 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - findSubscription by userid

6 for gorništvo 3 80
2008-01-21 20:18:27,538 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - find Subscription Category
find Subscription Category
2008-01-21 20:18:27,538 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - find Subscription Category
2008-01-21 20:18:27,538 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - find Subscription Category



Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html



public Subscription [] findSubscriptionByCategory(String userid, String category) {
noviceuser=(new NoviceuserDAO()).findById(userid);
Set subscriptions = noviceuser.getSubscriptions();


In java struts SubscriptionListAction there is in execute method:

Subscription subscription[]=
database.findSubscriptionByCategory(user.getId(), category);

As a result I get someteimes 80 records and sometimes 81 records(after 7-10) user queris by click on the same

link.

2008-01-20 00:06:35,847 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - findSubscription by userid

6 80
2008-01-20 00:06:35,847 INFO boris.webapp.enovice.database.NoviceFacadeDatabase - findSubscription by userid

6 80

Hibernate 3.1, echache 1.1 , Tomcat 5.5.25 and java 1.5

<!-- Hibernate L2 Caching prekopiral iz roller -->
<property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
<property name="hibernate.generate_statistics">true</property>
<property name="hibernate.cache.use_structured_entries">true</property>


<hibernate-mapping>
<class name="novice.hibernate.Subscription" table="SUBSCRIPTION" >
<id name="subscid" type="java.lang.String">
<column name="SUBSCID" length="48" />
<generator class="uuid" />
</id>
<many-to-one name="noviceuser" class="novice.hibernate.Noviceuser" fetch="select">
<column name="USERID" length="20" />
</many-to-one>


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

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.