APAR status
Closed as program error.
Error description
RBD 7.5.1.3 NullPointerException in egl.java.JavaGenException when J2EE Serv let version missing in web.xml RBD7.5.1.3 eglbld generate NullPointerException in egl.java.Java GenException after getJ2eeVersion cannot get J2EE version from w eb.xml 1. Client Concerns/Problem: RBD v7.5.1.3 'Generate' egl build on web project or on associate d java environment building into that web project gives eglbd NPE error : IWN.VAL.9994.i 1/1 Generating part TPPWeb with build descriptor TPPWebWebBuildOptions from file \TPPWeb\EGLSource\TPPWeb.eglbld. IWN.VAL.9998.e 0/0 Exception occurred: java.lang.NullPointerExce ption IWN.VAL.9999.e 0/0 Stack Trace: com.ibm.etools.egl.java.JavaGenException: java.lang.NullPointerE xception IWN.VAL.9999.e 0/0 Stack Trace: at com.ibm.etools.egl.java.services.ServiceUtilities.getJ2eeVersion (Unknown Source) IWN.VAL.9999.e 0/0 Stack Trace: at com.ibm.etools.egl.java.services.DeploymentDescGenerator.validat eTargetE nvironment(Unknown Source) IWN.VAL.9999.e 0/0 Stack Trace: at .... Workaround: For some reason the web.xml is wrong for a Dynamic Web project i t's missing the version. ?web-app xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:xsi='http ://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http: //java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-a pp_2_4.xsd' id='WebApp_ID'? it should be ?web-app xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:xsi='http ://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http: //java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-a pp_2_4.xsd' id='WebApp_ID' version='2.4'? To workaround this issue have the customer edit the web.xml and add the version='2.4' like the second xml snippet above. Defect submission: The customer should be seeing a more meaningful message than a n ullpointer exception. This will only post a message that the ver sion is incorrect, the web.xml will still have to be fixed.
Local fix
Problem summary
Code was missing a check for null.
Problem conclusion
Added code to check for null.
Temporary fix
Comments
APAR Information
APAR number
PK94559
Reported component name
RATL BUS DEV
Reported component ID
5724S5000
Reported release
751
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-08-24
Closed date
2009-11-09
Last modified date
2009-11-09
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
RATL BUS DEV
Fixed component ID
5724S5000
Applicable component levels
R751 PSN
UP
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]
Document Information
Modified date:
09 November 2009