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)" <de...@tuscany.apache.org> on 2009/09/08 11:38:57 UTC

[jira] Reopened: (TUSCANY-3164) Unable to build binding-gdata-runtime

     [ https://issues.apache.org/jira/browse/TUSCANY-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Nash reopened TUSCANY-3164:
---------------------------------


I am still seeing the same build failure from a clean checkout of the 1.5.1 branch.  Here is the build log:

Running org.apache.tuscany.sca.binding.gdata.GoogleContactsServiceTestCase
08-Sep-2009 10:33:02 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution: file:/F:/tuscany91/sca-java-1.5.1/modules/binding-gd
ata-runtime/target/test-classes/
08-Sep-2009 10:33:02 org.apache.tuscany.sca.contribution.processor.ValidatingXML
StreamReader
SEVERE: XMLSchema validation error occured in: null ,line = 21, column = 3, Mess
age = cvc-complex-type.4: Attribute 'serviceType' must appear on element 'tuscan
y:binding.gdata'.
08-Sep-2009 10:33:02 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: org/apache/tuscany/sca/binding/gdata/ConsumerGoogleContacts
.composite
feed title: Haibo Zhao's Contacts
08-Sep-2009 10:33:06 org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: org/apache/tuscany/sca/binding/gdata/ConsumerGoogleContacts
.composite
Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.547 sec <<< FA
ILURE!
testClientDelete(org.apache.tuscany.sca.binding.gdata.GoogleContactsServiceTestC
ase)  Time elapsed: 1.397 sec  <<< ERROR!
org.osoa.sca.ServiceRuntimeException: com.google.gdata.util.ResourceNotFoundExce
ption: Not Found
Contact not found

08-Sep-2009 10:33:07 org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: org/apache/tuscany/sca/binding/gdata/ConsumerGoogleBlogger.
composite
        at org.apache.tuscany.sca.binding.gdata.provider.GdataBindingInvoker$Del
eteInvoker.invoke(GdataBindingInvoker.java:279)
        at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.i
nvoke(PassByValueInterceptor.java:55)
        at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:346)
        at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:193)
        at $Proxy11.delete(Unknown Source)
        at org.apache.tuscany.sca.binding.gdata.CustomerClientImpl.clientDelete(
CustomerClientImpl.java:82)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementat
ionInvoker.invoke(JavaImplementationInvoker.java:156)
        at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCAB
indingInvoker.java:61)
        at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:346)
        at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
KInvocationHandler.java:193)
        at $Proxy10.clientDelete(Unknown Source)
        at org.apache.tuscany.sca.binding.gdata.GoogleContactsServiceTestCase.te
stClientDelete(GoogleContactsServiceTestCase.java:123)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework
Method.java:44)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal
lable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe
thod.java:41)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet
hod.java:20)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
va:31)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:73)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:46)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
        at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
va:31)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:138)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:308)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:879)
Caused by: com.google.gdata.util.ResourceNotFoundException: Not Found
Contact not found

        at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(Unk
nown Source)
        at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(U
nknown Source)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse(Unknown S
ource)
        at com.google.gdata.client.http.HttpGDataRequest.execute(Unknown Source)

        at com.google.gdata.client.http.GoogleGDataRequest.execute(Unknown Sourc
e)
        at com.google.gdata.client.Service.delete(Unknown Source)
        at com.google.gdata.client.GoogleService.delete(Unknown Source)
        at com.google.gdata.client.Service.delete(Unknown Source)
        at com.google.gdata.client.GoogleService.delete(Unknown Source)
        at org.apache.tuscany.sca.binding.gdata.provider.GdataBindingInvoker$Del
eteInvoker.invoke(GdataBindingInvoker.java:274)
        ... 43 more

