updates

5 views
Skip to first unread message

Robert Zeigler

unread,
Nov 18, 2008, 10:45:46 AM11/18/08
to tapestry5-caye...@googlegroups.com
Ok, I've updated the code-base to use tapestry 5.0.16. Please test.
Also, I haven't touched teh client module, so it's worth checking on
that.

Robert

bbcooper

unread,
Nov 19, 2008, 6:03:26 AM11/19/08
to tapestry5-cayenne-development
Hello,

just now I upgraded my app to use T 5.0.16 and tapestry5-cayenne-
server 0.2-SNAPSHOT. At startup (when accessing first page) it gives
me:
An unexpected application exception has occurred.

* java.lang.NoSuchMethodError
org.apache.cayenne.BaseContext.bindThreadObjectContext(Lorg/
apache/cayenne/ObjectContext;)V

Stack trace
o
com.googlecode.tapestry5cayenne.services.CayenneRequestFilter.service
(CayenneRequestFilter.java:47)
o
org.apache.tapestry5.internal.services.LocalizationFilter.service
(LocalizationFilter.java:42)
o com.interseek.iopenid.webapp.services.AppModule
$1.service(AppModule.java:102)
o
nu.localhost.tapestry5.springsecurity.services.internal.RequestFilterWrapper
$1.doFilter(RequestFilterWrapper.java:60)
o
nu.localhost.tapestry5.springsecurity.services.internal.SpringSecurityExceptionTranslationFilter.doFilterHttp
(SpringSecurityExceptionTranslationFilter.java:100)
o
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
o
nu.localhost.tapestry5.springsecurity.services.internal.RequestFilterWrapper.service
(RequestFilterWrapper.java:55)
o
org.apache.tapestry5.internal.services.RequestErrorFilter.service
(RequestErrorFilter.java:26)
o org.apache.tapestry5.services.TapestryModule$3.service
(TapestryModule.java:621)
o org.apache.tapestry5.services.TapestryModule$2.service
(TapestryModule.java:611)
o
org.apache.tapestry5.internal.services.StaticFilesFilter.service
(StaticFilesFilter.java:85)
o
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke
(CheckForUpdatesFilter.java:93)
o
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke
(CheckForUpdatesFilter.java:84)
o
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead
(ConcurrentBarrier.java:83)
o
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service
(CheckForUpdatesFilter.java:106)
o org.apache.tapestry5.services.TapestryModule$16.service
(TapestryModule.java:1007)
o
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service
(IgnoredPathsFilter.java:62)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
o
org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke
(FilterSecurityInterceptor.java:109)
o
org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter
(FilterSecurityInterceptor.java:83)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service
(HttpServletRequestFilterWrapper.java:52)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
o
nu.localhost.tapestry5.springsecurity.services.internal.SpringSecurityExceptionTranslationFilter.doFilterHttp
(SpringSecurityExceptionTranslationFilter.java:100)
o
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service
(HttpServletRequestFilterWrapper.java:52)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
o
org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp
(AnonymousProcessingFilter.java:105)
o
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service
(HttpServletRequestFilterWrapper.java:52)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
o
org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp
(SecurityContextHolderAwareRequestFilter.java:91)
o
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service
(HttpServletRequestFilterWrapper.java:52)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
o
org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp
(RememberMeProcessingFilter.java:109)
o
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service
(HttpServletRequestFilterWrapper.java:52)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
o
org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp
(AbstractProcessingFilter.java:271)
o
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service
(HttpServletRequestFilterWrapper.java:52)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
o
org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp
(AbstractProcessingFilter.java:271)
o
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service
(HttpServletRequestFilterWrapper.java:52)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper
$1.doFilter(HttpServletRequestFilterWrapper.java:56)
o
org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp
(HttpSessionContextIntegrationFilter.java:235)
o
org.springframework.security.ui.SpringSecurityFilter.doFilter
(SpringSecurityFilter.java:53)
o
nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service
(HttpServletRequestFilterWrapper.java:52)
o org.apache.tapestry5.TapestryFilter.doFilter
(TapestryFilter.java:179)
o org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1084)
o org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
o org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
o org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
o org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:726)
o org.mortbay.jetty.webapp.WebAppContext.handle
(WebAppContext.java:405)
o
org.mortbay.jetty.handler.ContextHandlerCollection.handle
(ContextHandlerCollection.java:206)
o org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.java:114)
o org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:152)
o org.mortbay.jetty.Server.handle(Server.java:324)
o org.mortbay.jetty.HttpConnection.handleRequest
(HttpConnection.java:505)
o org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:828)
o org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:
514)
o org.mortbay.jetty.HttpParser.parseAvailable
(HttpParser.java:211)
o org.mortbay.jetty.HttpConnection.handle
(HttpConnection.java:380)
o org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:395)
o org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:450)

