0 Replies Latest reply on Dec 28, 2015 12:25 PM by Raghunath Kale

    Arquillian + Could not import XML from stream

    Raghunath Kale Newbie

      Good Day,

       

      Can someone please help me, I am able to execute Arquillian on window without any issue but, when I am executing it on Linux, I am getting below exception.

       

      org.jboss.shrinkwrap.descriptor.api.DescriptorImportException: Could not import XML from stream

        at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomNodeImporterImpl.importAsNode(XmlDomNodeImporterImpl.java:80)

        at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomNodeImporter.importAsNode(XmlDomNodeImporter.java:46)

        at org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImporterBase.fromStream(NodeDescriptorImporterBase.java:72)

        at org.jboss.shrinkwrap.descriptor.spi.DescriptorImporterBase.fromStream(DescriptorImporterBase.java:155)

        at org.jboss.shrinkwrap.descriptor.spi.DescriptorImporterBase.from(DescriptorImporterBase.java:182)

        at com.ericsson.oss.pmic.mediation.test.addons.enrichers.impl.EnterpriseArchiveEnricherImpl.addOrReplaceApplicationXmlDescriptorForEjbModule(EnterpriseArchiveEnricherImpl.java:218)

        at com.ericsson.oss.pmic.mediation.test.addons.enrichers.impl.EnterpriseArchiveEnricherImpl.syncDescriptorsForJavaArchives(EnterpriseArchiveEnricherImpl.java:197)

        at com.ericsson.oss.pmic.mediation.test.addons.enrichers.impl.EnterpriseArchiveEnricherImpl.configureJavaArchives(EnterpriseArchiveEnricherImpl.java:136)

        at com.ericsson.oss.pmic.mediation.test.addons.enrichers.impl.EnterpriseArchiveEnricherImpl.enrichThis(EnterpriseArchiveEnricherImpl.java:107)

        at com.ericsson.oss.pmic.mediation.test.addons.enrichers.impl.EnterpriseArchiveEnricherImpl.enrichNew(EnterpriseArchiveEnricherImpl.java:100)

        at com.ericsson.oss.pmic.mediation.test.addons.enrichers.impl.EnterpriseArchiveEnricherImpl.enrich(EnterpriseArchiveEnricherImpl.java:50)

        at com.ericsson.oss.pmic.mediation.test.addons.enrichers.impl.dsl.grammar.EnterpriseArchiveConfigBuilderGrammarImpl.enrich(EnterpriseArchiveConfigBuilderGrammarImpl.java:143)

        at com.ericsson.oss.pmic.mediation.test.addons.enrichers.builders.cdi.alternatives.AlternativesBuilder.buildEnrichedEarBerriesWithEjbJar(AlternativesBuilder.java:32)

        at com.ericsson.oss.pmic.mediation.test.addons.enrichers.tryouts.cdi.alternatives.CdiAlternativesTest.testEnrichedEarBerriesWithEjbJar(CdiAlternativesTest.java:29)

        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:606)

        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)

        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)

        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)

        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)

        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)

        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)

        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)

        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)

        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)

        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)

        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)

        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)

        at org.junit.runners.Suite.runChild(Suite.java:128)

        at org.junit.runners.Suite.runChild(Suite.java:24)

        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)

        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)

        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)

        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)

        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)

        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)

        at org.junit.runner.JUnitCore.run(JUnitCore.java:157)

        at org.junit.runner.JUnitCore.run(JUnitCore.java:136)

        at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62)

        at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139)

        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:606)

        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)

        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)

        at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)

        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)

        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

      Caused by: java.net.ConnectException: Connection timed out

        at java.net.PlainSocketImpl.socketConnect(Native Method)

        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)

        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)

        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)

        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

        at java.net.Socket.connect(Socket.java:579)

        at java.net.Socket.connect(Socket.java:528)

        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)

        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)

        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)

        at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)

        at sun.net.www.http.HttpClient.New(HttpClient.java:308)

        at sun.net.www.http.HttpClient.New(HttpClient.java:326)

        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)

        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)

        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)

        at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:637)

        at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1290)

        at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1257)

        at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:263)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1164)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)

        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)

        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)

        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)

        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)

        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)

        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)

        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)

        at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomNodeImporterImpl.importAsNode(XmlDomNodeImporterImpl.java:68)