Hi
Does Roo GWT support --inheritanceType flag?
This works fine without using gwt setup.
Is it planned on the road map if its not supported?
project --topLevelPackage com.example
persistence setup --provider HIBERNATE --database MYSQL
database properties set --key database.password --value password
database properties set --key database.username --value username
database properties set --key database.url --value jdbc:mysql://
localhost:3306/testinheritance
entity --class ~.server.domain.Shape --inheritanceType TABLE_PER_CLASS
entity --class ~.server.domain.Square --extends ~.server.domain.Shape
--testAutomatically
entity --class ~.server.domain.Circle--extends ~.server.domain.Shape --
testAutomatically
field number --fieldName area --class ~.server.domain.Shape
field number --fieldName volumn
gwt setup
logging setup --level INFO
perform eclipse
It creates the correct domain classes with all the correct annotations
@RooJavaBean
@RooToString
@RooEntity
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class Shape {
.....
}
When I try to save a Square, I get this exception...any help is
appreciated.
[INFO] 2010-10-19 08:09:04,656 [main] INFO
org.springframework.web.servlet.handler.SimpleUrlH andlerMapping -
Root mapping to handler of type [class org.springframework.web.serv
let.mvc.ParameterizableViewController]
[INFO] 2010-10-19 08:09:04,734 [main] INFO
org.springframework.web.servlet.DispatcherServlet - FrameworkServlet
'example': initialization completed in 1047 ms
[ERROR] Oct 19, 2010 8:12:45 AM
com.google.gwt.requestfactory.server.RequestFactor yServlet doPost
[ERROR] SEVERE: Unexpected error
[ERROR] com.google.gwt.requestfactory.server.RequestProces
singException: Unexpected exception
[ERROR] at com.google.gwt.requestfactory.server.JsonRequestPr
ocessor.decodeAndInvokeRequest(JsonRequestProcesso r.java:242)
[ERROR] at com.google.gwt.requestfactory.server.JsonRequestPr
ocessor.decodeAndInvokeRequest(JsonRequestProcesso r.java:62)
[ERROR] at com.google.gwt.requestfactory.server.RequestFactor
yServlet.doPost(RequestFactoryServlet.java:122)
[ERROR] at javax.servlet.http.HttpServlet.service(HttpServlet .java:
727)
[ERROR] at javax.servlet.http.HttpServlet.service(HttpServlet .java:
820)
[ERROR] at org.mortbay.jetty.servlet.ServletHolder.handle(Ser
vletHolder.java:487)
[ERROR] at org.mortbay.jetty.servlet.ServletHandler$CachedCha
in.doFilter(ServletHandler.java:1097)
[ERROR] at org.springframework.web.filter.HiddenHttpMethodFil
ter.doFilterInternal(HiddenHttpMethodFilter.java:7 7)
[ERROR] at org.springframework.web.filter.OncePerRequestFilte
r.doFilter(OncePerRequestFilter.java:76)
[ERROR] at org.mortbay.jetty.servlet.ServletHandler$CachedCha
in.doFilter(ServletHandler.java:1088)
[ERROR] at org.springframework.web.filter.CharacterEncodingFi
lter.doFilterInternal(CharacterEncodingFilter.java :88)
[ERROR] at org.springframework.web.filter.OncePerRequestFilte
r.doFilter(OncePerRequestFilter.java:76)
[ERROR] at org.mortbay.jetty.servlet.ServletHandler$CachedCha
in.doFilter(ServletHandler.java:1088)
[ERROR] at org.springframework.orm.jpa.support.OpenEntityMana
gerInViewFilter.doFilterInternal(OpenEntityManager InViewFilter.java:
113)
[ERROR] at org.springframework.web.filter.OncePerRequestFilte
r.doFilter(OncePerRequestFilter.java:76)
[ERROR] at org.mortbay.jetty.servlet.ServletHandler$CachedCha
in.doFilter(ServletHandler.java:1088)
[ERROR] at org.mortbay.jetty.servlet.ServletHandler.handle(Se
rvletHandler.java:360)
[ERROR] at
org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:
216)
[ERROR] at org.mortbay.jetty.servlet.SessionHandler.handle(Se
ssionHandler.java:181)
[ERROR] at org.mortbay.jetty.handler.ContextHandler.handle(Co
ntextHandler.java:729)
[ERROR] at org.mortbay.jetty.webapp.WebAppContext.handle(WebA
ppContext.java:405)
[ERROR] at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha
ndlerWrapper.java:152)
[ERROR] at org.mortbay.jetty.handler.RequestLogHandler.handle
(RequestLogHandler.java:49)
[ERROR] at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha
ndlerWrapper.java:152)
[ERROR] at org.mortbay.jetty.Server.handle(Server.java:324)
[ERROR] at org.mortbay.jetty.HttpConnection.handleRequest(Htt
pConnection.java:505)
[ERROR] at org.mortbay.jetty.HttpConnection$RequestHandler.co
ntent(HttpConnection.java:843)
[ERROR] at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:
647)
[ERROR] at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa
rser.java:211)
[ERROR] at org.mortbay.jetty.HttpConnection.handle(HttpConnec
tion.java:380)
[ERROR] at org.mortbay.io.nio.SelectChannelEndPoint.run(Selec
tChannelEndPoint.java:395)
[ERROR] at org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.java:488)
[ERROR] Caused by: java.lang.IllegalArgumentException: Unknown
operation com.example.client.managed.request.SquareRequest:: persist
[ERROR] at com.google.gwt.requestfactory.server.JsonRequestPr
ocessor.getOperation(JsonRequestProcessor.java:702 )
[ERROR] at com.google.gwt.requestfactory.server.JsonRequestPr
ocessor.processJsonRequest(JsonRequestProcessor.ja va:844)
[ERROR] at com.google.gwt.requestfactory.server.JsonRequestPr
ocessor.decodeAndInvokeRequest(JsonRequestProcesso r.java:232)
[ERROR] ... 31 more
Spring Roo supports --inheritanceType flag, but does Roo GWT or is it
on the road map.
[ERROR] Caused by: java.lang.IllegalArgumentException: Cannot fetch
unpersisted entity
[ERROR] at
com.google.gwt.requestfactory.client.impl.AbstractRequestFactory.find(AbstractRequestFactory.java:
103)
[ERROR] at
com.example.client.managed.activity.SquareDetailsActivity.start(SquareDetailsActivity.java:
106)
[ERROR] at
com.google.gwt.activity.shared.ActivityManager.onPlaceChange(ActivityManager.java:
161)
[ERROR] at
com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:
57)
[ERROR] at
com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:
1)
[ERROR] at
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
204)
[ERROR] at
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
103)
[ERROR] at
com.google.gwt.place.shared.PlaceController.goTo(PlaceController.java:
120)
[ERROR] at
com.example.client.scaffold.place.AbstractProxyEditActivity.exit(AbstractProxyEditActivity.java:
134)
[ERROR] at
com.example.client.scaffold.place.CreateAndEditProxy.exit(CreateAndEditProxy.java:
44)
[ERROR] at
com.example.client.scaffold.place.AbstractProxyEditActivity
$1.onSuccess(AbstractProxyEditActivity.java:97)
[ERROR] at
com.example.client.scaffold.place.AbstractProxyEditActivity
$1.onSuccess(AbstractProxyEditActivity.java:1)
[ERROR] at
com.google.gwt.requestfactory.client.impl.AbstractRequestContext
$4.onTransportSuccess(AbstractRequestContext.java:394)
[ERROR] at
com.google.gwt.requestfactory.client.DefaultRequestTransport
$1.onResponseReceived(DefaultRequestTransport.java:140)
[ERROR] at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
[ERROR] at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[ERROR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
[ERROR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
[ERROR] at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
326)
[ERROR] at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
207)
[ERROR] at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
[ERROR] at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
562)
[ERROR] at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
[ERROR] at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
[ERROR] at
com.google.gwt.core.client.impl.Impl.apply(Impl.java)
[ERROR] at
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
[ERROR] at
sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
[ERROR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
[ERROR] at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
[ERROR] at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
[ERROR] at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
[ERROR] at java.lang.Thread.run(Thread.java:619)
[ERROR] Oct 19, 2010 8:25:42 AM
com.google.gwt.requestfactory.server.RequestFactoryServlet doPost
[ERROR] SEVERE: Unexpected error
[ERROR]
com.google.gwt.requestfactory.server.RequestProcessingException:
Unexpected exception
[ERROR] at
com.google.gwt.requestfactory.server.JsonRequestProcessor.decodeAndInvokeRequest(JsonRequestProcessor.java:
238)
[ERROR] at
com.google.gwt.requestfactory.server.JsonRequestProcessor.decodeAndInvokeRequest(JsonRequestProcessor.java:
62)
[ERROR] at
com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:
122)
[ERROR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
[ERROR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
simon
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.