org.ozoneDB.ObjectNotFoundException: No such object ID:

"Rikard Andersson" <[email protected]> Thu, 17 Nov 2005 17:12:42 +0100
Newsgroups gmane.comp.java.ozone.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------_=_NextPart_001_01C5EB91.BCF9EE0A
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi.
=20
Somehow I seem to have gotten a corrupt ozone database, how I am not
sure. But I am looking for a way to fix it without having to delete the
entire db. Leads on how the db may have been corrupt is appreciated as
well.
=20
Scenario:
I am able to get the name of the object from:
String[] vNames =3D vLocalDatabase.objectNames(); // vLocalDatabase is
org.ozoneDB.LocalDatabase
=20
But when I try to access the object with:
vLocalDatabase.objectForName(vNames[CORRUPT_NBR]);
I get the exception below, obviously same problem when I try to delete
it, because I need access the object in order to delete it...
=20
And since I am not able to delete it, I cannot (or can I?) rewrite just
the corrupt object.
=20
Any help, solving the issue is much appreciated.
=20
Br
Rikard Andersson
=20
Exception:
org.ozoneDB.ObjectNotFoundException: No such object ID: 119
 at org.ozoneDB.core.Transaction.acquireObject(Unknown Source)
 at org.ozoneDB.Database.fetch(Unknown Source)
 at org.ozoneDB.blob.BLOBPageImpl_Proxy.size(BLOBPageImpl_Proxy.java:69)
 at
org.ozoneDB.blob.BLOBContainerImpl.available(BLOBContainerImpl.java:80)
 at org.ozoneDB.blob.BLOBContainerImpl.read(BLOBContainerImpl.java:174)
 at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.ozoneDB.core.AbstractObjectContainer.invokeTarget(Unknown
Source)
 at org.ozoneDB.core.Transaction.invokeObject(Unknown Source)
 at org.ozoneDB.core.DbRemote.DbInvoke.perform(Unknown Source)
 at org.ozoneDB.core.Transaction.performCommand(Unknown Source)
 at org.ozoneDB.core.TransactionManager.performCommand(Unknown Source)
 at org.ozoneDB.core.TransactionManager.completeTransaction(Unknown
Source)
 at org.ozoneDB.core.TransactionManager.handleCommand(Unknown Source)
 at org.ozoneDB.core.DbRemote.DbLocalClient.send(Unknown Source)
 at org.ozoneDB.ExternalDatabase.sendCommand(Unknown Source)
 at org.ozoneDB.ExternalDatabase.sendCommand(Unknown Source)
 at org.ozoneDB.ExternalDatabase.invoke(Unknown Source)
 at
org.ozoneDB.blob.BLOBContainerImpl_Proxy.read(BLOBContainerImpl_Proxy.ja
va:220)
 at org.ozoneDB.blob.BLOBInputStream.read(BLOBInputStream.java:62)
 at java.util.zip.CheckedInputStream.read(CheckedInputStream.java:60)
....=20
=20

------_=_NextPart_001_01C5EB91.BCF9EE0A
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2>Hi.</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial =
size=3D2>Somehow I seem to=20
have gotten a corrupt ozone database, how I am not sure. But I am =
looking for a=20
way to fix it without having to delete the entire db. Leads on how the =
db may=20
have been corrupt is appreciated as well.</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2>Scenario:</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial size=3D2>I am =
able to get the=20
name of the object from:</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial color=3D#0000ff =

size=3D2>String[] vNames =3D vLocalDatabase.objectNames(); // =
vLocalDatabase=20
is&nbsp;<!--StartFragment --><FONT face=3D"Times New Roman" size=3D3>=20
</FONT>org.ozoneDB.LocalDatabase</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial size=3D2>But =
when I try to=20
access the object with:</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial color=3D#0000ff =

size=3D2>vLocalDatabase.objectForName(vNames[CORRUPT_NBR]);</FONT></SPAN>=
</DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial size=3D2>I get =
the exception=20
below, obviously same problem when I try to delete it, because I need =
access the=20
object in order to delete it...</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial size=3D2>And =
since I am not=20
able to delete it, I cannot (or can I?) rewrite just the corrupt=20
object.</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial size=3D2>Any =
help, solving=20
the issue is much appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2>Br</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial size=3D2>Rikard =

Andersson</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2>Exception:</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2>org.ozoneDB.ObjectNotFoundException: No such object ID: =
119<BR>&nbsp;at=20
org.ozoneDB.core.Transaction.acquireObject(Unknown Source)<BR>&nbsp;at=20
org.ozoneDB.Database.fetch(Unknown Source)<BR>&nbsp;at=20
org.ozoneDB.blob.BLOBPageImpl_Proxy.size(BLOBPageImpl_Proxy.java:69)<BR>&=
nbsp;at=20
org.ozoneDB.blob.BLOBContainerImpl.available(BLOBContainerImpl.java:80)<B=
R>&nbsp;at=20
org.ozoneDB.blob.BLOBContainerImpl.read(BLOBContainerImpl.java:174)<BR>&n=
bsp;at=20
sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)<BR>&nbsp;at=20
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI=
mpl.java:25)<BR>&nbsp;at=20
java.lang.reflect.Method.invoke(Method.java:324)<BR>&nbsp;at=20
org.ozoneDB.core.AbstractObjectContainer.invokeTarget(Unknown=20
Source)<BR>&nbsp;at org.ozoneDB.core.Transaction.invokeObject(Unknown=20
Source)<BR>&nbsp;at org.ozoneDB.core.DbRemote.DbInvoke.perform(Unknown=20
Source)<BR>&nbsp;at org.ozoneDB.core.Transaction.performCommand(Unknown=20
Source)<BR>&nbsp;at =
org.ozoneDB.core.TransactionManager.performCommand(Unknown=20
Source)<BR>&nbsp;at=20
org.ozoneDB.core.TransactionManager.completeTransaction(Unknown=20
Source)<BR>&nbsp;at =
org.ozoneDB.core.TransactionManager.handleCommand(Unknown=20
Source)<BR>&nbsp;at org.ozoneDB.core.DbRemote.DbLocalClient.send(Unknown =

Source)<BR>&nbsp;at org.ozoneDB.ExternalDatabase.sendCommand(Unknown=20
Source)<BR>&nbsp;at org.ozoneDB.ExternalDatabase.sendCommand(Unknown=20
Source)<BR>&nbsp;at org.ozoneDB.ExternalDatabase.invoke(Unknown=20
Source)<BR>&nbsp;at=20
org.ozoneDB.blob.BLOBContainerImpl_Proxy.read(BLOBContainerImpl_Proxy.jav=
a:220)<BR>&nbsp;at=20
org.ozoneDB.blob.BLOBInputStream.read(BLOBInputStream.java:62)<BR>&nbsp;a=
t=20
java.util.zip.CheckedInputStream.read(CheckedInputStream.java:60)<BR>....=
=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D075145615-17112005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C5EB91.BCF9EE0A--


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click