svn导致Eclipse自动关闭的解决方法

[color=red]blog迁移至[/color]:[url=http://www.micmiu.com]http://www.micmiu.com[/url]

今天早上打开eclipse,svn更新项目时、或者刷新下原来的项目都会导致eclipse自动关闭,重启eclipse还是这样的问题 :( ,思来想去这两天没有改过任何设置。
想到eclipse有错误日志记录的,来到根目录下打开错误日志文件,类似[color=red]hs_err_pid4256.log[/color]这样的文件,内容如下:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0a68804c, pid=4256, tid=5388
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )
# Problematic frame:
# C [libapr-1.dll+0x804c]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

--------------- T H R E A D ---------------

Current thread (0x0887c000): JavaThread "Worker-1" [_thread_in_native, id=5388, stack(0x08ff0000,0x090f0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x015f7850, EBX=0x00000000, ECX=0x00000000, EDX=0x00000000
ESP=0x090e8b94, EBP=0x090e8ba0, ESI=0x008bfc88, EDI=0x00000000
EIP=0x0a68804c, EFLAGS=0x00010246

Top of Stack: (sp=0x090e8b94)
0x090e8b94: 00000000 008bfc88 015f7850 090eabcc
0x090e8ba4: 0a671f32 090eabc8 015f7850 00000000
0x090e8bb4: 00000000 00000000 008bfc88 015f7850
0x090e8bc4: 00000000 015f7850 00000000 015f7850
0x090e8bd4: 015f78f0 6eec84f1 015f7850 00000010
0x090e8be4: 6ee40000 6eec11f2 015f7850 015f78f0
0x090e8bf4: 6eec1210 6eec8610 015f7850 015f78a0
0x090e8c04: 015f7850 015f7850 00000001 003a0044

Instructions: (pc=0x0a68804c)
0x0a68803c: 89 55 10 53 8b 5d 14 56 57 85 db 75 03 8b 58 18
0x0a68804c: 8b 03 bf 01 00 00 00 3b c7 0f 82 1a 01 00 00 8b


Stack: [0x08ff0000,0x090f0000], sp=0x090e8b94, free space=3e2090e86c8k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libapr-1.dll+0x804c]
C [libapriconv-1.dll+0x1f32]
C [libapriconv-1.dll+0x1da4]
C [_tbl_simple.so+0x123b]
C [_tbl_simple.so+0x11c4]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.tigris.subversion.javahl.SVNClient.update([Ljava/lang/String;Lorg/tigris/subversion/javahl/Revision;ZZ)[J+0
j org.tigris.subversion.javahl.SVNClient.update(Ljava/lang/String;Lorg/tigris/subversion/javahl/Revision;Z)J+12
j org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(Ljava/io/File;Lorg/tigris/subversion/svnclientadapter/SVNRevision;Z)J+89
j org.tigris.subversion.subclipse.core.commands.UpdateResourcesCommand.run(Lorg/eclipse/core/runtime/IProgressMonitor;)V+94
j org.tigris.subversion.subclipse.ui.operations.UpdateOperation.execute(Lorg/tigris/subversion/subclipse/core/SVNTeamProvider;[Lorg/eclipse/core/resources/IResource;Lorg/eclipse/core/runtime/IProgressMonitor;)V+46
j org.tigris.subversion.subclipse.ui.operations.RepositoryProviderOperation.execute(Lorg/eclipse/core/runtime/IProgressMonitor;)V+142
j org.tigris.subversion.subclipse.ui.operations.SVNOperation.run(Lorg/eclipse/core/runtime/IProgressMonitor;)V+35
j org.eclipse.team.internal.ui.actions.JobRunnableContext.run(Lorg/eclipse/jface/operation/IRunnableWithProgress;Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+2
j org.eclipse.team.internal.ui.actions.JobRunnableContext$ResourceJob.runInWorkspace(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+9
j org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+37
j org.eclipse.core.internal.jobs.Worker.run()V+31
v ~StubRoutines::call_stub
。。。。。。


从日志的描述看,应该是svn引起的异常发生,这时想起了昨天下午公司因为server down了,我在本地临时搭建了Subversion服务端,估计就是本地安装subversion服务器改变了系统环境变量,和eclipse的svn的插件冲突引起jvm的崩溃。

[color=blue][b]网上搜到的一般解决方法是:[/b][/color]
把本地的subversion卸载掉,eclipse就恢复正常了

这个方法并不适合我当前的要求,后来搜索到了这篇文章:
[url=http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=900344]http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=900344[/url]
从这篇文章来看大致的解决方法有两种:
[list]
[*]将系统的环境变量 APR_ICONV_PATH改为APR_ICONV[color=red]1[/color]_PATH
[*][color=red]下载Subversion 1.4.3的zip包,将环境变量 APR_ICONV_PATH 指向解压后的 iconv文件夹[/color]
[/list]
我试了第一个方法,重新启动后eclipse又恢复正常了,subversion也能同时运行。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值