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

Bug 179329

Summary: osgi generation failed with NPE
Product: z_Archived Reporter: Andrew Eberbach <aeberbac>
Component: TPTP.monitoringAssignee: Andrew Eberbach <aeberbac>
Status: CLOSED FIXED QA Contact: Bhanu Prathap V <bhanu.prathap>
Severity: critical    
Priority: P1 CC: bsubram
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460
Bug Depends on:    
Bug Blocks: 178487, 185316, 185766, 188895    
Attachments:
Description Flags
A patch for the problem described
none
A patch for the problem described
none
Refactoring of previous patch to change provisional API to internal API
none
Refactoring of previous patch to comment on axisValidator extension point none

Description Andrew Eberbach CLA 2007-03-26 11:47:28 EDT
to reproduce try to generate to OSGi from an mrt.
Comment 1 Andrew Eberbach CLA 2007-03-26 11:48:44 EDT
Created attachment 61985 [details]
A patch for the problem described
Comment 2 Andrew Eberbach CLA 2007-03-26 11:49:03 EDT
patched, please verify
Comment 3 Balan Subramanian CLA 2007-04-24 23:28:00 EDT
fixed. please verify
Comment 4 Bhanu Prathap V CLA 2007-04-25 03:39:00 EDT
Verified - closed
Build: TPTP-4.4.0-200704240100
Comment 5 Bhanu Prathap V CLA 2007-04-25 03:43:14 EDT
Codegeneration for Axis2 on OSGI fails when eclipse started with IBM/SUNJava 1.4.2, below is the error log

java.lang.reflect.InvocationTargetException
at org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional.NewProjectWizard.performFinish(NewProjectWizard.java:207)
at org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional.NewProjectWizard.access$2(NewProjectWizard.java:144)
at org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional.NewProjectWizard$1.run(NewProjectWizard.java:253)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.lang.Exception: IWAT0828E Code generation failed
at org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional.NewProjectWizard.performFinish(NewProjectWizard.java:208)
... 3 more
Caused by: java.lang.NullPointerException
at org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional.NewProjectWizard.runProjectizer(NewProjectWizard.java:341)
at org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional.NewProjectWizard.performFinish(NewProjectWizard.java:202)
... 3 more
Root exception:
java.lang.Exception: IWAT0828E Code generation failed
at org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional.NewProjectWizard.performFinish(NewProjectWizard.java:208)
at org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional.NewProjectWizard.access$2(NewProjectWizard.java:144)
at org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional.NewProjectWizard$1.run(NewProjectWizard.java:253)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.lang.NullPointerException
at org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional.NewProjectWizard.runProjectizer(NewProjectWizard.java:341)
at org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional.NewProjectWizard.performFinish(NewProjectWizard.java:202)
... 3 more
Comment 6 Andrew Eberbach CLA 2007-05-24 22:05:55 EDT
Created attachment 68705 [details]
A patch for the problem described
Comment 7 Balan Subramanian CLA 2007-05-29 19:44:26 EDT
Created attachment 69193 [details]
Refactoring of previous patch to change provisional API to internal API

Replaces org.eclipse.tptp.wsdm.tooling.codegen.mrt.provisional with org.eclipse.tptp.wsdm.tooling.codegen.mrt.internal in org.eclipse.tptp.wsdm.editor project

Copies class in org.eclipse.tptp.wsdm.tooling.provisional.util to the org.eclipse.tptp.wsdm.tooling.internal.util package in org.eclipse.tptp.wsdm.tooling.codegeneration plugin and exposes those internal 
classes explicitly to org.tptp.wsdm.tooling.codegeneration.j2ee plugin.
Comment 8 Balan Subramanian CLA 2007-05-30 14:05:50 EDT
Created attachment 69345 [details]
Refactoring of previous patch to comment on axisValidator extension point
Comment 9 Balan Subramanian CLA 2007-05-30 15:24:28 EDT
fix from 5/30 checked in 
Comment 10 Balan Subramanian CLA 2007-05-30 15:34:41 EDT
QA please verify
Comment 11 Bhanu Prathap V CLA 2007-06-06 06:03:46 EDT
Could not verify with Java 1.4.2, as in no codegen window comes up

Verified - fixed
TPTP-4.4.0-200706041102
Comment 12 Paul Slauenwhite CLA 2009-06-30 12:14:37 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.