websphere commerce - RAD - 数据服务层向导无法正常工作

时间:2015-07-14 15:12:24

标签: rad websphere-commerce

我正在尝试在RAD中创建一个新的数据服务层。当我在向导中选择数据服务层并选择下一步时,我会在元数据日志中获得以下异常

!ENTRY org.eclipse.ui 4 0 2015-07-13 16:38:49.199
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoClassDefFoundError: com.ibm.websphere.command.CommandException
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at         org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(Unknown Source)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(Unknown Source)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(Unknown Source)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(Unknown Source)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(Unknown Source)
at java.lang.J9VMInternals.initialize(Unknown Source)
at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.parseCommerceProductFile(Unknown Source)
at com.ibm.commerce.config.aesmigration.util.WCEncryptionAlgCheckerFactory.getWCEncryptionAlgChecker(Unknown Source)
at com.ibm.commerce.util.nc_crypt.decrypt(Unknown Source)
at com.ibm.commerce.util.nc_crypt.decrypt(Unknown Source)
at com.ibm.commerce.util.nc_crypt.decrypt(Unknown Source)
at com.ibm.commerce.toolkit.internal.dataaccess.wizards.SDOGenerationWizard.initDatabaseConnection(Unknown Source)
at com.ibm.commerce.toolkit.internal.dataaccess.wizards.SDOGenerationWizard.init(Unknown Source)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(Unknown Source)
at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Unknown Source)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(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.executeHandler(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(Unknown Source)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(Unknown Source)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem.access$2(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem$5.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.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(Unknown 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(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(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.ClassNotFoundException: com.ibm.websphere.command.CommandException
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 74 more

RAD版本为7.5.5。

FEP 7。

我们在虚拟机上看到了同样的问题(虚拟机是在不同的机器上复制粘贴的)。因此,源中应该有一些损坏或未正确安装。有什么想法吗?

3 个答案:

答案 0 :(得分:1)

即使WebSphere Commerce运送RAD,这个问题也与RAD无关。我的建议是您联系Commerce支持。

答案 1 :(得分:1)

您现在可能已经解决了这个问题。如果没有,如果安装并启用了JET(Java Emitter Template)软件包,是否可以仔细检查。

您可以使用IBM Knowledge Center中提供的步骤验证这一点:http://www-01.ibm.com/support/knowledgecenter/SSZLC2_7.0.0/com.ibm.commerce.component-services.doc/tasks/twvjet.htm

答案 2 :(得分:0)

CommandException / NoClassDefFoundError对我来说是一个误导性的错误,因为它包含了另一个错误:发现导致我在Ibm's website上发现的问题,我必须在我的eclipse.ini安装中添加-Xverify:none。 / p>

不幸的是,其中一个数据服务层向导类中的nullpointerexception浮出水面。调查我发现由于某种原因,正在读取wc-server.xml,但数据库密码未被正确解析或解密。当代码尝试使用密码填充属性时,代码启动了nullpointerexception。奇怪的是:Oracle 11上的RAD 7 / WCD 7,与Oracle 7在同一台机器上的Oracle 12上的RAD 8 / WCD 8,不支持。

我已经设计了一种解决方法,但不幸的是,这不是我可以分享的。