aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes I am sure my DB file is corrupt please help? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "I am sure my DB file is corrupt please help?" Watch "I am sure my DB file is corrupt please help?" New topic
Author

I am sure my DB file is corrupt please help?

Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

I cant get ANY data from my DB I have found my magic cookie and used it as a test when opening the DB. However when I try to replace it with a wrong magic cookie I still get no error? Any suggestions?

SCJP 6.0, SCJD (400/400), SCBCD for JEE 5, SCWCD 1.4 I do videos for development at
http://www.youtube.com/user/thejartender?feature=mhee
I am probably the only developer ever to have had an orange sized brain tumor in my brain while learning development!!
satishkumar janakiraman
Ranch Hand

Joined: May 03, 2004
Posts: 334
Hi,

What do you mean by
However when I try to replace it with a wrong magic cookie I still get no error? Any suggestions?
.

Did you change the magic cookie value in DB?

If you replace or change the magic cookie in the DB file, It will not give you any error. But when you read programatically, you may get error.

sat
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 1963
    
    7

Did you keep the original jar file during download? If so you can just unpack it again and use that.

Talking about magic cookie value changed, I doubt it can be done programmatically unless you purposefully write at the 0 file pointer.

When you say can't read anything is that mean your JTable show up and no data and no NullPointerException? Or something else?


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7
Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

Never mind all sorted sorry for confusion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am sure my DB file is corrupt please help?
 
Similar Threads
Verifying the db file
Magic cookie value and database name
non-networked and network mode
MY magic value is 00 00 01 01
Question on System Requirement Specification