abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remy Gendron" <r...@arrova.ca>
Subject RE: Security tests are failing
Date Thu, 07 Feb 2008 16:26:49 GMT
JDK 1.5.0_14 on Vista (yuck!)... ;-)

R.

-----Original Message-----
From: James M Snell [mailto:jasnell@gmail.com] 
Sent: February 07, 2008 11:16
To: abdera-user@incubator.apache.org
Subject: Re: Security tests are failing

Hmmm... I'm not able to recreate this.  What JDK are you using? What 
platform?

- James

Remy Gendron wrote:
> I just updated from trunk and, even though the build is successful (should
> it?), the security tests are failing.
> 
>  
> 
> test.security:
> 
>      [echo] Running Security Tests...
> 
>      [java] 2008-02-07 10:55:56.580::INFO:  Logging to STDERR via
> org.mortbay.log.StdErrLog
> 
>      [java] 2008-02-07 10:55:56.627::INFO:  jetty-6.1.3
> 
>      [java] 2008-02-07 10:55:56.705::INFO:  Started SocketConnector @
> 0.0.0.0:9002
> 
>      [java] AbderaServlet.error: Error servicing request
> 
>      [java] java.lang.NoClassDefFoundError:
> org/apache/xml/serialize/Serializer
> 
>      [java]           at java.lang.Class.getDeclaredConstructors0(Native
> Method)
> 
>      [java]           at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
> 
>      [java]           at java.lang.Class.getConstructor0(Class.java:2671)
> 
>      [java]           at java.lang.Class.getConstructor(Class.java:1629)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil._create(ServiceUtil.java:175)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:229)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:222)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java:58)
> 
>      [java]           at
>
org.apache.abdera.security.AbderaSecurity.newEncryption(AbderaSecurity.java:
> 56)
> 
>      [java]           at
> org.apache.abdera.security.AbderaSecurity.<init>(AbderaSecurity.java:40)
> 
>      [java]           at
>
org.apache.abdera.security.util.filters.SignedRequestFilter.filter(SignedReq
> uestFilter.java:45)
> 
>      [java]           at
> org.apache.abdera.protocol.server.FilterChain.next(FilterChain.java:42)
> 
>      [java]           at
>
org.apache.abdera.protocol.server.servlet.AbderaServlet.service(AbderaServle
> t.java:90)
> 
>      [java]           at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> 
>      [java]           at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> 
>      [java]           at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
> 
>      [java]           at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> 
>      [java]           at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> 
>      [java]           at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> 
>      [java]           at org.mortbay.jetty.Server.handle(Server.java:285)
> 
>      [java]           at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> 
>      [java]           at
>
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnectio
> n.java:821)
> 
>      [java]           at
> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
> 
>      [java]           at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
> 
>      [java]           at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> 
>      [java]           at
>
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:22
> 6)
> 
>      [java]           at
>
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:4
> 42)
> 
>      [java] AbderaServlet.error: Error servicing request
> 
>      [java] java.lang.NoClassDefFoundError:
> org/apache/xml/serialize/Serializer
> 
>      [java]           at java.lang.Class.getDeclaredConstructors0(Native
> Method)
> 
>      [java]           at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
> 
>      [java]           at java.lang.Class.getConstructor0(Class.java:2671)
> 
>      [java]           at java.lang.Class.getConstructor(Class.java:1629)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil._create(ServiceUtil.java:175)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:229)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:222)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java:58)
> 
>      [java]           at
>
org.apache.abdera.security.AbderaSecurity.newEncryption(AbderaSecurity.java:
> 56)
> 
>      [java]           at
> org.apache.abdera.security.AbderaSecurity.<init>(AbderaSecurity.java:40)
> 
>      [java]           at
>
org.apache.abdera.security.util.filters.SignedRequestFilter.filter(SignedReq
> uestFilter.java:45)
> 
>      [java]           at
> org.apache.abdera.protocol.server.FilterChain.next(FilterChain.java:42)
> 
>      [java]           at
>
org.apache.abdera.protocol.server.servlet.AbderaServlet.service(AbderaServle
> t.java:90)
> 
>      [java]           at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> 
>      [java]           at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> 
>      [java]           at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
> 
>      [java]           at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> 
>      [java]           at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> 
>      [java]           at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> 
>      [java]           at org.mortbay.jetty.Server.handle(Server.java:285)
> 
>      [java]           at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
> 
>      [java]           at
>
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:
> 835)
> 
>      [java]           at
> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
> 
>      [java]           at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:202)
> 
>      [java]           at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> 
>      [java]           at
>
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:22
> 6)
> 
>      [java]           at
>
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:4
> 42)
> 
>      [java] 2008-02-07 10:56:03.023::WARN:  handle failed
> 
>      [java] java.lang.InterruptedException
> 
>      [java]           at
> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:289)
> 
>      [java]           at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:202)
> 
>      [java]           at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
> 
>      [java]           at
>
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:22
> 6)
> 
>      [java]           at
>
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:4
> 42)
> 
>      [java] .E.E.E.E
> 
>      [java] Time: 7.192
> 
>      [java] There were 4 failures:
> 
>      [java] 1)
> testSignEntry(org.apache.abdera.test.security.DigitalSignatureTest)
> 
>      [java] java.lang.NoClassDefFoundError:
> org/apache/xml/serialize/Serializer
> 
>      [java]           at java.lang.Class.getDeclaredConstructors0(Native
> Method)
> 
>      [java]           at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
> 
>      [java]           at java.lang.Class.getConstructor0(Class.java:2671)
> 
>      [java]           at java.lang.Class.getConstructor(Class.java:1629)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil._create(ServiceUtil.java:175)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:229)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:222)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java:58)
> 
>      [java]           at
>
org.apache.abdera.security.AbderaSecurity.newEncryption(AbderaSecurity.java:
> 56)
> 
>      [java]           at
> org.apache.abdera.security.AbderaSecurity.<init>(AbderaSecurity.java:40)
> 
>      [java]           at
>
org.apache.abdera.test.security.DigitalSignatureTest.testSignEntry(DigitalSi
> gnatureTest.java:72)
> 
>      [java]           at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> 
>      [java]           at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> 
>      [java]           at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> 
>      [java]           at java.lang.reflect.Method.invoke(Method.java:585)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunn
> er.java:99)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.
> java:81)
> 
>      [java]           at
>
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterR
> unner.java:34)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:
> 75)
> 
>      [java]           at
> org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClass
> MethodsRunner.java:66)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner
> .java:35)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.
> java:42)
> 
>      [java]           at
>
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterR
> unner.java:34)
> 
>      [java]           at
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
> 
>      [java]           at
> org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:130)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:109)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:100)
> 
>      [java]           at
> org.apache.abdera.test.security.TestSuite.main(TestSuite.java:33)
> 
>      [java] 2)
> testEncryption(org.apache.abdera.test.security.EncryptionTest)
> 
>      [java] java.lang.NoClassDefFoundError:
> org/apache/xml/serialize/Serializer
> 
>      [java]           at java.lang.Class.getDeclaredConstructors0(Native
> Method)
> 
>      [java]           at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
> 
>      [java]           at java.lang.Class.getConstructor0(Class.java:2671)
> 
>      [java]           at java.lang.Class.getConstructor(Class.java:1629)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil._create(ServiceUtil.java:175)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:229)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:222)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java:58)
> 
>      [java]           at
>
org.apache.abdera.security.AbderaSecurity.newEncryption(AbderaSecurity.java:
> 56)
> 
>      [java]           at
> org.apache.abdera.security.AbderaSecurity.<init>(AbderaSecurity.java:40)
> 
>      [java]           at
>
org.apache.abdera.test.security.EncryptionTest.testEncryption(EncryptionTest
> .java:68)
> 
>      [java]           at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> 
>      [java]           at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> 
>      [java]           at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> 
>      [java]           at java.lang.reflect.Method.invoke(Method.java:585)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunn
> er.java:99)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.
> java:81)
> 
>      [java]           at
>
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterR
> unner.java:34)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:
> 75)
> 
>      [java]           at
> org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClass
> MethodsRunner.java:66)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner
> .java:35)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.
> java:42)
> 
>      [java]           at
>
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterR
> unner.java:34)
> 
>      [java]           at
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
> 
>      [java]           at
> org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:130)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:109)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:100)
> 
>      [java]           at
> org.apache.abdera.test.security.TestSuite.main(TestSuite.java:33)
> 
>      [java] 3)
>
testSignedResponseFilter(org.apache.abdera.test.security.filter.SecurityFilt
> erTest)
> 
>      [java] java.lang.NoClassDefFoundError:
> org/apache/xml/serialize/Serializer
> 
>      [java]           at java.lang.Class.getDeclaredConstructors0(Native
> Method)
> 
>      [java]           at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
> 
>      [java]           at java.lang.Class.getConstructor0(Class.java:2671)
> 
>      [java]           at java.lang.Class.getConstructor(Class.java:1629)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil._create(ServiceUtil.java:175)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:229)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:222)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
> 
>      [java]           at
> org.apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java:58)
> 
>      [java]           at
>
org.apache.abdera.security.AbderaSecurity.newEncryption(AbderaSecurity.java:
> 56)
> 
>      [java]           at
> org.apache.abdera.security.AbderaSecurity.<init>(AbderaSecurity.java:40)
> 
>      [java]           at
>
org.apache.abdera.test.security.filter.SecurityFilterTest.testSignedResponse
> Filter(SecurityFilterTest.java:70)
> 
>      [java]           at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> 
>      [java]           at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> 
>      [java]           at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> 
>      [java]           at java.lang.reflect.Method.invoke(Method.java:585)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunn
> er.java:99)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.
> java:81)
> 
>      [java]           at
>
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterR
> unner.java:34)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:
> 75)
> 
>      [java]           at
> org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClass
> MethodsRunner.java:66)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner
> .java:35)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.
> java:42)
> 
>      [java]           at
>
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterR
> unner.java:34)
> 
>      [java]           at
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
> 
>      [java]           at
> org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:130)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:109)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:100)
> 
>      [java]           at
> org.apache.abdera.test.security.TestSuite.main(TestSuite.java:33)
> 
>      [java] 4)
>
testSignedRequestFilter(org.apache.abdera.test.security.filter.SecurityFilte
> rTest)
> 
>      [java] junit.framework.AssertionFailedError: expected:<CLIENT_ERROR>
> but was:<SERVER_ERROR>
> 
>      [java]           at junit.framework.Assert.fail(Assert.java:47)
> 
>      [java]           at
> junit.framework.Assert.failNotEquals(Assert.java:277)
> 
>      [java]           at
junit.framework.Assert.assertEquals(Assert.java:64)
> 
>      [java]           at
junit.framework.Assert.assertEquals(Assert.java:71)
> 
>      [java]           at
>
org.apache.abdera.test.security.filter.SecurityFilterTest.testSignedRequestF
> ilter(SecurityFilterTest.java:95)
> 
>      [java]           at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> 
>      [java]           at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> 
>      [java]           at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> 
>      [java]           at java.lang.reflect.Method.invoke(Method.java:585)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunn
> er.java:99)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.
> java:81)
> 
>      [java]           at
>
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterR
> unner.java:34)
> 
>      [java]           at
>
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:
> 75)
> 
>      [java]           at
> org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClass
> MethodsRunner.java:66)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner
> .java:35)
> 
>      [java]           at
>
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.
> java:42)
> 
>      [java]           at
>
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterR
> unner.java:34)
> 
>      [java]           at
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
> 
>      [java]           at
> org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:130)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:109)
> 
>      [java]           at
org.junit.runner.JUnitCore.run(JUnitCore.java:100)
> 
>      [java]           at
> org.apache.abdera.test.security.TestSuite.main(TestSuite.java:33)
> 
>      [java] 
> 
>      [java] FAILURES!!!
> 
>      [java] Tests run: 4,  Failures: 4
> 
>      [java]
> 
>  
> 
> Rémy
> 
>  
> 
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition. 
> Version: 7.5.516 / Virus Database: 269.19.21/1263 - Release Date:
2008.02.06
> 20:14
>  
> 

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.21/1263 - Release Date: 2008.02.06
20:14
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.21/1263 - Release Date: 2008.02.06
20:14
 


Mime
View raw message