• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

executeBatch() not executing

 
rastas biggs
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a second pair of eye because this normally works fine, I just geting PK from an ArrayList as an argument for an update in the database but its getting stuck on ps.executeBatch();

it's not even getting to the finally clause, if some one can see cause
i'm certianly missing it.


 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any exceptions??
 
Bill Fences
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
None at all
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then what are criteria on basis which you say this is not working !!!

and you are not throwing your exception only catching them ???

is mobile_phone_number is a number field ?
 
Bill Fences
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mobile_phone_number is a VARCHAR2, I use exactly the same code to perform exactly the same function with an ArrayList, same field, in another object that works perfectly fine.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you commiting the transaction bill?
how do you know it is sticking somewhere near executeBatch()?
 
Bill Fences
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the print statements I watching it in the console and it stops on the last iteration and the line

System.out.println("Execute batch");

is never reached it just hangs in the loop, if a can determine the last record I can force it to break.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
write this statement,
System.out.println("Execute batch");
before executeBatch(), then see.
 
Bill Fences
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did it does not reach it.
 
rastas biggs
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bill,

I have fixed it, I rebooted WL and redeployed the app and it works fine.

Thanks guys for your help with this.

RB
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic