tracker issue : CF-3041853

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 83747:PreUpdate is fired twice when cftransaction is used

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / Himavanth Rachamsetty ()

Created: 08/03/2010

Components: ORM Support

Versions: 9.0.1

Failure Type:

Found In Build/Fixed In Build: 0000 / 274953

Priority/Frequency: Major / Some users will encounter

Locale/System: / Platforms All

Vote Count: 0

Problem:

PreUpdate is fired twice when cftransaction is used
Method:

\\blrfs04.macromedia.com\BUILDS\coldfusion\Bugs\83747\
Result:

C:\work\ColdFusion\cf_main\cfusion\bin>cfstart
Starting Macromedia JRun 4.0 (Build 108715), coldfusion server
08/06 14:09:37 warning Unable to open C:\work\ColdFusion\cf_main\cfusion\runtime/lib/license.propert
ies
08/06 14:09:39 info JRun Naming Service listening on *:2920
08/06 14:09:46 info JRunDataSource bound to JNDI under name SampleApps
08/06 14:09:46 info JRun DataSourceService: Created JDBC XA Connection Pool named SampleApps
08/06 14:09:46 info Bound a LinkRef from "DefaultDataSource" to the default DataSource "SampleApps"
08/06 14:09:46 info JRunDataSource bound to JNDI under name ExampleApps
08/06 14:09:46 info JRun DataSourceService: Created JDBC XA Connection Pool named ExampleApps
08/06 14:09:46 info JRun Web Server listening on *:8500
08/06 14:09:46 info Deploying enterprise application "Adobe_ColdFusion_9" from: file:/C:/work/ColdFu sion/cf_main/cfusion/
08/06 14:09:46 info Deploying web application "Adobe ColdFusion 9" from: file:/C:/work/ColdFusion/cf _main/cfusion/
08/06 14:09:51 INFO License Service: Flex 1.5 CF Edition enabled
08/06 14:09:51 INFO Starting Flex 1.5 CF Edition
08/06 14:09:51 user JSPServlet: init
08/06 14:09:56 user ColdFusionStartUpServlet: init
08/06 14:09:56 user ColdFusionStartUpServlet: ColdFusion: Starting application services
08/06 14:09:56 user ColdFusionStartUpServlet: ColdFusion: VM version = 1.5.0_15-b04
08/06 14:09:57 Information [main] - Starting logging...
08/06 14:09:57 Information [main] - Starting license...
08/06 14:09:58 Information [main] - Invalid ColdFusion 9 license.
08/06 14:09:58 Information [main] - Invalid ColdFusion 9 license.
08/06 14:09:58 Information [main] - Developer Edition enabled
08/06 14:09:58 Information [main] - Starting crypto...
08/06 14:09:58 Information [main] - Installed JSafe JCE provider: Version 3.6 RSA Security Inc. Cryp to-J JCE Security Provider (implements RSA, DSA, Diffie-Hellman, AES, DES, Triple DES, DESX, RC2, RC 4, RC5, PBE, MD2, MD5, RIPEMD160, SHA1, SHA224, SHA256, SHA384, SHA512, HMAC-MD5, HMAC-RIPEMD160, HM AC-SHA1, HMAC-SHA224, HMAC-SHA256, HMAC-SHA384, HMAC-SHA512)
08/06 14:09:58 Information [main] - Starting security...
08/06 14:09:58 [main] INFO  Using "C:\DOCUME~1\hkhandel\LOCALS~1\Temp\vfs_cache" as temporary files store.
08/06 14:09:59 Information [main] - Starting scheduler...
08/06 14:09:59 Information [main] - Starting WatchService...
08/06 14:09:59 Information [main] - Starting debugging...
08/06 14:09:59 Information [main] - Starting sql...
08/06 14:09:59 Information [main] - Pool Manager Started
08/06 14:10:24 Information [main] - Starting mail...
08/06 14:10:24 Information [main] - Starting runtime...
08/06 14:10:24 Information [main] - CORBA Configuration not enabled
08/06 14:10:24 Information [main] - Starting cron...
08/06 14:10:25 Information [main] - Starting registry...
08/06 14:10:25 Information [main] - Starting client...
08/06 14:10:25 Information [main] - Starting xmlrpc...
08/06 14:10:26 Information [main] - Starting graphing...
08/06 14:10:27 Information [main] - Starting solr...
08/06 14:10:27 Information [main] - Starting archive...
08/06 14:10:27 Information [main] - Starting document...
08/06 14:10:28 Information [main] - Starting eventgateway...
08/06 14:10:28 Information [main] - Starting Event Backend Handlers.
08/06 14:10:28 Information [main] - Initialized EventRequestDispatcher with a Thread Pool size of 1.

08/06 14:10:28 Information [main] - Initializing EventRequestHandler
08/06 14:10:28 Information [main] - Starting Event Gateways.
08/06 14:10:28 Information [main] - Starting FlexAssembler...
08/06 14:10:28 Information [main] - Starting .NET...
08/06 14:10:29 Information [Thread-17] - Starting Gateway: ID=FlexMessaging, Class=coldfusion.eventg ateway.flex.FlexMessagingGateway.
08/06 14:10:29 Information [Thread-19] - Starting Gateway: ID=FlexFDS, Class=coldfusion.eventgateway .flex.FlexDataManagementGateway.
08/06 14:10:29 Information [main] - Starting Monitoring...
08/06 14:10:30 Information [main] - ColdFusion started
08/06 14:10:30 user ColdFusionStartUpServlet: ColdFusion: application services are now available
08/06 14:10:30 user CFMxmlServlet: init
08/06 14:10:30 INFO Macromedia Flex Build: 87315.134646
08/06 14:10:30 user CFMxmlServlet: Macromedia Flex Build: 87315.134646
08/06 14:10:36 user CFSwfServlet: init
08/06 14:10:37 user CFCServlet: init
08/06 14:10:41 user FlashGateway: init
08/06 14:10:42 user MessageBrokerServlet: init
08/06 14:10:49 user CFFormGateway: init
08/06 14:10:49 user CFInternalServlet: init
08/06 14:10:50 user WSRPProducer: init
08/06 14:10:50 user ServerCFCServlet: init Server coldfusion ready (startup time: 76 seconds)
SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/c odes.html#log4j_version Ending Trnsaction

