Thursday, November 15, 2012

Re: Master/Slaveでは正常動作の処理がHRDでは動作しない

Thank you for your kind reply.

Both applications are exactly same and on the same code base,
as I deployed same project only rewriting application and version tag of    
appengine-web.xml. And so surely talk to the same Cloud SQL instance.

1. I deployed more simple project, means with no related sub-screens, but
  result is same.

(1) Master/Slave

http://erp2-ondev.swsgaejpgm3.appspot.com/addOrdCal.htm

(2)
 HRD

http://1.bizcloudsql.appspot.com/addOrdCal.htm


2. HRD outputs warning and critical logs as below even master/slave outputs no such logs.

   

[W] /ordersvlt java.lang.NullPointerException at com.business.orderBean.getCustInfo(orderBean.java:58) at com.business.orderSvlt.doGet(orderSvlt.java:24

[C] Uncaught exception from servlet java.lang.NullPointerException at com.business.orderBean.getCustInfo(orderBean.java:58) at com.business.orderSvlt.do

 
I want to transfer from Master/Slave to HRD but this problem inhibits.

Regards. 

Katsuyuki Seino.


On Fri, Nov 16, 2012 at 9:51 AM, Tony Tseng <ttt@google.com> wrote:
Hi,
There's no functional difference between master/slave and hrd applications as far as Cloud SQL is concerned. Actually master/slave application association is deprecated; you won't be able to associate a Cloud SQL instance with a master/slave application anymore. I don't know why your applications would return different data. Are you sure they are talking to the same Cloud SQL instance and both applications are on the same code base?


2012/11/15 katsuyuki seino <superelmer21@gmail.com>
Sorry I rewrote as below.

My name is Katsuyuki seino.
On my sample using Cloud SQL ,I got problem as below.

The Cloud SQL application which execute without problem on Master/Slave has problem
on HRD environment.


Above (1) and (2) are same application using Cloud SQL.
(1) If you enter 'c0001' on top field right side of [
顧客ID](Customer ID), other fields (TEL..) will show customer info.
(2) Same application with (1)  only differ High Replication is selected, do not show customer info   
on same operation (enter 'c0001' on top field)

My understanding is Cloud SQL don't care about Master/Slave or HRD but result is like above.
Are there any recommendation to use Master/Slave when access Cloud SQL.

Regards.


2012/11/15 Văn Trường Phạm <invncur@gmail.com>

I can't understand you. Do you can write with english or vietnamese?
Vào Thứ năm, ngày 15 tháng mười một năm 2012, katsuyuki seino đã viết:

お世話になります、清野 克行といいます。

My Applicationsの1つをHRDにして
それまで、Master/Slaveで動作していた CloudSQLをアクセスするProjectを
AppEngine にディプロイしたところ、正常動作しないようになっています。

(1) Master/Slave
http://1.bizcloudsql.appspot.com/addOrdDtl.htm

上記同一サンプルで 「顧客ID」に 「c0001」 を入力すれば、TEL以下の顧客情報
が(1)では表示されるが(2)では表示されません。
Cloud SQLを使用する場合、HRDを選択したApplicationではなにか制限があるのでしょうか。
あるいはCloud SQLの場合はMaster/Slaveを選択すべきでしょうか。
どちらにしてもDetastoreは使用していなので、HRDとMaster/Slave自身は関係ないと思いますが。


お返事、よろしくお願いします。

 




No comments:

Post a Comment