"unused non-option argument: ûp" when running shutdown.bat

Solution Unverified - Updated -

Issue

I am having trouble getting the shutdown command to work properly. This is one of the shutdown commands that I'm using:

call "%SVCPATH%\shutdown.bat" -u admin –p MyPassword -s jnp://1.2.3.4:1099  -S < .sSERVICE_NAME.lock >> %LOGDIR%\shutdown.log 2>&1

This is the error that I am getting:

shutdown: unused non-option argument: ûp
shutdown: unused non-option argument: MyPassword
Enter password for admin: Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: 1.2.3.4:1099 [Root exception is javax.naming.CommunicationException: Failed to connect to server /1.2.3.4:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /1.2.3.4:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1828)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:717)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at org.jboss.Shutdown.main(Shutdown.java:219)
Caused by: javax.naming.CommunicationException: Failed to connect to server /1.2.3.4:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /1.2.3.4:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:359)
    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:284)
    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1798)
    ... 4 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server /1.2.3.4:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:329)
    ... 6 more
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97)
    at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82)
    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:325)
    ... 6 more

Environment

  • JBoss Enterprise Application Platform (EAP) 5.1.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.