google-code-export / gwt-dispatch

Automatically exported from code.google.com/p/gwt-dispatch
1 stars 0 forks source link

[ERROR] net.customware.gwt.dispatch.shared.Action<R> has no available instantiable subtypes. #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a new Web Application Project gvt1 with eclipse plugin (use GWT, 
use GAE)
2. copy gin-1.0.jar to \war\lib\
3. copy guice*.jar to \war\WEB-INF\lib\
4. copy gwt-dispatch-1.0.0.jar to \war\WEB-INF\lib
6. add libs to Java Build Path via project properties
6. add to gvt1.gwt.xml:
  <inherits name='com.google.gwt.inject.Inject' />
  <inherits name='net.customware.gwt.dispatch.Dispatch' />
6. add the following line in the entry point
    private final DispatchAsync dispatchAsync = GWT.create
(DefaultDispatchAsync.class);

What is the expected output? What do you see instead?
I expect it will compile without errors, but I get in the console:
   Scanning for additional dependencies: 
jar:file:/C:/Uwes/eclipse/workspace/gvt1/war/WEB-INF/lib/gwt-dispatch-
1.0.0.jar!/net/customware/gwt/dispatch/client/DefaultDispatchAsync.java
      Computing all possible rebind results 
for 'net.customware.gwt.dispatch.client.service.DispatchService'
         Rebinding 
net.customware.gwt.dispatch.client.service.DispatchService
            Invoking 
com.google.gwt.dev.javac.StandardGeneratorContext@12baaac
               Generating client proxy for remote service 
interface 'net.customware.gwt.dispatch.client.service.DispatchService'
                  [ERROR] net.customware.gwt.dispatch.shared.Action<R> has 
no available instantiable subtypes. (reached via 
net.customware.gwt.dispatch.shared.Action<?>)
                     [ERROR]    subtype 
net.customware.gwt.dispatch.shared.Action<R> is not instantiable
                     [ERROR]    subtype 
net.customware.gwt.dispatch.shared.BatchAction is not default instantiable 
(it must have a zero-argument constructor or no constructors at all) and 
has no custom serializer. (reached via 
net.customware.gwt.dispatch.shared.Action<?>)
                  [ERROR] net.customware.gwt.dispatch.shared.BatchAction 
is not default instantiable (it must have a zero-argument constructor or 
no constructors at all) and has no custom serializer. (reached via 
net.customware.gwt.dispatch.shared.Action<?>)
   [ERROR] Errors in 'jar:file:/C:/Uwes/eclipse/workspace/gvt1/war/WEB-
INF/lib/gwt-dispatch-
1.0.0.jar!/net/customware/gwt/dispatch/client/DefaultDispatchAsync.java'
      [ERROR] Line 21:  Failed to 
resolve 'net.customware.gwt.dispatch.client.service.DispatchService' via 
deferred binding
   [ERROR] Cannot proceed due to previous errors

What version of the product are you using? On what operating system?
- windows xp
- java 1.6
- eclipse galileo
- GWT 2.0.0
- GAE 1.3.0

Please provide any additional information below.
a zip file can be 

Original issue reported on code.google.com by uwe.he...@gmail.com on 2 Mar 2010 at 12:31

Attachments:

GoogleCodeExporter commented 9 years ago
Hi there,

This was a bug in 1.0 which has been resolved in the trunk for 1.1. BatchAction 
is now actually serializable.

Original comment by Bitmei...@gmail.com on 28 Apr 2010 at 2:57