Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

hanging request for an update using Hibernate and Mysql


Level 1
hi everyone.

i'm using Hibernate,mysql and DS for so many tables and it
works fine for CRUD , i have a problem with just one table when i
try to update records , the request is hanging so long before it
works , i don't know what's wrong , here some code that can help.


<class name="com.sample.Marking" table="marking">

<id name="markingId" type="java.lang.Integer">

<column name="markingId" />

<generator class="increment" />


<many-to-one name="users" class="com.sample.Users"

<column name="userId" not-null="true" />


<many-to-one name="offre" class="com.sample.Offre"

<column name="offreId" not-null="true" />


<property name="marked" type="java.lang.String">

<column name="marked" length="1" not-null="true" />


<property name="reserved" type="java.lang.String">

<column name="reserved" length="1" not-null="true" />




public function reserv():void{


var param:Array = new Array;




token =
Marking m where m.offre = ? and m.users = ?",param);

token.action = "reserv";


public function refreshReserv(event:CollectionEvent):void{

if(reserveMarking.length == 1){

mark = reserveMarking.getItemAt(0) as Marking;



private function resultHandler(event:ResultEvent):void{

if(event.token.action == "reserv"){

mark.reserved = "y";


CursorManager.removeBusyCursor();"offer reserved with succes","info");



<mx:DataService id="markingHibernateService"
autoCommit="true" destination="markingHibernate"

i hope it can help. thx
0 Replies


Level 2

Can you please try handling the Fault event of the
DataService and see if there is any error thrown. Looks like you
are setting the busy cursor and are removing it only when the
Result event is invoked. So, there might be a possibility that the
Fault even is invoked, which we are not handling in our case and
the busy cursor is not removed.

Hope this helps.


Level 1
thx for ur answer , but it's hanging also without the busy
cursor ,there is no fault while updating the data , the problem is
that it's hanging and took long time before updating , i don't know
if there is something wrong with the mapping or the database.