incubator-wave-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Lown <...@lown.me.uk>
Subject Re: Java exeption on RC4
Date Tue, 24 Sep 2013 19:26:44 GMT
Raphael,

This is because you haven't actual set yours settings in server.config.

As the error says websocket_max_message_size is not an integer.

The line in your server.config currently reads:
websocket_max_message_size = @WEBSOCKET_MAX_MESSAGE_SIZE@
where "@WEBSOCKET_MAX_MESSAGE_SIZE@" should be replaced by a sensible
numbers for your configuration.

You will need to do this for all the settings where the value is @SOMETHING@

Hope this helps.
Ali

On 24/09/2013, Raphael Bircher <r.bircher@gmx.ch> wrote:
> Hi at all
>
> I run in a Java Exeption on RC4. I hope this is my error
>
> INFO: An exception was caught and reported. Message:
> java.lang.NumberFormatException: For input string:
> "@WEBSOCKET_MAX_MESSAGE_SIZE@"
> org.apache.commons.configuration.ConversionException:
> 'websocket_max_message_size' doesn't map to an Integer object
>      at
> org.apache.commons.configuration.AbstractConfiguration.getInteger(AbstractConfiguration.java:845)
>      at
> org.waveprotocol.wave.util.settings.SettingsBinder$3.configure(SettingsBinder.java:174)
>      at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
>      at
> com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
>      at com.google.inject.spi.Elements.getElements(Elements.java:101)
>      at
> com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
>      at
> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
>      at com.google.inject.Guice.createInjector(Guice.java:95)
>      at com.google.inject.Guice.createInjector(Guice.java:72)
>      at com.google.inject.Guice.createInjector(Guice.java:62)
>      at org.waveprotocol.box.server.ServerMain.run(ServerMain.java:152)
>      at org.waveprotocol.box.server.ServerMain.main(ServerMain.java:139)
> Caused by: org.apache.commons.configuration.ConversionException: Could
> not convert @WEBSOCKET_MAX_MESSAGE_SIZE@ to java.lang.Integer
>      at
> org.apache.commons.configuration.PropertyConverter.toNumber(PropertyConverter.java:413)
>      at
> org.apache.commons.configuration.PropertyConverter.toInteger(PropertyConverter.java:260)
>      at
> org.apache.commons.configuration.AbstractConfiguration.getInteger(AbstractConfiguration.java:841)
>      ... 11 more
> Caused by: java.lang.NumberFormatException: For input string:
> "@WEBSOCKET_MAX_MESSAGE_SIZE@"
>      at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>      at java.lang.Integer.parseInt(Integer.java:481)
>      at java.lang.Integer.<init>(Integer.java:636)
>      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>      at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>      at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>      at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
>      at
> org.apache.commons.configuration.PropertyConverter.toNumber(PropertyConverter.java:409)
>      ... 13 more
> Exception in thread "main" com.google.inject.CreationException: Guice
> creation errors:
>
> 1) An exception was caught and reported. Message:
> 'websocket_max_message_size' doesn't map to an Integer object
>    at
> com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
>
> 2) Missing constant value. Please call to(...).
>    at
> org.waveprotocol.wave.util.settings.SettingsBinder$3.configure(SettingsBinder.java:174)
>
> 2 errors
>      at
> com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
>      at
> com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
>      at
> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
>      at com.google.inject.Guice.createInjector(Guice.java:95)
>      at com.google.inject.Guice.createInjector(Guice.java:72)
>      at com.google.inject.Guice.createInjector(Guice.java:62)
>      at org.waveprotocol.box.server.ServerMain.run(ServerMain.java:152)
>      at org.waveprotocol.box.server.ServerMain.main(ServerMain.java:139)
> Caused by: org.apache.commons.configuration.ConversionException:
> 'websocket_max_message_size' doesn't map to an Integer object
>      at
> org.apache.commons.configuration.AbstractConfiguration.getInteger(AbstractConfiguration.java:845)
>      at
> org.waveprotocol.wave.util.settings.SettingsBinder$3.configure(SettingsBinder.java:174)
>      at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
>      at
> com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
>      at com.google.inject.spi.Elements.getElements(Elements.java:101)
>      at
> com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
>      at
> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
>      ... 5 more
> Caused by: org.apache.commons.configuration.ConversionException: Could
> not convert @WEBSOCKET_MAX_MESSAGE_SIZE@ to java.lang.Integer
>      at
> org.apache.commons.configuration.PropertyConverter.toNumber(PropertyConverter.java:413)
>      at
> org.apache.commons.configuration.PropertyConverter.toInteger(PropertyConverter.java:260)
>      at
> org.apache.commons.configuration.AbstractConfiguration.getInteger(AbstractConfiguration.java:841)
>      ... 11 more
> Caused by: java.lang.NumberFormatException: For input string:
> "@WEBSOCKET_MAX_MESSAGE_SIZE@"
>      at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>      at java.lang.Integer.parseInt(Integer.java:481)
>      at java.lang.Integer.<init>(Integer.java:636)
>      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>      at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>      at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>      at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
>      at
> org.apache.commons.configuration.PropertyConverter.toNumber(PropertyConverter.java:409)
>      ... 13 more
>
> I used the default configuration. Has someone a idea what happend?
>
> Greetings Raphael
>

Mime
View raw message