Eclipse Subclipse 在“SVN 提交”期间发生内部错误

问题描述 投票:0回答:1

我正在运行 Eclipse 版本:2024-03 (4.31.0) 构建 ID:20240307-1437。

我通过 Marketplace 安装了以下 Subclipse:

Subclipse                   4.3.4.202306191346
Subversion 1.14 JavaHL      1.14.0.202005311413
Subversion Revision Graph   4.2.0.1
SVNKit Client Adapter       1.8.12.3

提交失败并出现以下错误:

An internal error occurred during: "SVN Commit".
Unable to make field private java.lang.Throwable java.lang.Throwable.cause accessible: module java.base does not "opens java.lang" to unnamed module @45dab1cd

我卸载了Subclipse,重新启动了Eclipse,重新安装了Subsclipse,重新启动了Eclipse,出现了同样的错误。

是什么导致 Subclipse 失败?

更新2024-04-02

这是 Eclipse 的全新安装。这是

eclipse.ini
文件:

-startup
plugins/org.eclipse.equinox.launcher_1.6.700.v20240213-1244.jar
--launcher.library
C:\Users\mbmas_000\.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.900.v20240213-1244
-product
org.eclipse.epp.package.jee.product
-showsplash
C:\Users\mbmas_000\.p2\pool\plugins\org.eclipse.epp.package.common_4.31.0.20240307-1200
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclientjava
-Dosgi.requiredJavaVersion=17
[email protected]/eclipse-workspace
-Dosgi.dataAreaRequiresExplicitInit=true
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Declipse.e4.inject.javax.warning=false
-Dsun.java.command=Eclipse
-Xms256m
-Xmx2048m
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Djava.security.manager=allow
-Declipse.p2.max.threads=10
-Doomph.update.url=https://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/

这是日志文件:

!SESSION 2024-04-02 10:08:14.694 -----------------------------------------------
eclipse.buildId=4.31.0.20240307-1200
java.version=17.0.3.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.emf.ecore 2 0 2024-04-02 10:08:23.230
!MESSAGE Both 'org.eclipse.jst.j2ee.core' and 'org.eclipse.jst.j2ee.core' register a package for 'application.xmi'

!ENTRY ch.qos.logback.classic 1 0 2024-04-02 10:08:25.168
!MESSAGE Activated before the state location was initialized. Retry after the state location is initialized.

!ENTRY ch.qos.logback.classic 1 0 2024-04-02 10:08:31.980
!MESSAGE Logback config file: C:\Users\mbmas_000\workspace\.metadata\.plugins\org.eclipse.m2e.logback\logback.2.6.0.20240217-1525.xml

!ENTRY org.eclipse.mylyn.tasks.core 2 0 2024-04-02 10:08:46.314
!MESSAGE 
!SUBENTRY 1 org.eclipse.mylyn.tasks.core 2 0 2024-04-02 10:08:46.315
!MESSAGE Unable to read task, missing connector with kind "bugzilla"

!ENTRY org.eclipse.mylyn.tasks.core 2 0 2024-04-02 10:08:46.320
!MESSAGE 
!SUBENTRY 1 org.eclipse.mylyn.tasks.core 2 0 2024-04-02 10:08:46.320
!MESSAGE Unable to read task, missing connector with kind "bugzilla"

!ENTRY org.eclipse.egit.ui 2 0 2024-04-02 10:09:01.683
!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\mbmas_000'. 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.

!ENTRY org.eclipse.core.jobs 4 2 2024-04-02 10:09:44.062
!MESSAGE An internal error occurred during: "SVN Commit".
!STACK 0
java.lang.reflect.InaccessibleObjectException: Unable to make field private java.lang.Throwable java.lang.Throwable.cause accessible: module java.base does not "opens java.lang" to unnamed module @1e6dbdb1
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
    at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
    at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
    at org.tmatesoft.svn.core.javahl17.SVNClientImpl.getClientException(SVNClientImpl.java:1543)
    at org.tmatesoft.svn.core.javahl17.SVNClientImpl.commit(SVNClientImpl.java:504)
    at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.commit(AbstractJhlClientAdapter.java:339)
    at org.tigris.subversion.subclipse.core.commands.CheckinResourcesCommand$1.run(CheckinResourcesCommand.java:154)
    at org.tigris.subversion.subclipse.core.SVNProviderPlugin$6.run(SVNProviderPlugin.java:514)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2448)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2473)
    at org.tigris.subversion.subclipse.core.SVNProviderPlugin.run(SVNProviderPlugin.java:508)
    at org.tigris.subversion.subclipse.core.commands.CheckinResourcesCommand.run(CheckinResourcesCommand.java:119)
    at org.tigris.subversion.subclipse.core.SVNTeamProvider.checkin(SVNTeamProvider.java:132)
    at org.tigris.subversion.subclipse.ui.operations.CommitOperation.execute(CommitOperation.java:129)
    at org.tigris.subversion.subclipse.ui.operations.SVNOperation.run(SVNOperation.java:88)
    at org.eclipse.team.internal.ui.actions.JobRunnableContext.run(JobRunnableContext.java:155)
    at org.eclipse.team.internal.ui.actions.JobRunnableContext$ResourceJob.runInWorkspace(JobRunnableContext.java:83)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:43)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
eclipse subclipse
1个回答
0
投票

我找到了这个问题的根本原因并能够解决它。

根本原因已在此处完整记录 Subclipse 在 java 17 上失败

问题不在于 Subclipse;相反,它是与 SVNKit 一起使用的,它不是 Subclipse 的一部分。解决方案是让 Eclipse 安装最新版本的 SVNKit。最新版本已记录在此处 SVNKit

要让 Eclipse 安装最新版本,请从 Eclipse

Help > Install New Software...

Work with
字段中,输入
http://eclipse.svnkit.com/1.3.x
(检查 SVNKit 站点以确保这仍然是最新的 - 如果不是,请使用最新的),然后单击添加。

出现

Add Repository
对话框。
Location
字段将填充您之前输入的 URL。在
Name
字段中输入
org.tmatesoft.svn_1.3.8.eclipse.zip
(再次检查 SVNKit 站点以确保它仍然是最新的),然后继续安装并按照 Eclipse 的说明进行操作。

© www.soinside.com 2019 - 2024. All rights reserved.