You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Luciano Resende <lu...@gmail.com> on 2009/01/16 23:46:47 UTC

Failures in ws binding trying to build 1.3.3 branch

I'm investigating some reported JIRAS in the 1.3.3 branch, and i'm
having issues trying to complete a build on the branch.
Is anyone else experiencing errors in the ws binding ?


Results :

Tests in error:
  testHelloWorld(org.apache.tuscany.sca.binding.ws.axis2.itests.policy.wspolicy.WSSecurityIntegrityTestCase)
  testHelloWorld(org.apache.tuscany.sca.binding.ws.axis2.itests.policy.configparams.WSSecurityIntegrityTestCase)

Tests run: 30, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to
/home/lresende/opensource/apache/tuscany/java-sca-1.3.3/modules/binding-ws-axis2/target/surefire-reports
for the individual test results.
[INFO] ------------------------------------------------------------------------

-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: Failures in ws binding trying to build 1.3.3 branch

Posted by Simon Laws <si...@googlemail.com>.
On Sat, Jan 17, 2009 at 11:51 AM, Simon Laws <si...@googlemail.com>wrote:

>
>
> On Fri, Jan 16, 2009 at 10:46 PM, Luciano Resende <lu...@gmail.com>wrote:
>
>> I'm investigating some reported JIRAS in the 1.3.3 branch, and i'm
>> having issues trying to complete a build on the branch.
>> Is anyone else experiencing errors in the ws binding ?
>>
>>
>> Results :
>>
>> Tests in error:
>>
>>  testHelloWorld(org.apache.tuscany.sca.binding.ws.axis2.itests.policy.wspolicy.WSSecurityIntegrityTestCase)
>>
>>  testHelloWorld(org.apache.tuscany.sca.binding.ws.axis2.itests.policy.configparams.WSSecurityIntegrityTestCase)
>>
>> Tests run: 30, Failures: 0, Errors: 2, Skipped: 0
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] There are test failures.
>>
>> Please refer to
>>
>> /home/lresende/opensource/apache/tuscany/java-sca-1.3.3/modules/binding-ws-axis2/target/surefire-reports
>> for the individual test results.
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> --
>> Luciano Resende
>> Apache Tuscany, Apache PhotArk
>> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
>> http://lresende.blogspot.com/
>>
>
> Hi Luciano
>
> I see it too. The error you see come out is something like....
>
> org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed
>
> Which is not very helpful! Looking at the messages flowing across the wire
> there is more detail....
>
> Caused by: org.apache.ws.security.WSSecurityException: The signature
> verification failed (The provided certificate is in
> valid)&#xd;
>
> It may be that our certificates have expired.
>
> 1/ We need to look at fixing the certificates
> 2/ We need to grab all the "causes" clauses in returned exception
>
> Simon
>

Low and behold the certificates ran out this month. I created new ones that
last a bit longer (revision: 735283 ).

I also fixed the test to print out the details of the exception. It's
problematic when the exception is coming from the server side as the real
exception is wrapped in a FaultException to be flowed across the wire but
that detail is attached as faultInfo to the exception on the reference side.
This detailed information doesn't naturally get printed out when you print
the exception message or the stack trace. We need a more general solution,
for example, append the fault info to the end of the exception message. As
it is the code is a bit ugly.

            System.out.println(ex.getMessage());
            if (ex.getCause() instanceof FaultException){

System.out.println(((FaultException)ex.getCause()).getFaultInfo().toString());
            }

As I don't really want to go fixing this in 1.3.3 I raise
*TUSCANY-2774<https://issues.apache.org/jira/browse/TUSCANY-2774>.


*I now get past binding-ws-axis2 but is now fails with...

