如果在计算机上未设置 LANG 环境变量,或将它设置为不受 GIMP Toolkit(GTK)支持的值,则当使用 UML 图时,产品可能不会正确响应。在任何一种情况下,Eclipse 日志文件中都会出现下列 Gdk 警告:
(process:9793): Gdk-WARNING **: locale not supported by Xlib
(process:9793): Gdk-WARNING **: can not set locale modifiers要解决此问题,将 LANG 环境变量设置为受 Gdk 支持的值(例如,en_US),并确保设置与 X Window System 环境的语言环境相匹配。
在 Red Hat Enterprise Linux 3.0 上,某些操作可能会使 UML 图不可用。在每种情况下,都会显示以下错误消息:
显示内部错误时发生了内部错误。建议您退出工作台。之后可能会发生错误并且可能会终止工作台而不发出警告。请参阅 .log 文件以获取更多详细信息。想要退出工作台吗?
.log 文件将包含类似如下的异常:
!MESSAGE Failed to execute runnable (java.lang.InternalError: Can't connect to X11
window server using ':0.0' as the value of the DISPLAY variable.)
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.InternalError:
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
...
!MESSAGE Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
!STACK 0
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:175)
at java.lang.Class.initializeImpl(Native Method)
at java.lang.Class.initialize(Class.java:350)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:116)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1073)
at org.apache.batik.ext.awt.image.GraphicsUtil.createGraphics(Unknown Source)
at org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.genRect(Unknown Source)
at org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.copyData(Unknown Source)
at org.apache.batik.ext.awt.image.rendered.TileCacheRed.genRect(Unknown Source)
...要解决此问题,必须退出并重新启动产品。
在 SuSE Linux Enterprise Server(SLES)V9 上,当将 UML 图另存为 SVG 图时,SVG 代码转换器会映射至不正确的颜色。这样,您会看到产品中显示的图与生成的 SVG 图之间的颜色差别。
在调用显示 UML 图的命令时,对于带有 .emx、.epx、.dnx 或 .tpx 文件扩展名并且处于文本方式的文件,文本编辑器可能无法正常显示该文件。要解决此问题,完成下列步骤:
- 在“模型资源管理器”视图中,选择图文件。
- 右键单击该选项,然后单击属性。
- 单击信息选项卡。
- 在文本文件编码中单击其它。
- 从下拉列表中选择 UTF-8。
- 单击应用。
- 单击确定。
在从 WebSphere Application Developer 中导入 Enterprise JavaBeans(EJB)图时,关系连接符可能无法正确显示。要解决此问题,选择连接符并在“属性”视图的外观中清除避免阻碍复选框。
在使用 UML 图时,显示相关元素操作会返回大量元素,这可能导致计算机内存不足。此问题在指定大于 1 的搜索级别以及搜索所有关系时很常见。要解决此问题,指定较低的搜索级别值然后重新运行该查询。此信息也适用于浏览图查询。