Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360816 - testVPDEMPerTenant when run on the server gets a NPE
Summary: testVPDEMPerTenant when run on the server gets a NPE
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 09:25 EDT by Guy Pelletier CLA
Modified: 2022-06-09 10:32 EDT (History)
1 user (show)

See Also:


Attachments
Proposed changes (2.40 KB, patch)
2011-10-13 10:26 EDT, Guy Pelletier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guy Pelletier CLA 2011-10-13 09:25:57 EDT
When trying to extract the username/schema

String schemaName = session.getAccessor().getConnection().getMetaData().getUserName();

This should be instead

String schemaName = session.getDatasourceLogin().getUserName();

Verified on SE (existing test continues to pass) and on the server, no NPE and the test passes.
Comment 1 Guy Pelletier CLA 2011-10-13 10:26:48 EDT
Created attachment 205132 [details]
Proposed changes
Comment 2 Guy Pelletier CLA 2011-10-13 11:28:24 EDT
Changes have been submitted.

Verified by: Peter Krogh

Tests: existing test (testVPDEMPerTenant) continues to pass and now also passes on the server (verified by Yiping)
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:14:53 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:32:46 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink