[jira] Resolved: (TUSCANY-1791) binding-notification-* samples don't work
[ https://issues.apache.org/jira/browse/TUSCANY-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Raymond Feng resolved TUSCANY-1791. --- Resolution: Fixed Fixed under r645254 in trunk. binding-notification-* samples don't work - Key: TUSCANY-1791 URL: https://issues.apache.org/jira/browse/TUSCANY-1791 Project: Tuscany Issue Type: Bug Components: Java SCA Samples Affects Versions: Java-SCA-1.0 Environment: Windows XP Reporter: Simon Nash Assignee: Ignacio Silva-Lepe Fix For: Java-SCA-1.2 I tried to run the binding-notification-* samples from the 1.0 rc3a binary distro by following the README instructions. I always get a failure on the second application that starts. I tried various different combinations of which application to start first and which to start second and the failure was consistent. For example, if I start the consumer first on port 8083 and then the producer second on port 8084, I see the following exception from the producer: H:\tuscany-1.0-rc3a\tuscany-sca-1.0-incubating\samples\binding-notification-producerjava -Dnotification.httpPort=8084 -cp target\sample-binding-notification-producer-1.0-incubating.jar;%TUSCANY_SCA_MANIFEST_JAR% notification.producer.TrafficAdvisoryServer org.apache.tuscany.sca.binding.notification.util.IOUtils$IOUtilsException: org.apache.tuscany.sca.binding.notification.encoding.EncodingException: com.ctc.wstx. exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org.apache.tuscany.sca.binding.notification.NotificationTypeManagerImpl$InputStreamDecoder.read(NotificationTypeManagerImpl.java:610) at org.apache.tuscany.sca.binding.notification.util.IOUtils.sendHttpRequest(IOUtils.java:95) at org.apache.tuscany.sca.binding.notification.util.IOUtils.sendHttpRequest(IOUtils.java:51) at org.apache.tuscany.sca.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:150) at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170) at org.apache.tuscany.sca.binding.notification.NotificationBindingProviderFactory.referenceProviderStarted(NotificationBindingProviderFactory.java:186) at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.start(NotificationReferenceBindingProvider.java:159) at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:456) at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:186) at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:230) at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69) at notification.producer.TrafficAdvisoryServer.main(TrafficAdvisoryServer.java:31) Caused by: org.apache.tuscany.sca.binding.notification.encoding.EncodingException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org.apache.tuscany.sca.binding.notification.encoding.EncodingUtils.decodeFromStream(EncodingUtils.java:65) at org.apache.tuscany.sca.binding.notification.NotificationTypeManagerImpl$InputStreamDecoder.read(NotificationTypeManagerImpl.java:607) ... 11 more Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661) at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) at org.apache.tuscany.sca.binding.notification.encoding.EncodingUtils.decodeFromStream(EncodingUtils.java:60) ... 12 more org.osoa.sca.ServiceRuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.tuscany.sca.binding.notification.util.IOUtils$IOUtilsException: org.apache.tuscany.sca.binding.notification.encoding.EncodingException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264) at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69) at notification.producer.TrafficAdvisoryServer.main(TrafficAdvisoryServer.java:31) Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
[jira] Resolved: (TUSCANY-1791) binding-notification-* samples don't work
[ https://issues.apache.org/jira/browse/TUSCANY-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ignacio Silva-Lepe resolved TUSCANY-1791. - Resolution: Fixed I have verified that the binding notification samples run without the unexpected EOF failure binding-notification-* samples don't work - Key: TUSCANY-1791 URL: https://issues.apache.org/jira/browse/TUSCANY-1791 Project: Tuscany Issue Type: Bug Components: Java SCA Samples Affects Versions: Java-SCA-1.0 Environment: Windows XP Reporter: Simon Nash Assignee: Ignacio Silva-Lepe Fix For: Java-SCA-1.0.1 I tried to run the binding-notification-* samples from the 1.0 rc3a binary distro by following the README instructions. I always get a failure on the second application that starts. I tried various different combinations of which application to start first and which to start second and the failure was consistent. For example, if I start the consumer first on port 8083 and then the producer second on port 8084, I see the following exception from the producer: H:\tuscany-1.0-rc3a\tuscany-sca-1.0-incubating\samples\binding-notification-producerjava -Dnotification.httpPort=8084 -cp target\sample-binding-notification-producer-1.0-incubating.jar;%TUSCANY_SCA_MANIFEST_JAR% notification.producer.TrafficAdvisoryServer org.apache.tuscany.sca.binding.notification.util.IOUtils$IOUtilsException: org.apache.tuscany.sca.binding.notification.encoding.EncodingException: com.ctc.wstx. exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org.apache.tuscany.sca.binding.notification.NotificationTypeManagerImpl$InputStreamDecoder.read(NotificationTypeManagerImpl.java:610) at org.apache.tuscany.sca.binding.notification.util.IOUtils.sendHttpRequest(IOUtils.java:95) at org.apache.tuscany.sca.binding.notification.util.IOUtils.sendHttpRequest(IOUtils.java:51) at org.apache.tuscany.sca.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:150) at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170) at org.apache.tuscany.sca.binding.notification.NotificationBindingProviderFactory.referenceProviderStarted(NotificationBindingProviderFactory.java:186) at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.start(NotificationReferenceBindingProvider.java:159) at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:456) at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:186) at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:230) at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69) at notification.producer.TrafficAdvisoryServer.main(TrafficAdvisoryServer.java:31) Caused by: org.apache.tuscany.sca.binding.notification.encoding.EncodingException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org.apache.tuscany.sca.binding.notification.encoding.EncodingUtils.decodeFromStream(EncodingUtils.java:65) at org.apache.tuscany.sca.binding.notification.NotificationTypeManagerImpl$InputStreamDecoder.read(NotificationTypeManagerImpl.java:607) ... 11 more Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661) at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) at org.apache.tuscany.sca.binding.notification.encoding.EncodingUtils.decodeFromStream(EncodingUtils.java:60) ... 12 more org.osoa.sca.ServiceRuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.tuscany.sca.binding.notification.util.IOUtils$IOUtilsException: org.apache.tuscany.sca.binding.notification.encoding.EncodingException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264) at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69) at notification.producer.TrafficAdvisoryServer.main(TrafficAdvisoryServer.java:31) Caused by: