Community
Participate
Working Groups
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)
fixed
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)
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?
see comment 3
closing