Issue Details (XML | Word | Printable)

Key: NUCCORE-794
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Raman Gupta
Votes: 0
Watchers: 1
Operations

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

NPE during logging when plugin refers to non-existent extension point in OSGi

Created: 17/Dec/11 02:46 AM   Updated: 18/Feb/14 09:22 AM   Resolved: 17/Dec/11 09:12 AM
Component/s: None
Affects Version/s: 3.0.4
Fix Version/s: 3.0.5

File Attachments: 1. Text File NUCCORE-794.patch (0.8 kB)



 Description  « Hide
When a plugin is loaded and refers to a non-existent extension point, DataNucleus logs it at WARN level. However, this log statement results in an NPE when running in an OSGi environment, since it does extension.getPlugin().getManifestLocation().toString(). However, manifestLocation is always null in an OSGi environment (it is not set by OSGiPluginRegistry).

Raman Gupta added a comment - 17/Dec/11 02:46 AM
The attached patch removes the toString portion of this log statement which is unnecessary since that is done implicitly by the logger, and so solves the issue.

Raman Gupta made changes - 17/Dec/11 02:46 AM
Field Original Value New Value
Attachment NUCCORE-794.patch [ 11550 ]
Andy Jefferson added a comment - 17/Dec/11 09:12 AM
SVN trunk has this now. Thx

Andy Jefferson made changes - 17/Dec/11 09:12 AM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 3.0.5 [ 11365 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 11/Jan/12 05:27 PM
Status Resolved [ 5 ] Closed [ 6 ]
Andy Jefferson made changes - 18/Feb/14 09:22 AM
Component/s Plugins [ 10153 ]