Skip to content
This repository has been archived by the owner on Aug 13, 2018. It is now read-only.

Broken web app example #2

Open
sscarduzio opened this issue Jun 20, 2013 · 1 comment
Open

Broken web app example #2

sscarduzio opened this issue Jun 20, 2013 · 1 comment

Comments

@sscarduzio
Copy link

I can't get the example working, I'm using the master checkout of Vert.x and of this repo.
The examples are using a non existing method.

0.06 21:09:29 euler:/tmp/vertx-examples/src/main/modules/ruby/webapp $ ~/vert.x/build/vert.x-2.0.0-CR2-SNAPSHOT/bin/vertx runmod io.vertx~example-web-app~1.0
Downloading io.vertx~lang-jruby~2.0.0-CR1. Please wait...
Downloading 100%
Module io.vertx~lang-jruby~2.0.0-CR1 successfully installed
Unexpected exception in Ruby verticle
java.lang.NoSuchMethodError: org.vertx.java.core.shareddata.SharedData.getMap(Ljava/lang/String;)Ljava/util/concurrent/ConcurrentMap;
    at org.vertx.mods.web.StaticFileHandler.<init>(StaticFileHandler.java:59)
    at org.vertx.mods.web.WebServerBase.staticHandler(WebServerBase.java:118)
    at org.vertx.mods.web.WebServerBase.start(WebServerBase.java:74)
    at org.vertx.java.platform.impl.DefaultPlatformManager$18.run(DefaultPlatformManager.java:1256)
    at org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:170)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:353)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:365)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    at java.lang.Thread.run(Thread.java:722)

And this is Python

0.06 21:09:29 euler:/tmp/vertx-examples/src/main/modules/python/webapp $ ~/vert.x/build/vert.x-2.0.0-CR2-SNAPSHOT/bin/vertx runmod io.vertx~example-web-app~1.0
Downloading io.vertx~lang-jython~2.0.0-CR1. Please wait...
Downloading 100%
Module io.vertx~lang-jython~2.0.0-CR1 successfully installed
A task raised an exception.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1911)
    at org.vertx.java.platform.impl.JythonVerticleFactory.reportException(JythonVerticleFactory.java:81)
    at org.vertx.java.platform.impl.VerticleHolder.reportException(VerticleHolder.java:53)
    at org.vertx.java.core.impl.DefaultContext.reportException(DefaultContext.java:77)
    at org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:172)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:353)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:365)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    at java.lang.Thread.run(Thread.java:722)
@purplefox
Copy link
Member

Some examples are probably broken, we haven't got around to fixing them
all for 2.0 yet.

But... that method does exist.

On 20/06/13 22:04, Simone Scarduzio wrote:

I can't get the example working, I'm using the master checkout of Vert.x and of this repo.
The examples are using a non existing method.

0.06 21:09:29 euler:/tmp/vertx-examples/src/main/modules/ruby/webapp $ ~/vert.x/build/vert.x-2.0.0-CR2-SNAPSHOT/bin/vertx runmod io.vertx~example-web-app~1.0
Downloading io.vertx~lang-jruby~2.0.0-CR1. Please wait...
Downloading 100%
Module io.vertx~lang-jruby~2.0.0-CR1 successfully installed
Unexpected exception in Ruby verticle
java.lang.NoSuchMethodError: org.vertx.java.core.shareddata.SharedData.getMap(Ljava/lang/String;)Ljava/util/concurrent/ConcurrentMap;
  at org.vertx.mods.web.StaticFileHandler.<init>(StaticFileHandler.java:59)
  at org.vertx.mods.web.WebServerBase.staticHandler(WebServerBase.java:118)
  at org.vertx.mods.web.WebServerBase.start(WebServerBase.java:74)
  at org.vertx.java.platform.impl.DefaultPlatformManager$18.run(DefaultPlatformManager.java:1256)
  at org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:170)
  at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:353)
  at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:365)
  at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
  at java.lang.Thread.run(Thread.java:722)

And this is Python

0.06 21:09:29 euler:/tmp/vertx-examples/src/main/modules/python/webapp $ ~/vert.x/build/vert.x-2.0.0-CR2-SNAPSHOT/bin/vertx runmod io.vertx~example-web-app~1.0
Downloading io.vertx~lang-jython~2.0.0-CR1. Please wait...
Downloading 100%
Module io.vertx~lang-jython~2.0.0-CR1 successfully installed
A task raised an exception.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  at java.lang.String.substring(String.java:1911)
  at org.vertx.java.platform.impl.JythonVerticleFactory.reportException(JythonVerticleFactory.java:81)
  at org.vertx.java.platform.impl.VerticleHolder.reportException(VerticleHolder.java:53)
  at org.vertx.java.core.impl.DefaultContext.reportException(DefaultContext.java:77)
  at org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:172)
  at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:353)
  at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:365)
  at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
  at java.lang.Thread.run(Thread.java:722)

Reply to this email directly or view it on GitHub:
#2

vietj pushed a commit to vietj/vertx-examples that referenced this issue Jan 31, 2017
Add example of rx send and reply.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants