JVM_BIND error

543 views
Skip to first unread message

Paras Goel

unread,
Feb 21, 2013, 12:46:33 PM2/21/13
to dropwiz...@googlegroups.com
Hi.. I just started the dropwizard frameowrk and while running my service I am getting below error which trying to run my service please help me to resolve the issue:

C:\Users\Documents\Workflow\pocProject>java -jar target/pocProject-0.0.1-SNAPSHOT.jar server pocProject.yml
INFO  [2013-02-21 17:44:09,584] com.yammer.dropwizard.cli.ServerCommand: Starting hello-world
INFO  [2013-02-21 17:44:09,586] org.eclipse.jetty.server.Server: jetty-8.y.z-SNAPSHOT
INFO  [2013-02-21 17:44:09,676] com.sun.jersey.server.impl.application.WebApplicationImpl: Initiating Jersey application, version 'Jersey:
INFO  [2013-02-21 17:44:09,724] com.yammer.dropwizard.config.Environment:

    GET     /hello-world (com.ge.workflow.resources.HelloWorldResource)

INFO  [2013-02-21 17:44:09,724] com.yammer.dropwizard.config.Environment: tasks =

    POST    /tasks/gc (com.yammer.dropwizard.tasks.GarbageCollectionTask)

INFO  [2013-02-21 17:44:09,992] org.eclipse.jetty.server.AbstractConnector: Started InstrumentedBlocki...@0.0.0.0:8080
WARN  [2013-02-21 17:44:10,003] org.eclipse.jetty.util.component.AbstractLifeCycle: FAILED SocketC...@0.0.0.0:8081: java.net.BindExce
! java.net.BindException: Address already in use: JVM_Bind
! at java.net.PlainSocketImpl.socketBind(Native Method)
! at java.net.PlainSocketImpl.bind(Unknown Source)
! at java.net.ServerSocket.bind(Unknown Source)
! at java.net.ServerSocket.<init>(Unknown Source)
! at java.net.ServerSocket.<init>(Unknown Source)
! at org.eclipse.jetty.server.bio.SocketConnector.newServerSocket(SocketConnector.java:96)
! at org.eclipse.jetty.server.bio.SocketConnector.open(SocketConnector.java:85)
! at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
! at org.eclipse.jetty.server.bio.SocketConnector.doStart(SocketConnector.java:156)
! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
! at org.eclipse.jetty.server.Server.doStart(Server.java:288)
! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
! at com.yammer.dropwizard.cli.ServerCommand.run(ServerCommand.java:48)
! at com.yammer.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:39)
! at com.yammer.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:58)
! at com.yammer.dropwizard.cli.Cli.run(Cli.java:53)
! at com.yammer.dropwizard.Service.run(Service.java:61)
! at com.ge.workflow.HelloWorldService.main(HelloWorldService.java:12)
WARN  [2013-02-21 17:44:10,004] org.eclipse.jetty.util.component.AbstractLifeCycle: FAILED org.eclipse.jetty.server.Server@76539f0d: java.
! java.net.BindException: Address already in use: JVM_Bind
! at java.net.PlainSocketImpl.socketBind(Native Method)
! at java.net.PlainSocketImpl.bind(Unknown Source)
! at java.net.ServerSocket.bind(Unknown Source)
! at java.net.ServerSocket.<init>(Unknown Source)
! at java.net.ServerSocket.<init>(Unknown Source)
! at org.eclipse.jetty.server.bio.SocketConnector.newServerSocket(SocketConnector.java:96)
! at org.eclipse.jetty.server.bio.SocketConnector.open(SocketConnector.java:85)
! at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
! at org.eclipse.jetty.server.bio.SocketConnector.doStart(SocketConnector.java:156)
! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
! at org.eclipse.jetty.server.Server.doStart(Server.java:288)
! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
! at com.yammer.dropwizard.cli.ServerCommand.run(ServerCommand.java:48)
! at com.yammer.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:39)
! at com.yammer.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:58)
! at com.yammer.dropwizard.cli.Cli.run(Cli.java:53)
! at com.yammer.dropwizard.Service.run(Service.java:61)
! at com.ge.workflow.HelloWorldService.main(HelloWorldService.java:12)
ERROR [2013-02-21 17:44:10,005] com.yammer.dropwizard.cli.ServerCommand: Unable to start server, shutting down
! java.net.BindException: Address already in use: JVM_Bind
! at java.net.PlainSocketImpl.socketBind(Native Method)
! at java.net.PlainSocketImpl.bind(Unknown Source)
! at java.net.ServerSocket.bind(Unknown Source)
! at java.net.ServerSocket.<init>(Unknown Source)
! at java.net.ServerSocket.<init>(Unknown Source)
! at org.eclipse.jetty.server.bio.SocketConnector.newServerSocket(SocketConnector.java:96)
! at org.eclipse.jetty.server.bio.SocketConnector.open(SocketConnector.java:85)
! at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
! at org.eclipse.jetty.server.bio.SocketConnector.doStart(SocketConnector.java:156)
! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
! at org.eclipse.jetty.server.Server.doStart(Server.java:288)
! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
! at com.yammer.dropwizard.cli.ServerCommand.run(ServerCommand.java:48)
! at com.yammer.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:39)
! at com.yammer.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:58)
! at com.yammer.dropwizard.cli.Cli.run(Cli.java:53)
! at com.yammer.dropwizard.Service.run(Service.java:61)
! at com.ge.workflow.HelloWorldService.main(HelloWorldService.java:12)
INFO  [2013-02-21 17:44:10,006] org.eclipse.jetty.server.Server: Graceful shutdown SocketC...@0.0.0.0:8081
INFO  [2013-02-21 17:44:10,006] org.eclipse.jetty.server.Server: Graceful shutdown InstrumentedBlocki...@0.0.0.0:8080
INFO  [2013-02-21 17:44:10,006] org.eclipse.jetty.server.Server: Graceful shutdown o.e.j.s.ServletContextHandler{/,null}
INFO  [2013-02-21 17:44:10,006] org.eclipse.jetty.server.Server: Graceful shutdown o.e.j.s.ServletContextHandler{/,null}
INFO  [2013-02-21 17:44:12,008] org.eclipse.jetty.server.handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/,null}
INFO  [2013-02-21 17:44:12,008] org.eclipse.jetty.server.handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/,null}

