You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@curator.apache.org by Check Peck <co...@gmail.com> on 2015/02/09 04:57:08 UTC
Getting Error while starting Exhibitor 1.5.3 in Ubuntu 12.04
I have followed this wiki (
https://github.com/Netflix/exhibitor/wiki/Building-Exhibitor) to build the
standalone version of exhibitor. I was following maven way of doing it. I
just edited the pom to have "1.5.3" version of Exhibitor and then ran this
command
mvn assembly:single
which generated me the exhibitor with 1.5.3 jar file in target folder.
And when I started the exhibitor like this -
nohup java -jar
./exhibitor-1.5.3/lib/exhibitor-1.5.3-jar-with-dependencies.jar -c file
--fsconfigdir /opt/exhibitor/conf --hostname machineA.host.com >
exhibitor.out &
I can see below errors in my exhibitor.out file as soon as I open it up on
the browser -
v1.5.3
INFO com.netflix.exhibitor.core.activity.ActivityLog Exhibitor started
[main]
INFO org.mortbay.log Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
org.mortbay.log.Slf4jLog [main]
INFO org.mortbay.log jetty-1.5.3 [main]
Feb 8, 2015 8:47:44 PM
com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.18.3 12/01/2014
08:23 AM'
INFO org.mortbay.log Started SocketConnector@0.0.0.0:8080 [main]
Feb 8, 2015 8:47:45 PM java.util.prefs.FileSystemPreferences$7 run
WARNING: Prefs file removed in background
/home/directapp/.java/.userPrefs/prefs.xml
INFO com.netflix.exhibitor.core.activity.ActivityLog State: latent
[ActivityQueue-0]
Feb 8, 2015 8:48:14 PM com.sun.jersey.spi.container.ContainerResponse write
SEVERE: A message body writer for Java class java.util.ArrayList, and Java
type java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and
MIME media type application/json was not found.
The registered message body writers compatible with the MIME media type are:
*/* ->
com.sun.jersey.core.impl.provider.entity.FormProvider
com.sun.jersey.core.impl.provider.entity.StringProvider
com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
com.sun.jersey.core.impl.provider.entity.FileProvider
com.sun.jersey.core.impl.provider.entity.InputStreamProvider
com.sun.jersey.core.impl.provider.entity.DataSourceProvider
com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General
com.sun.jersey.core.impl.provider.entity.ReaderProvider
com.sun.jersey.core.impl.provider.entity.DocumentProvider
com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider
com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter
com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General
com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General
Feb 8, 2015 8:48:14 PM com.sun.jersey.spi.container.ContainerResponse
logException
SEVERE: Mapped exception to response: 500 (Internal Server Error)
javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A
message body writer for Java class java.util.ArrayList, and Java type
java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME
media type application/json was not found.
at
com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:284)
at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
at
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: com.sun.jersey.api.MessageException: A message body writer for
Java class java.util.ArrayList, and Java type
java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME
media type application/json was not found.
... 21 more
Is there anything wrong I am doing? Or I build it incorrectly?
Re: Getting Error while starting Exhibitor 1.5.3 in Ubuntu
12.04
Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
I haven’t done this myself in a while. I’ll try it and see what’s up.
-JZ
On February 8, 2015 at 10:58:39 PM, Check Peck (comptechgeeky@gmail.com) wrote:
I have followed this wiki (https://github.com/Netflix/exhibitor/wiki/Building-Exhibitor) to build the standalone version of exhibitor. I was following maven way of doing it. I just edited the pom to have "1.5.3" version of Exhibitor and then ran this command
mvn assembly:single
which generated me the exhibitor with 1.5.3 jar file in target folder.
And when I started the exhibitor like this -
nohup java -jar ./exhibitor-1.5.3/lib/exhibitor-1.5.3-jar-with-dependencies.jar -c file --fsconfigdir /opt/exhibitor/conf --hostname machineA.host.com > exhibitor.out &
I can see below errors in my exhibitor.out file as soon as I open it up on the browser -
v1.5.3
INFO com.netflix.exhibitor.core.activity.ActivityLog Exhibitor started [main]
INFO org.mortbay.log Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog [main]
INFO org.mortbay.log jetty-1.5.3 [main]
Feb 8, 2015 8:47:44 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.18.3 12/01/2014 08:23 AM'
INFO org.mortbay.log Started SocketConnector@0.0.0.0:8080 [main]
Feb 8, 2015 8:47:45 PM java.util.prefs.FileSystemPreferences$7 run
WARNING: Prefs file removed in background /home/directapp/.java/.userPrefs/prefs.xml
INFO com.netflix.exhibitor.core.activity.ActivityLog State: latent [ActivityQueue-0]
Feb 8, 2015 8:48:14 PM com.sun.jersey.spi.container.ContainerResponse write
SEVERE: A message body writer for Java class java.util.ArrayList, and Java type java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME media type application/json was not found.
The registered message body writers compatible with the MIME media type are:
*/* ->
com.sun.jersey.core.impl.provider.entity.FormProvider
com.sun.jersey.core.impl.provider.entity.StringProvider
com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
com.sun.jersey.core.impl.provider.entity.FileProvider
com.sun.jersey.core.impl.provider.entity.InputStreamProvider
com.sun.jersey.core.impl.provider.entity.DataSourceProvider
com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General
com.sun.jersey.core.impl.provider.entity.ReaderProvider
com.sun.jersey.core.impl.provider.entity.DocumentProvider
com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider
com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter
com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General
com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General
Feb 8, 2015 8:48:14 PM com.sun.jersey.spi.container.ContainerResponse logException
SEVERE: Mapped exception to response: 500 (Internal Server Error)
javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class java.util.ArrayList, and Java type java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME media type application/json was not found.
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:284)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: com.sun.jersey.api.MessageException: A message body writer for Java class java.util.ArrayList, and Java type java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME media type application/json was not found.
... 21 more
Is there anything wrong I am doing? Or I build it incorrectly?
Re: Getting Error while starting Exhibitor 1.5.3 in Ubuntu
12.04
Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
I haven’t heard of any problems.
On February 8, 2015 at 11:15:49 PM, Check Peck (comptechgeeky@gmail.com) wrote:
Going to try out now. I will update if I find out any issues.
I am going to use Exhibitor 1.5.3 along with Zookeeper 3.4.6. Have you seen any issues with this combination as of now? I just wanted to make sure if there is anything I should be aware of.
On Sun, Feb 8, 2015 at 8:10 PM, Jordan Zimmerman <jo...@jordanzimmerman.com> wrote:
Yeah - I saw the same problem. I’ve changed it to use the Shader plugin and it works now. I’ve updated the wiki (and POM):
https://github.com/Netflix/exhibitor/wiki/Building-Exhibitor
-Jordan
On February 8, 2015 at 10:58:39 PM, Check Peck (comptechgeeky@gmail.com) wrote:
I have followed this wiki (https://github.com/Netflix/exhibitor/wiki/Building-Exhibitor) to build the standalone version of exhibitor. I was following maven way of doing it. I just edited the pom to have "1.5.3" version of Exhibitor and then ran this command
mvn assembly:single
which generated me the exhibitor with 1.5.3 jar file in target folder.
And when I started the exhibitor like this -
nohup java -jar ./exhibitor-1.5.3/lib/exhibitor-1.5.3-jar-with-dependencies.jar -c file --fsconfigdir /opt/exhibitor/conf --hostname machineA.host.com > exhibitor.out &
I can see below errors in my exhibitor.out file as soon as I open it up on the browser -
v1.5.3
INFO com.netflix.exhibitor.core.activity.ActivityLog Exhibitor started [main]
INFO org.mortbay.log Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog [main]
INFO org.mortbay.log jetty-1.5.3 [main]
Feb 8, 2015 8:47:44 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.18.3 12/01/2014 08:23 AM'
INFO org.mortbay.log Started SocketConnector@0.0.0.0:8080 [main]
Feb 8, 2015 8:47:45 PM java.util.prefs.FileSystemPreferences$7 run
WARNING: Prefs file removed in background /home/directapp/.java/.userPrefs/prefs.xml
INFO com.netflix.exhibitor.core.activity.ActivityLog State: latent [ActivityQueue-0]
Feb 8, 2015 8:48:14 PM com.sun.jersey.spi.container.ContainerResponse write
SEVERE: A message body writer for Java class java.util.ArrayList, and Java type java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME media type application/json was not found.
The registered message body writers compatible with the MIME media type are:
*/* ->
com.sun.jersey.core.impl.provider.entity.FormProvider
com.sun.jersey.core.impl.provider.entity.StringProvider
com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
com.sun.jersey.core.impl.provider.entity.FileProvider
com.sun.jersey.core.impl.provider.entity.InputStreamProvider
com.sun.jersey.core.impl.provider.entity.DataSourceProvider
com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General
com.sun.jersey.core.impl.provider.entity.ReaderProvider
com.sun.jersey.core.impl.provider.entity.DocumentProvider
com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider
com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter
com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General
com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General
Feb 8, 2015 8:48:14 PM com.sun.jersey.spi.container.ContainerResponse logException
SEVERE: Mapped exception to response: 500 (Internal Server Error)
javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class java.util.ArrayList, and Java type java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME media type application/json was not found.
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:284)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: com.sun.jersey.api.MessageException: A message body writer for Java class java.util.ArrayList, and Java type java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME media type application/json was not found.
... 21 more
Is there anything wrong I am doing? Or I build it incorrectly?
Re: Getting Error while starting Exhibitor 1.5.3 in Ubuntu 12.04
Posted by Check Peck <co...@gmail.com>.
Going to try out now. I will update if I find out any issues.
I am going to use Exhibitor 1.5.3 along with Zookeeper 3.4.6. Have you seen
any issues with this combination as of now? I just wanted to make sure if
there is anything I should be aware of.
On Sun, Feb 8, 2015 at 8:10 PM, Jordan Zimmerman <jordan@jordanzimmerman.com
> wrote:
> Yeah - I saw the same problem. I’ve changed it to use the Shader plugin
> and it works now. I’ve updated the wiki (and POM):
>
> https://github.com/Netflix/exhibitor/wiki/Building-Exhibitor
>
> -Jordan
>
>
>
> On February 8, 2015 at 10:58:39 PM, Check Peck (comptechgeeky@gmail.com)
> wrote:
>
> I have followed this wiki (
> https://github.com/Netflix/exhibitor/wiki/Building-Exhibitor) to build
> the standalone version of exhibitor. I was following maven way of doing it.
> I just edited the pom to have "1.5.3" version of Exhibitor and then ran
> this command
>
> mvn assembly:single
>
> which generated me the exhibitor with 1.5.3 jar file in target folder.
>
> And when I started the exhibitor like this -
>
> nohup java -jar
> ./exhibitor-1.5.3/lib/exhibitor-1.5.3-jar-with-dependencies.jar -c file
> --fsconfigdir /opt/exhibitor/conf --hostname machineA.host.com >
> exhibitor.out &
>
> I can see below errors in my exhibitor.out file as soon as I open it up on
> the browser -
>
> v1.5.3
> INFO com.netflix.exhibitor.core.activity.ActivityLog Exhibitor started
> [main]
> INFO org.mortbay.log Logging to
> org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
> org.mortbay.log.Slf4jLog [main]
> INFO org.mortbay.log jetty-1.5.3 [main]
> Feb 8, 2015 8:47:44 PM
> com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
> INFO: Initiating Jersey application, version 'Jersey: 1.18.3 12/01/2014
> 08:23 AM'
> INFO org.mortbay.log Started SocketConnector@0.0.0.0:8080 [main]
> Feb 8, 2015 8:47:45 PM java.util.prefs.FileSystemPreferences$7 run
> WARNING: Prefs file removed in background
> /home/directapp/.java/.userPrefs/prefs.xml
> INFO com.netflix.exhibitor.core.activity.ActivityLog State: latent
> [ActivityQueue-0]
> Feb 8, 2015 8:48:14 PM com.sun.jersey.spi.container.ContainerResponse write
> SEVERE: A message body writer for Java class java.util.ArrayList, and Java
> type java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and
> MIME media type application/json was not found.
> The registered message body writers compatible with the MIME media type
> are:
> */* ->
> com.sun.jersey.core.impl.provider.entity.FormProvider
> com.sun.jersey.core.impl.provider.entity.StringProvider
> com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
> com.sun.jersey.core.impl.provider.entity.FileProvider
> com.sun.jersey.core.impl.provider.entity.InputStreamProvider
> com.sun.jersey.core.impl.provider.entity.DataSourceProvider
> com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General
> com.sun.jersey.core.impl.provider.entity.ReaderProvider
> com.sun.jersey.core.impl.provider.entity.DocumentProvider
> com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider
> com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter
> com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General
> com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General
>
> Feb 8, 2015 8:48:14 PM com.sun.jersey.spi.container.ContainerResponse
> logException
> SEVERE: Mapped exception to response: 500 (Internal Server Error)
> javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException:
> A message body writer for Java class java.util.ArrayList, and Java type
> java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME
> media type application/json was not found.
>
> at
> com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:284)
> at
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510)
> at
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
> at
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
> at
> com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
> at
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
> at
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
> at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> at
> org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> Caused by: com.sun.jersey.api.MessageException: A message body writer for
> Java class java.util.ArrayList, and Java type
> java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME
> media type application/json was not found.
>
> ... 21 more
>
> Is there anything wrong I am doing? Or I build it incorrectly?
>
>
Re: Getting Error while starting Exhibitor 1.5.3 in Ubuntu
12.04
Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
Yeah - I saw the same problem. I’ve changed it to use the Shader plugin and it works now. I’ve updated the wiki (and POM):
https://github.com/Netflix/exhibitor/wiki/Building-Exhibitor
-Jordan
On February 8, 2015 at 10:58:39 PM, Check Peck (comptechgeeky@gmail.com) wrote:
I have followed this wiki (https://github.com/Netflix/exhibitor/wiki/Building-Exhibitor) to build the standalone version of exhibitor. I was following maven way of doing it. I just edited the pom to have "1.5.3" version of Exhibitor and then ran this command
mvn assembly:single
which generated me the exhibitor with 1.5.3 jar file in target folder.
And when I started the exhibitor like this -
nohup java -jar ./exhibitor-1.5.3/lib/exhibitor-1.5.3-jar-with-dependencies.jar -c file --fsconfigdir /opt/exhibitor/conf --hostname machineA.host.com > exhibitor.out &
I can see below errors in my exhibitor.out file as soon as I open it up on the browser -
v1.5.3
INFO com.netflix.exhibitor.core.activity.ActivityLog Exhibitor started [main]
INFO org.mortbay.log Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog [main]
INFO org.mortbay.log jetty-1.5.3 [main]
Feb 8, 2015 8:47:44 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.18.3 12/01/2014 08:23 AM'
INFO org.mortbay.log Started SocketConnector@0.0.0.0:8080 [main]
Feb 8, 2015 8:47:45 PM java.util.prefs.FileSystemPreferences$7 run
WARNING: Prefs file removed in background /home/directapp/.java/.userPrefs/prefs.xml
INFO com.netflix.exhibitor.core.activity.ActivityLog State: latent [ActivityQueue-0]
Feb 8, 2015 8:48:14 PM com.sun.jersey.spi.container.ContainerResponse write
SEVERE: A message body writer for Java class java.util.ArrayList, and Java type java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME media type application/json was not found.
The registered message body writers compatible with the MIME media type are:
*/* ->
com.sun.jersey.core.impl.provider.entity.FormProvider
com.sun.jersey.core.impl.provider.entity.StringProvider
com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
com.sun.jersey.core.impl.provider.entity.FileProvider
com.sun.jersey.core.impl.provider.entity.InputStreamProvider
com.sun.jersey.core.impl.provider.entity.DataSourceProvider
com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General
com.sun.jersey.core.impl.provider.entity.ReaderProvider
com.sun.jersey.core.impl.provider.entity.DocumentProvider
com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider
com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter
com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General
com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General
Feb 8, 2015 8:48:14 PM com.sun.jersey.spi.container.ContainerResponse logException
SEVERE: Mapped exception to response: 500 (Internal Server Error)
javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class java.util.ArrayList, and Java type java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME media type application/json was not found.
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:284)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: com.sun.jersey.api.MessageException: A message body writer for Java class java.util.ArrayList, and Java type java.util.List<com.netflix.exhibitor.core.entities.UITabSpec>, and MIME media type application/json was not found.
... 21 more
Is there anything wrong I am doing? Or I build it incorrectly?