big Double accessor method and editor binding

24 views
Skip to first unread message

vinnyjames

unread,
Oct 19, 2012, 12:25:54 AM10/19/12
to google-we...@googlegroups.com
Is it possible to use big Double objects for accessor methods in conjunction with a BeanEditor implements Editor<Bean> ?

With the code below it works in Eclipse but when deployed to Tomcat I get a NoSuchMethodError (see below)

class Bean {
Double foo = null;
public void setFoo(Double foo) {
this.foo = foo;
}
public Double getFoo() {
return foo;
}
}

The BeanEditor uses a home-grown DoubleEditor tied to a TextBox:

@UiField
@Editor.Ignore
public TextBox foo = new TextBox();
public DoubleEditor fooEditor = new DoubleEditor(foo);

And the DoubleEditor has a getValue and setValue that is tied to the TextBox:

public class DoubleEditor implements LeafValueEditor<Double>{

Here's the exception in tomcat's localhost.log:

Oct 18, 2012 8:59:07 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void foo.client.service.PartService.updateBreakerDef(foo.shared.model.parts.BreakerDef) throws foo.shared.QException' threw an unexpected exception: java.lang.NoSuchMethodError: foo.shared.model.parts.BreakerDef.getRawCost()D
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoSuchMethodError: foo.shared.model.parts.BreakerDef.getRawCost()D
at foo.server.db.BreakerDefDB.update(BreakerDefDB.java:99)
at foo.server.PartServiceImpl.updateBreakerDef(PartServiceImpl.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
... 17 more

Any ideas?
Reply all
Reply to author
Forward
0 new messages