Project: mulestudio
Issue STUDIO-5706: UnsupportedOperationException when using domains
Launch Studio with any domain projects and you get these errors in the error log. org.eclipse.core.runtime.CoreException: Domain projects do not support test resource folders. org.mule.tooling.core.builder.TransformerUtils.addErrorsForFlow(TransformerUtils.java:127) org.mule.tooling.core.builder.TransformerUtils.validateConfigFile(TransformerUtils.java:94) org.mule.tooling.core.builder.ValidationBuildVisitor$1.call(ValidationBuildVisitor.java:38) org.mule.tooling.core.builder.ValidationBuildVisitor$1.call(ValidationBuildVisitor.java:1) org.mule.tooling.utils.SilentRunner.run(SilentRunner.java:16) org.mule.tooling.core.StudioDesignContextRunner.runSilentWithMuleProject(StudioDesignContextRunner.java:17) org.mule.tooling.core.builder.ValidationBuildVisitor.validate(ValidationBuildVisitor.java:33) org.mule.tooling.core.builder.ValidationBuildVisitor.visitFile(ValidationBuildVisitor.java:28) org.mule.tooling.core.utils.MuleProjectResourceVisitor.visit(MuleProjectResourceVisitor.java:19) org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:126) org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:85) org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82) org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86) org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86) org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86) org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86) org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:127) org.eclipse.core.internal.resources.Resource.accept(Resource.java:95) org.eclipse.core.internal.resources.Resource.accept(Resource.java:52) org.eclipse.core.internal.resources.Resource.accept(Resource.java:124) org.eclipse.core.internal.resources.Resource.accept(Resource.java:108) org.mule.tooling.core.builder.MuleBuilder$1.run(MuleBuilder.java:91) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.UnsupportedOperationException: Domain projects do not support test resource folders. org.mule.tooling.core.impl.model.MuleDomainProject.getTestResourcesFolder(MuleDomainProject.java:48) org.mule.tooling.core.io.MuleResourceUtils.isInAnyTestFolder(MuleResourceUtils.java:426) org.mule.tooling.ui.modules.core.widgets.AttributeContext.collectMuleConfigurations(AttributeContext.java:169) org.mule.tooling.ui.modules.core.widgets.AttributeContext.getGlobalEntries(AttributeContext.java:138) org.mule.tooling.ui.modules.core.widgets.utils.NameValidator.validate(NameValidator.java:78) org.mule.tooling.ui.modules.core.widgets.utils.NameValidator.validate(NameValidator.java:36) org.mule.tooling.ui.modules.core.widgets.AttributeModelWithHelper$1.validate(AttributeModelWithHelper.java:78) com.onpositive.commons.namespace.ide.ui.editors.xml.model.DomainValidatorVisitor.enterNode(DomainValidatorVisitor.java:185) com.onpositive.commons.namespace.ide.ui.editors.xml.model.DomainEditingModelObject.traverse(DomainEditingModelObject.java:121) com.onpositive.commons.namespace.ide.ui.editors.xml.model.DomainEditingModelObject.traverse(DomainEditingModelObject.java:126) org.mule.tooling.ui.modules.core.validation.MuleConfigurationValidator.doValidate(MuleConfigurationValidator.java:178) org.mule.tooling.ui.modules.core.validation.MuleConfigurationValidator.collectErrorMessages(MuleConfigurationValidator.java:167) org.mule.tooling.ui.modules.core.validation.MuleConfigurationValidator.validate(MuleConfigurationValidator.java:135) org.mule.tooling.core.builder.TransformerUtils.addErrorsForFlow(TransformerUtils.java:121)
Story points: 5