web-dev-qa-db-ja.com

プラグインの起動に失敗し、制約がありませんjavax.xml.bind

Eclipse RCP(Kepler)を使用してEclipseプラグインを作成しています。昨夜、プラグインをテストしようとすると突然nullポインター例外が発生するまで、すべてが正常に機能していました。スタックトレースの抜粋は次のとおりです。

!ENTRY org.Eclipse.ui.workbench 4 2 2013-08-24 08:36:17.616
!MESSAGE Problems occurred when invoking code from plug-in: "org.Eclipse.ui.workbench".
!STACK 0
Java.lang.NullPointerException
at org.Eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.getLastMigration(MigrationSupport.Java:229)
at org.Eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.baseChangedSinceLastPresentationOfWizard(MigrationSupport.Java:190)
at org.Eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.performMigration(MigrationSupport.Java:69)
at org.Eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler.earlyStartup(AutomaticUpdateScheduler.Java:89)
at org.Eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.Java:87)
at org.Eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.Java:66)
at org.Eclipse.core.runtime.SafeRunner.run(SafeRunner.Java:42)
at org.Eclipse.ui.internal.Workbench$55.run(Workbench.Java:2552)
at org.Eclipse.core.internal.jobs.Worker.run(Worker.Java:53)
Java.lang.NullPointerException
at org.Eclipse.core.internal.runtime.InternalPlatform.getLog(InternalPlatform.Java:354)
at org.Eclipse.core.runtime.Plugin.getLog(Plugin.Java:291)
at org.Eclipse.ui.internal.WorkbenchPlugin.log(WorkbenchPlugin.Java:830)
at org.Eclipse.ui.statushandlers.StatusManager.logError(StatusManager.Java:285)
at org.Eclipse.ui.statushandlers.StatusManager.handle(StatusManager.Java:200)
at org.Eclipse.ui.statushandlers.StatusManager.handle(StatusManager.Java:231)
at org.Eclipse.ui.statushandlers.StatusManager$StatusManagerLogListener.logging(StatusManager.Java:305)
at org.Eclipse.core.internal.runtime.RuntimeLog.logToListeners(RuntimeLog.Java:160)
at org.Eclipse.core.internal.runtime.PlatformLogWriter.logged(PlatformLogWriter.Java:100)
at org.Eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.safeLogged(ExtendedLogReaderServiceFactory.Java:86)
at org.Eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.logPrivileged(ExtendedLogReaderServiceFactory.Java:205)
at org.Eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.log(ExtendedLogReaderServiceFactory.Java:178)
at org.Eclipse.equinox.log.internal.ExtendedLogServiceFactory.log(ExtendedLogServiceFactory.Java:65)
at org.Eclipse.equinox.log.internal.ExtendedLogServiceImpl.log(ExtendedLogServiceImpl.Java:87)
at org.Eclipse.equinox.log.internal.LoggerImpl.log(LoggerImpl.Java:54)
at org.Eclipse.core.internal.runtime.PlatformLogWriter.logging(PlatformLogWriter.Java:43)
at org.Eclipse.core.internal.runtime.RuntimeLog.log(RuntimeLog.Java:96)
at org.Eclipse.core.runtime.SafeRunner.handleException(SafeRunner.Java:71)
at org.Eclipse.core.runtime.SafeRunner.run(SafeRunner.Java:44)
at org.Eclipse.ui.internal.Workbench$55.run(Workbench.Java:2552)
at org.Eclipse.core.internal.jobs.Worker.run(Worker.Java:53)

何が起こっているのかを理解するために、プラグインの起動構成に移動し、[プラグインの検証]をクリックすると、次のエラーが発生します。

org.Apache.xmlrpc
    Missing Constraint: Import-package: javax.xml.bind; version="0.0.0"

missing constraint

これが私のプラグインの起動が失敗する理由でしょうか?もしそうなら、どうすれば修正できますか?

ありがとうございました

16
Jan Tacci

プロジェクトを右クリックして、「実行」->「構成の実行」および「プラグイン」タブに移動できます。ここで[必要なプラグインを追加]ボタンをクリックすると、検証の問題が自動的に解決されます。

8
Monica

xmlrpc警告を取り除くために、実行構成「Eclipseアプリケーション」から次のプラグインを削除する必要がありました。

org.Apache.xmlrpc
org.Eclipse.mylyn.bugzilla.core
org.Eclipse.mylyn.bugzilla.ui
org.Eclipse.mylyn.commons.xmlrpc

Xmlrpc警告はすでに発生しています

  • Eclipse RCP、Oxygenの新規ダウンロード
  • 「HelloWorld、Command」テンプレートで作成された新しいプラグイン
  • Windows7

