安装eas703版本的bosModular开发工具后,会遇到了一些问题,这里记录一下问题及解决方案。
1.bos视图打不开,提示空指针异常 (图1)
解决方案:导入bosLicense,可以将boslicense.jar替换到BOSModular\boscommon\eclipse\plugins\com.kingdee.bos.boslicense_6.1.0\下的同名文件即可
2.启动客户端时会报如下错误,原因是因为部分包路径过长,703版本需要手动合并lib包(在bim透视图的工具栏中选择“工具”->合并LIB,然后按照步骤操作完即可。)。
错误信息如下:==================Begin================================================
org.eclipse.core.runtime.CoreException: 处理调试异步队列时发生异常
at org.eclipse.debug.core.DebugPlugin.exec(DebugPlugin.java:802)
at org.eclipse.jdt.launching.AbstractVMRunner.exec(AbstractVMRunner.java:70)
at org.eclipse.jdt.internal.launching.StandardVMDebugger.run(StandardVMDebugger.java:249)
at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:101)
at com.kingdee.bos.bim.launch.EASProgrammeConfigurationDelegate.launch(EASProgrammeConfigurationDelegate.java:51)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:607)
at com.kingdee.bos.bim.launch.JavaProgrammeLauncher.launch(JavaProgrammeLauncher.java:247)
at com.kingdee.bos.bim.launch.JavaProgrammeLauncher.debug(JavaProgrammeLauncher.java:255)
at com.kingdee.bos.bim.launch.EASProgrammeLauncher.launch(EASProgrammeLauncher.java:147)
at com.kingdee.bos.bim.launch.LaunchConfig.startDefaultClient(LaunchConfig.java:246)
at com.kingdee.bos.bim.actions.run.StartTestAction.run(StartTestAction.java:41)
at com.kingdee.bos.md.actions.base.BaseMDResourceAction.run(BaseMDResourceAction.java:309)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.ui.actions.RetargetAction.runWithEvent(RetargetAction.java:230)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:234)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.io.IOException: CreateProcess: E:\kingdee\bos\BOSModular\jdk\bin\javaw.exe -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:58428 -Xmx768m -XX:MaxPermSize=256m -Dbos.config=E:\kingdee\workspace\eas/runtime/server/profiles/server1/config/bosconfig.xml -Dctrlhome=E:\kingdee\workspace\eas/runtime/ctrlhome -Djava.awt.headless=true -Ddatacenter.config=E:\kingdee\workspace\eas/runtime/server/properties/datacenters.xml -Dbos.sc2tc.dict=E:\kingdee\workspace\eas/runtime/server/properties/sc2tc -Dlistener.config=E:\kingdee\workspace\eas/runtime/server/profiles/server1/config/listenerconfig.data -Dportal.config=E:\kingdee\workspace\eas/runtime/server/profiles/server1/config/portalConfig/portalConfig.xml -Dormrpc.config=E:\kingdee\workspace\eas/runtime/server/profiles/server1/config/ormrpc_eas.properties -Dbluewater.uuid.hostLockPort=5504 -Djava.security.auth.login.config=E:\kingdee\workspace\eas/runtime/server/properties/login.config -Djava.security.krb5.conf=E:\kingdee\workspace\eas/runtime/server/properties/krb5.conf -D?
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at org.eclipse.debug.core.DebugPlugin.exec(DebugPlugin.java:798)
... 44 more
==================End================================================
3.开发工具启动客户端后提示没有模块的license
将LicenseController.java类 放到src\com\kingdee\eas\base\license\client下即可。