KNIME (Eclipse ベースのソフトウェア) 用の REST クライアント プラグインを作成しました。ジャージをライブラリとして使用しました。
すべて正常に動作します。しかし、クライアント リクエストを送信すると、APPLET ALERT ダイアログがポップアップ表示され、アプレットを許可するか、許可しないか、または停止するかを尋ねられます。このダイアログは、特に複数のリクエストを送信する場合に非常に面倒です。どうすればそれを取り除くことができますか?
私がこれまでに見つけたのは、ダウンロード中にアンチウイルス ソフトウェアが .jar ファイルに何かを追加し、maven サーバーと ant ビルドの引数を調整したことだけです。ただし、このプラグインを自分のマシンで作成し、ターゲット REST サーバーをローカルで実行しています (これは Python に基づいています)。
理想的には、コードやプラグインの設定、または設定でこのプラグインを抑制する方法を知りたいです。それが不可能な場合は、プラグインが公開されるため、社外のユーザーにも説明できる回避策が必要です。
ダイアログはコード行によって作成されます
client.handle(リクエスト)
client は jersey Client で、 request は jersey ClientRequest です。
コンソール出力は
-- PolicyProps uninitialized on access of 'jscan.session.policyname
-- PolicyProps uninitialized on access of 'jscan.session.origin_uri'
-- PolicyProps uninitialized on access of 'misc.no_user_interaction'
-- PolicyProps uninitialized on access of 'misc.prompt_user'
-- PolicyProps uninitialized on access of 'misc.notify_user'
-- PolicyProps uninitialized on access of 'misc.max_offense_cnt'
-- PolicyProps uninitialized on access of 'misc.strict_enforcement'
-- PolicyProps uninitialized on access of 'jscan.session.origin_uri'
-- PolicyProps uninitialized on access of 'net.bind_enable'
-- PolicyProps uninitialized on access of 'net.connect_src'
-- PolicyProps uninitialized on access of 'net.connect_other'
-- PolicyProps uninitialized on access of 'net.connect_in_dom_list'
Msgs: Failed to find localized message for key "instr.action.connect" - using default English form
Msgs: Failed to find localized message for key "instr.msg.dialog.action_warning_start" - using default English form
-->> returning Frame NULL
Msgs: Failed to find localized message for key "instr.dialog.title.applet_alert" - using default English form
Msgs: Failed to find localized message for key "instr.button.allow" - using default English form
Msgs: Failed to find localized message for key "instr.button.disallow" - using default English form
Msgs: Failed to find localized message for key "instr.button.stop_applet" - using default English form
BaseDialog: owner frame is a java.awt.Frame