Both 'success' and 'failure' payload objects are null. This should never occur.

40 views
Skip to first unread message

noosy

unread,
Sep 20, 2010, 9:20:48 PM9/20/10
to gwtrpccommlayer
I was just wondering, I have a void return type for my RPC method and
it's resulting in this exception appearing in my log when I call it
using the gwtrpccommlayer library:

Failure in Asynch dispatch thread. java.lang.RuntimeException: Both
'success' and 'failure' payload objects are null. This should never
occur.
java.lang.RuntimeException: Both 'success' and 'failure' payload
objects are null. This should never occur.
at
com.seguedevelopment.gwtrpccommlayer.client.GwtRpcClientSideProxy
$AsynchCallBackRunnable.run(GwtRpcClientSideProxy.java:613)

Is there a reason why it is not appropriate to have a void return
type?

Thanks.

Dan Billings

unread,
Sep 27, 2010, 7:51:47 AM9/27/10
to gwtrpccommlayer
Thanks for reporting it. I'll give it a look.

http://code.google.com/p/gwtrpccommlayer/issues/detail?id=5

Dan Billings

unread,
Nov 5, 2010, 5:10:53 PM11/5/10
to gwtrpccommlayer
fixed in latest maven snapshot build
Message has been deleted

Dan Billings

unread,
Nov 8, 2010, 2:05:52 PM11/8/10
to gwtrpcc...@googlegroups.com
ahh, that's a bad dependency.  I had to compile my own version of Guice.  I'll get about fixing that ASAP.  It should download the dependency automatically.

And the goal you have to execute gwt hosted mode is "mvn war:exploded gwt:run."  I suspect that you don't have to execute war:exploded but I haven't figured out the correct configuration quite yet.



On Mon, Nov 8, 2010 at 1:00 PM, Jeff McHugh <jef...@gmail.com> wrote:
Hi Dan -

Excellent stuff, I've installed the Mercurial and Maven plugins for my Eclipse instance.
I have been able to take the latest code from
https://gwtrpccommlayer.googlecode.com/hg/
I then tried to execute some of the Maven tasks: "Meven test" and I get the following error (see below)
I looks like I need the Guice jar. A couple of questions:
  • Does/Should maven dowload this package directly for me (it seemed to do that for other dependencies)
  • Assuming I need to do this manually, can you provide me a link (so I know I have the correct version)
  • Which Maven task do I execute to start-up the GWT hosted mode environment?

 --- error form console --
[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building Gwt RPC Communication Layer 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Missing POM for com.google.inject:guice:jar:3.0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.536s
[INFO] Finished at: Mon Nov 08 13:56:01 EST 2010
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gwtrpccommlayer: Missing:
----------
1) com.google.inject:guice:jar:3.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.google.inject -DartifactId=guice -Dversion=3.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.google.inject -DartifactId=guice -Dversion=3.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
      1) com.googlecode:gwtrpccommlayer:pom:pom:0.0.1-SNAPSHOT
      2) com.google.inject:guice:jar:3.0

----------
1 required artifact is missing.

for artifact:
  com.googlecode:gwtrpccommlayer:pom:0.0.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MultipleArtifactsNotFoundException

-- 
Jeff McHugh
phone: (845) 765.0415
mobile: (646) 258.7828
website: www.seguedevelopment.com

Reply all
Reply to author
Forward
0 new messages