tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dimitris Zenios <dimitris.zen...@gmail.com>
Subject Re: Fwd: Build failed in Jenkins: tapestry-trunk-freestyle #1131
Date Sat, 17 Aug 2013 22:18:52 GMT
This is a legitimate bug.

If your filesystem is case sensitive like most linux os are
then classLoader.getResource will return null.After that when calling
validateUrl with a null parameter it returns instead of throwing the
expected exception (IllegalStateException) of the test case.

Most probably if the load resource method returns null it should throw an
exception right away.It doesn't need to pass to validateUrl.


In a case sensitive operating system if you call classloader getresource
with a filename not found it will return NULL as url.So validate url with a
null parameter returns without error even though the test was expecting an
IllegalStateException

P.S:Its very weird that in masimos box all tests are running fine.Most
probably he is using a case insensitive filesystem (vfat?).In my box the
test fails like CI

Below are details of my pc and filesystem.
Linux localhost.localdomain 3.10.6-200.fc19.x86_64 #1 SMP Mon Aug 12
14:49:42 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
/dev/mapper/fedora-home on /home type ext4
(rw,relatime,seclabel,data=ordered)


On Wed, Aug 14, 2013 at 2:56 AM, Howard Lewis Ship <hlship@gmail.com> wrote:

> Nothing newer than FF21.  It might be the JDK though; I'm on JDK
> 1.7.0_25-b15.
>
> The test that is failing is in tapestry-ioc; it's about comparing the case
> of the resource to the canonical File to see if the case of the resource
> doesn't match the case of the actual file.  Again, works for me (and
> Massimo) but not on CI and not clear what the difference is.
>
>
> On Tue, Aug 13, 2013 at 1:08 PM, Ulrich Stärk <uli@spielviel.de> wrote:
>
> > It might be because of outdated versions of Java or Firefox.
> >
> > Currently installed on the box are FF 17 and JDK 6u26. Tell me if you
> want
> > me to update it to
> > something more recent.
> >
> > Uli
> >
> > On 2013-08-13 08:27, Howard Lewis Ship wrote:
> > > the broken test worked on my machine, failed on CI. Anyone on a linux
> box
> > > can give it a whirl?
> > >
> > > ---------- Forwarded message ----------
> > > From: *Apache Jenkins Server*
> > > Date: Monday, August 12, 2013
> > > Subject: Build failed in Jenkins: tapestry-trunk-freestyle #1131
> > > To: dev@tapestry.apache.org, hlship@comcast.net
> > >
> > >
> > > See <
> https://builds.apache.org/job/tapestry-trunk-freestyle/1131/changes
> > >
> > >
> > > Changes:
> > >
> > > [hlship] TAP5-1007: When Tapestry is loading templates or other files
> on
> > > case-insensitive OSs (Windows) it should trigger an error if the file
> > name
> > > case is incorrect (which will result in a runtime failure on
> > case-sensitive
> > > OSs, such as Linux)
> > >
> > > ------------------------------------------
> > > [...truncated 28433 lines...]
> > >                      PageDocumentGenerator: DEFINED
> > >                         PageElementFactory: DEFINED
> > >                                 PageLoader: DEFINED
> > >                         PageMarkupRenderer: DEFINED
> > >                       PageRenderLinkSource: DEFINED
> > >                  PageRenderLinkTransformer: DEFINED
> > >                            PageRenderQueue: DEFINED
> > >                   PageRenderRequestHandler: DEFINED
> > >                       PageResponseRenderer: DEFINED
> > >                                 PageSource: DEFINED
> > >                      PartialMarkupRenderer: DEFINED
> > >                            PathConstructor: DEFINED
> > >                           PeriodicExecutor: DEFINED
> > >                     PersistentFieldManager: DEFINED
> > >                           PersistentLocale: DEFINED
> > >                           PerthreadManager: BUILTIN
> > >                            PipelineBuilder: REAL
> > >                        PlasticProxyFactory: BUILTIN
> > >                         PropBindingFactory: DEFINED
> > >                       PropertiesFileParser: DEFINED
> > >                             PropertyAccess: VIRTUAL
> > >                      PropertyConduitSource: DEFINED
> > >                      PropertyShadowBuilder: VIRTUAL
> > >                        RegistryShutdownHub: BUILTIN
> > >                            RegistryStartup: REAL
> > >                                    Request: VIRTUAL
> > >                    RequestExceptionHandler: DEFINED
> > >                             RequestGlobals: DEFINED
> > >                             RequestHandler: DEFINED
> > >                           RequestPageCache: DEFINED
> > >                     RequestSecurityManager: DEFINED
> > >                      ResourceChangeTracker: DEFINED
> > >                    ResourceDigestGenerator: DEFINED
> > >                      ResourceDigestManager: DEFINED
> > >                          ResourceMinimizer: DEFINED
> > >                           ResourceStreamer: DEFINED
> > >                                   Response: VIRTUAL
> > >                ResponseCompressionAnalyzer: DEFINED
> > >                           ResponseRenderer: DEFINED
> > >                         SelectModelFactory: DEFINED
> > >                  ServiceActivityScoreboard: BUILTIN
> > >                     ServiceLifecycleSource: REAL
> > >                            ServiceOverride: REAL
> > >              ServletApplicationInitializer: REAL
> > > SessionApplicationStatePersistenceStrategy: DEFINED
> > >             SessionPersistedObjectAnalyzer: DEFINED
> > >                            StrategyBuilder: VIRTUAL
> > >                   StreamableResourceSource: DEFINED
> > >                             StringInterner: DEFINED
> > >                       SymbolBindingFactory: DEFINED
> > >                               SymbolSource: REAL
> > >                     TapestrySessionFactory: DEFINED
> > >                             TemplateParser: DEFINED
> > >                               ThreadLocale: DEFINED
> > >                               ThunkCreator: DEFINED
> > >                    TranslateBindingFactory: DEFINED
> > >                 TranslatorAlternatesSource: DEFINED
> > >                           TranslatorSource: DEFINED
> > >                                TypeCoercer: REAL
> > >                                 URLEncoder: DEFINED
> > >            UnknownActivationContextHandler: DEFINED
> > >                          UpdateListenerHub: DEFINED
> > >                     ValidateBindingFactory: DEFINED
> > >              ValidationConstraintGenerator: DEFINED
> > >                 ValidationDecoratorFactory: DEFINED
> > >                             ValidatorMacro: DEFINED
> > >                         ValueEncoderSource: DEFINED
> > >
> > > 87.11% unrealized services (169/194)
> > >
> > > Application 'app' (version 0.0.1) startup time: 31 ms to build IoC
> > > Registry, 122 ms overall.
> > >
> > >  ______                  __             ____
> > > /_  __/__ ____  ___ ___ / /_______ __  / __/
> > >  / / / _ `/ _ \/ -_|_-</ __/ __/ // / /__ \
> > > /_/  \_,_/ .__/\__/___/\__/_/  \_, / /____/
> > >         /_/                   /___/  UNKNOWN (development mode)
> > >
> > >
> > > [INFO] AbstractConnector Started SelectChannelConnector@0.0.0.0:9090
> > > [INFO] SslContextFactory Enabled Protocols [SSLv2Hello, SSLv3, TLSv1]
> of
> > > [SSLv2Hello, SSLv3, TLSv1]
> > > [INFO] AbstractConnector Started
> SslSelectChannelConnector@0.0.0.0:8443
> > > [INFO] HttpServer Version Jetty/5.1.x
> > > [INFO] Container Started
> > > HttpContext[/selenium-server/driver,/selenium-server/driver]
> > > [INFO] Container Started HttpContext[/selenium-server,/selenium-server]
> > > [INFO] Container Started HttpContext[/,/]
> > > [INFO] Container Started
> > > org.openqa.jetty.jetty.servlet.ServletHandler@6c30908e
> > > [INFO] Container Started HttpContext[/wd,/wd]
> > > [INFO] SocketListener Started SocketListener on 0.0.0.0:4444
> > > [INFO] Container Started org.openqa.jetty.jetty.Server@46f2227c
> > > [INFO] PageLoader Loaded page 'Index' (en) in 149.140 ms
> > > [INFO] PageLoader Loaded page 'ContextChecked' (en) in 16.085 ms
> > > [INFO] PageActivator Page ContextChecked required an exact activation
> > > context, let's handle this
> > > [WARN] UnknownActivationContextHandler Activate event on page class
> > > org.apache.tapestry5.integration.activationctx2.pages.ContextChecked
> was
> > > fired with context <EventContext: error> but was not handled
> > > [INFO] PageLoader Loaded page 'ContextUnchecked' (en) in 16.792 ms
> > > [INFO] ThreadedServer Stopping Acceptor ServerSocket[addr=
> > > 0.0.0.0/0.0.0.0,port=0,localport=4444]
> > > [INFO] SocketListener Stopped SocketListener on 0.0.0.0:4444
> > > [INFO] Container Stopped
> > > HttpContext[/selenium-server/driver,/selenium-server/driver]
> > > [INFO] Container Stopped HttpContext[/selenium-server,/selenium-server]
> > > [INFO] Container Stopped HttpContext[/,/]
> > > [INFO] Container Stopped
> > > org.openqa.jetty.jetty.servlet.ServletHandler@6c30908e
> > > [INFO] Container Stopped HttpContext[/wd,/wd]
> > > [INFO] Container Stopped org.openqa.jetty.jetty.Server@46f2227c
> > > [INFO] ContextHandler stopped o.e.j.w.WebAppContext{,<
> > >
> >
> https://builds.apache.org/job/tapestry-trunk-freestyle/ws/tapestry-core/src/test/activationctx2/
> > >
> >
> },/var/jenkins/hudson-slave/workspace/tapestry-trunk-freestyle/tapestry-core/src/test/activationctx2>
> > > [ERROR] SerializationSupport Unexpected service proxy provider when
> > > clearing the provider. This may indicate that you have multiple IoC
> > > Registries.
> > > :tapestry-core:check
> > > :tapestry-core:build
> > > :tapestry-core:uploadPublishedUploading:
> > >
> >
> org/apache/tapestry/tapestry-core/5.4-SNAPSHOT/tapestry-core-5.4-20130813.014303-94.jar
> > > to repository remote at
> > > https://repository.apache.org/content/repositories/snapshots
> > > Transferring 1901K from remote
> > > Uploaded 1901K
> > > Uploading:
> > >
> >
> org/apache/tapestry/tapestry-core/5.4-SNAPSHOT/tapestry-core-5.4-20130813.014303-94-sources.jar
> > > to repository remote at
> > > https://repository.apache.org/content/repositories/snapshots
> > > Transferring 2504K from remote
> > > Uploaded 2504K
> > >
> > > :tapestry-func:sourcesJar UP-TO-DATE
> > > :tapestry-func:assemble UP-TO-DATE
> > > :tapestry-func:compileTestJava UP-TO-DATE
> > > :tapestry-func:compileTestGroovy UP-TO-DATE
> > > :tapestry-func:processTestResources UP-TO-DATE
> > > :tapestry-func:testClasses UP-TO-DATE
> > > :tapestry-func:test UP-TO-DATE
> > > :tapestry-func:check UP-TO-DATE
> > > :tapestry-func:build UP-TO-DATE
> > > :tapestry-func:uploadPublishedUploading:
> > >
> >
> org/apache/tapestry/tapestry-func/5.4-SNAPSHOT/tapestry-func-5.4-20130813.014317-94.jar
> > > to repository remote at
> > > https://repository.apache.org/content/repositories/snapshots
> > > Transferring 64K from remote
> > > Uploaded 64K
> > > Uploading:
> > >
> >
> org/apache/tapestry/tapestry-func/5.4-SNAPSHOT/tapestry-func-5.4-20130813.014317-94-sources.jar
> > > to repository remote at
> > > https://repository.apache.org/content/repositories/snapshots
> > > Transferring 41K from remote
> > > Uploaded 41K
> > >
> > > :tapestry-hibernate:compileJava
> > > :tapestry-hibernate:compileGroovy UP-TO-DATE
> > > :tapestry-hibernate:processResources UP-TO-DATE
> > > :tapestry-hibernate:classes
> > > :tapestry-hibernate:jar UP-TO-DATE
> > > :tapestry-hibernate:sourcesJar UP-TO-DATE
> > > :tapestry-hibernate:assemble UP-TO-DATE
> > > :tapestry-hibernate:compileTestJavaNote: <
> > >
> >
> https://builds.apache.org/job/tapestry-trunk-freestyle/ws/tapestry-hibernate/src/test/java/org/apache/tapestry5/internal/hibernate/HibernateEntityValueEncoderTest.java
> > >
> > > uses or overrides a deprecated API.
> > > Note: Recompile with -Xlint:deprecation for details.
> > >
> > > :tapestry-hibernate:compileTestGroovy UP-TO-DATE
> > > :tapestry-hibernate:processTestResources UP-TO-DATE
> > > :tapestry-hibernate:testClasses
> > > :tapestry-hibernate:test
> > > :tapestry-hibernate:check
> > > :tapestry-hibernate:build
> > > :tapestry-hibernate:uploadPublishedUploading:
> > >
> >
> org/apache/tapestry/tapestry-hibernate/5.4-SNAPSHOT/tapestry-hibernate-5.4-20130813.014356-94.jar
> > > to repository remote at
> > > https://repository.apache.org/content/repositories/snapshots
> > > Transferring 31K from remote
> > > Uploaded 31K
> > > Uploading:
> > >
> >
> org/apache/tapestry/tapestry-hibernate/5.4-SNAPSHOT/tapestry-hibernate-5.4-20130813.014356-94-sources.jar
> > > to repository remote at
> > > https://repository.apache.org/content/repositories/snapshots
> > > Transferring 28K from remote
> > > Uploaded 28K
> > >
> > > :tapestry-hibernate-core:sourcesJar UP-TO-DATE
> > > :tapestry-hibernate-core:assemble UP-TO-DATE
> > > :tapestry-hibernate-core:compileTestJavaNote: Some input files use or
> > > override a deprecated API.
> > > Note: Recompile with -Xlint:deprecation for details.
> > >
> > > :tapestry-hibernate-core:compileTestGroovy UP-TO-DATE
> > > :tapestry-hibernate-core:processTestResources UP-TO-DATE
> > > :tapestry-hibernate-core:testClasses
> > > :tapestry-hibernate-core:test
> > > [WARN] DTDEntityResolver HHH000223: Recognized obsolete hibernate
> > namespace
> > > http://hibernate.sourceforge.net/. Use namespace
> > > http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6
> Migration
> > > Guide!
> > > [WARN] ConnectionProviderInitiator HHH000022: c3p0 properties were
> > > encountered, but the
> > > org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
> > > provider class was not found on the classpath; these properties are
> going
> > > to be ignored.
> > > [INFO] HibernateSessionSourceTest Hibernate startup: 511 ms to
> configure,
> > > 1,398 ms overall.
> > > [INFO] HibernateSessionSourceTest Configured Hibernate entities: (none)
> > > [WARN] DTDEntityResolver HHH000223: Recognized obsolete hibernate
> > namespace
> > > http://hibernate.sourceforge.net/. Use namespace
> > > http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6
> Migration
> > > Guide!
> > > [WARN] ConnectionProviderInitiator HHH000022: c3p0 properties were
> > > encountered, but the
> > > org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
> > > provider class was not found on the classpath; these properties are
> going
> > > to be ignored.
> > > [INFO] HibernateSessionSourceTest Hibernate startup: 123 ms to
> configure,
> > > 396 ms overall.
> > > [INFO] HibernateSessionSourceTest Configured Hibernate entities:
> > > org.example.app0.entities.User
> > > :tapestry-hibernate-core:check
> > > :tapestry-hibernate-core:build
> > > :tapestry-hibernate-core:uploadPublishedUploading:
> > >
> >
> org/apache/tapestry/tapestry-hibernate-core/5.4-SNAPSHOT/tapestry-hibernate-core-5.4-20130813.014411-94.jar
> > > to repository remote at
> > > https://repository.apache.org/content/repositories/snapshots
> > > Transferring 31K from remote
> > > Uploaded 31K
> > > Uploading:
> > >
> >
> org/apache/tapestry/tapestry-hibernate-core/5.4-SNAPSHOT/tapestry-hibernate-core-5.4-20130813.014411-94-sources.jar
> > > to repository remote at
> > > https://repository.apache.org/content/repositories/snapshots
> > > Transferring 32K from remote
> > > Uploaded 32K
> > >
> > > :tapestry-internal-test:compileJava
> > > :tapestry-internal-test:compileGroovy UP-TO-DATE
> > > :tapestry-internal-test:processResources UP-TO-DATE
> > > :tapestry-internal-test:classes
> > > :tapestry-internal-test:jar UP-TO-DATE
> > > :tapestry-internal-test:sourcesJar UP-TO-DATE
> > > :tapestry-internal-test:assemble UP-TO-DATE
> > > :tapestry-internal-test:compileTestJava UP-TO-DATE
> > > :tapestry-internal-test:compileTestGroovy UP-TO-DATE
> > > :tapestry-internal-test:processTestResources UP-TO-DATE
> > > :tapestry-internal-test:testClasses UP-TO-DATE
> > > :tapestry-internal-test:test
> > > :tapestry-internal-test:check
> > > :tapestry-internal-test:build
> > > :tapestry-internal-test:uploadPublishedUploading:
> > >
> >
> org/apache/tapestry/tapestry-internal-test/5.4-SNAPSHOT/tapestry-internal-test-5.4-20130813.014421-37.jar
> > > to repository remote at
> > > https://repository.apache.org/content/repositories/snapshots
> > > Transferring 3K from remote
> > > Uploaded 3K
> > > Uploading:
> > >
> >
> org/apache/tapestry/tapestry-internal-test/5.4-SNAPSHOT/tapestry-internal-test-5.4-20130813.014421-37-sources.jar
> > > to repository remote at
> > > https://repository.apache.org/<
> > https://repository.apache.org/content/repositories/snapshots>
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: dev-help@tapestry.apache.org
> >
> >
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message