【问题标题】:Class not enhanced error类未增强错误
【发布时间】:2012-06-19 01:36:35
【问题描述】:

我一直在尝试修复这个错误:

{"exception":"Persistent class \"Class org.myapp.model.Account 确实 好像没有加强。您可能需要重新运行增强器并 检查输出中的错误。\" 数据库中没有表,但是 操作需要它。请检查规格 此类的元数据。"}

我已经尝试清理项目

这是我试图坚持的实体

@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Account implements Serializable {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    @Persistent
    private String username;
    @Persistent
    private String password;

    public Account() {

    }
    // Code omitted
}

我该如何解决这个问题?

【问题讨论】:

  • 来自“Enhancer”日志,这是错误:NoSuchMethodError: org.datanucleus.plugin.PluginManager

标签: java google-app-engine datanucleus


【解决方案1】:

检查两件事

你在 eclipse appengine 插件的“要增强的类列表”中有实体吗? 您的类路径中是否有多个 appengine sdk 库版本。

【讨论】:

  • 顺便说一句,我已经安装了 Eclipse Datanucleus 插件,你认为这有帮助吗?
  • 我已通过将 datanucleus-enhancer 添加到 maven POM 中修复了该错误。然而,另一个问题出现了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-05-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-09-17
相关资源
最近更新 更多