• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I am sure my DB file is corrupt please help?

 
Ranch Hand
Posts: 147
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Yucca Nel
Ranch Hand
Posts: 147
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Never mind all sorted sorry for confusion.
 
reply
    Bookmark Topic Watch Topic
  • New Topic