Push error on Vaadin 7.3.0.beta1

I’m trying to upgrade to Vaadin 7.3.0.beta1, but i got this error:

org.json.JSONException: JSONObject[“rpc”]
not a string.

My code works on 7.2.6

Full Log: http://pastebin.com/qgREU8dG

Hi, could you check that you have an up-to-date widgetset and vaadinPush.js (no stale versions in browser cache etc.)?


I’m having the same problem, plus any click on the UI will immediatly refresh the whole page.
This only happens on my integration server (debian, Wildfly 8.1, jdk 1.8_11).

Everything runs butter-smooth on my dev box (OSX Mavericks, Wildfly 8.1, jdk 1.8_11).

Faulty app can be tested here: http://ages.adms.io:8080/nexus-1.0-SNAPSHOT/

Hi Antoine, thank you for the test app. Could you set production mode to false to allow opening the client-side debug window?

Please also check that all jars on the server are up-to-date versions and there are no duplicate old versions accidentally deployed.

Done and done!

Log link: http://ages.adms.io:8042/log

All right, I think I figured it out. The problem seems to be a classpath conflict between the org.json version we use and some newer version that seems to be also deployed on your server. It’s not related to push as far as I can see. Vaadin 7.2 used Google’s rebased org.json but we returned to plain org.json due to incompatibilities - but now it seems we just replaced one set of incompatibilities with another :frowning: However, the particular piece of Vaadin code should be easy to change so that it’s compatible with all versions.

Ticket 14471


from http://central.maven.org/maven2/com/vaadin/vaadin-shared/7.2.6/vaadin-shared-7.2.6.pom

<dependency> <groupId>com.vaadin.external.google</groupId> <artifactId>android-json</artifactId> <version>0.0.20131108.vaadin1</version> <scope>compile</scope> </dependency>



Fixed in 7.3.0.rc1, thanks for the reports!

Thankls for the fix!

Can’t wait for RC1 :).

Yess, it works