Direct links to fixes
APAR status
Closed as program error.
Error description
Following the Info Center steps- allow to extends the OOB db schema and generate the data service layer objects- an exception "An Error occurred during code generation" could run as soon as you try to complete the DSL Wizard as described in the following IC tutorial: Adding day-of-month scheduling support for recurring orders http://publib.boulder.ibm.com/infocenter/wchelp/v7r0m0/topic/com .ibm.commerce.madisons-starterstore.doc/tutorial/tsmschedulingsu pport_intro.htm Looking at the .log workspace log it reports a NullPointerException: ENTRY com.ibm.commerce.toolkit.internal.dataaccess.... !MESSAGE com.ibm.commerce.toolkit.internal.dataaccess.wizards.SDOGenerati onWizard.performFinish(): !STACK 0 java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(Unknown Source) at org.eclipse.jface.wizard.WizardDialog.run(Unknown Source) at com.ibm.commerce.toolkit.internal.dataaccess.wizards.SDOGenerati onWizard.performFinish(Unknown Source) at org.eclipse.jface.wizard.WizardDialog.finishPressed(Unknown Source) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(Unknown Source) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Unknown Source) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.eclipse.jface.window.Window.runEventLoop(Unknown Source) at org.eclipse.jface.window.Window.open(Unknown Source) at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandle r(Unknown Source) at org.eclipse.ui.internal.handlers.WizardHandler.execute(Unknown Source) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Unknown Source) at org.eclipse.core.commands.Command.executeWithChecks(Unknown Source) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks (Unknown Source) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(U nknown Source) at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeComm and(Unknown Source) at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(Unkno wn Source) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSele ction(Unknown Source) at org.eclipse.jface.action.ActionContributionItem.access$2(Unknown Source) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(Un known Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source) at org.eclipse.ui.internal.Workbench.runUI(Unknown Source) at org.eclipse.ui.internal.Workbench.access$4(Unknown Source) at org.eclipse.ui.internal.Workbench$5.run(Unknown Source) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unk nown Source) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source) at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unk nown Source) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.run Application(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.sta rt(Unknown Source) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source) at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source) at org.eclipse.equinox.launcher.Main.run(Unknown Source) at org.eclipse.equinox.launcher.Main.main(Unknown Source) Caused by: java.lang.NullPointerException at com.ibm.commerce.toolkit.internal.dataaccess.wizards.tasks.Ecore ToSDO.createGenModel(Unknown Source) at com.ibm.commerce.toolkit.internal.dataaccess.wizards.tasks.Ecore ToSDO.execute(Unknown Source) at com.ibm.commerce.toolkit.internal.dataaccess.wizards.tasks.Ecore ToSDOWrapper.execute(Unknown Source) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Unknown Source) at org.eclipse.core.internal.resources.Workspace.run(Unknown Source) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(Unknown Source) at com.ibm.commerce.toolkit.internal.dataaccess.wizards.SDOGenerati onWizard$1.run(Unknown Source) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run( Unknown Source) Root exception: java.lang.NullPointerException at com.ibm.commerce.toolkit.internal.dataaccess.wizards.tasks.Ecore ToSDO.createGenModel(Unknown Source) at com.ibm.commerce.toolkit.internal.dataaccess.wizards.tasks.Ecore ToSDO.execute(Unknown Source) at com.ibm.commerce.toolkit.internal.dataaccess.wizards.tasks.Ecore ToSDOWrapper.execute(Unknown Source) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Unknown Source) at org.eclipse.core.internal.resources.Workspace.run(Unknown Source) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(Unknown Source) at com.ibm.commerce.toolkit.internal.dataaccess.wizards.SDOGenerati onWizard$1.run(Unknown Source) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run( Unknown Source)
Local fix
The genmodels- under the folder {toolkit}\wc.modules\ejbs\cloudscape\Service-Server.jar- could be missing. To avoid the issue could be enough copy Installments-Server.jar from another environment to {toolkit}\wc.modules\ejbs\cloudscape\.
Problem summary
USERS AFFECTED: WebSphere Commerce users on v7.0 FEP2 Toolkit PROBLEM ABSTRACT: NullPointerException using the DSL Wizard on Commerce Toolkit BUSINESS IMPACT: Impossibility to generate custom data layer objects using the DSL Wizard RECOMMENDATION:
Problem conclusion
What this fix does is to find the jar file from the WCD_INSTALL/workspace/WC directory which contains all the commerce jar files. ------------------------------------------------------------- The latest available maintenance information can be obtained from the Recommended Fixes for WebSphere Commerce technote: http://www.ibm.com/support/docview.wss?rs=3046&uid=swg21261296
Temporary fix
Comments
APAR Information
APAR number
JR41992
Reported component name
WC BUS EDITION
Reported component ID
5724I3800
Reported release
700
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-02-21
Closed date
2012-03-30
Last modified date
2012-03-30
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
WC BUS EDITION
Fixed component ID
5724I3800
Applicable component levels
R700 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
30 March 2012