Archive for July 31st, 2008

h1

Journey to the west on youtube ユーチューブの西遊記

July 31, 2008

One of my good friends told me this: http://www.youtube.com/watch?v=fTaGhX7oob8

Even if you don’t know Chinese, you would understand if you read this story before…

私の友達が教えてくれました。 http://www.youtube.com/watch?v=fTaGhX7oob8

中国語を知らなくても、わかりますよ。

h1

Sorry Spring HTTP Invoker ごめんなさい

July 31, 2008

 

Continue to the previous blog. It was my bad. Initially, I thought it may be the issue with Swing, and then, I got pretty sure that the issue with Java proxy within another Java proxy, and finally, I found that some of domain classes are incompatible to the ones in server side. Since HTTP Invoker uses Java serialization, both client and server sides’ classes must be the same, but to make classes serializable at client side, I needed to update some of properties in the child domain. So, if only parent domain is sent, it works, but if it is with child domain, it died with error 500 due to local class version # difference in client and server sides. I was taking another way than HTTP Invoker and happened to find the local class version# difference. I really think that it saves my summer vacation!

 

前のブログの続き。問題は私が悪かったのです。最初は、Swingの関係からか、そして、それは、Java Proxyを2重に使っているからと、最後に、ドメインオブジェクトの、バージョンがクライアントとサーバーで違っていた。HTTP Invokerは、Javaのシリアライゼイションを使っているから、そのバージョンが一致しなくてはいけない。クライアント側で、オブジェクトをSerializableにするために、チャイルドドメインクラスのプロパーティを更新しなくてはいけなかった。だから、メインのドメインクラスだけで、テストした時は動いたけど、チャイルドを付け加えると、動かなくなった。たまたま、HTTP Invoker以外の方法をテストしている時に気づいた。ほんとうに、僕の夏休みを救うことができたと思う!