こんにちは、Google App Engine の実装を見ましたが、XStream
まだ取得中です
「引数のないコンストラクターがないため、[クラス] を構築できません」
@Test
public void testNoNoArgs() {
Car car = new Car(1, "Blue");
XStream xstream = new XStreamGae();
String s = xstream.toXML(car);
Car c = (Car) xstream.fromXML(s);
}
完全なスタック トレースはこちら: http://pastebin.com/TGF6N17W
私のアプリケーションの XStream 関連の依存関係は次のとおりです。
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.2</version>
</dependency>
<dependency>
<groupId>xpp3</groupId>
<artifactId>xpp3_min</artifactId>
<version>1.1.4c</version>
</dependency>
<!-- XStreamGae Dependencies -->
<dependency>
<groupId>net.sf.kxml</groupId>
<artifactId>kxml2-min</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>xmlpull</groupId>
<artifactId>xmlpull</artifactId>
<version>1.1.3.1</version>
</dependency>
クラスは次のXStreamGae
場所にあります。
http://www.wappworks.com/2011/11/11/using-xstream-with-google-app-engine/
この回避策を機能させるための回避策はありますか?