Ted M. Young [@jitterted]

unread,
Feb 21, 2013, 1:16:43 PM2/21/13
to dropwiz...@googlegroups.com
You have some other application that's using port 8081 on your machine: the key is the "java.net.BindException: Address already in use: JVM_Bind" message. You can either shutdown the other application or change your configuration to use different ports.

;ted
--
http://about.me/tedmyoung



--
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Paras Goel

unread,
Feb 21, 2013, 1:22:53 PM2/21/13
to dropwiz...@googlegroups.com
Thanks Ted for reply,

But still issue is same after shutdown. could you please let me the exact information which i need to change and in which configuration file.
I am not very much familiar with dropwizard so not sure how to change the configuration data. I m assuming it will be in .yml file. 


On Thursday, 21 February 2013 13:16:43 UTC-5, Ted M. Young wrote:
You have some other application that's using port 8081 on your machine: the key is the "java.net.BindException: Address already in use: JVM_Bind" message. You can either shutdown the other application or change your configuration to use different ports.

;ted
--
http://about.me/tedmyoung

On Thu, Feb 21, 2013 at 9:46 AM, Paras Goel <parasg...@gmail.com> wrote:
Hi.. I just started the dropwizard frameowrk and while running my service I am getting below error which trying to run my service please help me to resolve the issue:

C:\Users\Documents\Workflow\pocProject>java -jar target/pocProject-0.0.1-SNAPSHOT.jar server pocProject.yml
INFO  [2013-02-21 17:44:09,584] com.yammer.dropwizard.cli.ServerCommand: Starting hello-world
INFO  [2013-02-21 17:44:09,586] org.eclipse.jetty.server.Server: jetty-8.y.z-SNAPSHOT
INFO  [2013-02-21 17:44:09,676] com.sun.jersey.server.impl.application.WebApplicationImpl: Initiating Jersey application, version 'Jersey:
INFO  [2013-02-21 17:44:09,724] com.yammer.dropwizard.config.Environment:

    GET     /hello-world (com.ge.workflow.resources.HelloWorldResource)

INFO  [2013-02-21 17:44:09,724] com.yammer.dropwizard.config.Environment: tasks =

    POST    /tasks/gc (com.yammer.dropwizard.tasks.GarbageCollectionTask)

