2011-01-04 1 views
1

라벨을 클릭했을 때 오류가 점점 오전는, 레이블, 내가 GWT 2.1 사용하고 여기에 부착 된 클릭 핸들러를 가지고 있으며, 문제는 IEGWT 라벨 클릭 핸들러 문제

스택 추적에 입니다 :

09:27:45.777 [ERROR] [biddingsystem] Uncaught exception escaped 
com.google.gwt.event.shared.UmbrellaException: One or more exceptions 
caught, see full set in UmbrellaException#getCauses 
    at 
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java: 
214) 
    at 
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java: 
103) 
    at 
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 
96) 
    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:107) 
    at 
com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java: 
116) 
    at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java: 
155) 
    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308) 
    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1264) 
    at sun.reflect.GeneratedMethodAccessor206.invoke(Unknown Source) 
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at 
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
    at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 
    at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 
157) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 
326) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 
207) 
    at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 
126) 
    at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 
561) 
    at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 
269) 
    at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 
91) 
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java) 
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) 
    at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source) 
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at 
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
    at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 
    at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 
157) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 
281) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 
531) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 
352) 
    at java.lang.Thread.run(Thread.java:662) 
Caused by: com.google.gwt.event.shared.UmbrellaException: One or more 
exceptions caught, see full set in UmbrellaException#getCauses 
    at 
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java: 
214) 
    at 
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java: 
103) 
    at 
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 
96) 
    at com.BiddingSystem.client.Presenter.SigninRegisterPresenter 
$1.onClick(SigninRegisterPresenter.java:50) 
    at 
com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java: 
54) 
    at 
com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1) 
    at 
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java: 
204) 
    at 
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java: 
103) 
    at 
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 
96) 
    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:107) 
    at 
com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java: 
116) 
    at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java: 
155) 
    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308) 
    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1264) 
    at sun.reflect.GeneratedMethodAccessor206.invoke(Unknown Source) 
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at 
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
    at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 
    at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 
157) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 
326) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 
207) 
    at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 
126) 
    at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 
561) 
    at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 
269) 
    at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 
91) 
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java) 
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) 
    at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source) 
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at 
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
    at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 
    at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 
157) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 
281) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 
531) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 
352) 
    at java.lang.Thread.run(Thread.java:662) 
Caused by: com.google.gwt.core.client.JavaScriptException: (Error): 
Invalid argument. 
number: -2147024809 
description: Invalid argument. 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 
237) 
    at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 
126) 
    at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 
561) 
    at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java: 
289) 
    at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java: 
107) 
    at com.google.gwt.dom.client.Element$.setPropertyInt$ 
(Element.java) 
    at com.google.gwt.user.client.DOM.setElementPropertyInt(DOM.java: 
1118) 
    at com.google.gwt.user.client.ui.FlexTable 
$FlexCellFormatter.setColSpan(FlexTable.java:78) 
    at com.BiddingSystem.client.View.LoginView.<init>(LoginView.java: 
61) 
    at com.BiddingSystem.client.ApplicationController 
$1.onSignIn(ApplicationController.java:110) 
    at 
com.BiddingSystem.client.event.SignInEvent.dispatch(SignInEvent.java: 
18) 
    at 
com.BiddingSystem.client.event.SignInEvent.dispatch(SignInEvent.java: 
1) 
    at 
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java: 
204) 
    at 
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java: 
103) 
    at 
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 
96) 
    at com.BiddingSystem.client.Presenter.SigninRegisterPresenter 
$1.onClick(SigninRegisterPresenter.java:50) 
    at 
com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java: 
54) 
    at 
com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1) 
    at 
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java: 
204) 
    at 
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java: 
103) 
    at 
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 
96) 
    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:107) 
    at 
com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java: 
116) 
    at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java: 
155) 
    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308) 
    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1264) 
    at sun.reflect.GeneratedMethodAccessor206.invoke(Unknown Source) 
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at 
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 
    at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 
    at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 
157) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 
326) 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 
207) 
    at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 
126) 
    at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 
561) 
    at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 
269) 
    at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 
91) 
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java) 
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) 
    at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source) 
    at 
+0

귀하의 원인은 스택 추적에 있으며 라벨 또는 클릭 핸들러와 관련이 없지만 colspan을 설정하는 것으로 보입니다. –

+0

코드를 추가 할 수 있습니까? 특히 SigninRegisterPresenter.java의 50 번째 라인 –

+0

@ykartal : 나는 단지 하나의 코드베이스에서 작업 할만큼 좋은 것을 알고 싶습니다. 즉, 서로 다른 바인딩을 통해 처리 할 수있을 정도로 브라우저 비 호환성을 고려하지 않습니다. 파이어 폭스와 크롬에서 영원한 것이지만, 문제는 인터넷 익스플로러에서만 발생합니다. – Noor

답변

1

*.gwt.xml 파일을 확인하십시오.
그리고 선 아래 모두 삭제는

<set-property name="user.agent" value="..anything.." /> 

작품이 시도하지 여전히 경우 등, 대신 파이어 폭스의 Internet Explorer에서

을 시도 project_name.gwt.xml

<set-property name="user.agent" value="ie6" /> 

에 선 아래 추가 암호;

com.google.gwt.user.client.ui.Label = new com.google.gwt.user.client.ui.Label("asdasd"); 
     l.addClickHandler(new ClickHandler() { 

      @Override 
      public void onClick(ClickEvent event) { 
       // TODO Auto-generated method stub 
       MessageBox.info("", "asd", null); 
      } 
     }); 
0

레이블 대신 HTML을 사용할 수 있습니다. 실제로 "클릭 가능한"구성 요소를 원할 경우 하이퍼 링크 또는 앵커 또는 하이퍼 링크가있는 단추 또는 HTML은 사용자에게 더 직관적이므로 더 이해할 수 있습니다.

+0

라벨 클릭 핸들러 작동, 라벨 대신 사용할 필요 없음 –