You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Nash (JIRA)" <tu...@ws.apache.org> on 2007/09/21 23:45:50 UTC

[jira] Created: (TUSCANY-1791) binding-notification-* samples don't work

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
             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-producer>java -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: 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.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:172)
        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)
        ... 2 more
Caused by: 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.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:161)
        at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170)
        ... 7 more
Caused by: 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)
        ... 8 more
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





-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1791) binding-notification-* samples don't work

Posted by "Manuel Arakkal (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567337#action_12567337 ] 

Manuel Arakkal commented on TUSCANY-1791:
-----------------------------------------

Please ignore my previous comment. I was able to install the latest version of Tuscany - apache-tuscany-sca-1.1-incubating - and the error went away.

Manuel Arakkal

> 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-producer>java -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: 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.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:172)
>         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)
>         ... 2 more
> Caused by: 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.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:161)
>         at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170)
>         ... 7 more
> Caused by: 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)
>         ... 8 more
> 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

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-1791) binding-notification-* samples don't work

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ 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-producer>java -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: 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.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:172)
>         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)
>         ... 2 more
> Caused by: 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.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:161)
>         at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170)
>         ... 7 more
> Caused by: 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)
>         ... 8 more
> 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

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1791) binding-notification-* samples don't work

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529584 ] 

Ignacio Silva-Lepe commented on TUSCANY-1791:
---------------------------------------------

This is odd. This code has been working for a while now. And testing in the trunk works as well. I was a bit suspicious of the changes that were made to the encoders and decoders as part of the reorg to make the module activation lazy. But then, I have tested after the merge from the branch and it works.
But I do get Simon's error as well.

> 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
>             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-producer>java -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: 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.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:172)
>         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)
>         ... 2 more
> Caused by: 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.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:161)
>         at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170)
>         ... 7 more
> Caused by: 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)
>         ... 8 more
> 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

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1791) binding-notification-* samples don't work

Posted by "Luciano Resende (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende updated TUSCANY-1791:
-------------------------------------

    Fix Version/s:     (was: Java-SCA-1.0.1)
                   Java-SCA-1.2

> 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-producer>java -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: 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.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:172)
>         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)
>         ... 2 more
> Caused by: 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.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:161)
>         at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170)
>         ... 7 more
> Caused by: 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)
>         ... 8 more
> 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

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1791) binding-notification-* samples don't work

Posted by "Manuel Arakkal (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565087#action_12565087 ] 

Manuel Arakkal commented on TUSCANY-1791:
-----------------------------------------

I tried running the sample application using the steps described in - http://incubator.apache.org/tuscany/sca-overview.data/getting_started_Rest_099_07.pdf - on Windows Vista using tuscany-sca-all-1.0.1-incubating and Java EE 5

and get the following error message:

Starting ...
Exception in thread "main" org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.contribution.service.ContributionReadException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col,system-id]: [1,0,"file:/C:/Working/Eclipse/workspace/store/bin/store.composite"]
	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 launch.Launch.main(Launch.java:6)
Caused by: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.contribution.service.ContributionReadException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col,system-id]: [1,0,"file:/C:/Working/Eclipse/workspace/store/bin/store.composite"]
	at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:130)
	at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:230)
	... 2 more
Caused by: org.apache.tuscany.sca.contribution.service.ContributionReadException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col,system-id]: [1,0,"file:/C:/Working/Eclipse/workspace/store/bin/store.composite"]
	at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:93)
	at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:43)
	at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.read(ExtensibleURLArtifactProcessor.java:76)
	at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processReadPhase(ContributionServiceImpl.java:376)
	at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:323)
	at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:151)
	at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:128)
	... 3 more
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col,system-id]: [1,0,"file:/C:/Working/Eclipse/workspace/store/bin/store.composite"]
	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 javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:60)
	at org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader.nextTag(ValidatingXMLStreamReader.java:166)
	at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:64)
	... 9 more

I would like to know how this could be fixed.

Thanks,
Manuel Arakkal

> 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-producer>java -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: 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.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:172)
>         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)
>         ... 2 more
> Caused by: 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.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:161)
>         at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170)
>         ... 7 more
> Caused by: 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)
>         ... 8 more
> 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

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Reopened: (TUSCANY-1791) binding-notification-* samples don't work

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng reopened TUSCANY-1791:
-----------------------------------


I found the roor cause of the problem. For some reason, the header names are converted to lower cases and the Map.get() doesn't match any more. I'm fixing it in Tuscany as a workaround to use lower case header names.