INFO  [2013-02-21 17:44:09,992] org.eclipse.jetty.server.AbstractConnector: Started InstrumentedBlockingChannelConnec...@0.0.0.0:8080
INFO  [2013-02-21 17:44:10,006] org.eclipse.jetty.server.Server: Graceful shutdown InstrumentedBlockingChannelConnec...@0.0.0.0:8080
INFO  [2013-02-21 17:44:10,006] org.eclipse.jetty.server.Server: Graceful shutdown o.e.j.s.ServletContextHandler{/,null}
INFO  [2013-02-21 17:44:10,006] org.eclipse.jetty.server.Server: Graceful shutdown o.e.j.s.ServletContextHandler{/,null}
INFO  [2013-02-21 17:44:12,008] org.eclipse.jetty.server.handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/,null}
INFO  [2013-02-21 17:44:12,008] org.eclipse.jetty.server.handler.ContextHandler: stopped o.e.j.s.ServletContextHandler{/,null}

Tatu Saloranta

unread,
Feb 21, 2013, 1:26:42 PM2/21/13
to dropwiz...@googlegroups.com
On Thu, Feb 21, 2013 at 10:22 AM, Paras Goel <parasg...@gmail.com> wrote:
> Thanks Ted for reply,
>
> But still issue is same after shutdown. could you please let me the exact
> information which i need to change and in which configuration file.
> I am not very much familiar with dropwizard so not sure how to change the
> configuration data. I m assuming it will be in .yml file.

You would get more familiar by studying the issue yourself first.
While people are happy to help, it is common courtesy to do bit more
research, reading tutorial, having a look at Configuration Java
object.
Yes, settings is in the configuration file, under "http" section.

-+ Tatu +-

Paras Goel

unread,
Feb 21, 2013, 1:27:18 PM2/21/13
to dropwiz...@googlegroups.com
Thanks Ted,

I change the .yml file and give another port and it is working.
Thanks for you valuable suggestion.

-Paras


On Thursday, 21 February 2013 12:46:33 UTC-5, Paras Goel wrote:
Hi.. I just started the dropwizard frameowrk and while running my service I am getting below error which trying to run my service please help me to resolve the issue:

C:\Users\Documents\Workflow\pocProject>java -jar target/pocProject-0.0.1-SNAPSHOT.jar server pocProject.yml
INFO  [2013-02-21 17:44:09,584] com.yammer.dropwizard.cli.ServerCommand: Starting hello-world
INFO  [2013-02-21 17:44:09,586] org.eclipse.jetty.server.Server: jetty-8.y.z-SNAPSHOT
INFO  [2013-02-21 17:44:09,676] com.sun.jersey.server.impl.application.WebApplicationImpl: Initiating Jersey application, version 'Jersey:
INFO  [2013-02-21 17:44:09,724] com.yammer.dropwizard.config.Environment:

    GET     /hello-world (com.ge.workflow.resources.HelloWorldResource)

INFO  [2013-02-21 17:44:09,724] com.yammer.dropwizard.config.Environment: tasks =

    POST    /tasks/gc (com.yammer.dropwizard.tasks.GarbageCollectionTask)

INFO  [2013-02-21 17:44:09,992] org.eclipse.jetty.server.AbstractConnector: Started InstrumentedBlockingChannelConnec...@0.0.0.0:8080
INFO  [2013-02-21 17:44:10,006] org.eclipse.jetty.server.Server: Graceful shutdown InstrumentedBlockingChannelConnec...@0.0.0.0:8080

Paras Goel

unread,
Feb 21, 2013, 1:48:41 PM2/21/13
to dropwiz...@googlegroups.com
You are Tatu,

I will follow your advice.

Regards,

Paras Goel

Tatu Saloranta

unread,
Feb 21, 2013, 1:49:11 PM2/21/13
to dropwiz...@googlegroups.com
On Thu, Feb 21, 2013 at 10:48 AM, Paras Goel <parasg...@gmail.com> wrote:
> You are Tatu,
>
> I will follow your advice.

Good luck & glad to hear you found out the solution!

-+ Tatu +-

Paras Goel

unread,
Feb 21, 2013, 1:49:50 PM2/21/13
to dropwiz...@googlegroups.com

You are right Tatu,

Satish Tiwari

unread,
Apr 3, 2014, 7:16:38 AM4/3/14
to dropwiz...@googlegroups.com
Hi Paras,

I have same issue with dropwizard. Issue is still existing,after changing port no in yml file.
can you share the solution with me. And which IDE you are using for dropwizard.
Please replay
Reply all
Reply to author
Forward
0 new messages