I have finally nailed it down. It came from a misconfiguration of my JNDI datasource (which basically had no config at all, starting with no connection URL....). This produces a lot of other NPEs in various places in Roller along the line.

It is interesting to see that in this case, the JPA implementation used apparently doesn't really honor its API doc since an exception was expected in the case of a misconfiguration rather than returning a null value from its factory (see my patch, which error message isn't really helping).

Regards
Denis


Dave wrote:
On 6/17/07, Denis Balazuc <[EMAIL PROTECTED]> wrote:
I'm having troubles running the current 4.0 trunk with JPA. I have a
NullPointerException that happens during  JPAPersistenceStrategy
initialisation. Although I see where that comes from, I do not know how
to fix it. It's probably some configuration that I'm missing and you've
probably already seen this.

Denis,

I haven't seen that particular error before.

On a related note. I just deployed the latest code from the trunk to
rollerweblogger.org and I'm using the JPA backend, everything seem to
be working fine.

- Dave

Reply via email to