The extra steps I had to go through to get the annotation processor to run were to remove all the m2e (and everything provided by "Sonatype, Inc") components from my Eclipse install, and then to a clean re-install of the "Maven Integration for WTP" package and all of its dependencies. The different versions of the Maven integration plugins were fighting with each other.
I don't know if that will help your problem or not, but it might help out anyone who sees this error on a SpringSource STS + GWT + Maven project.
---------------------------------------------------
Eric Andresen
On Sun, Oct 2, 2011 at 4:29 PM, TULC <evan.a.terry@gmail.com> wrote:
I just get the same error as posted by Eric at the beginning of the
thread, but I have copied/pasted the full dump below.
Thomas, I'm not sure what you mean about the .apt_generated being in
my build path?
Thanks for the help, guys...
Evan
Console:
log4j:WARN No appenders could be found for logger
(org.apache.jasper.compiler.Js
pRuntimeContext).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
for more in
fo.
03/10/2011 8:24:49 AM
com.google.web.bindery.requestfactory.server.RequestFactor
yServlet doPost
SEVERE: Unexpected errore com.google.gwt.sample.dynatablerf.shared.DynaTableRequestFactory
java.lang.RuntimeException: The RequestFactory ValidationTool must be
run for th
RequestFactor
y type
at com.google.web.bindery.requestfactory.vm.impl.Deobfuscator
$Builder.load(Deob
fuscator.java:59)
at
com.google.web.bindery.requestfactory.server.ResolverServiceLayer.updateDeob
fuscator(ResolverServiceLayer.java:43)
at
com.google.web.bindery.requestfactory.server.ResolverServiceLayer.resolveReq
uestFactory(ResolverServiceLayer.java:176)
at
com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRe
questFactory(ServiceLayerDecorator.java:172)
at
com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRe
questFactory(ServiceLayerDecorator.java:172)
at
com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.resolveRe
questFactory(ServiceLayerDecorator.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.web.bindery.requestfactory.server.ServiceLayerCache.getOrCache(Se
rviceLayerCache.java:233)
at
com.google.web.bindery.requestfactory.server.ServiceLayerCache.resolveReques
tFactory(ServiceLayerCache.java:198)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(
SimpleRequestProcessor.java:207)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(
SimpleRequestProcessor.java:127)
at
com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(Re
questFactoryServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler
.java:1097)
at
com.google.gwt.sample.dynatablerf.server.SchoolCalendarService.doFilter(Scho
olCalendarService.java:89)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler
.java:1088)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
360)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49
)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:
843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488
)
[ERROR] 500 - POST /gwtRequest (127.0.0.1) 1420 bytes
Request headers
Host: 127.0.0.1:8888
Connection: keep-alive
Content-Length: 163
Origin: http://127.0.0.1:8888
X-GWT-Permutation: HostedMode
pageurl: http://127.0.0.1:8888/DynaTableRf.html?gwt.codesvr=127.0.0.1:9997
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.2
(KHTML, like Ge
cko) Chrome/15.0.854.0 Safari/535.2
Content-Type: application/json; charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:8888/DynaTableRf.html?gwt.codesvr=127.0.0.1:9997
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,en-AU;q=0.6
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: Favorites=
Response headers
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1420
Mon Oct 03 08:24:50 EST 2011 WireActivityLogger
SEVERE: Server Error 500 <html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"/>
<title>Error 500 INTERNAL_SERVER_ERROR</title>
</head>
<body><h2>HTTP ERROR: 500</h2><pre>INTERNAL_SERVER_ERROR</pre>
<p>RequestURI=/gwtRequest</p><p><i><small><a href="http://
jetty.mortbay.org/">Po
wered by Jetty://</a></small></i></p><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
</html>
Development Mode window (also wired to console by default in
DynaTableRf sample):
Mon Oct 03 08:24:50 EST 2011
com.google.gwt.sample.dynatablerf.client.DynaTableR
f
SEVERE: One or more exceptions caught, see full set in
UmbrellaException#getCaus
es
com.google.web.bindery.event.shared.UmbrellaException: One or more
exceptions ca
ught, see full set in UmbrellaException#getCauses
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fai
l(AbstractRequestContext.java:727)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$5.o
nTransportFailure(AbstractRequestContext.java:1104)
at
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
$1.o
nResponseReceived(DefaultRequestTransport.java:140)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilde
r.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39
)
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
:172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFor
Return(BrowserChannelServer.java:337)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChanne
lServer.java:218)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136
)
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.ja
va:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39
)
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
:172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannel
Server.java:292)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChann
elServer.java:546)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Server Error 500 <html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"/>
<title>Error 500 INTERNAL_SERVER_ERROR</title>
</head>
<body><h2>HTTP ERROR: 500</h2><pre>INTERNAL_SERVER_ERROR</pre>
<p>RequestURI=/gwtRequest</p><p><i><small><a href="http://
jetty.mortbay.org/">Po
wered by Jetty://</a></small></i></p><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
</html>
at
com.google.web.bindery.requestfactory.shared.Receiver.onFailure(Receiver.jav
a:44)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequest.onFail(Abs
tractRequest.java:118)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fai
l(AbstractRequestContext.java:707)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$5.o
nTransportFailure(AbstractRequestContext.java:1104)
at
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
$1.o
nResponseReceived(DefaultRequestTransport.java:140)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilde
r.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39
)
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
:172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFor
Return(BrowserChannelServer.java:337)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChanne
lServer.java:218)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136
)
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.ja
va:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39
)
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
:172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannel
Server.java:292)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChann
elServer.java:546)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Thread.java:619)
> 2011/10/1 TULC <evan.a.te...@gmail.com>
On Oct 1, 6:48 pm, Jonas Zumkehr <jonas.zumk...@gmail.com> wrote:
> When you run the application, you should get errors in the "Development
> Mode" or "Console" Tabs. Can you post them?
> You get there some good hints where to look for the problem.
>
>
>
>
>
>
>
>
> > I had also assumed the verbose=false line wasn't necessary, but
> > unfortunately even with that option I still get the same error. My
> > steps are:
>
> > - enable project specific settings (Java Compiler/Annotation
> > Processing)
> > - enable annotation processing
> > - enable processing in editor
> > - .apt_generated is already listed as the generated source directory
> > - add verbose=false processor option
> > - enable project specific settings (Java Compiler/Annotation
> > Processing/Factory Path)
> > - add C:\Program Files\Eclipse\Indigo\plugins
>
> > \com.google.gwt.eclipse.sdkbundle_2.4.0.r37v2011083017107\gwt-2.4.0\request factory-
> > apt.jar
> > - debug as Web Application
>
> > I got quite excited when I read your reply, despite how dumb I would
> > feel if that was all it took to fix the problem... I just can't quite
> > work out what I'm doing wrong!
>
> > Thanks for your help,
> > Evan
>
> > On Sep 23, 5:03 pm, Jonas <jonas.zumk...@gmail.com> wrote:
> > > Hi,
>
> > > this Wiki entry helped me to solve the problem:
> >http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterf...
> > > Do exactly what is shown in the printscreens and it should work.
>
> > > If it's not working tell exactly what you did. I almost got crazy and did
> > > see that they added verbose=false to "Annotation Processing". I thought
> > this
> > > isn't necessary as they didn't mention it in the text. I was wrong.
>
> > > Jonas
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment