Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362130 - SQL - Java null pointer exception connecting via EGLDD resource definition
Summary: SQL - Java null pointer exception connecting via EGLDD resource definition
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-26 16:24 EDT by Paul Hoffman CLA
Modified: 2017-02-23 14:18 EST (History)
2 users (show)

See Also:


Attachments
Test program and EGLDD file in project (16.76 KB, application/x-zip-compressed)
2011-10-26 16:24 EDT, Paul Hoffman CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Hoffman CLA 2011-10-26 16:24:09 EDT
Created attachment 206034 [details]
Test program and EGLDD file in project

Got following null pointer exception trying to connect via EGLDD resource definition.    Test case may not be configured correctly, but even then I should get a meaningful error message to tell me what is wrong.

See attached zip file.

Exception stack:


Exception in thread "main" java.lang.NullPointerException
	at eglx.lang.SysLib.getDeploymentDesc(SysLib.java:311)
	at eglx.lang.SysLib.doGetResource(SysLib.java:252)
	at eglx.lang.SysLib.getResource(SysLib.java:245)
	at eglx.lang.SysLib.getResource(SysLib.java:236)
	at sql.test.defects.ConnectViaEGLDDResourceFails.ezeInitialize(ConnectViaEGLDDResourceFails.java:29)
	at sql.test.defects.ConnectViaEGLDDResourceFails.<init>(ConnectViaEGLDDResourceFails.java:26)
	at sql.test.defects.ConnectViaEGLDDResourceFails.main(ConnectViaEGLDDResourceFails.java:21)
Comment 1 Joseph Vincens CLA 2011-10-26 18:43:49 EDT
fixed
Comment 2 Paul Hoffman CLA 2011-10-27 08:48:04 EDT
Am now getting EGL lang exception:  No file name was provided to get resource.

Justin says the resource should be resolved in the default deployment descriptor specified for the source project if a file is not explicitly specified on the resource binding.

However I don't see how this can work at runtime, since I cannot deploy the ConnectTest.egldd file to a java batch project, only to a WEB project or EAR.

Please fix or point me to spec or correct test case to show me how things are supposed to work for deploying .egldd to batch project.

Exception stack:

Exception in thread "main" eglx.lang.AnyException No file name was provided to get resource.
	at eglx.lang.AnyException.fillInStackTrace(AnyException.java:187)
	at java.lang.Throwable.<init>(Throwable.java:181)
	at java.lang.Exception.<init>(Unknown Source)
	at java.lang.RuntimeException.<init>(Unknown Source)
	at eglx.lang.AnyException.<init>(AnyException.java:32)
	at eglx.lang.SysLib.getDeploymentDesc(SysLib.java:307)
	at eglx.lang.SysLib.doGetResource(SysLib.java:252)
	at eglx.lang.SysLib.getResource(SysLib.java:245)
	at eglx.lang.SysLib.getResource(SysLib.java:236)
	at sql.test.defects.ConnectViaEGLDDResourceFails.ezeInitialize(ConnectViaEGLDDResourceFails.java:29)
	at sql.test.defects.ConnectViaEGLDDResourceFails.<init>(ConnectViaEGLDDResourceFails.java:26)
	at sql.test.defects.ConnectViaEGLDDResourceFails.main(ConnectViaEGLDDResourceFails.java:21)
Comment 3 Joseph Vincens CLA 2011-10-31 16:05:01 EDT
Deployment of java batch projects will not be supported in 070. Before I mark this as an enhancement for 10, does this work correctly when the getResource is in a service?
Comment 4 Joseph Vincens CLA 2011-11-02 10:04:55 EDT
see comment 3
Comment 5 Lisa Lasher CLA 2012-04-04 22:19:43 EDT
closing