You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RestyGWT
Hi,
has anybody issue with generating "target\.generated\java\lang
\Void_Generated_JsonEncoderDecoder_.java" during compile resrtGwt ?
It produces anoying error with Void constructor. But why this class is
even generated ?
[INFO] Computing all possible rebind results for
'pl.mdk.gwt.library.client.rest.RestLibraryService'
[INFO] Rebinding
pl.mdk.gwt.library.client.rest.RestLibraryService
[INFO] Invoking generator
org.fusesource.restygwt.rebind.RestServiceGenerator
[INFO] Generating:
pl.mdk.gwt.library.client.rest.RestLibraryService_Generated_RestServiceProxy_
[INFO] Generating:
pl.mdk.gwt.domain.client.Library_Generated_JsonEncoderDecoder_
[INFO] type encoder for: class
pl.mdk.gwt.domain.client.LibraryItem is pl.mdk.gwt.domain.c
lient.LibraryItem_Generated_JsonEncoderDecoder_.INSTANCE
[INFO] type encoder for: class
pl.mdk.gwt.domain.client.LibraryItem is pl.mdk.gwt.domain.c
lient.LibraryItem_Generated_JsonEncoderDecoder_.INSTANCE
[INFO] [ERROR] Errors in 'd:\git\cipeb\war\target\.generated\java
\lang\Void_Generated_JsonEncoderDecoder_.java'
[INFO] [ERROR] Line 18: The constructor Void() is not visible
Mateusz Daleki
unread,
Apr 4, 2012, 7:52:56 AM4/4/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RestyGWT
Found the problem:
public interface MyService extends RestService {
@Path("/create")
@POST
public void create(Void request, MethodCallback<Void> callback);
kristian
unread,
Apr 4, 2012, 7:57:06 AM4/4/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rest...@googlegroups.com
problem solved ?
Mateusz Daleki
unread,
Apr 4, 2012, 8:10:55 AM4/4/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RestyGWT
Yes,
can't use Void in restService method signature. It will generete codec
for Void which has not public constructor. Replace this with specific
correct class solve problem.
thanks
On 4 Kwi, 13:57, kristian <m.krist...@web.de> wrote:
> problem solved ?
kristian
unread,
Apr 4, 2012, 9:02:28 AM4/4/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rest...@googlegroups.com
just in case you also can use something like that
@Path("/ping") public void ping(MethodCallback<Void> callback);
but I guess you wanted to something to server which gets created :)
- Kristian
Mateusz Daleki
unread,
Apr 4, 2012, 9:06:42 AM4/4/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RestyGWT
True, good point. I just missed this place in my code :) Heh, of
course wanted to pass smth better :)