次のメソッドで CookieProvider の値を取得しようとしています。
public void getValue(){
StateManager.get().get("idReg", String.class, new Callback<String, Throwable>() {
public void onFailure(Throwable reason) {
state = "";
}
public void onSuccess(String result) {
state = result;
});
}
次の例外を発行しました。
java.lang.NullPointerException at
com.google.web.bindery.autobean.gwt.client.impl.JsniCreatorMap$.create$(JsniCreatorMap.java:44)
at com.google.web.bindery.autobean.gwt.client.impl.AbstractAutoBeanFactory.
create(AbstractAutoBeanFactory.java:38) at
com.sencha.gxt.state.client.StateManager.getDefaultStateInstance(StateManager.java:90)
at com.sencha.gxt.state.client.StateManager$1.onSuccess(StateManager.java:73)
at com.sencha.gxt.state.client.StateManager$1.onSuccess(StateManager.java:1)
at com.sencha.gxt.state.client.CookieProvider.getValue(CookieProvider.java:54)
at com.sencha.gxt.state.client.StateManager.get(StateManager.java:64)
at com.rfrate.exrate.client.NorthComponent.setComboValue(NorthComponent.java:46)
at com.rfrate.exrate.client.NorthComponent.asWidget(NorthComponent.java:102)
at com.google.gwt.user.client.ui.Widget.asWidgetOrNull(Widget.java:46)
at com.sencha.gxt.widget.core.client.container.Container.add(Container.java:72)
at com.rfrate.exrate.client.ExRate.createNorth(ExRate.java:52)
at com.rfrate.exrate.client.ExRate.onModuleLoad(ExRate.java:97) ... 9 more
Cookie の可変文字列値を読み書きするコードの例を誰か教えてください。