[ 
https://issues.apache.org/jira/browse/OFBIZ-3707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553624#comment-13553624
 ] 

Jacques Le Roux commented on OFBIZ-3707:
----------------------------------------

Thanks Rashmi,

As you may know we don't support R09.04 no more. Also I wonder why this was set 
this way and nobody never complained before. So I will not commit your change 
which is specific as using "an EAR into the JBoss5.0 Application server", 
rather than using the embedded Tomcat like most people do. On the other hand I 
will change the title to make it clear it relates to "an EAR into the JBoss5.0 
Application server" and add like labels for people interested in your patch. I 
believe it's not only for R09.04 BTW but could be used with all versions...
                
> Error in polling JobSandbox, Exception: java.lang.OutOfMemoryError
> ------------------------------------------------------------------
>
>                 Key: OFBIZ-3707
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3707
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/ecommerce
>    Affects Versions: Release Branch 09.04
>         Environment: Fedora 9 Linux,2GB RAM,Core2Duo Processor, deployed on 
> JBOSS 5.0 Appserver
>            Reporter: Rashmi R Hati
>            Assignee: Jacques Le Roux
>             Fix For: Release Branch 09.04
>
>         Attachments: patch.diff
>
>
> Hi,
> I am using the Ofbiz Release 9.04 stable version.
> I am getting this error on simultaneously creating New Customers for the 
> ecommerce site - for 20 users
> ==============================================================================================================
> Error in polling JobSandbox: 
> [org.ofbiz.entity.transaction.GenericTransactionException: Not Supported 
> error, could not begin transaction (probably a nesting problem) 
> (BaseTransaction.checkTransactionState - 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
> is already associated with a transaction!)]. Rolling back transaction.
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Not Supported error, could not begin transaction (probably a nesting 
> problem) (BaseTransaction.checkTransactionState - 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
> is already associated with a transaction!)
> ---- cause 
> ---------------------------------------------------------------------
> Exception: javax.transaction.NotSupportedException
> Message: BaseTransaction.checkTransactionState - 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
> is already associated with a transaction!
> ---- stack trace 
> ---------------------------------------------------------------
> javax.transaction.NotSupportedException: 
> BaseTransaction.checkTransactionState - 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
> is already associated with a transaction!
> com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.begin(BaseTransaction.java:80)
> com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.begin(BaseTransactionManagerDelegate.java:65)
> org.jboss.tm.usertx.client.ServerVMClientUserTransaction.begin(ServerVMClientUserTransaction.java:137)
> org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:125)
> org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:81)
> org.ofbiz.service.job.JobManager.poll(JobManager.java:148)
> org.ofbiz.service.job.JobPoller.run(JobPoller.java:90)
> java.lang.Thread.run(Thread.java:619)
> --------------------------------------------------------------------------------
> 16:27:18,249 ERROR [TransactionUtil] 
> ---- exception report 
> ----------------------------------------------------------
> WARNING: In setSetRollbackOnlyCause a stack placeholder was already in place, 
> here is the original rollbackOnly cause: Error in polling JobSandbox: 
> [org.ofbiz.entity.transaction.GenericTransactionException: Not Supported 
> error, could not begin transaction (probably a nesting problem) 
> (BaseTransaction.checkTransactionState - 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
> is already associated with a transaction!)]. Rolling back 
> transaction.org.ofbiz.entity.transaction.GenericTransactionException: Not 
> Supported error, could not begin transaction (probably a nesting problem) 
> (BaseTransaction.checkTransactionState - 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
> is already associated with a transaction!)
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Not Supported error, could not begin transaction (probably a nesting 
> problem) (BaseTransaction.checkTransactionState - 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
> is already associated with a transaction!)
> ---- cause 
> ---------------------------------------------------------------------
> Exception: javax.transaction.NotSupportedException
> Message: BaseTransaction.checkTransactionState - 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
> is already associated with a transaction!
> ---- stack trace 
> ---------------------------------------------------------------
> javax.transaction.NotSupportedException: 
> BaseTransaction.checkTransactionState - 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] 
> [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread 
> is already associated with a transaction!
> com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.begin(BaseTransaction.java:80)
> com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.begin(BaseTransactionManagerDelegate.java:65)
> org.jboss.tm.usertx.client.ServerVMClientUserTransaction.begin(ServerVMClientUserTransaction.java:137)
> org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:125)
> org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:81)
> org.ofbiz.service.job.JobManager.poll(JobManager.java:148)
> org.ofbiz.service.job.JobPoller.run(JobPoller.java:90)
> java.lang.Thread.run(Thread.java:619)
> --------------------------------------------------------------------------------
> Also I am getting this OutOfMemory error when deployed in JBOSS 5.0.1
> =============================================================
> 15:47:08,530 ERROR [JobManager] 
> ---- exception report 
> ----------------------------------------------------------
> Error in polling JobSandbox: 
> [org.ofbiz.entity.transaction.GenericTransactionException: The current 
> transaction is marked for rollback, not beginning a new transaction and 
> aborting current operation; the rollbackOnly was caused by: Error in polling 
> JobSandbox: [java.lang.OutOfMemoryError: unable to create new native thread]. 
> Rolling back transaction.java.lang.OutOfMemoryError: unable to create new 
> native thread (unable to create new native thread)]. Rolling back transaction.
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: The current transaction is marked for rollback, not beginning a new 
> transaction and aborting current operation; the rollbackOnly was caused by: 
> Error in polling JobSandbox: [java.lang.OutOfMemoryError: unable to create 
> new native thread]. Rolling back transaction.java.lang.OutOfMemoryError: 
> unable to create new native thread (unable to create new native thread)
> ---- cause 
> ---------------------------------------------------------------------
> Exception: java.lang.OutOfMemoryError
> Message: unable to create new native thread
> ---- stack trace 
> ---------------------------------------------------------------
> java.lang.OutOfMemoryError: unable to create new native thread
> java.lang.Thread.start0(Native Method)
> java.lang.Thread.start(Thread.java:597)
> org.ofbiz.entity.transaction.GenericXaResource.start(GenericXaResource.java:97)
> com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:789)
> com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:500)
> org.ofbiz.entity.transaction.GenericXaResource.enlist(GenericXaResource.java:67)
> org.ofbiz.entity.transaction.GenericXaResource.enlist(GenericXaResource.java:50)
> org.ofbiz.entity.transaction.DebugXaResource.enlist(DebugXaResource.java:50)
> org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:141)
> org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:81)
> org.ofbiz.service.job.JobManager.poll(JobManager.java:148)
> org.ofbiz.service.job.JobPoller.run(JobPoller.java:90)
> java.lang.Thread.run(Thread.java:619)
> --------------------------------------------------------------------------------

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to