java.lang.Exception: line 247
        at coldfusion.orm.hibernate.HibernateEventHandler.invokeMethod(HibernateEventHandler.java:247)
        at coldfusion.orm.hibernate.HibernateEventHandler.invokeInterceptorMethod(HibernateEventHandler.java:192)
        at coldfusion.orm.hibernate.HibernateEventHandler.onFlushDirty(HibernateEventHandler.java:132)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.invokeInterceptor(DefaultFlushEntityEventListener.java:372)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.handleInterception(DefaultFlushEntityEventListener.java:349)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:287)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:155)
        at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219)
        at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99)
        at org.hibernate.event.def.DefaultDirtyCheckEventListener.onDirtyCheck(DefaultDirtyCheckEventListener.java:54)
        at org.hibernate.impl.SessionImpl.isDirty(SessionImpl.java:1192)
        at coldfusion.orm.hibernate.SessionWrapper.isDirty(SessionWrapper.java:283)
        at coldfusion.orm.hibernate.HibernateSessionManager.getAllDirtySessions(HibernateSessionManager.java:284)
        at coldfusion.orm.hibernate.HibernatePersistenceManager.getDirtySessionForTransaction(HibernatePersistenceManager.java:993)
        at coldfusion.orm.hibernate.HibernatePersistenceManager.onCommit(HibernatePersistenceManager.java:937)
        at coldfusion.orm.hibernate.HibernatePersistenceManager$HibernateEventListener.onCommit(HibernatePersistenceManager.java:1084)
        at coldfusion.tagext.sql.TransactionTag.fireOnCommit(TransactionTag.java:743)
        at coldfusion.tagext.sql.TransactionTag.commit(TransactionTag.java:401)
        at coldfusion.tagext.sql.TransactionTag.doEndTag(TransactionTag.java:300)
        at cfthebug2ecfm761504033.runPage(C:\work\ColdFusion\cf_main\cfusion\wwwroot\83747\aug02\thebug.cfm:9)
        at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
        at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
       at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
        at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:360)
        at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
        at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
        at coldfusion.filter.PathFilter.invoke(PathFilter.java:94)
        at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
        at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
        at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79)
        at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
        at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
        at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
        at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
        at coldfusion.CfmServlet.service(CfmServlet.java:200)
        at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
        at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
        at jrun.servlet.FilterChain.service(FilterChain.java:101)
        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
        at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
        at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
        at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
        at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
        at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

In PreUpdate ------------------- 0
08/06 14:13:14 Information [web-0] - [7859 ms (1st trace)] [C:\work\ColdFusion\cf_main\cfusion\wwwroot\83747\aug02\Author.cfc @ line: 16] - fired preUpdate 1
java.lang.Exception: line 247
        at coldfusion.orm.hibernate.HibernateEventHandler.invokeMethod(HibernateEventHandler.java:247)
        at coldfusion.orm.hibernate.HibernateEventHandler.invokeInterceptorMethod(HibernateEventHandler.java:192)
        at coldfusion.orm.hibernate.HibernateEventHandler.onFlushDirty(HibernateEventHandler.java:132)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.invokeInterceptor(DefaultFlushEntityEventListener.java:372)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.handleInterception(DefaultFlushEntityEventListener.java:349)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:287)
        at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:155)
        at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219)
        at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
        at coldfusion.orm.hibernate.SessionWrapper.flush(SessionWrapper.java:176)
        at coldfusion.orm.hibernate.HibernatePersistenceManager.onCommit(HibernatePersistenceManager.java:949)
        at coldfusion.orm.hibernate.HibernatePersistenceManager$HibernateEventListener.onCommit(HibernatePersistenceManager.java:1084)
        at coldfusion.tagext.sql.TransactionTag.fireOnCommit(TransactionTag.java:743)
        at coldfusion.tagext.sql.TransactionTag.commit(TransactionTag.java:401)
       at coldfusion.tagext.sql.TransactionTag.doEndTag(TransactionTag.java:300)
        at cfthebug2ecfm761504033.runPage(C:\work\ColdFusion\cf_main\cfusion\wwwroot\83747\aug02\thebug.cfm:9)
        at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
        at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
        at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
        at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:360)
        at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
        at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
        at coldfusion.filter.PathFilter.invoke(PathFilter.java:94)
        at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
        at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
        at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79)
        at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
        at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
        at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
        at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
        at coldfusion.CfmServlet.service(CfmServlet.java:200)
        at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
        at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
        at jrun.servlet.FilterChain.service(FilterChain.java:101)
        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
        at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
        at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
        at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
        at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
        at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
In PreUpdate ------------------- 1
08/06 14:13:14 Information [web-0] - [8203 ms (344)] [C:\work\ColdFusion\cf_main\cfusion\wwwroot\837
47\aug02\Author.cfc @ line: 16] - fired preUpdate 2 Outside Trnsaction On Request End
08/06 14:13:15 user FileServlet: init

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041853

External Customer Info:
External Company:  
External Customer Name: Himavanth Rachamsetty
External Customer Email: himar
External Test Config: 08/03/2010

Attachments:

Comments: