[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[THREDDS #IJD-492214]: Error using WMS request in TDS 4.3.16



Hi Egil,

Something must not have shut down properly.  If you take a look at 
catalina.out, you will see the following:

Jun 03, 2013 7:01:13 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on
 the java.library.path: /usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
Jun 03, 2013 7:01:15 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jun 03, 2013 7:01:15 AM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler 
["http-bio-8080"]
java.net.BindException: Address already in use <null>:8080
        at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:391)
        at 
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:554)
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:409)
        at 
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
        at 
org.apache.catalina.connector.Connector.initInternal(Connector.java:956)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
        at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
        at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:815)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:594)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:619)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
Caused by: java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at 
java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
        at java.net.ServerSocket.bind(ServerSocket.java:376)
        at java.net.ServerSocket.<init>(ServerSocket.java:237)
        at java.net.ServerSocket.<init>(ServerSocket.java:181)
        at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
        at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:378)
        ... 17 more

The bit about "Bind exception: Address already in use" means that something was 
using port 8080 and the operating system could not give it to your server when 
you started it up.  This sometimes happens when a java process hangs onto the 
port from a previous instance of the TDS or from another application.  To 
remedy this, you'll need to shutdown Tomcat, then verify that nothing is using 
port 8080.  It would also be good to verify that you don't have  zombie java 
processes running.

In Windows, you can use the command:

netstat -a -n -o | findstr 8080

to find the process using port 8080.  The last number of the response is the 
process ID (PID) of that process.  The command is similar in Unix, but varies 
depending on your particular flavor.

Sorry to send you back to the beginning, but we need the Tomcat to start up 
correctly before jumping into the later issues.

Regards,
  Lansing

On 6/3/2013 1:21 AM, Egil Støren wrote:
> Hi Lansing,
>
> Thank you for looking into this problem.
>
> I stopped tomcat, removed the logs, restarted, and activated the URL:
>
> http://thredds.met.no/thredds/wms/sea_ice/SIW-OSISAF-GLO-SIT_SIE_SIC-OBS/ice_conc_north_aggregated?LAYERS=ice_conc&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&STYLES=boxfill%2Frainbow&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG%3A3408&TIME=2005-03-01T12%3A00%3A00Z&BBOX=0,-4387896.9495301,2193948.4747651,-2193948.4747651&WIDTH=256&HEIGHT=256
>
> I got the same error as before.
>
> Then I stopped tomcat again, before I made the two gziped tar archives 
> enclosed.
>
> I hope you can figure something out from this.
>
> Best regards,
>
>    Egil 
-Lansing Madry
  Unidata
  Boulder, Colorado

Ticket Details
===================
Ticket ID: IJD-492214
Department: Support THREDDS
Priority: Low
Status: Open