tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Poulsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2407) Javascript stack that injects an asset breaks application (5.4-b22 regression)
Date Sat, 25 Oct 2014 12:33:33 GMT

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

Chris Poulsen commented on TAP5-2407:
-------------------------------------

It is fine that this issue is not fixed as the work around is trivial, but shouldn't the asset
injection restriction be mentioned somewhere. It broke all our QA apps after what we thought
was a successful upgrade from 5.4-b7 to 5.4-b22 (the issue only presents itself in production
mode).

> Javascript stack that injects an asset breaks application (5.4-b22 regression) 
> -------------------------------------------------------------------------------
>
>                 Key: TAP5-2407
>                 URL: https://issues.apache.org/jira/browse/TAP5-2407
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Chris Poulsen
>            Assignee: Howard M. Lewis Ship
>         Attachments: DummyStack.java, stacktrace-nologging.txt, stacktrace.txt
>
>
> Contributing a Javascript stack that has an @Inject Asset fails in production mode in
Tapestry 5.4-beta-22, it works in 5.4-beta-7 and in development mode (in 5.4-b22).
> The application starts in production mode, but fails on first request.
> Start of the stack trace is: 
>  ______                  __             ____
> /_  __/__ ____  ___ ___ / /_______ __  / __/
>  / / / _ `/ _ \/ -_|_-</ __/ __/ // / /__ \ 
> /_/  \_,_/ .__/\__/___/\__/_/  \_, / /____/
>         /_/                   /___/  5.4-beta-22
> 2014-10-20 11:44:50,069 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment]
(main) deploy, ctxPath=/genindexdata
> 2014-10-20 11:44:50,108 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment]
(main) deploy, ctxPath=/data
> 2014-10-20 11:44:50,158 INFO  [org.apache.coyote.http11.Http11Protocol] (main) Starting
Coyote HTTP/1.1 on http-0.0.0.0-80
> 2014-10-20 11:44:50,169 INFO  [org.apache.coyote.ajp.AjpProtocol] (main) Starting Coyote
AJP/1.3 on ajp-0.0.0.0-9
> 2014-10-20 11:44:50,172 INFO  [org.jboss.bootstrap.microcontainer.ServerImpl] (main)
JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started
in 21s:973ms
> 2014-10-20 11:44:59,594 INFO  [com.dezide.cache.cleanup.CacheCleanupScheduleThread] (Thread-14)
Cache Manager clean up schedule thread is started.
> 2014-10-20 11:45:00,188 INFO  [org.apache.tapestry5.modules.InternalModule.PageLoader]
(http-0.0.0.0-80-1) Loaded page 'Login' (en) in 563,771 ms
> 2014-10-20 11:45:00,316 ERROR [org.apache.tapestry5.ioc.Registry] (http-0.0.0.0-80-1)
Construction of service 'JavaScriptStackSource' has failed due to recursion: the service depends
on itself in s
> ome way. Please check org.apache.tapestry5.internal.services.javascript.JavaScriptStackSourceImpl(Map)
(at JavaScriptStackSourceImpl.java:31) via org.apache.tapestry5.modules.JavaScriptModule.bind(
> ServiceBinder) (at JavaScriptModule.java:63) for references to another service that is
itself dependent on service 'JavaScriptStackSource'.
> 2014-10-20 11:45:00,316 ERROR [org.apache.tapestry5.ioc.Registry] (http-0.0.0.0-80-1)
Operations trace:
> 2014-10-20 11:45:00,317 ERROR [org.apache.tapestry5.ioc.Registry] (http-0.0.0.0-80-1)
[ 1] Handling page render request for page Login
> 2014-10-20 11:45:00,317 ERROR [org.apache.tapestry5.ioc.Registry] (http-0.0.0.0-80-1)
[ 2] Realizing service JavaScriptStackSource
> 2014-10-20 11:45:00,317 ERROR [org.apache.tapestry5.ioc.Registry] (http-0.0.0.0-80-1)
[ 3] Instantiating service JavaScriptStackSource implementation via org.apache.tapestry5.internal.services.java
> script.JavaScriptStackSourceImpl(Map) (at JavaScriptStackSourceImpl.java:31) via org.apache.tapestry5.modules.JavaScriptModule.bind(ServiceBinder)
(at JavaScriptModule.java:63)
> 2014-10-20 11:45:00,317 ERROR [org.apache.tapestry5.ioc.Registry] (http-0.0.0.0-80-1)
[ 4] Creating plan to instantiate org.apache.tapestry5.internal.services.javascript.JavaScriptStackSourceImpl
v
> ia public org.apache.tapestry5.internal.services.javascript.JavaScriptStackSourceImpl(java.util.Map)
> 2014-10-20 11:45:00,317 ERROR [org.apache.tapestry5.ioc.Registry] (http-0.0.0.0-80-1)
[ 5] Determining injection value for parameter #1 (java.util.Map)
> 2014-10-20 11:45:00,317 ERROR [org.apache.tapestry5.ioc.Registry] (http-0.0.0.0-80-1)
[ 6] Collecting mapped configuration for service JavaScriptStackSource
> 2014-10-20 11:45:00,318 ERROR [org.apache.tapestry5.ioc.Registry] (http-0.0.0.0-80-1)
[ 7] Invoking com.dezide.webframework.services.FrameworkModule.setupJavaScriptStacks(MappedConfiguration)
(at F
> rameworkModule.java:74)
> 2014-10-20 11:45:00,318 ERROR [org.apache.tapestry5.ioc.Registry] (http-0.0.0.0-80-1)
[ 8] Autobuilding instance of class com.dezide.webframework.services.DummyStack
> 2014-10-20 11:45:00,318 ERROR [org.apache.tapestry5.ioc.Registry] (http-0.0.0.0-80-1)
[ 9] Realizing service JavaScriptStackSource
> 2014-10-20 11:45:00,322 ERROR [org.apache.tapestry5.modules.JavaScriptModule.JavaScriptStackSource]
(http-0.0.0.0-80-1) Construction of service JavaScriptStackSource failed: Error invoking service

> contribution method com.dezide.webframework.services.FrameworkModule.setupJavaScriptStacks(MappedConfiguration):
Exception constructing service 'JavaScriptStackSource': Construction of service 'Jav
> aScriptStackSource' has failed due to recursion: the service depends on itself in some
way. Please check org.apache.tapestry5.internal.services.javascript.JavaScriptStackSourceImpl(Map)
(at JavaScr
> iptStackSourceImpl.java:31) via org.apache.tapestry5.modules.JavaScriptModule.bind(ServiceBinder)
(at JavaScriptModule.java:63) for references to another service that is itself dependent on
service
>  'JavaScriptStackSource'.
> java.lang.RuntimeException: Error invoking service contribution method com.dezide.webframework.services.FrameworkModule.setupJavaScriptStacks(MappedConfiguration):
Exception constructing service 'J
> avaScriptStackSource': Construction of service 'JavaScriptStackSource' has failed due
to recursion: the service depends on itself in some way. Please check org.apache.tapestry5.internal.services.ja
> vascript.JavaScriptStackSourceImpl(Map) (at JavaScriptStackSourceImpl.java:31) via org.apache.tapestry5.modules.JavaScriptModule.bind(ServiceBinder)
(at JavaScriptModule.java:63) for references to 
> another service that is itself dependent on service 'JavaScriptStackSource'.
>         at org.apache.tapestry5.ioc.internal.ContributionDefImpl.invokeMethod(ContributionDefImpl.java:135)
>         at org.apache.tapestry5.ioc.internal.ContributionDefImpl.contribute(ContributionDefImpl.java:91)
>         at org.apache.tapestry5.ioc.internal.RegistryImpl$8.run(RegistryImpl.java:676)
>         at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationTrackerImpl.java:56)
>         at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.run(PerThreadOperationTracker.java:60)
>         at org.apache.tapestry5.ioc.internal.RegistryImpl.addToMappedConfiguration(RegistryImpl.java:671)
>         at org.apache.tapestry5.ioc.internal.RegistryImpl.getMappedConfiguration(RegistryImpl.java:620)
>         at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$3.invoke(ServiceResourcesImpl.java:141)
>         at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$3.invoke(ServiceResourcesImpl.java:137)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message