Ok now there is another error.. Now for CalendarUtil.addDaysToDate()  i
think...

SOURCE CODE:

SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
Date end_date = formatter.parse(prima_data);
CalendarUtil.addDaysToDate(end_date, 5);
String ultima_data = formatter.format(end_date);


LOG:

com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
abstract com.pannelli.controllo.shared.Ciclo_Produzione
com.pannelli.controllo.client.GreetingService.SQL_fasi_ciclo_per_tipologia(int,java.lang.String)
throws java.lang.Exception' threw an unexpected exception:
java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWTBridge
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
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:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:221)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:107)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:76)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:934)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:90)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:515)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1012)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:642)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1555)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError:
com/google/gwt/core/client/GWTBridge
at
com.google.gwt.user.datepicker.client.CalendarUtil.<clinit>(CalendarUtil.java:35)
at
com.pannelli.controllo.server.GreetingServiceImpl.SQL_fasi_ciclo_per_tipologia(GreetingServiceImpl.java:709)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
... 26 more
Caused by: java.lang.ClassNotFoundException:
com.google.gwt.core.client.GWTBridge
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1575)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1420)
... 33 more



On Fri, Feb 7, 2014 at 7:55 PM, Davide Micheletti
<d.michelett...@gmail.com>wrote:

> ok thanks.. i'll try your solution.. However sorry for my stupid questions
> but i'm a newby on GWT and java.. ;) The source Code at line 707 is
> something like this:
>
> SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
> String data = "04/02/2014";
> Date d = df.parse(data);
> ...
>
>
> On Fri, Feb 7, 2014 at 7:07 PM, Jens <jens.nehlme...@gmail.com> wrote:
>
>> com.pannelli.controllo.server.GreetingServiceImpl.SQL_fasi_c
>>> iclo_per_tipologia(GreetingServiceImpl.java:707)
>>> com.pannelli.controllo.server is the package of the server
>>> GreetingServiceImpl is the java class for the server
>>> SQL_fasi_ciclo_per_tipologia(GreetingServiceImpl.java:707)  is a
>>> function on the server who start at line 707
>>>
>>
>> :)) Thomas meant what source code is at that line 707.
>>
>>
>> I think you just have mistakenly chosen the wrong import of
>> SimpleDateFormat. gwt-user.jar contains com.ibm.icu.text.SimpleDateFormat
>> but gwt-user.jar will not be deployed on the server. I think you want to
>> change the import to java.text.SimpleDateFormat in your server side class.
>>
>> -- J.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to