Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360816

Summary: testVPDEMPerTenant when run on the server gets a NPE
Product: z_Archived Reporter: Guy Pelletier <guy.pelletier>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.orm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed changes none

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