Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please update samples structure of netty-transports yaml file #503

Closed
suchostone opened this issue Nov 30, 2017 · 4 comments
Closed

Please update samples structure of netty-transports yaml file #503

suchostone opened this issue Nov 30, 2017 · 4 comments

Comments

@suchostone
Copy link

suchostone commented Nov 30, 2017

Description:

Using the below netty-transports file, getting following error:

Unable to find property 'bossThreadPoolSize' on class: org.wso2.carbon.transport.http.netty.config.ListenerConfiguration
in 'reader', line 21, column 23:
bossThreadPoolSize: 2

The same happens for workerThreadPoolSize

I had to remove both properties from netty-transports.yml file to make it work.
Now, using thread pooling configuration from deployment.yaml

Affected Product Version:
2.4.X

OS, DB, other environment details and versions:
macos high Sierra 10.13

Steps to reproduce:
Run the built fat jar from target directory with -Dtransports.netty.conf=netty-transports.yml

netty-transports.yml:

listenerConfigurations:

id: "msf4j-http"
host: "127.0.0.1"
port: 8080
bossThreadPoolSize: 2
workerThreadPoolSize: 250
parameters:
-
name: "execThreadPoolSize"
value: 60

  • id: "msf4j-https"
    host: "127.0.0.1"
    port: 8443
    bossThreadPoolSize: 2
    workerThreadPoolSize: 250
    scheme: https
    keyStoreFile: "conf/wso2carbon.jks"
    keyStorePass: wso2carbon
    certPass: wso2carbon
@thusithathilina
Copy link
Contributor

@suchostone Your configuration yaml format is invalid with the latest version. You can refer to the sample config file bundle with MSF4J on https://github.com/wso2/msf4j/blob/v2.4.2/distribution/binary/conf/netty-transports.yml

@suchostone
Copy link
Author

@thusithathilina hi Tusitha, thanks for your reply. Yes, I know the configuration I shared is not aligned with latest version, thats why I had to tweak to make it work. My point in this issue, as the subject states, is to "update" samples structure of netty yaml file, for example in stockquote fat-jar sample, msf4j version is 4.2.X and netty-transports file is still making reference to old structure.
Thanks.

@suchostone suchostone changed the title Please update samples structure of netty-transports (ListenerConfiguration) Please update samples structure of netty-transports yaml file Dec 5, 2017
@thusithathilina
Copy link
Contributor

thusithathilina commented Dec 8, 2017

@suchostone Thanks for pointing that out
@daneshk Seems we missed to update the yaml in stockquote sample :( Can we mark this as a bug ?

@daneshk
Copy link
Contributor

daneshk commented Dec 8, 2017

Thanks @suchostone @thusithathilina. I will fix it in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants