[jBPM] - Multiple ksession dispose issue
by Sanket Mohile
Sanket Mohile [https://community.jboss.org/people/sanket.mohile] created the discussion
"Multiple ksession dispose issue"
To view the discussion, visit: https://community.jboss.org/message/807338#807338
--------------------------------------------------------------
Hi,
I'm getting a WARN message when working with ksession1 even if I'm disposing ksession2.
Following is the scenario -
1. Create ksession1. Bind HT Handler 1.
2. Start a process with HT and timer(Timer period 30s)
3. DO NOT DISPOSE ksession1, neither the HT Handler 1.
4. Timer continues as expected.
5. Now, create ksession2. Bind HT Handler 2.
6. Start a process with HT, no timers in this.
7. Dispose the HT Handler 2 and ksession2 in transaction using CMTDisposeCommand. Gets disposed successfully.
8. Timer still continues, but now I get following the WARN message on every timer tick(30s in my case)
It is evident from the active timer that ksession1 is still active, no issues with that. It is just the WARN message that I am curious about.
|| *WARN Message* ||
| 17:27:26,945 INFO [stdout] (pool-35-thread-1) Current Bill: 503.0
17:27:26,945 INFO [stdout] (pool-35-thread-1) Your bill was incremented. Total ammount: $504.0
17:27:26,965 WARN [com.arjuna.ats.jta] (pool-35-thread-1) ARJUNA016029: SynchronizationImple.afterCompletion - failed for org.drools.persistence.jta.JtaTransactionSynchronizationAdapter@1913209 (mailto:org.drools.persistence.jta.JtaTransactionSynchronizationAdapter@1913209) with exception: java.lang.IllegalStateException: Illegal method call. This session was previously disposed.
at org.drools.reteoo.DisposedReteooWorkingMemory.getProcessRuntime(DisposedReteooWorkingMemory.java:270) [drools-core-5.5.0.Final.jar:5.5.0.Final]
at org.drools.impl.StatefulKnowledgeSessionImpl.getProcessRuntime(StatefulKnowledgeSessionImpl.java:874) [drools-core-5.5.0.Final.jar:5.5.0.Final]
at org.drools.persistence.SingleSessionCommandService$SynchronizationImpl.afterCompletion(SingleSessionCommandService.java:455) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]
at org.drools.persistence.jta.JtaTransactionSynchronizationAdapter.afterCompletion(JtaTransactionSynchronizationAdapter.java:22) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]
at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.afterCompletion(SynchronizationImple.java:96)
at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:402)
at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:103)
at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:164)
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:117)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:167)
at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:179) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:376) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]
at org.drools.persistence.jpa.JpaTimerJobInstance.call(JpaTimerJobInstance.java:34) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]
at org.drools.persistence.jpa.JpaTimerJobInstance.call(JpaTimerJobInstance.java:14) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_43]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_43]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_43]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) [rt.jar:1.6.0_43]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_43]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_43]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]
17:27:27,007 WARN [com.arjuna.ats.arjuna] (pool-35-thread-1) ARJUNA012127: TwoPhaseCoordinator.afterCompletion - returned failure for SynchronizationImple< 0:ffff0ae1a951:66eea469:51640136:10c, org.drools.persistence.jta.JtaTransactionSynchronizationAdapter@1913209 (mailto:org.drools.persistence.jta.JtaTransactionSynchronizationAdapter@1913209) > |
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/807338#807338]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months
[jBPM] - Problem with task forms timing out in the console when accessed over WAN (and other issues)
by Andy McC
Andy McC [https://community.jboss.org/people/andymcc] created the discussion
"Problem with task forms timing out in the console when accessed over WAN (and other issues)"
To view the discussion, visit: https://community.jboss.org/message/810688#810688
--------------------------------------------------------------
Hello
Following on from my earlier issue ( https://community.jboss.org/thread/224032 Human task prompts for user credentials when accessed via WAN - I'd still be grateful for advice on this!)
* I have set up jBPM on a server and if I access it across a LAN everything is fine
* When I access it from the WAN all is fine *except* when I need to complete a task form* If I do this via the jBPM console ( http:// http://{mycompany IP}:8080/jbpm-console) the browser sits waiting and eventually I get a timeout message (I've tried chrome and firefox on three different machiines). This message reports the LAN IP address of the server.
* If I do this via the REST interface ( http:// http://{mycompany IP}:8080/gwt-console-server/rs/form/task/{id}/render) in a separate browser tab I get the form rendered correctly and almost instantaneously (although I do get prompted for user credentials). Pressing the "complete" button seems to work OK
* I have also noticed that in this configuration I cannot always open and edit BPMN processes in drools-guvnor. The server log contains "connection refused" errors.
* It is puzzling as all of this was generally working last week (apart from the credentials thing above). I've double checked the server configuration and have asked our systems manager to check that router port settings etc are as they were.
Can anyone offer any suggestions? I'm pretty sure it is related to the earlier user credentials issue (link above). Is there a step I may have missed in authorising remote users?
Is there a way to change the timeout for human tasks (I'm using the default HornetQ set up but with host and port remapped)?
Many thanks for any help or suggestions
Andy McC
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/810688#810688]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months
[JBoss Web Services] - jboss hanging issue
by sanjeev Gupta
sanjeev Gupta [https://community.jboss.org/people/sanjeevgupta] created the discussion
"jboss hanging issue"
To view the discussion, visit: https://community.jboss.org/message/810679#810679
--------------------------------------------------------------
guys
i m using
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- $Id: mysql-ds.xml,v 1.1 2002/07/22 22:57:24 d_jencks Exp $ -->
<!-- ==================================================================== -->
<!-- Datasource config for MySQL using 2.0.11 driver -->
<!-- ==================================================================== -->
<datasources>
<local-tx-datasource>
<jndi-name>TDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/NTONLINE</connection-url>
<!--connection-url>jdbc:mysql://localhost:3306/iimsdb</connection-url-->
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>kbgr</user-name>
<password>wSsxRz6Z</password>
<min-pool-size>10</min-pool-size>
<max-pool-size>500</max-pool-size>
<blocking-timeout-millis>36000</blocking-timeout-millis>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>KBGDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/BS</connection-url>
<!--connection-url>jdbc:mysql://localhost:3306/iimsdb</connection-url-->
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>r</user-name>
<password></password>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<blocking-timeout-millis>36000</blocking-timeout-millis>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>BETADS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/ttaxcal</connection-url>
<!--connection-url>jdbc:mysql://localhost:3306/iimsdb</connection-url-->
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>r</user-name>
<password></password>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>DLFDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/asm</connection-url>
<!--connection-url>jdbc:mysql://localhost:3306/iimsdb</connection-url-->
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name></user-name>
<password></password>
<min-pool-size>10</min-pool-size>
<max-pool-size>500</max-pool-size>
<blocking-timeout-millis>36000</blocking-timeout-millis>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>MANWERDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/CONS</connection-url>
<!--connection-url>jdbc:mysql://localhost:3306/iimsdb</connection-url-->
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>g</user-name>
<password></password>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<blocking-timeout-millis>36000</blocking-timeout-millis>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>RMSIDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/report</connection-url>
<!--connection-url>jdbc:mysql://localhost:3306/iimsdb</connection-url-->
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>r</user-name>
<password></password>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<blocking-timeout-millis>36000</blocking-timeout-millis>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>DEMODS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/DEMO</connection-url>
<!--connection-url>jdbc:mysql://localhost:3306/iimsdb</connection-url-->
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>b</user-name>
<password></password>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<blocking-timeout-millis>36000</blocking-timeout-millis>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>SEDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/TONLINE</connection-url>
<!--connection-url>jdbc:mysql://localhost:3306/iimsdb</connection-url-->
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>kgr</user-name>
<password></password>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<blocking-timeout-millis>36000</blocking-timeout-millis>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>CONLINEDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/SONLINE</connection-url>
<!--connection-url>jdbc:mysql://localhost:3306/iimsdb</connection-url-->
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>kr</user-name>
<password>w</password>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<blocking-timeout-millis>36000</blocking-timeout-millis>
</local-tx-datasource>
</datasources>
this mysql.ds as we have multiple database withi multiple client
my problom is when no of access on my site increase it's throw a exeption of jdbc
which is unable to connect and saying too many connection
but in case of a few access it's work proper
it's a serious issue when trafic increase
so plz provide me solution thanks...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/810679#810679]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months