Gen Studio Web View generation "Exception occurred during launch"
search cancel

Gen Studio Web View generation "Exception occurred during launch"

book

Article ID: 376611

calendar_today

Updated On:

Products

Gen

Issue/Introduction

Installed latest Gen Studio 8.6 PTFs (GSN86301, GSN86302, GSN86303).
Gen Studio Web View Generation for Gen sample model Cooperative client W900 fails with:

Exception occurred during launch
Reason:
Error within Debug UI:

Details show java.lang.reflect.InvocationTargetException



Checking the file .log in directory "C:\Users\USERNAME\AppData\Local\CA\Gen 8.6\cfg\GenStudio\workspace\.metadata" shows:
 java.lang.NoClassDefFoundError: com/ibm/icu/text/NumberFormat

**********
!ENTRY org.eclipse.debug.ui 4 120 2024-09-06 11:14:32.345
!MESSAGE Error within Debug UI: 
!STACK 0
java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:401)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:474)
    at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:240)
    at org.eclipse.ui.internal.progress.ProgressManager.lambda$25(ProgressManager.java:823)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
    at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:856)
    at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:832)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.launchInForeground(DebugUIPlugin.java:1124)
    at org.eclipse.debug.ui.DebugUITools.launch(DebugUITools.java:977)
    at org.eclipse.debug.ui.DebugUITools.launch(DebugUITools.java:779)
    at com.ca.gen.studio.generation.handlers.GenerateConfigurationCommandHandler.launchWithSelection(GenerateConfigurationCommandHandler.java:129)
    at com.ca.gen.studio.generation.handlers.GenerateConfigurationCommandHandler.execute(GenerateConfigurationCommandHandler.java:99)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
    at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:96)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:320)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:254)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:164)
    at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:497)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:490)
    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:207)
    at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:399)
    at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:824)
    at org.eclipse.ui.menus.CommandContributionItem.lambda$3(CommandContributionItem.java:801)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4145)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1055)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3958)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3561)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:628)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
    at com.ca.gen.studio.common.rcp.Application.start(Application.java:43)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:199)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:391)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:246)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
Caused by: java.lang.NoClassDefFoundError: com/ibm/icu/text/NumberFormat
    at org.eclipse.internal.xtend.util.StringHelper.<clinit>(StringHelper.java:27)
    at org.eclipse.internal.xtend.util.QualifiedName.create(QualifiedName.java:275)
    at org.eclipse.internal.xpand2.ast.Template.setFullyQualifiedName(Template.java:70)
    at org.eclipse.xtend.expression.ResourceManagerDefaultImpl.loadResource(ResourceManagerDefaultImpl.java:65)
    at org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(XpandExecutionContextImpl.java:295)
    at org.eclipse.xpand2.XpandExecutionContextImpl.findTemplate(XpandExecutionContextImpl.java:282)
    at org.eclipse.xpand2.XpandExecutionContextImpl.findDefinition(XpandExecutionContextImpl.java:234)
    at org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:234)
    at org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:190)
    at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement.java:41)
    at org.eclipse.xpand2.Generator.invokeInternal2(Generator.java:272)
    at org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:232)
    at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
    at org.eclipse.emf.mwe.core.container.CompositeComponent.internalInvoke(CompositeComponent.java:104)
    at org.eclipse.emf.mwe.core.container.CompositeComponent.invoke(CompositeComponent.java:89)
    at org.eclipse.emf.mwe.core.WorkflowEngine.executeWorkflow(WorkflowEngine.java:174)
    at org.eclipse.emf.mwe.core.WorkflowEngine.run(WorkflowEngine.java:53)
    at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.java:81)
    at com.ca.gen.studio.web.designer.generator.GenGenerator.generate(GenGenerator.java:119)
    at com.ca.gen.studio.web.designer.builder.WebDesignerBuilder.generate(WebDesignerBuilder.java:69)
    at com.ca.gen.studio.web.designer.builder.WebDesignerBuilder.generate(WebDesignerBuilder.java:59)
    at com.ca.gen.studio.generation.utils.GeneratorScheduler.runAssociatedGenerators(GeneratorScheduler.java:709)
    at com.ca.gen.studio.generation.utils.GeneratorScheduler.generateSelectedObjects(GeneratorScheduler.java:283)
    at com.ca.gen.studio.generation.utils.GeneratorScheduler.schedule(GeneratorScheduler.java:252)
    at com.ca.gen.studio.generation.launch.GenerationLaunchDelegate.launch(GenerationLaunchDelegate.java:37)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:862)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:720)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1029)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.lambda$5(DebugUIPlugin.java:1118)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.lang.ClassNotFoundException: com.ibm.icu.text.NumberFormat cannot be found by org.eclipse.xtend_2.2.0.v201605260315
...

**********

Resolution

  1. Close Gen Studio.

  2. Rename directory Gen Studio "cache" directory:
    "C:\Users\USERNAME\AppData\Local\CA\Gen 8.6\cfg\GenStudio"
    to:
    "C:\Users\USERNAME\AppData\Local\CA\Gen 8.6\cfg\GenStudio_old"

  3. Start Gen Studio and the Web View Generation is then successful.