2012/10/12

GAE の JDO で ClassNotPersistenceCapableException

 
GoogleAppEngine で JDO を久しぶりに使おうとしたら、
 
ClassNotPersistenceCapableException: The class "The class "xxx" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found." is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data for the class is not found.
 
と怒られた。手元の Eclipse 3.5 で何回クリーンしてもダメ。パッケージを更新
してもダメ。
 
PersistenceManager で pm.makePersistent(…); したいだけなのに。
 
仕方ないので Eclipse を 3.7 にして、そっちでビルドするとすんなり実行できた。
たぶん Eclipse の依存関係がバグったのが原因。
gae_setting
 
なぜか、SDK が App Engine(1) 1.7.2 とかになってるんだぜ。
カッコなんかつかないだろう…普通に考えて。
 
ちなみに他の環境での Eclipse3.5 では問題なく JDO いけた。
Eclipse って 2012 年のこの時代になっても、まだ安定してないのかよ。
 
以前、ソフトウェアの更新を行って、あまりに遅かったのでキャンセルとたの
影響あったかもしれない。プログラム以外でハマルのは、正直疲れる。

0 件のコメント:

コメントを投稿