[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Tuscany SCA Calculator Sample in a WebApp
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [tuscanyant-generator:generate {execution: default}]
[INFO] Generating
C:\simon\tuscany\java-1.3.3\samples\calculator-webapp/build.xm
l
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [war:war]
[INFO] Packaging webapp
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] dependenciesInfo : dependenciesInfo
---- Debugging information ----
message             : dependenciesInfo : dependenciesInfo
cause-exception     :
com.thoughtworks.xstream.mapper.CannotResolveClassExceptio
n
cause-message       : dependenciesInfo : dependenciesInfo
class               : org.apache.maven.plugin.war.util.WebappStructure
required-type       : org.apache.maven.plugin.war.util.WebappStructure
path                : /webapp-structure/dependenciesInfo
line number         : 74
-------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] Trace
com.thoughtworks.xstream.converters.ConversionException: dependenciesInfo :
depe
ndenciesInfo
---- Debugging information ----
message             : dependenciesInfo : dependenciesInfo
cause-exception     :
com.thoughtworks.xstream.mapper.CannotResolveClassExceptio
n
cause-message       : dependenciesInfo : dependenciesInfo
class               : org.apache.maven.plugin.war.util.WebappStructure
required-type       : org.apache.maven.plugin.war.util.WebappStructure
path                : /webapp-structure/dependenciesInfo
line number         : 74
-------------------------------
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:63)
        at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(A
bstractReferenceUnmarshaller.java:45)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnm
arshaller.java:46)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller
.java:117)
        at
com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unm
arshal(ReferenceByXPathMarshallingStrategy.java:29)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:833)
        at com.thoughtworks.xstream.XStream.fromXML(XStream.java:781)
        at
org.apache.maven.plugin.war.util.WebappStructureSerializer.fromXml(We
bappStructureSerializer.java:48)
        at
org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMo
jo.java:346)
        at
org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstr
actWarMojo.java:317)
        at
org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:166
)
        at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:130)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:478)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException:
dependen
ciesInfo : dependenciesInfo
        at
com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper
.java:49)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAl
iasingMapper.java:76)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicP
roxyMapper.java:60)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.jav
a:76)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper
.java:26)
        at
com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper
.java:34)
        at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.determineType(AbstractReflectionConverter.java:296)
        at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.doUnmarshal(AbstractReflectionConverter.java:178)
        at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv
erter.unmarshal(AbstractReflectionConverter.java:125)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshall
er.java:56)
        ... 30 more


Regards

Simon

Re: Failures in ws binding trying to build 1.3.3 branch

Posted by Simon Laws <si...@googlemail.com>.
On Fri, Jan 16, 2009 at 10:46 PM, Luciano Resende <lu...@gmail.com>wrote:

> I'm investigating some reported JIRAS in the 1.3.3 branch, and i'm
> having issues trying to complete a build on the branch.
> Is anyone else experiencing errors in the ws binding ?
>
>
> Results :
>
> Tests in error:
>
>  testHelloWorld(org.apache.tuscany.sca.binding.ws.axis2.itests.policy.wspolicy.WSSecurityIntegrityTestCase)
>
>  testHelloWorld(org.apache.tuscany.sca.binding.ws.axis2.itests.policy.configparams.WSSecurityIntegrityTestCase)
>
> Tests run: 30, Failures: 0, Errors: 2, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
>
> Please refer to
>
> /home/lresende/opensource/apache/tuscany/java-sca-1.3.3/modules/binding-ws-axis2/target/surefire-reports
> for the individual test results.
> [INFO]
> ------------------------------------------------------------------------
>
> --
> Luciano Resende
> Apache Tuscany, Apache PhotArk
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://lresende.blogspot.com/
>

Hi Luciano

I see it too. The error you see come out is something like....

org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed

Which is not very helpful! Looking at the messages flowing across the wire
there is more detail....

Caused by: org.apache.ws.security.WSSecurityException: The signature
verification failed (The provided certificate is in
valid)&#xd;

It may be that our certificates have expired.

1/ We need to look at fixing the certificates
2/ We need to grab all the "causes" clauses in returned exception

Simon