Tapestry Framework

Version
5.0.16


The project's dependencies:

[INFO] The following files have been resolved:
[INFO] aopalliance:aopalliance:jar:1.0:compile
[INFO] asm:asm:jar:3.0:compile
[INFO] asm:asm-commons:jar:3.0:compile
[INFO] asm:asm-tree:jar:3.0:compile
[INFO] backport-util-concurrent:backport-util-concurrent:jar:
3.0:compile
[INFO] com.googlecode.tapestry5-cayenne:tapestry5-cayenne-core:jar:
0.2-SNAPSHOT:compile
[INFO] com.googlecode.tapestry5-cayenne:tapestry5-cayenne-
server:jar:0.2-SNAPSHOT:compile
[INFO] com.ibm.icu:icu4j:jar:3.4.4:compile
[INFO] com.interseek.iopenid:iopenid-model:jar:0.0.1-
SNAPSHOT:compile
[INFO] com.sun:tools:jar:1.5.0:system
[INFO] commons-codec:commons-codec:jar:1.3:compile
[INFO] commons-collections:commons-collections:jar:3.1:compile
[INFO] commons-dbcp:commons-dbcp:jar:1.2.2:runtime
[INFO] commons-httpclient:commons-httpclient:jar:3.0.1:compile
[INFO] commons-logging:commons-logging:jar:1.1:compile
[INFO] commons-pool:commons-pool:jar:1.3:runtime
[INFO] javassist:javassist:jar:3.8.0.GA:compile
[INFO] javax.servlet:servlet-api:jar:2.5:compile
[INFO] jug:jug:jar:1.1:compile
[INFO] junit:junit:jar:3.8.1:compile
[INFO] log4j:log4j:jar:1.2.14:compile
[INFO] mysql:mysql-connector-java:jar:5.1.6:runtime
[INFO] net.sf.ehcache:ehcache:jar:1.3.0:compile
[INFO] net.sf.jsr107cache:jsr107cache:jar:1.0:compile
[INFO] nu.localhost.tapestry:tapestry-spring-security:jar:
2.0.0:compile
[INFO] org.apache.cayenne:cayenne-server:jar:3.0M4:compile
[INFO] org.apache.geronimo.specs:geronimo-jpa_3.0_spec:jar:
1.0:compile
[INFO] org.apache.tapestry:tapestry-core:jar:5.0.16:compile
[INFO] org.apache.tapestry:tapestry-ioc:jar:5.0.16:compile
[INFO] org.apache.tapestry:tapestry5-annotations:jar:5.0.16:compile
[INFO] org.htmlparser:htmlparser:jar:1.6:compile
[INFO] org.objectstyle.ashwood:ashwood:jar:2.0:compile
[INFO] org.openid4java:openid4java:jar:0.9.3:compile
[INFO] org.openxri:openxri-client:jar:1.0.1:compile
[INFO] org.openxri:openxri-syntax:jar:1.0.1:compile
[INFO] org.slf4j:slf4j-api:jar:1.5.2:compile
[INFO] org.slf4j:slf4j-log4j12:jar:1.5.2:compile
[INFO] org.springframework:spring-aop:jar:2.0.8:compile
[INFO] org.springframework:spring-beans:jar:2.0.8:compile
[INFO] org.springframework:spring-context:jar:2.0.8:compile
[INFO] org.springframework:spring-core:jar:2.0.8:compile
[INFO] org.springframework:spring-dao:jar:2.0.8:compile
[INFO] org.springframework:spring-jdbc:jar:2.0.6:compile
[INFO] org.springframework:spring-support:jar:2.0.8:runtime
[INFO] org.springframework.security:spring-security-core:jar:
2.0.3:compile
[INFO] org.springframework.security:spring-security-core-tiger:jar:
2.0.3:compile
[INFO] org.springframework.security:spring-security-openid:jar:
2.0.4:compile
[INFO] org.testng:testng:jar:jdk15:5.1:test
[INFO] velocity:velocity:jar:1.3:compile
[INFO] xalan:xalan:jar:2.6.0:compile
[INFO] xerces:xercesImpl:jar:2.8.1:compile
[INFO] xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] xml-security:xmlsec:jar:1.3.0:compile

