xmltask - java.net.ConnectException: Connection timed out: connect with ANT build -


we facing java.net.connectexception: connection timed out: connect while doing ant build , happening in java developer machine using ant. tried block below tag in web.xml java.sun.com cause of issue.

still doesn't seem resolve issue. please resolve issue.

below stacktrace,

[xmltask] java.net.connectexception: connection timed out: connect   [xmltask]     @ java.net.plainsocketimpl.socketconnect(native method)   [xmltask]     @ java.net.plainsocketimpl.doconnect(unknown source)   [xmltask]     @ java.net.plainsocketimpl.connecttoaddress(unknown source)   [xmltask]     @ java.net.plainsocketimpl.connect(unknown source)   [xmltask]     @ java.net.sockssocketimpl.connect(unknown source)   [xmltask]     @ java.net.socket.connect(unknown source)   [xmltask]     @ java.net.socket.connect(unknown source)   [xmltask]     @ sun.net.networkclient.doconnect(unknown source)   [xmltask]     @ sun.net.www.http.httpclient.openserver(unknown source)   [xmltask]     @ sun.net.www.http.httpclient.openserver(unknown source)   [xmltask]     @ sun.net.www.http.httpclient.<init>(unknown source)   [xmltask]     @ sun.net.www.http.httpclient.new(unknown source)   [xmltask]     @ sun.net.www.http.httpclient.new(unknown source)   [xmltask]     @ sun.net.www.protocol.http.httpurlconnection.getnewhttpclient(unknown source)   [xmltask]     @ sun.net.www.protocol.http.httpurlconnection.plainconnect(unknown source)   [xmltask]     @ sun.net.www.protocol.http.httpurlconnection.connect(unknown source)   [xmltask]     @ sun.net.www.protocol.http.httpurlconnection.getinputstream(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.impl.xmlentitymanager.setupcurrententity(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.impl.xmlentitymanager.startentity(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.impl.xmlentitymanager.startdtdentity(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.impl.xmldtdscannerimpl.setinputsource(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl$dtddriver.dispatch(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl$dtddriver.next(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl$prologdriver.next(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.impl.xmlnsdocumentscannerimpl.next(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.parsers.domparser.parse(unknown source)   [xmltask]     @ com.sun.org.apache.xerces.internal.jaxp.documentbuilderimpl.parse(unknown source)   [xmltask]     @ com.oopsconsultancy.xmltask.ant.xmltask.documentfromstream(xmltask.java:354)   [xmltask]     @ com.oopsconsultancy.xmltask.ant.xmltask.documentfromfile(xmltask.java:371)   [xmltask]     @ com.oopsconsultancy.xmltask.ant.xmltask.access$000(xmltask.java:27)   [xmltask]     @ com.oopsconsultancy.xmltask.ant.xmltask$inputfile.getdocument(xmltask.java:215)   [xmltask]     @ com.oopsconsultancy.xmltask.ant.xmltask.execute(xmltask.java:620)   [xmltask]     @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:291)   [xmltask]     @ sun.reflect.generatedmethodaccessor4.invoke(unknown source)   [xmltask]     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)   [xmltask]     @ java.lang.reflect.method.invoke(unknown source)   [xmltask]     @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106)   [xmltask]     @ org.apache.tools.ant.task.perform(task.java:348)   [xmltask]     @ org.apache.tools.ant.target.execute(target.java:390)   [xmltask]     @ org.apache.tools.ant.target.performtasks(target.java:411)   [xmltask]     @ org.apache.tools.ant.project.executesortedtargets(project.java:1399)   [xmltask]     @ org.apache.tools.ant.project.executetarget(project.java:1368)   [xmltask]     @ org.apache.tools.ant.helper.defaultexecutor.executetargets(defaultexecutor.java:41)   [xmltask]     @ org.eclipse.ant.internal.launching.remote.eclipsedefaultexecutor.executetargets(eclipsedefaultexecutor.java:32)   [xmltask]     @ org.apache.tools.ant.project.executetargets(project.java:1251)   [xmltask]     @ org.eclipse.ant.internal.launching.remote.internalantrunner.run(internalantrunner.java:424)   [xmltask]     @ org.eclipse.ant.internal.launching.remote.internalantrunner.main(internalantrunner.java:138)  build failed c:\sigma\sigma_6.0\javasource_6.0\build\build_ecams_ehr.xml:2037: connection timed out: connect 

are working behind corporate proxy? block connections internet. can configure ant script work proxies:

https://ant.apache.org/manual/proxy.html

i have never used xmltask speculate might failing resolve namespaces in xml document.

<root xmlns:e="http://my.domain.com/exampleschema">    <e:customer>     <e:name>joe bloggs</e:name>     <e:age>80</e:age>   </e:table>  </root>  

xmltask not standard ant task, 3rd party extension:

http://www.oopsconsultancy.com/software/xmltask/


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -