eclipse



eclipse 竟然出这么个错误:

Could not save master table to file '/home/apache/dev/workspaces/kepler/space1/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources'.

/home/apache/dev/workspaces/kepler/space1/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources (Permission denied)


org.eclipse.core.resources  这个文件居然变成root 用户的了




有时eclipse特别卡,占CPU 达100%,于是 kill掉,再打开,居然起不来了

查看日志 ,异常特别多,干脆不看了,找到所在目录 keper,把所有者全改成运行eclipse的用户,再启动就好了,权限真麻烦

10992 Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.jdt.internal.ui.JavaPlugin.start() of bundle org.ecl      ipse.jdt.ui.
10993         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
10994         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
10995         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
10996         at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
10997         at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:478)
10998         at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
10999         at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:109)
11000         ... 46 more
11001 Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
11002         at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
11003         at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
11004         at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:283)
11005         at org.eclipse.jface.resource.FontRegistry.<init>(FontRegistry.java:308)
11006         at org.eclipse.jface.resource.JFaceResources.getFontRegistry(JFaceResources.java:342)
11007         at org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:448)
11008         at org.eclipse.jdt.internal.ui.JavaPlugin.start(JavaPlugin.java:373)
11009         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
11010         at java.security.AccessController.doPrivileged(Native Method)
11011         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
11012         ... 52 more
11013 
11014 !ENTRY org.eclipse.osgi 4 0 2013-08-21 17:22:48.722
11015 !MESSAGE Application error
11016 !STACK 1
11017 java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jface.preference.PreferenceConverter
11018         at org.eclipse.ui.internal.themes.ThemeElementHelper.installFont(ThemeElementHelper.java:104)
11019         at org.eclipse.ui.internal.themes.ThemeElementHelper.populateRegistry(ThemeElementHelper.java:59)


又自己悄悄挂掉了

[apache@indigo ~]$ dev/tools/ide/kepler/eclipse/eclipse &
[2] 32071
[apache@indigo ~]$ SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
IMPLEMENT resolveForAllocation for class org.eclipse.wst.jsdt.internal.compiler.ast.ThisReference
[debug] execute contextualize
[debug] execute contextualize
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000003054614096, pid=32075, tid=139762659714816
#
# JRE version: 6.0_31-b04
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.6-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgobject-2.0.so.0+0x14096]  __float128+0x16
#
# An error report file with more information is saved as:
# /home/apache/hs_err_pid32075.log
[thread 139762515191552 also had an error]
#
# 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.
#




  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MyBatis 是一个 Java 框架,它结合了 SQL 查询和对象映射,用于简化持久层(Data Access Layer, DAL)的开发,特别是在与关系型数据库(如 MySQL、Oracle)交互时。在 Eclipse 中使用 MyBatis,你可以利用 Eclipse 的集成开发环境(Integrated Development Environment, IDE)的优势,如代码提示、自动完成、调试功能等。 以下是使用 MyBatis 在 Eclipse 中的一些关键步骤: 1. **安装 MyBatis Eclipse 插件**:首先确保你已经安装了 Eclipse,然后可以在 Eclipse 市场(Eclipse Marketplace)中搜索 "MyBatis" 或者访问 MyBatis 的官方网站下载适合你项目的插件。 2. **配置 MyBatis XML 映射文件**:在项目中创建 `mybatis-config.xml` 文件,用于配置全局的事务管理、数据源连接等信息。每个数据库表对应的 Mapper 接口文件中会包含具体的 SQL 映射。 3. **编写 Mapper 接口和 SQL 映射**:Mapper 接口定义了业务操作方法,每个方法对应数据库中的一个查询或操作。XML 文件(`.xml` 结尾)定义了如何将接口方法和 SQL 语句关联起来。 4. **调用 Mapper 接口的方法**:在业务代码中,通过 SqlSession 对象调用 Mapper 接口的方法,传递参数执行数据库操作。 5. **代码提示和自动完成**:Eclipse 集成了 MyBatis 的代码提示和自动完成功能,可以帮助开发者快速编写 SQL 和减少拼写错误。 6. **调试支持**:通过设置断点,可以在运行时查看 SQL 语句执行的结果,这对于调试和优化查询非常有帮助。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值