[ https://issues.apache.org/jira/browse/TUSCANY-2203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luciano Resende resolved TUSCANY-2203. -------------------------------------- Resolution: Fixed Fixed > binding-notification-consumer fails with release 1.2/Rc3 attempt > ---------------------------------------------------------------- > > Key: TUSCANY-2203 > URL: https://issues.apache.org/jira/browse/TUSCANY-2203 > Project: Tuscany > Issue Type: Bug > Components: Java SCA Samples > Affects Versions: Java-SCA-1.2 > Reporter: haleh mahbod > Fix For: Java-SCA-1.2 > > > Followed instructions > ant compile > ant run > I get the following: > C:\tuscany\sca\tuscany-sca-1.2-incubating\samples\binding-notification-consumer> > ant compile > Buildfile: build.xml > init: > compile: > BUILD SUCCESSFUL > Total time: 1 second > C:\tuscany\sca\tuscany-sca-1.2-incubating\samples\binding-notification-consumer> > ant run > Buildfile: build.xml > run: > [java] > org.apache.tuscany.sca.binding.notification.util.IOUtils$IOUtilsExce > ption: > org.apache.tuscany.sca.binding.notification.encoding.EncodingException: c > om.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog > [java] at [row,col {unknown-source}]: [1,0] > [java] at > org.apache.tuscany.sca.binding.notification.NotificationTypeM > anagerImpl$InputStreamDecoder.read(NotificationTypeManagerImpl.java:610) > [java] at > org.apache.tuscany.sca.binding.notification.util.IOUtils.send > HttpRequest(IOUtils.java:95) > [java] at > org.apache.tuscany.sca.binding.notification.util.IOUtils.send > HttpRequest(IOUtils.java:51) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationTypeM > anagerImpl.newConsumer(NotificationTypeManagerImpl.java:112) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationServi > ceBindingProvider.deployConsumer(NotificationServiceBindingProvider.java:167) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationBindi > ngProviderFactory.serviceProviderStarted(NotificationBindingProviderFactory.java > :174) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationServi > ceBindingProvider.start(NotificationServiceBindingProvider.java:157) > [java] at > org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.s > tart(CompositeActivatorImpl.java:524) > [java] at > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.in > it(DefaultSCADomain.java:226) > [java] at > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<i > nit>(DefaultSCADomain.java:109) > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.createNewInsta > nce(SCADomain.java:230) > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SC > ADomain.java:69) > [java] at > notification.consumer.TrafficAdvisoryServer.main(TrafficAdvis > oryServer.java:32) > [java] Caused by: > org.apache.tuscany.sca.binding.notification.encoding.Enco > dingException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog > [java] at [row,col {unknown-source}]: [1,0] > [java] at > org.apache.tuscany.sca.binding.notification.encoding.Encoding > Utils.decodeFromStream(EncodingUtils.java:65) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationTypeM > anagerImpl$InputStreamDecoder.read(NotificationTypeManagerImpl.java:607) > [java] ... 12 more > [java] Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in > prol > og > [java] at [row,col {unknown-source}]: [1,0] > [java] at > com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanne > r.java:661) > [java] at > com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader > .java:2134) > [java] at > com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamR > eader.java:2040) > [java] at > com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java > :1069) > [java] at > org.apache.tuscany.sca.binding.notification.encoding.Encoding > Utils.decodeFromStream(EncodingUtils.java:60) > [java] ... 13 more > [java] org.osoa.sca.ServiceRuntimeException: java.lang.RuntimeException: > or > g.apache.tuscany.sca.binding.notification.util.IOUtils$IOUtilsException: > org.apa > che.tuscany.sca.binding.notification.encoding.EncodingException: > com.ctc.wstx.ex > c.WstxEOFException: Unexpected EOF in prolog > [java] at [row,col {unknown-source}]: [1,0] > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.createNewInsta > nce(SCADomain.java:264) > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SC > ADomain.java:69) > [java] at > notification.consumer.TrafficAdvisoryServer.main(TrafficAdvis > oryServer.java:32) > [java] Caused by: java.lang.RuntimeException: > org.apache.tuscany.sca.bindin > g.notification.util.IOUtils$IOUtilsException: > org.apache.tuscany.sca.binding.not > ification.encoding.EncodingException: com.ctc.wstx.exc.WstxEOFException: > Unexpec > ted EOF in prolog > [java] at [row,col {unknown-source}]: [1,0] > [java] at > org.apache.tuscany.sca.binding.notification.NotificationTypeM > anagerImpl.newConsumer(NotificationTypeManagerImpl.java:123) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationServi > ceBindingProvider.deployConsumer(NotificationServiceBindingProvider.java:167) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationBindi > ngProviderFactory.serviceProviderStarted(NotificationBindingProviderFactory.java > :174) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationServi > ceBindingProvider.start(NotificationServiceBindingProvider.java:157) > [java] at > org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.s > tart(CompositeActivatorImpl.java:524) > [java] at > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.in > it(DefaultSCADomain.java:226) > [java] at > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<i > nit>(DefaultSCADomain.java:109) > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.createNewInsta > nce(SCADomain.java:230) > [java] ... 2 more > [java] Caused by: > org.apache.tuscany.sca.binding.notification.util.IOUtils$ > IOUtilsException: > org.apache.tuscany.sca.binding.notification.encoding.EncodingE > xception: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog > [java] at [row,col {unknown-source}]: [1,0] > [java] at > org.apache.tuscany.sca.binding.notification.NotificationTypeM > anagerImpl$InputStreamDecoder.read(NotificationTypeManagerImpl.java:610) > [java] at > org.apache.tuscany.sca.binding.notification.util.IOUtils.send > HttpRequest(IOUtils.java:95) > [java] at > org.apache.tuscany.sca.binding.notification.util.IOUtils.send > HttpRequest(IOUtils.java:51) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationTypeM > anagerImpl.newConsumer(NotificationTypeManagerImpl.java:112) > [java] ... 9 more > [java] Caused by: > org.apache.tuscany.sca.binding.notification.encoding.Enco > dingException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog > [java] at [row,col {unknown-source}]: [1,0] > [java] at > org.apache.tuscany.sca.binding.notification.encoding.Encoding > Utils.decodeFromStream(EncodingUtils.java:65) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationTypeM > anagerImpl$InputStreamDecoder.read(NotificationTypeManagerImpl.java:607) > [java] ... 12 more > [java] Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in > prol > og > [java] at [row,col {unknown-source}]: [1,0] > [java] at > com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanne > r.java:661) > [java] at > com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader > .java:2134) > [java] at > com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamR > eader.java:2040) > [java] at > com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java > :1069) > [java] at > org.apache.tuscany.sca.binding.notification.encoding.Encoding > Utils.decodeFromStream(EncodingUtils.java:60) > [java] ... 13 more > BUILD SUCCESSFUL > Total time: 3 seconds > C:\tuscany\sca\tuscany-sca-1.2-incubating\samples\binding-notification-consumer> > C:\tuscany\sca\tuscany-sca-1.2-incubating\samples\binding-notification-consumer> > ant compile > Buildfile: build.xml > init: > compile: > BUILD SUCCESSFUL > Total time: 1 second > C:\tuscany\sca\tuscany-sca-1.2-incubating\samples\binding-notification-consumer> > ant run > Buildfile: build.xml > run: > [java] java.net.ConnectException: Connection refused: connect > [java] at java.net.PlainSocketImpl.socketConnect(Native Method) > [java] at > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) > [java] at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav > a:195) > [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) > [java] at java.net.Socket.connect(Socket.java:519) > [java] at java.net.Socket.connect(Socket.java:469) > [java] at sun.net.NetworkClient.doConnect(NetworkClient.java:157) > [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:382) > [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:509) > [java] at sun.net.www.http.HttpClient.<init>(HttpClient.java:231) > [java] at sun.net.www.http.HttpClient.New(HttpClient.java:304) > [java] at sun.net.www.http.HttpClient.New(HttpClient.java:316) > [java] at > sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient( > HttpURLConnection.java:817) > [java] at > sun.net.www.protocol.http.HttpURLConnection.plainConnect(Http > URLConnection.java:769) > [java] at > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLCo > nnection.java:694) > [java] at > org.apache.tuscany.sca.binding.notification.util.IOUtils.send > HttpRequest(IOUtils.java:80) > [java] at > org.apache.tuscany.sca.binding.notification.util.IOUtils.send > HttpRequest(IOUtils.java:51) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationTypeM > anagerImpl.newConsumer(NotificationTypeManagerImpl.java:112) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationServi > ceBindingProvider.deployConsumer(NotificationServiceBindingProvider.java:167) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationBindi > ngProviderFactory.serviceProviderStarted(NotificationBindingProviderFactory.java > :174) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationServi > ceBindingProvider.start(NotificationServiceBindingProvider.java:157) > [java] at > org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.s > tart(CompositeActivatorImpl.java:524) > [java] at > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.in > it(DefaultSCADomain.java:226) > [java] at > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<i > nit>(DefaultSCADomain.java:109) > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.createNewInsta > nce(SCADomain.java:230) > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SC > ADomain.java:69) > [java] at > notification.consumer.TrafficAdvisoryServer.main(TrafficAdvis > oryServer.java:32) > [java] org.osoa.sca.ServiceRuntimeException: java.lang.RuntimeException: > ja > va.net.ConnectException: Connection refused: connect > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.createNewInsta > nce(SCADomain.java:264) > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SC > ADomain.java:69) > [java] at > notification.consumer.TrafficAdvisoryServer.main(TrafficAdvis > oryServer.java:32) > [java] Caused by: java.lang.RuntimeException: java.net.ConnectException: > Co > nnection refused: connect > [java] at > org.apache.tuscany.sca.binding.notification.NotificationTypeM > anagerImpl.newConsumer(NotificationTypeManagerImpl.java:123) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationServi > ceBindingProvider.deployConsumer(NotificationServiceBindingProvider.java:167) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationBindi > ngProviderFactory.serviceProviderStarted(NotificationBindingProviderFactory.java > :174) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationServi > ceBindingProvider.start(NotificationServiceBindingProvider.java:157) > [java] at > org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.s > tart(CompositeActivatorImpl.java:524) > [java] at > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.in > it(DefaultSCADomain.java:226) > [java] at > org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<i > nit>(DefaultSCADomain.java:109) > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.createNewInsta > nce(SCADomain.java:230) > [java] ... 2 more > [java] Caused by: java.net.ConnectException: Connection refused: connect > [java] at java.net.PlainSocketImpl.socketConnect(Native Method) > [java] at > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) > [java] at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav > a:195) > [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) > [java] at java.net.Socket.connect(Socket.java:519) > [java] at java.net.Socket.connect(Socket.java:469) > [java] at sun.net.NetworkClient.doConnect(NetworkClient.java:157) > [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:382) > [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:509) > [java] at sun.net.www.http.HttpClient.<init>(HttpClient.java:231) > [java] at sun.net.www.http.HttpClient.New(HttpClient.java:304) > [java] at sun.net.www.http.HttpClient.New(HttpClient.java:316) > [java] at > sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient( > HttpURLConnection.java:817) > [java] at > sun.net.www.protocol.http.HttpURLConnection.plainConnect(Http > URLConnection.java:769) > [java] at > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLCo > nnection.java:694) > [java] at > org.apache.tuscany.sca.binding.notification.util.IOUtils.send > HttpRequest(IOUtils.java:80) > [java] at > org.apache.tuscany.sca.binding.notification.util.IOUtils.send > HttpRequest(IOUtils.java:51) > [java] at > org.apache.tuscany.sca.binding.notification.NotificationTypeM > anagerImpl.newConsumer(NotificationTypeManagerImpl.java:112) > [java] ... 9 more > BUILD SUCCESSFUL -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]