Cheers,
Borut

bbcooper

unread,
Nov 19, 2008, 6:18:47 AM11/19/08
to tapestry5-cayenne-development
If it helps, here is the method in my AppModule.java (line 102 is in
this method from the strack trace above):

/**
* This is a service definition, the service will be named
"TimingFilter". The interface, RequestFilter, is used
* within the RequestHandler service pipeline, which is built from
the RequestHandler service configuration.
* Tapestry IoC is responsible for passing in an appropriate
Logger instance. Requests for static resources are
* handled at a higher level, so this filter will only be invoked
for Tapestry related requests.
*
* <p>
* Service builder methods are useful when the implementation is
inline as an inner class (as here) or require some
* other kind of special initialization. In most cases, use the
static bind() method instead.
*
* <p>
* If this method was named "build", then the service id would be
taken from the service interface and would be
* "RequestFilter". Since Tapestry already defines a service named
"RequestFilter" we use an explicit service id
* that we can reference inside the contribution method.
*/
public RequestFilter buildTimingFilter(final Logger log) {
return new RequestFilter() {
public boolean service(Request request, Response response,
RequestHandler handler) throws IOException {
long startTime = System.currentTimeMillis();

try {
// The responsibility of a filter is to invoke the
corresponding method
// in the handler. When you chain multiple filters
together, each filter
// received a handler that is a bridge to the next
filter.

return handler.service(request, response); //
<==== line 102
} finally {
long elapsed = System.currentTimeMillis() -
startTime;

log.info(String.format("Request time: %d ms",
elapsed));
}
}
};
> ...
>
> preberite več >>

bbcooper

unread,
Nov 19, 2008, 7:38:22 AM11/19/08
to tapestry5-cayenne-development
OK, I found out. tapestry5-cayenne 0.2-SNAPSHOT is not compatible
with Cayenne 3.0M4. It only works with the latest Cayenne 3.0-
SNAPSHOT.

Is there a chance Cayenne will be released? At least M5? We can not go
on-line with SNAPSHOT. That is a real showstopper. Can you coordiante
a release of Cayenne and tapestry-cayenne?

Any workaround besides using tapestry-cayenne 0.1 and Tapestry 5.0.15?

Cheers,
Borut

On 18 nov., 16:45, Robert Zeigler <robert.zeig...@gmail.com> wrote:

bbcooper

unread,
Nov 19, 2008, 8:03:41 AM11/19/08
to tapestry5-cayenne-development
Not entirely the solution. After trying my project with Cayenne 3.0-
SNAPSHOT & tapestry-cayenne 0.2-SNAPSHOT & Tapestry 5.0.16 I got
another exception:

* java.lang.AbstractMethodError

com.googlecode.tapestry5cayenne.services.CayenneBeanModelSource.createEditModel
(Ljava/lang/Class;Lorg/apache/tapestry5/ioc/Messages;)Lorg/apache/
tapestry5/beaneditor/BeanModel;

Stack trace
o
org.apache.tapestry5.corelib.components.BeanEditor.doPrepare
(BeanEditor.java:183)
o org.apache.tapestry5.corelib.components.BeanEditor
$Prepare.execute(BeanEditor.java:51)
o org.apache.tapestry5.corelib.components.BeanEditor
$Prepare.execute(BeanEditor.java:45)
o
org.apache.tapestry5.corelib.internal.FormSupportImpl.storeAndExecute
(FormSupportImpl.java:103)
o
org.apache.tapestry5.corelib.components.BeanEditor.setupRender
(BeanEditor.java:166)
o
org.apache.tapestry5.corelib.components.BeanEditor.setupRender
(BeanEditor.java)
o
org.apache.tapestry5.internal.structure.ComponentPageElementImpl
$13$1.run(ComponentPageElementImpl.java:495)
o
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke
(ComponentPageElementImpl.java:917)
o
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access
$200(ComponentPageElementImpl.java:50)
o
org.apache.tapestry5.internal.structure.ComponentPageElementImpl
$13.render(ComponentPageElementImpl.java:499)
o
org.apache.tapestry5.internal.services.RenderQueueImpl.run
(RenderQueueImpl.java:72)
o
org.apache.tapestry5.internal.services.PageRenderQueueImpl.render
(PageRenderQueueImpl.java:121)
o org.apache.tapestry5.services.TapestryModule
$19.renderMarkup(TapestryModule.java:1200)
o org.apache.tapestry5.services.TapestryModule
$29.renderMarkup(TapestryModule.java:1574)
o org.apache.tapestry5.services.TapestryModule
$28.renderMarkup(TapestryModule.java:1555)
o org.apache.tapestry5.services.TapestryModule
$27.renderMarkup(TapestryModule.java:1537)
o org.apache.tapestry5.services.TapestryModule
$26.renderMarkup(TapestryModule.java:1519)
o org.apache.tapestry5.services.TapestryModule
$25.renderMarkup(TapestryModule.java:1489)
o
org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup
(PageMarkupRendererImpl.java:64)
o
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse
(PageResponseRendererImpl.java:57)
o
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle
(PageRenderRequestHandlerImpl.java:59)
o org.apache.tapestry5.services.TapestryModule$35.handle
(TapestryModule.java:1773)
o
org.apache.tapestry5.internal.services.PageRenderDispatcher.process
(PageRenderDispatcher.java:92)
o
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch
(PageRenderDispatcher.java:71)
o org.apache.tapestry5.services.TapestryModule$17.service
(TapestryModule.java:1029)
o
com.googlecode.tapestry5cayenne.services.CayenneRequestFilter.service
(CayenneRequestFilter.java:50)
o com.interseek.iopenid.webapp.services.AppModule
$1.service(AppModule.java:102)
o
org.apache.tapestry5.internal.services.LocalizationFilter.service
(LocalizationFilter.java:42)
-Borut

Kevin Menard

unread,
Nov 19, 2008, 10:25:37 AM11/19/08
to tapestry5-caye...@googlegroups.com
3.0 M5 should be released shortly. I can't say for certain when that
will be the case, but most of the issues looking to be closed out have
been addressed.

Please note that you are also using a snapshot version of the
integration module. If you need something that will work with Cayenne
3.0M4, please use one of the released versions of the module.

--
Kevin

Borut Bolčina

unread,
Nov 19, 2008, 3:20:01 PM11/19/08
to tapestry5-caye...@googlegroups.com
Hi Kevin,

currently, very early in the development, I am fine with Tapestry 5.0.15, Cayenne 3.0M4 and tapestry-cayenne 0.1, but looking forward to use Tapestry 5.0.16, Cayenne 3.0M5 and tapestry-cayenne 0.2. I hope this trio is viable in a month.

If tapestry-cayenne is like a bridge, can I hope for 0.2 release in the near future which would connect T 5.0.16 and Cayenne 3.0M5?

Thanks,
Borut

2008/11/19 Kevin Menard <nirv...@gmail.com>

Kevin Menard

unread,
Nov 19, 2008, 7:15:43 PM11/19/08
to tapestry5-caye...@googlegroups.com
That's the plan. Shortly after Cayenne 3.0M5 is released, we'll have
a 0.2 release of this integration module.

--
Kevin

Reply all
Reply to author
Forward
0 new messages