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

log4 appender and eureka lb server issue #109

Open
metacret opened this issue Jul 14, 2014 · 0 comments
Open

log4 appender and eureka lb server issue #109

metacret opened this issue Jul 14, 2014 · 0 comments

Comments

@metacret
Copy link
Contributor

On Fri, Jul 11, 2014 at 7:22 AM, Ann Wallace [email protected] wrote:
I have the following set:

suro appender

log4j.appender.SURO=com.netflix.suro.input.Log4jAppender

og4j.appender.SURO.layout=com.netflix.suro.input.JsonLog4jFormatter

log4j.appender.SURO.app=XXXX
log4j.appender.SURO.loadBalancerServer=HOST:PORT
log4j.appender.SURO.loadBalancerType=eureka
log4j.appender.SURO.clientType=sync
log4j.appender.SURO.routingKey=XXXKey
log4j.appender.SURO.asyncFileQueuePath=/XXX/XXX/logs/suroClient

But as long as loadBalancerServer is set I get the following stack traces:

java.lang.RuntimeException: Failed to initialize DiscoveryClient!

at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:285)

at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:195)

at com.netflix.discovery.DiscoveryManager.initComponent(DiscoveryManager.java:84)

at com.netflix.karyon.server.eureka.EurekaHandler.register(EurekaHandler.java:116)

at com.netflix.karyon.server.eureka.EurekaHandler.postConfig(EurekaHandler.java:100)

.....

Caused by:

java.lang.IllegalArgumentException: DiscoveryClient: invalid serviceUrl specified!

at com.netflix.discovery.DiscoveryClient.getEurekaServiceUrlsFromConfig(DiscoveryClient.java:634)

at com.netflix.discovery.DiscoveryClient.getDiscoveryServiceUrls(DiscoveryClient.java:1311)

at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:219)

at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:195)

at com.netflix.discovery.DiscoveryManager.initComponent(DiscoveryManager.java:84)

at com.netflix.karyon.server.eureka.EurekaHandler.register(EurekaHandler.java:116)....

2014-07-11 06:36:33.210:WARN:oejd.DeploymentManager:main: Unable to reach node goal: started

java.lang.Error: java.lang.reflect.InvocationTargetException.....

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

1 participant