File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JNLP and Web Start and the fly likes PersistenceService Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "PersistenceService" Watch "PersistenceService" New topic


Florian Marquardt

Joined: Apr 19, 2007
Posts: 6

I have a problem!

I have got the Exception

if i tried to make this:

and when i try to do this:

i get the value null back!

What did i wrong?
Has anyone experiences with PersistenceService?

thanks a lot
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

Well, I can tell you at least what I did.

First, I set the PersistenceService as an instance variable (but that's more because I needed to use it in multiple places. Then, in my constructor for the object in question, I did:

Then, each time when I tried to use the PersistenceService, I simply tested against null first to ensure that it was initialized. It seems to work fine.

Hope that helps!

Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
I agree. Here's the link:
subject: PersistenceService