}
catch (FileNotFoundException e)
{
closeAndUnlock(fd, ifile, null);
throw new ObjectStoreException(
"ShadowingStore::read_state error: " + e, e);
}
/* now try to read the actual image out of the store */
try
{
if ((buffer != null)
&& (ifile.read(buffer, 0, imageSize) == imageSize))
{
new_image = new InputObjectState(objUid, tName,
buffer);
}
else
{
tsLogger.arjLoggerI18N
.warn("com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore_7");
}
}
catch (IOException e)
{
closeAndUnlock(fd, ifile, null);
throw new ObjectStoreException(
"ShadowingStore::read_state failed: " + e, e);
}
if (!closeAndUnlock(fd, ifile, null))
{
if (tsLogger.arjLoggerI18N.isWarnEnabled())
{
tsLogger.arjLoggerI18N
.warn(
"com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore_8",
new Object[]
{ fname });
}
}
}
}
}
else
throw new ObjectStoreException(
"ShadowStore::read_state - "
+ tsLogger.log_mesg
.getString("com.arjuna.ats.internal.arjuna.objectstore.notypenameuid")
+ objUid);