Issue Type: Bug Bug
Affects Versions: 1.0
Assignee: Unassigned
Components: test, tooling
Created: 09/Aug/13 12:13 PM
Description:

While testing quickstarts I discovered that the Create Service Test Class menu option fails with a NPE if a) the project hasn't been built yet or b) "Build Automatically" is turned off.

The NPE is:

[1]
!ENTRY org.switchyard.tools.ui 4 0 2013-08-08 15:24:56.526
!MESSAGE Error resolving service interface.
!STACK 0
java.lang.NullPointerException
       at org.switchyard.extensions.java.JavaService.fromClass(JavaService.java:78)
       at org.switchyard.tools.ui.SwitchYardModelUtils.getServiceInterface(SwitchYardModelUtils.java:246)
       at org.switchyard.tools.ui.wizards.NewServiceTestClassWizardPage.resolveServiceType(NewServiceTestClassWizardPage.java:702)
       at org.switchyard.tools.ui.wizards.NewServiceTestClassWizardPage.createTypeMembers(NewServiceTestClassWizardPage.java:336)
       at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createType(NewTypeWizardPage.java:2207)
       at org.switchyard.tools.ui.operations.CreateServiceTestOperation.execute(CreateServiceTestOperation.java:53)
       at org.switchyard.tools.ui.operations.AbstractSwitchYardProjectOperation.run(AbstractSwitchYardProjectOperation.java:117)
       at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
       at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2327)
       at org.switchyard.tools.ui.wizards.NewServiceTestClassWizard$1.run(NewServiceTestClassWizard.java:73)
       at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Fix Versions: 1.1
Project: SwitchYard
Priority: Major Major
Reporter: Brian Fitzpatrick
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira