Forms 10.1.2.3 Stops Responding, Java Console shows: Java.Lang.IllegalStateException: Cannot Open Clipboard
Applies to:
Oracle Forms - Version: 10.1.2.3.0 and later [Release: 10.1.2.3 and later ]
Information in this document applies to any platform.
Checked for relevance on 14-Jan-2011
Symptoms
Forms 10.1.2.3 can sometimes stop responding after user attempts to make use of the clipboard.
Example : Upon trying to paste when another application is also making use of the clipboard.
The behavior, once the issue has occurred, is that the menu can still be accessed and sub-menus apparently launched, but then nothing occurs. User must forcefully close the browser and relaunch the application to be able to continue to work.
When the issue occurs, the following error stack can be seen in the java console:
If using Jinitiator:
Exception occurred during event dispatching:java.lang.IllegalStateException:
cannot open system clipboard at
sun.awt.windows.WClipboard.openClipboard(Native Method) at
sun.awt.windows.FullyRenderedTransferable.(Unknown Source) at
sun.awt.windows.WClipboard.getContents(Unknown Source) at
oracle.ewt.lwAWT.lwText.LWTextComponent._pasteImpl(Unknown Source) at
oracle.ewt.lwAWT.lwText.LWTextComponent.paste(Unknown Source)
../..
If using Sun plug-in:
Exception in thread "AWT-EventQueue-3"
java.lang.IllegalStateException: cannot open system clipboard
at sun.awt.windows.WClipboard.openClipboard(Native Method)
at sun.awt.datatransfer.ClipboardTransferable.(Unknown Source)
at sun.awt.datatransfer.SunClipboard.getContents(Unknown Source)
at oracle.ewt.lwAWT.lwText.LWTextComponent._pasteImpl(Unknown Source)
at oracle.ewt.lwAWT.lwText.LWTextComponent.paste(Unknown Source)
../..
This is the same error stack that occurred for another issue involving use of the clipboard, where Forms would crash with FRM-92100 and that has been fixed in 10.1.2.2 as mentioned in Note 301618.1 FRM-92100 with Java.Lang.IllegalStateException:Cannot Open System Clipboard
Now in 10.1.2.3 the crash no longer occurs but on some occasions Forms can hang with the same error: java.lang.IllegalStateException: cannot open system clipboard
Changes
Increased usage of the clipboard
Cause
This issue is caused by:
Bug:7833659 APPLET ZOMBIED;JAVA.LANG.ILLEGALSTATEEXCEPTION: CANNOT OPEN SYSTEM CLIPBOARD
that is fixed along with other bug fixes included in the Forms Bundle Patch:9593176.
It was caused by improper handling in Forms of an exception that may occur when trying to paste clipboard contents while the clipboard happens not to be available at that moment.
Solution
Apply the Forms Bundle Patch:9593176 on top of your 10.1.2.3 Forms Oracle Home, following carefully the read me as usual.
More information on the Forms Bundle Patch can be found in the FAQ:
Document 1188127.1 Oracle Forms 10.1.2.3 Bundle Patch Frequently Asked Questions (FAQ)
Errors
FRM-92100
Forms 10.1.2.3停止响应,Java控制台显示:不合逻辑的状态异常(Java.Lang.IllegalStateException):不能打开剪贴板
应用于:
Oracle Forms – 版本:10.1.2.3.0及以后版本[发行:10.1.2.3及以后版本]
这篇文档的所有信息使用于任何平台
上次检查时间2011–01-14
现象
Forms 10.1.2.3有时会在用户试图使用剪贴板时出现停止响应现象。
例如:使用剪贴板时另外一个程序也在使用剪贴板。
出现这种行为,导致问题的发生,菜单始终出现并会调用它的子菜单但是没有起到任何作用。用户必须强制关闭浏览器并重新启动应用程序才能使工作继续进行。
当问题出现时,会在java的控制台上看到下面的错误信息
使用Jinitiator
Exception occurred during event dispatching:java.lang.IllegalStateException:
cannot open system clipboard at
sun.awt.windows.WClipboard.openClipboard(Native Method) at
sun.awt.windows.FullyRenderedTransferable.(Unknown Source) at
sun.awt.windows.WClipboard.getContents(Unknown Source) at
oracle.ewt.lwAWT.lwText.LWTextComponent._pasteImpl(Unknown Source) at
oracle.ewt.lwAWT.lwText.LWTextComponent.paste(Unknown Source)
../..
使用Sun的插件
Exception in thread "AWT-EventQueue-3"
java.lang.IllegalStateException: cannot open system clipboard
at sun.awt.windows.WClipboard.openClipboard(Native Method)
at sun.awt.datatransfer.ClipboardTransferable.(Unknown Source)
at sun.awt.datatransfer.SunClipboard.getContents(Unknown Source)
at oracle.ewt.lwAWT.lwText.LWTextComponent._pasteImpl(Unknown Source)
at oracle.ewt.lwAWT.lwText.LWTextComponent.paste(Unknown Source)
../..
在另外一个使用剪贴板的问题中也出现了同样的错误,这个问题在10.1.2.2的Note 301618.1 FRM-92100中有提到关于不合逻辑的状态异常之不能打开剪贴板(Java.Lang.IllegalStateException:Cannot Open System Clipboard)
在10.1.2.3版本中这种问题不再出现但在一些情况下会出现同样的错误:java.lang.IllegalStateException: cannot open system clipboard
改变的地方
增加了剪贴板的使用
原因
这个问题是由下面的原因引起的:
Bug:7833659 APPLET ZOMBIED;JAVA.LANG.ILLEGALSTATEEXCEPTION: CANNOT OPEN SYSTEM CLIPBOARD
这个漏洞在补丁Patch:9593176中得到了解决。这是由于不正确的操作引起的,当向剪贴板目录上粘贴时,剪贴板在这时恰好不可用可能会发生异常。
解决方法
打上Forms的补丁Patch:9593176
安装readme中说的步骤来做
更多的信息可以在FAQ中找到
文件 1188127.1 Oracle Forms 10.1.2.3补丁常见问题 (FAQ)
错误
FRM-92100