com.sun.star.connection.NoConnectException

java.net.ConnectException: Connection refused: connect


Solutions on the web2

Solution icon of web
java.net.ConnectException: Connection refused: connect

Solution icon of stackoverflow
Connector : couldn't connect to socket (WSANOTINITIALISED, WSAStartup() has not been called)

Stack trace

  • com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused: connect at com.sun.star.lib.connections.socket.socketConnector.connect(socketConnector.java:166) at com.sun.star.comp.connections.Connector.connect(Connector.java:141) at com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:128) at odt.OdtExport.convertOOodtToPdf(OdtExport.java:98) at web.OdtServlet.doGet(OdtServlet.java:319) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.