Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
I have defined the following Custome HTML inside a joget form:-
Code Block | ||
---|---|---|
| ||
<script language="JavaScript"> function test () { $.ajax({ url: "http://localhost:8080/jw/web/json/workflow/package/list", type: "GET", cache: false, dataType : "JSONP", success: function (result) { $('#products').empty(); $('#title').text("All Processes"); $.each(result.data, function (key, val) { var str = val.packageName; $('<li/>', { text: str }) .appendTo($('#products')); }); } }); }; </script> <form name="myForm"> <input type="button" value="Display alert box" name="button1" onClick="alert('You clicked the first button.')"><br> <input type="button" value="Call on button 1" name="button2" onClick="test()"> <h1 id ="title"></h1> <ul id="products"> </ul> </form> <h1></h1> <ul id="products"> </ul> |
but when i tried to complete the task through the joget form i got the following exception, baring in mind that if i remove the custom html then i will be able to complete the task without any problem.:-
Code Block |
---|
javax.transaction.xa.XAException: org.apache.commons.dbcp.managed.LocalXAConnec: resource no longer available - recovery might be at risk! at com.atomikos.datasource.xa.XAResourceTransaction.throwXAExceptionForU navailableResource(XAResourceTransaction.java:311) at com.atomikos.datasource.xa.XAResourceTransaction.testOrRefreshXAResou rceFor2PC(XAResourceTransaction.java:283) at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTra nsaction.java:779) at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:73) at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage. java:111) at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.ja va:87) at com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagato r.java:66) at com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardSt ateHandler.java:120) at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105 ) at com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer .java:112) at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:907) at java.lang.Thread.run(Thread.java:619) WARN 04 Nov 2012 10:33:22 atomikos - Unexpected error in commit com.atomikos.icatch.SysException: XA resource 'org.apache.commons.dbcp.managed.L ocalXAConnec': commit for XID '3139322E3136382E312E39302E746D3031333737303030343 4:6F72672E6170616368652E636F6D6D6F6E732E646263702E6D616E616765642E4C6F63616C5841 436F6E6E656331333132' raised -7: the XA resource has become unavailable at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTra nsaction.java:824) at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:73) at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage. java:111) at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.ja va:87) at com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagato r.java:66) at com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardSt ateHandler.java:120) at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105 ) at com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer .java:112) at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:907) at java.lang.Thread.run(Thread.java:619) WARN 04 Nov 2012 10:33:22 atomikos - Local heuristic termination of coordinato r 192.168.1.90.tm0137700044 with state HEUR_HAZARD WARN 04 Nov 2012 10:33:22 atomikos - org.apache.commons.dbcp.managed.LocalXACo nnec: resource no longer available - recovery might be at risk! WARN 04 Nov 2012 10:33:22 atomikos - org.apache.commons.dbcp.managed.LocalXACo nnec: resource no longer available - recovery might be at risk! WARN 04 Nov 2012 10:33:22 atomikos - XA resource 'org.apache.commons.dbcp.mana ged.LocalXAConnec': commit for XID '3139322E3136382E312E39302E746D30313337373030 303434:6F72672E6170616368652E636F6D6D6F6E732E646263702E6D616E616765642E4C6F63616 C5841436F6E6E656331333132' raised -7: the XA resource has become unavailable javax.transaction.xa.XAException: org.apache.commons.dbcp.managed.LocalXAConnec: resource no longer available - recovery might be at risk! at com.atomikos.datasource.xa.XAResourceTransaction.throwXAExceptionForU navailableResource(XAResourceTransaction.java:311) at com.atomikos.datasource.xa.XAResourceTransaction.testOrRefreshXAResou rceFor2PC(XAResourceTransaction.java:283) at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTra nsaction.java:779) at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:73) at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage. java:111) at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.ja va:87) at com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagato r.java:66) at com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardSt ateHandler.java:120) at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105 ) at com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer .java:112) at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:907) at java.lang.Thread.run(Thread.java:619) WARN 04 Nov 2012 10:33:22 atomikos - Unexpected error in commit com.atomikos.icatch.SysException: XA resource 'org.apache.commons.dbcp.managed.L ocalXAConnec': commit for XID '3139322E3136382E312E39302E746D3031333737303030343 4:6F72672E6170616368652E636F6D6D6F6E732E646263702E6D616E616765642E4C6F63616C5841 436F6E6E656331333132' raised -7: the XA resource has become unavailable at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTra nsaction.java:824) at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:73) at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage. java:111) at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.ja va:87) at com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagato r.java:66) at com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardSt ateHandler.java:120) at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105 ) at com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer .java:112) at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:907) at java.lang.Thread.run(Thread.java:619) WARN 04 Nov 2012 10:33:32 atomikos - org.apache.commons.dbcp.managed.LocalXACo nnec: resource no longer available - recovery might be at risk! WARN 04 Nov 2012 10:33:32 atomikos - org.apache.commons.dbcp.managed.LocalXACo nnec: resource no longer available - recovery might be at risk! WARN 04 Nov 2012 10:33:32 atomikos - XA resource 'org.apache.commons.dbcp.mana ged.LocalXAConnec': commit for XID '3139322E3136382E312E39302E746D30313337373030 303434:6F72672E6170616368652E636F6D6D6F6E732E646263702E6D616E616765642E4C6F63616 C5841436F6E6E656331333132' raised -7: the XA resource has become unavailable javax.transaction.xa.XAException: org.apache.commons.dbcp.managed.LocalXAConnec: resource no longer available - recovery might be at risk! at com.atomikos.datasource.xa.XAResourceTransaction.throwXAExceptionForU navailableResource(XAResourceTransaction.java:311) at com.atomikos.datasource.xa.XAResourceTransaction.testOrRefreshXAResou rceFor2PC(XAResourceTransaction.java:283) at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTra nsaction.java:779) at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:73) at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage. java:111) at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.ja va:87) at com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagato r.java:66) at com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardSt ateHandler.java:120) at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105 ) at com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer .java:112) at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:907) at java.lang.Thread.run(Thread.java:619) WARN 04 Nov 2012 10:33:32 atomikos - Unexpected error in commit com.atomikos.icatch.SysException: XA resource 'org.apache.commons.dbcp.managed.L ocalXAConnec': commit for XID '3139322E3136382E312E39302E746D3031333737303030343 4:6F72672E6170616368652E636F6D6D6F6E732E646263702E6D616E616765642E4C6F63616C5841 436F6E6E656331333132' raised -7: the XA resource has become unavailable at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTra nsaction.java:824) at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:73) at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage. java:111) at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.ja va:87) at com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagato r.java:66) at com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardSt ateHandler.java:120) at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105 ) at com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer .java:112) at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:907) at java.lang.Thread.run(Thread.java:619) WARN 04 Nov 2012 10:33:42 atomikos - org.apache.commons.dbcp.managed.LocalXACo nnec: resource no longer available - recovery might be at risk! WARN 04 Nov 2012 10:33:42 atomikos - org.apache.commons.dbcp.managed.LocalXACo nnec: resource no longer available - recovery might be at risk! WARN 04 Nov 2012 10:33:42 atomikos - XA resource 'org.apache.commons.dbcp.mana ged.LocalXAConnec': commit for XID '3139322E3136382E312E39302E746D30313337373030 303434:6F72672E6170616368652E636F6D6D6F6E732E646263702E6D616E616765642E4C6F63616 C5841436F6E6E656331333132' raised -7: the XA resource has become unavailable javax.transaction.xa.XAException: org.apache.commons.dbcp.managed.LocalXAConnec: resource no longer available - recovery might be at risk! at com.atomikos.datasource.xa.XAResourceTransaction.throwXAExceptionForU navailableResource(XAResourceTransaction.java:311) at com.atomikos.datasource.xa.XAResourceTransaction.testOrRefreshXAResou rceFor2PC(XAResourceTransaction.java:283) at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTra nsaction.java:779) at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:73) at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage. java:111) at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.ja va:87) at com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagato r.java:66) at com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardSt ateHandler.java:120) at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105 ) at com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer .java:112) at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:907) at java.lang.Thread.run(Thread.java:619) WARN 04 Nov 2012 10:33:42 atomikos - Unexpected error in commit com.atomikos.icatch.SysException: XA resource 'org.apache.commons.dbcp.managed.L ocalXAConnec': commit for XID '3139322E3136382E312E39302E746D3031333737303030343 4:6F72672E6170616368652E636F6D6D6F6E732E646263702E6D616E616765642E4C6F63616C5841 436F6E6E656331333132' raised -7: the XA resource has become unavailable at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTra nsaction.java:824) at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:73) at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage. java:111) at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.ja va:87) at com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagato r.java:66) at com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardSt ateHandler.java:120) at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105 ) at com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer .java:112) at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:907) at java.lang.Thread.run(Thread.java:619) WARN 04 Nov 2012 10:33:52 atomikos - org.apache.commons.dbcp.managed.LocalXACo nnec: resource no longer available - recovery might be at risk! WARN 04 Nov 2012 10:33:52 atomikos - org.apache.commons.dbcp.managed.LocalXACo nnec: resource no longer available - recovery might be at risk! WARN 04 Nov 2012 10:33:52 atomikos - XA resource 'org.apache.commons.dbcp.mana ged.LocalXAConnec': commit for XID '3139322E3136382E312E39302E746D30313337373030 303434:6F72672E6170616368652E636F6D6D6F6E732E646263702E6D616E616765642E4C6F63616 C5841436F6E6E656331333132' raised -7: the XA resource has become unavailable javax.transaction.xa.XAException: org.apache.commons.dbcp.managed.LocalXAConnec: resource no longer available - recovery might be at risk! at com.atomikos.datasource.xa.XAResourceTransaction.throwXAExceptionForU navailableResource(XAResourceTransaction.java:311) at com.atomikos.datasource.xa.XAResourceTransaction.testOrRefreshXAResou rceFor2PC(XAResourceTransaction.java:283) at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTra nsaction.java:779) at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:73) at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage. java:111) at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.ja va:87) at com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagato r.java:66) at com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardSt ateHandler.java:120) at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105 ) at com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer .java:112) at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:907) at java.lang.Thread.run(Thread.java:619) WARN 04 Nov 2012 10:33:52 atomikos - Unexpected error in commit com.atomikos.icatch.SysException: XA resource 'org.apache.commons.dbcp.managed.L ocalXAConnec': commit for XID '3139322E3136382E312E39302E746D3031333737303030343 4:6F72672E6170616368652E636F6D6D6F6E732E646263702E6D616E616765642E4C6F63616C5841 436F6E6E656331333132' raised -7: the XA resource has become unavailable at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTra nsaction.java:824) at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:73) at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage. java:111) at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.ja va:87) at com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagato r.java:66) at com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardSt ateHandler.java:120) at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105 ) at com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer .java:112) at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:907) at java.lang.Thread.run(Thread.java:619) |
so can anyone explain what is wrong ?
Best Regards