geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Forrest Xia (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-6140) Fix testsuite errors in Geronimo trunk
Date Fri, 02 Sep 2011 14:00:10 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-6140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095988#comment-13095988
] 

Forrest Xia commented on GERONIMO-6140:
---------------------------------------

Kevan, I will take a look of those problems.

> Fix testsuite errors in Geronimo trunk
> --------------------------------------
>
>                 Key: GERONIMO-6140
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6140
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: Kevan Miller
>            Assignee: Forrest Xia
>
> There are a few testsuite problems in the current trunk 
> 1) CI testsuite builds are always failing because of port conflicts
> 2) testsuite failures aren't being reflected in the testsuite summary (or testsuite failures
aren't stopping the test)
> 3) geronimo/server/trunk/testsuite/web-testsuite/test-tomcat/ and geronimo/server/trunk/testsuite/aries-testsuite/require-bundle-test/RequireBundle-eba
appear to have the same basic problem:
> {code}
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.354 sec <<<
FAILURE!
> testTomcatHost(org.apache.geronimo.testsuite.tomcat.TestTomcat)  Time elapsed: 0 sec
 <<< FAILURE!
> junit.framework.AssertionFailedError: responseCode expected:<200> but was:<404>
>         at junit.framework.Assert.fail(Assert.java:47)
>         at junit.framework.Assert.failNotEquals(Assert.java:282)
>         at junit.framework.Assert.assertEquals(Assert.java:64)
>         at junit.framework.Assert.assertEquals(Assert.java:201)
>         at org.apache.geronimo.testsuite.tomcat.TestTomcat.testTomcatHost(TestTomcat.java:42)
> {code}
> 4) /Users/kevan/geronimo/server/trunk/testsuite/javaee6-testsuite/commonannotation1.1-test/
> {code}
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.455 sec <<<
FAILURE!
> testDataSourceDefinition(org.apache.geronimo.sample.dataSourceDefinition.test.DataSourceDefinitionTest)
 Time elapsed: 0.348 sec  <<< FAILURE!
> java.io.IOException: <html><head><title>Apache Tomcat/7.0.19.2 - Error
report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;backgro\
> und-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {font-family:Tahoma,Ari\
> al,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {font-\
> family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A\
>  {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type<\
> /b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b>
<u>The server encountered an internal error () that prevented it from fulfilling\
>  this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException:
Error instantiating servlet class org.apache.geronimo.sample.servlet.DataSou\
> rceDefinitionServlet       org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:818)
  org.apache.geron\
> imo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:48)  
   org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(Protec\
> tedTargetValve.java:53)      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
  org.apache.catalina.valves.AccessLogValve.invo\
> ke(AccessLogValve.java:851)       org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    org.apache.coyote.http11.Http11Processor.\
> process(Http11Processor.java:278)      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
org.apache.tomcat.ut\
> il.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)        org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)
 org.apache.geronimo.poo\
> l.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:373) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    ja\
> va.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:680)</pre></p><p><b>root
cause</b> <pre>java\
> .lang.InstantiationException: Some objects to be injected were not found in jndi: [javax.naming.NameNotFoundException:
osgi:service/mydatasource]  org.apac\
> he.geronimo.j2ee.annotation.Holder.newInstance(Holder.java:174) org.apache.geronimo.tomcat.TomcatInstanceManager.newInstance(TomcatInstanceManager.java:74)\
>      org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:818)
  org.apache.geronimo.tomcat.valve.Geron\
> imoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:48)      org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(ProtectedTargetValve.java:53\
> )      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java\
> :851)       org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    org.apache.coyote.http11.Http11Processor.process(Http11Processo\
> r.java:278)      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
org.apache.tomcat.util.net.JIoEndpoint$Soc\
> ketProcessor.run(JIoEndpoint.java:302)        org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)
 org.apache.geronimo.pool.ThreadPool$ContextCl\
> assLoaderRunnable.run(ThreadPool.java:373) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.Thr\
> eadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:680)</pre></p><p><b>note</b>
<u>The full stack trace of the root c\
> ause is available in the Apache Tomcat/7.0.19.2 logs.</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/7.0.19.2</h3></body></html>
>         at org.apache.geronimo.testsupport.HttpUtils.doGET(HttpUtils.java:41)
>         at org.apache.geronimo.sample.dataSourceDefinition.test.DataSourceDefinitionTest.checkResponse(DataSourceDefinitionTest.java:49)
>         at org.apache.geronimo.sample.dataSourceDefinition.test.DataSourceDefinitionTest.testDataSourceDefinition(DataSourceDefinitionTest.java:42)
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message