Running org.apache.tuscany.sca.binding.gdata.GoogleBloggerServiceTestCase
08-Sep-2009 10:33:07 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution: file:/F:/tuscany91/sca-java-1.5.1/modules/binding-gd
ata-runtime/target/test-classes/
08-Sep-2009 10:33:07 org.apache.tuscany.sca.contribution.processor.ValidatingXML
StreamReader
SEVERE: XMLSchema validation error occured in: null ,line = 21, column = 3, Mess
age = cvc-complex-type.4: Attribute 'serviceType' must appear on element 'tuscan
y:binding.gdata'.
08-Sep-2009 10:33:07 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: org/apache/tuscany/sca/binding/gdata/ConsumerGoogleBlogger.
composite
08-Sep-2009 10:33:14 org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: org/apache/tuscany/sca/binding/gdata/ConsumerGoogleBlogger.
composite
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.788 sec
Running org.apache.tuscany.sca.binding.gdata.ConsumerProviderTestCase
08-Sep-2009 10:33:14 org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: org/apache/tuscany/sca/binding/gdata/Provider.composite
08-Sep-2009 10:33:14 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution: file:/F:/tuscany91/sca-java-1.5.1/modules/binding-gd
ata-runtime/target/test-classes/
08-Sep-2009 10:33:14 org.apache.tuscany.sca.contribution.processor.ValidatingXML
StreamReader
SEVERE: XMLSchema validation error occured in: null ,line = 21, column = 3, Mess
age = cvc-complex-type.4: Attribute 'serviceType' must appear on element 'tuscan
y:binding.gdata'.
08-Sep-2009 10:33:14 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: org/apache/tuscany/sca/binding/gdata/Provider.composite
08-Sep-2009 10:33:15 org.apache.tuscany.sca.http.jetty.JettyServer addServletMap
ping
INFO: Added Servlet mapping: http://Angels:8084/customer/*
08-Sep-2009 10:33:15 org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: org/apache/tuscany/sca/binding/gdata/Consumer.composite
08-Sep-2009 10:33:15 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution: file:/F:/tuscany91/sca-java-1.5.1/modules/binding-gd
ata-runtime/target/test-classes/
08-Sep-2009 10:33:15 org.apache.tuscany.sca.contribution.processor.ValidatingXML
StreamReader
SEVERE: XMLSchema validation error occured in: null ,line = 21, column = 3, Mess
age = cvc-complex-type.4: Attribute 'serviceType' must appear on element 'tuscan
y:binding.gdata'.
08-Sep-2009 10:33:15 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: org/apache/tuscany/sca/binding/gdata/Consumer.composite
08-Sep-2009 10:33:16 org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: org/apache/tuscany/sca/binding/gdata/Consumer.composite
08-Sep-2009 10:33:16 org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: org/apache/tuscany/sca/binding/gdata/Provider.composite
08-Sep-2009 10:33:16 org.apache.tuscany.sca.http.jetty.JettyServer removeServlet
Mapping
INFO: Removed Servlet mapping: /customer/*
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.638 sec

Results :

Tests in error:
  testClientDelete(org.apache.tuscany.sca.binding.gdata.GoogleContactsServiceTes
tCase)

Tests run: 28, Failures: 0, Errors: 1, Skipped: 1

> Unable to build binding-gdata-runtime
> -------------------------------------
>
>                 Key: TUSCANY-3164
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3164
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Misc Binding Extensions
>    Affects Versions: Java-SCA-1.5.1
>         Environment: Windows Vista
>            Reporter: Simon Nash
>            Assignee: Luciano Resende
>             Fix For: Java-SCA-1.5.1, Java-SCA-Next
>
>
> I'm unable to build the 1.5.1 branch because of the following failure in binding-gdata-runtime.  As a temporary workaround,
> I have disabled testClientDelete by adding an @Ignore annotation.
> - - - - - - - - - - - - - - - - 
> testClientDelete(org.apache.tuscany.sca.binding.gdata.GoogleContactsServiceTestC
> ase)  Time elapsed: 1.303 sec  <<< ERROR!
> org.osoa.sca.ServiceRuntimeException: com.google.gdata.util.ResourceNotFoundExce
> ption: Not Found
> Contact not found.
>         at org.apache.tuscany.sca.binding.gdata.provider.GdataBindingInvoker$Del
> eteInvoker.invoke(GdataBindingInvoker.java:281)
>         at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.i
> nvoke(PassByValueInterceptor.java:55)
>         at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:346)
>         at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:193)
> 20-Jul-2009 02:11:19 org.apache.tuscany.sca.node.impl.NodeImpl <init>
> INFO: Creating node: org/apache/tuscany/sca/binding/gdata/ConsumerGoogleBlogger.
> composite
>         at $Proxy11.delete(Unknown Source)
>         at org.apache.tuscany.sca.binding.gdata.CustomerClientImpl.clientDelete(
> CustomerClientImpl.java:83)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementat
> ionInvoker.invoke(JavaImplementationInvoker.java:156)
>         at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCAB
> indingInvoker.java:61)
>         at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:346)
>         at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
> KInvocationHandler.java:193)
>         at $Proxy10.clientDelete(Unknown Source)
>         at org.apache.tuscany.sca.binding.gdata.GoogleContactsServiceTestCase.te
> stClientDelete(GoogleContactsServiceTestCase.java:131)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at junit.framework.TestCase.runTest(TestCase.java:168)
>         at junit.framework.TestCase.runBare(TestCase.java:134)
>         at junit.framework.TestResult$1.protect(TestResult.java:110)
>         at junit.framework.TestResult.runProtected(TestResult.java:128)
>         at junit.framework.TestResult.run(TestResult.java:113)
>         at junit.framework.TestCase.run(TestCase.java:124)
>         at junit.framework.TestSuite.runTest(TestSuite.java:232)
>         at junit.framework.TestSuite.run(TestSuite.java:227)
>         at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.
> java:79)
>         at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
> java:62)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
> tSet(AbstractDirectoryTestSuite.java:138)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
> stractDirectoryTestSuite.java:125)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
> refireBooter.java:308)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
> ava:879)
> Caused by: com.google.gdata.util.ResourceNotFoundException: Not Found
> Contact not found.
>         at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(Unk
> nown Source)
>         at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(U
> nknown Source)
>         at com.google.gdata.client.http.HttpGDataRequest.checkResponse(Unknown S
> ource)
>         at com.google.gdata.client.http.HttpGDataRequest.execute(Unknown Source)
>         at com.google.gdata.client.http.GoogleGDataRequest.execute(Unknown Sourc
> e)
>         at com.google.gdata.client.Service.getEntry(Unknown Source)
>         at com.google.gdata.client.GoogleService.getEntry(Unknown Source)
>         at com.google.gdata.client.Service.getEntry(Unknown Source)
>         at org.apache.tuscany.sca.binding.gdata.provider.GdataBindingInvoker$Del
> eteInvoker.invoke(GdataBindingInvoker.java:270)
>         ... 38 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Reopened: (TUSCANY-3164) Unable to build binding-gdata-runtime

Posted by Simon Nash <na...@apache.org>.
Luciano Resende wrote:
> On Tue, Sep 8, 2009 at 9:47 AM, Simon Nash<na...@apache.org> wrote:
>> Luciano Resende wrote:
>>> Could you guys please try to increase the SLEEP_INTERVAL from 400L to
>>> 2000L in the Constants class [1] inside the gdata-runtime module and
>>> let us know if this make any changes on the failures.
>>>
>>> [1]
>>> https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java
>>>
>> I tried this but the test still failed.  I then increased it to
>> 3000L and the tests passed but took much longer to run, with
>> frequent lengthy pauses.
>>
> 
> It them seems that the problem is the turnaround time on the Google
> Infrastructure to process the post and make the new entry available.
> I'm not sure what to do here, maybe we could increase the delay to
> 3000L only on the more time consuming test, or the worst case disable
> some of them...
> 
> Thoughts ?
> 
> 
Is there any way for the client to get back an acknowledgement from
the Google infrastructure that the new entry is available, so that
it can continue safely when it gets this acknowledgement?  The current
API seems to return an Entry object that may or may not be safe to
use at the time it is returned.

   Simon


Re: [jira] Reopened: (TUSCANY-3164) Unable to build binding-gdata-runtime

Posted by Luciano Resende <lu...@gmail.com>.
On Tue, Sep 8, 2009 at 9:47 AM, Simon Nash<na...@apache.org> wrote:
> Luciano Resende wrote:
>> Could you guys please try to increase the SLEEP_INTERVAL from 400L to
>> 2000L in the Constants class [1] inside the gdata-runtime module and
>> let us know if this make any changes on the failures.
>>
>> [1]
>> https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java
>>
> I tried this but the test still failed.  I then increased it to
> 3000L and the tests passed but took much longer to run, with
> frequent lengthy pauses.
>

It them seems that the problem is the turnaround time on the Google
Infrastructure to process the post and make the new entry available.
I'm not sure what to do here, maybe we could increase the delay to
3000L only on the more time consuming test, or the worst case disable
some of them...

Thoughts ?


-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: [jira] Reopened: (TUSCANY-3164) Unable to build binding-gdata-runtime

Posted by Simon Laws <si...@googlemail.com>.
Mine failed at 2000 also. Haven't tried a larger number yet.

Simon

Re: [jira] Reopened: (TUSCANY-3164) Unable to build binding-gdata-runtime

Posted by Simon Nash <na...@apache.org>.
Luciano Resende wrote:
> On Tue, Sep 8, 2009 at 5:14 AM, Simon Laws<si...@googlemail.com> wrote:
>> I've just now seen it on Linux. Don't remember seeing it on WinXP.
>>
>> Simon
>>
> 
> Could you guys please try to increase the SLEEP_INTERVAL from 400L to
> 2000L in the Constants class [1] inside the gdata-runtime module and
> let us know if this make any changes on the failures.
> 
> [1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java
> 
I tried this but the test still failed.  I then increased it to
3000L and the tests passed but took much longer to run, with
frequent lengthy pauses.

   Simon


Re: [jira] Reopened: (TUSCANY-3164) Unable to build binding-gdata-runtime

Posted by Luciano Resende <lu...@gmail.com>.
On Tue, Sep 8, 2009 at 5:14 AM, Simon Laws<si...@googlemail.com> wrote:
> I've just now seen it on Linux. Don't remember seeing it on WinXP.
>
> Simon
>

Could you guys please try to increase the SLEEP_INTERVAL from 400L to
2000L in the Constants class [1] inside the gdata-runtime module and
let us know if this make any changes on the failures.

[1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java

-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: [jira] Reopened: (TUSCANY-3164) Unable to build binding-gdata-runtime

Posted by Simon Laws <si...@googlemail.com>.
I've just now seen it on Linux. Don't remember seeing it on WinXP.

Simon

Re: [jira] Reopened: (TUSCANY-3164) Unable to build binding-gdata-runtime

Posted by Simon Nash <na...@apache.org>.
Simon Laws wrote:
> I don't know the GData binidng. However it is working for me which
> would suggest that there is either an environment or timing issue when
> it gets down to deleting whatever resources have been created.
> 
> Simon
> 
> 
It always (or nearly always) fails for me.  Maybe this is Windows/Linux
related.

   Simon


Re: [jira] Reopened: (TUSCANY-3164) Unable to build binding-gdata-runtime

Posted by Simon Laws <si...@googlemail.com>.
I don't know the GData binidng. However it is working for me which
would suggest that there is either an environment or timing issue when
it gets down to deleting whatever resources have been created.

Simon