DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCORE-1085
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Stijn Slaets
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Core

PersistenceConfiguration uses class.forName instead of ClassloaderResolver to load validators

Created: 26/Nov/13 03:00 PM   Updated: 28/Nov/13 03:00 PM   Resolved: 27/Nov/13 02:53 PM
Component/s: None
Affects Version/s: 3.2.9
Fix Version/s: 3.2.10

File Attachments: 1. Text File Let_PersistenceConfiguration_use_the_ClassLoaderResolver_when_loading_validators.patch (4 kB)

Environment: OSGi / Java 6 /SQLite

Datastore: Other


 Description  « Hide
When running on an OSGi framework a ClassnotFoundException when the PersistenceConfiguration tries to instantiate a RDBMSPropertyValidator.
The source of PersistenceConfiguration contains a //TODO that notes that the Class.forName() method should be replaced by the ClassloaderResolver.

Sort Order: Ascending order - Click to sort in descending order
Stijn Slaets added a comment - 26/Nov/13 03:02 PM
I was able to fix this issue in my environment with the attached patch.

Andy Jefferson added a comment - 27/Nov/13 02:53 PM
SVN trunk has a variation on your patch. Thx