Code behaving mysteriously - code snippets are skipped!!!

Hi,

I've written a code snippet which used JDBC, RMI along with core java APIs to do some processing of an email. The snippet is outlined below : (i'm sorry I cannot paste the actual code here)

publicboolean executeServer(){

ArrayList<MessageDetails> unProcessedMsgs = api.getListOfAllUnProcessedMessages();

for(Message msg : unProcessedMsgs){

try{

//some code here....

logMessage("processing");

finalshort retval = processFile(msg);

//some code here....

}catch(Exception ex){

logMessage("Exception " + ex);

}finally{

logMessage("Proceeding to next....");

}

}

}

privateshort processFile(Message msg){

//some code here....

final String emailFrom = msg.getFrom();

try{

logMessage("Connecting to RMI service on : " + rmiMerchantUnsubInfoURL);

rmiObject = (Merchant) Naming.lookup(rmiMerchantUnsubInfoURL);

logMessage("Returning information for email : " + emailFrom);

return rmiObject.getInfo(emailFrom);

}catch(NotBoundException notBoundEx){

logMessage("It seems that the RMI service we request info from, is not available");

notBoundEx.printStackTrace();

}catch(Exception ex){

logMessage("Exception in RMI connection);

return ERROR;

}

//some code here....

}

However, its been THREE(3) days now and the above code has been executing in a mysterious way. Here is a snippet from my logs, which will shows the strange behavior :

2006-09-25 00:06:56,043;DEBUG;executeServer;processing

2006-09-25 00:06:56,043;INFO ;processFile;Processing file : /mailstore/763/1159105932.M220196P25933

2006-09-25 00:06:56,043;DEBUG;processFile;Creating parser for processing file

2006-09-25 00:06:56,549;DEBUG;processFile;Parser for processing file created

2006-09-25 00:06:56,550;DEBUG;processFile;Connecting to RMI service on : rmi://127.0.0.1:1099/Cache

2006-09-25 00:06:56,551;FATAL;executeServer;Proceeding to next....

As we can see the code snippet after the "Connection to RMI" thing is being skipped completely!!! Also there is no exception OR error inthe code since it is not logging the message from the catch blocks!!!

Please could someone explain this behavior? Any tools / techniques // previous experiences of such behavior elsewhere would be great resources to look at. Please oblige by redirecting me to them!

Awaiting response eagerly,

Thanks,

[3837 byte] By [mADHURtANWANIa] at [2007-11-15]
# 1
Madhur can u give more details abt <code> rmiObject = (Merchant) Naming.lookup(rmiMerchantUnsubInfoURL); <code>
Rohan.Desaia at 2007-7-14 > top of java,Core,Monitoring & Management...
# 2
Hey, Rohan, we've already solved the thing. It was because of the OOM thing that Kaj pinted out.Thanks for the help,
mADHURtANWANIa at 2007-7-14 > top of java,Core,Monitoring & Management...
# 3
We solved it onthe Java Programming forum.
mADHURtANWANIa at 2007-7-14 > top of java,Core,Monitoring & Management...