openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinaki Poddar (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (OPENJPA-1746) NullPointerException when a null value is set in the properties map passed to Entity.createEntityManagerFactory
Date Tue, 27 Jul 2010 16:35:16 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pinaki Poddar reassigned OPENJPA-1746:
--------------------------------------

    Assignee: Pinaki Poddar

> NullPointerException when a null value is set in the properties map passed to Entity.createEntityManagerFactory
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1746
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1746
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 1.2.2
>         Environment: N/A
>            Reporter: Robert Flaherty
>            Assignee: Pinaki Poddar
>            Priority: Minor
>
> If a property is set with a null value in the Entity.createEntityManagerFactory, a NullPointerException
is thrown due to PersistenceUnitInfoImpl's use of Properties for the _props field (which extends
Hashtable which doesn't allow nulls).  Although not specifically laid out by the API, it accepts
Map, which is incompatible with Properties/Hashtable in this instance.  HashMap would be the
preffered type here.
> Currently this was working with EclipseLink, as I set some properties to null to override
defaults set in the persistence.xml file based on some dynamic criteria.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message