> 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-producer>java -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: 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.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:172)
>         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)
>         ... 2 more
> Caused by: 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.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:161)
>         at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170)
>         ... 7 more
> Caused by: 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)
>         ... 8 more
> 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

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1791) binding-notification-* samples don't work

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529657 ] 

Ignacio Silva-Lepe commented on TUSCANY-1791:
---------------------------------------------

Interestingly, if I replace tuscany-sca-all-1.0-incubating.jar from the trunk distro and into RC3a, then the samples run.

Looking into the jars, I notice that the org/apache/tuscany/sca/http/tomcat classes appear much earlier in the tuscany-sca-all-1.0-incubating.jar for the trunk distro than in that for RC3a. This could explain why the Tomcat Servlet Engine is being run instead of the Jetty Servlet Engine, which is what the notification binding needs.

> 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
>             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-producer>java -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: 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.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:172)
>         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)
>         ... 2 more
> Caused by: 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.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:161)
>         at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170)
>         ... 7 more
> Caused by: 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)
>         ... 8 more
> 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

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-1791) binding-notification-* samples don't work

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ 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-producer>java -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: 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.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:172)
>         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)
>         ... 2 more
> Caused by: 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.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:161)
>         at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170)
>         ... 7 more
> Caused by: 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)
>         ... 8 more
> 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

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Assigned: (TUSCANY-1791) binding-notification-* samples don't work

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ignacio Silva-Lepe reassigned TUSCANY-1791:
-------------------------------------------

    Assignee: Ignacio Silva-Lepe

> 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-producer>java -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: 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.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:172)
>         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)
>         ... 2 more
> Caused by: 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.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:161)
>         at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170)
>         ... 7 more
> Caused by: 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)
>         ... 8 more
> 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

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1791) binding-notification-* samples don't work

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529647 ] 

Ignacio Silva-Lepe commented on TUSCANY-1791:
---------------------------------------------

I have double checked with the latest trunk that using a distro built from it the notification binding producer and consumer samples work.

Also, looking at the trace of a run of the consumer sample in RC3a, it's odd that the runtime starts a Tomcat Servlet Engine, whereas the trunk distro does not, not to mention a number of servlet warnings that occur in RC3a but not on the trunk:

C:\Devt\RC3a\binary\tuscany-sca-1.0-incubating\samples\binding-notification-cons
umer>java -Dnotification.httpPort=8083 -cp "target\sample-binding-notification-c
onsumer-1.0-incubating.jar;%TUSCANY_SCA_MANIFEST_JAR%" notification.consumer.Tra
fficAdvisoryServer
Sep 22, 2007 8:13:40 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
Sep 22, 2007 8:13:40 AM org.apache.catalina.startup.ContextConfig defaultWebConf
ig
INFO: No default web.xml
Sep 22, 2007 8:13:40 AM org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url for /javax/servlet/jsp/resources/jsp_2_0.xsd
Sep 22, 2007 8:13:40 AM org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url for /javax/servlet/jsp/resources/web-jsptaglibrary_1_
1.dtd
Sep 22, 2007 8:13:40 AM org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url for /javax/servlet/jsp/resources/web-jsptaglibrary_1_
2.dtd
Sep 22, 2007 8:13:40 AM org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url for /javax/servlet/jsp/resources/web-jsptaglibrary_2_
0.xsd
Sep 22, 2007 8:13:40 AM org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url for /javax/servlet/resources/j2ee_web_services_1_1.xs
d
Sep 22, 2007 8:13:41 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8083
Sep 22, 2007 8:13:41 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8083
Sep 22, 2007 8:13:41 AM org.apache.tuscany.sca.http.tomcat.TomcatServer addServl
etMapping
INFO: Added Servlet mapping: http://localhost:8083/ntm/trafficAdvisory
Sep 22, 2007 8:13:41 AM org.apache.tuscany.sca.http.tomcat.TomcatServer addServl
etMapping
INFO: Added Servlet mapping: http://localhost:8083/consumer/trafficAdvisory
TrafficAdvisoryServer, hit return to end

Any ideas?

> 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
>             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-producer>java -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: 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.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:172)
>         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)
>         ... 2 more
> Caused by: 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.binding.notification.NotificationTypeManagerImpl.newProducer(NotificationTypeManagerImpl.java:161)
>         at org.apache.tuscany.sca.binding.notification.NotificationReferenceBindingProvider.deployProducer(NotificationReferenceBindingProvider.java:170)
>         ... 7 more
> Caused by: 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)
>         ... 8 more
> 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

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org