Oxygenなので、xmlrpcの問題はコンソールでは発生しませんが、追加のポップアップウィンドウとして発生します。これは、さらに厄介で混乱を招きます。コンソールには、次の追加出力が表示されます。

 SLF4J: Class path contains multiple SLF4J bindings.
    SLF4J: Found binding in [bundleresource://555.fwk1347294617:1/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in [bundleresource://555.fwk1347294617:2/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
    SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
    08:49:41.650 [Worker-1] INFO  c.g.t.t.d.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read.
    !SESSION 2017-09-04 08:49:32.846 -----------------------------------------------
    Eclipse.buildId=4.7.0.I20170612-0950
    Java.version=1.8.0_144
    Java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, Arch=x86_64, WS=win32, NL=de_DE
    Framework arguments:  -product org.Eclipse.platform.ide
    Command-line arguments:  -product org.Eclipse.platform.ide -data D:\Eclipse\workspace/../runtime-EclipseApplication -dev file:D:/Eclipse/workspace/.metadata/.plugins/org.Eclipse.pde.core/Eclipse Application/dev.properties -os win32 -ws win32 -Arch x86_64 -consoleLog

    !ENTRY org.Eclipse.egit.ui 2 0 2017-09-04 08:49:41.847
    !MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
    user global configuration and to define the default location to store repositories: 'C:\Users\eis'. If this is
    not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
    EGit might behave differently since they see different configuration options.
    This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. 

これが私のプラグインの起動が失敗する理由でしょうか?

私はそうは思わない。私のプラグインはこれらの警告の影響を受けていないようです。

プラグインの選択を手動で変更する場合は、他の依存関係の問題が発生しないように注意し、プラグインの検証機能を使用してください。

追加のプラグインがインストールされている場合は、さらに多くの警告が表示される場合があります。 checkstyleから:

!ENTRY org.Eclipse.ui 2 0 2017-09-04 10:09:32.926
!MESSAGE Warnings while parsing the commands from the 'org.Eclipse.ui.commands' and 'org.Eclipse.ui.actionDefinitions' extension points.
!SUBENTRY 1 org.Eclipse.ui 2 0 2017-09-04 10:09:32.926
!MESSAGE Commands should really have a category: plug-in='net.sf.eclipsecs.ui', id='CheckstylePlugin.PurgeCaches', categoryId='net.sf.eclipsecs'

!ENTRY org.Eclipse.ui 2 0 2017-09-04 10:09:33.622
!MESSAGE Warnings while parsing the commands from the 'org.Eclipse.ui.commands' and 'org.Eclipse.ui.actionDefinitions' extension points.
!SUBENTRY 1 org.Eclipse.ui 2 0 2017-09-04 10:09:33.622
!MESSAGE Commands should really have a category: plug-in='net.sf.eclipsecs.ui', id='CheckstylePlugin.PurgeCaches', categoryId='net.sf.eclipsecs'

=>それは一種の混乱です。したがって、無視できる「デフォルト」の警告のコピーを作成することをお勧めします。そうすれば、警告が自分のプラグイン/最近の変更に関連しているかどうかを簡単に確認できます。

編集

Checkstyle警告のバグを報告しましたが、Lars Koedderitzschのおかげで、バージョン8.5.0で解決されます: https://sourceforge.net/p/Eclipse-cs/bugs/428/

7
Stefan

EclipseLink 2.5.2がインストールされている場合、それは既知のバグです: https://bugs.Eclipse.org/bugs/show_bug.cgi?id=456174

修正するには、次の更新サイトを使用して最新バージョンに更新します。 http://download.Eclipse.org/rt/eclipselink/updates/ 2.5.2より新しいバージョンを選択します

注:チェックボックスをオフにするとソフトウェアがインストールされていないように表示されましたが、アップデートサイトを追加した後、インストールされたと思われるため、[インストール済みバージョンを非表示]チェックボックスをオフにする必要がありました。新しいバージョンをインストールしたら、Eclipseを再起動してから、次の手順を実行します。1。メニューを選択します。[実行]-> [構成の実行]2。[必要なバンドルの追加]ボタンをクリックします。

その後はすべて正常に動作するはずです

別のことを試した後:私はしました:

ヘルプ>新しいソフトウェアをインストールする

そして、このリポジトリを追加しました: http://download.Eclipse.org/tools/orbit/downloads/drops/R20190226160451/repository 軌道から取得: https://download.Eclipse.org/tools/orbit/downloads/drops/R20190226160451 /

.javax、xmlストリームに関連するものを選択します

それは私のために働いた。 Eclipse Modeling Toolsバージョン:2019-03(4.11.0)win 10

2
sweetkaos

機能を備えたRCPE4アプリケーションを試している場合は、製品->依存関係ペインで依存関係にorg.Eclipse.e4.rcpを追加してみてください。そして、「必要な追加」を行います。それは私の問題を解決しました

1
Matthias Nowak