Page 1 of 1

[Update] IOException: Network is unreachable: connect

PostPosted:Tue Aug 30, 2011 10:37 am
by subsaha
I am getting the below exception while running url "http://localhost:8080/OpenKM/" in the jboss console. Can you pls suggest what should I be doing to resolve it.
Code: Select all
14:51:11,965 ERROR [Update] IOException: Network is unreachable: connect
14:55:15,438 ERROR [PropertyGroupServlet] Network is unreachable: connect
java.net.SocketException: Network is unreachable: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at java.net.Socket.connect(Socket.java:478)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:234)
        at sun.net.www.http.HttpClient.New(HttpClient.java:307)
        at sun.net.www.http.HttpClient.New(HttpClient.java:324)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:970)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:911)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:836)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:1172)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown So
urce)
        at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source
)
        at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Sourc
e)
        at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(
Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
        at com.openkm.util.FormUtils.parsePropertyGroupsForms(FormUtils.java:183
)
        at com.openkm.module.direct.DirectPropertyGroupModule.getAllGroups(Direc
tPropertyGroupModule.java:226)
        at com.openkm.api.OKMPropertyGroup.getAllGroups(OKMPropertyGroup.java:92
)
        at com.openkm.servlet.frontend.PropertyGroupServlet.getAllGroups(Propert
yGroupServlet.java:96)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:5
62)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(Remot
eServiceServlet.java:207)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(Remot
eServiceServlet.java:243)
        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Ab
stractRemoteServiceServlet.java:62)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:182)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:524)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
onnectionValve.java:157)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:262)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
6)
        at java.lang.Thread.run(Thread.java:662)
14:51:15,373 ERROR [Update] IOException: Connection timed out: connect
Secondly, if I replace the localhost with Machine "IP Address" in the url "http://localhost:8080/OpenKM/" it is not working. Do I need to change any configuration(s) to achieve it.

Re: [Update] IOException: Network is unreachable: connect

PostPosted:Wed Aug 31, 2011 3:31 pm
by jllort
You don't have internet connection on the OpenKM server. That's the problem.

Read here http://wiki.openkm.com/index.php/Troubl ... connection

Re: [Update] IOException: Network is unreachable: connect

PostPosted:Fri Sep 02, 2011 7:21 am
by subsaha
Hi,

I have installed OpenKM on Win 2003 R2 Service Pack 2. The PC has got internet access since I am able to browse any url using Internet Explorer.

Secondly, How do I replace the "localhost" in the url with the "IP Address" so that I can access the installed OpenKM from other PCs.

I am using "OpenKM-5.1.7_JBoss-4.2.3.GA".

Thanks
Subhajit

Re: [Update] IOException: Network is unreachable: connect

PostPosted:Mon Sep 05, 2011 7:45 am
by jllort
As is explained in http://wiki.openkm.com/index.php/Quick_Install and here http://wiki.openkm.com/index.php/Basic_ ... _knowledge you must binding jboss service to all network interfaces for in must execute jboss aplication server with
Code: Select all
run.bat -b 0.0.0.0

Re: [Update] IOException: Network is unreachable: connect

PostPosted:Tue Sep 06, 2011 5:27 am
by subsaha
Thanks. I am now able to access the url from other machines i.e based on IP Address.

Below is the one error(along with the error code) that I am still facing, Screen shot attached:

OKM-009006(GetAllGroups): Application internal error
Network is unreachable: connect

Pls suggest how to resolve this error.

Re: [Update] IOException: Network is unreachable: connect

PostPosted:Wed Sep 07, 2011 5:02 pm
by pavila

Re: [Update] IOException: Network is unreachable: connect

PostPosted:Thu Sep 08, 2011 7:11 am
by subsaha
Hi ... I have read it but it's the configuration for linux system

What should I be doing for Windows Server 2003 R2 system?

Re: [Update] IOException: Network is unreachable: connect

PostPosted:Fri Sep 09, 2011 2:21 pm
by pavila
Ignore the first lines related to Linux. The rest of the section is the more important and does not operating system specific.

Re: [Update] IOException: Network is unreachable: connect

PostPosted:Sat Sep 10, 2011 11:35 pm
by jllort
Problem could be some ad killer or some antivirus ... OpenKM UI makes ajax call, and sometimes that could be blocked by ad killer or antivirus application, take a look on that direction.