Tapestry 5.1.0.5 Eventlink Zone Blackbird Error
Hi, I've looked everywhere for a solution to this but I can't seem to find anything except for this, http://mail-archives.apache.org/mod_mbox/tapestry-users/201204.mbox/%3CCANQh_Dsoxef0tDb4S6RK3-wQyR=mJLhdRvOmE_7A=8vyxed...@mail.gmail.com%3E, which unfortunately isn't working for me. I have the same problem, a buttonpress should update a zone with the selected information. The zone gets updated, although not with the but the blackbird console appears with the message Client exception processing response: TypeError: func is undefined I've located this to here: show: function(content) { this.updateElement.update(content); var func = this.element.visible() ? this.updateFunc : this.showFunc; func.call(this, this.element); this.element.fire(Tapestry.ZONE_UPDATED_EVENT); }, this.updateFunc and this.showFunc are undefined for my target zone, despite having delared them in the zone tag. Cart.tml t:zone t:id=cartZone t:update=updatecart id=cartZone t:show=show cart.js updatecart: function(element) { Effect.ScrollTo('headercontent',{duration: 0.5, queue: 'end'}); return new Effect.Pulsate('cartZone',{pulses: 2, duration: 1, queue: 'end' }); } Article.tml t:eventlink t:zone=buttonZone t:event=switchBoardEvent t:context=switchBoardContext${label}/t:eventlink Switchboard public Object onSwitchBoardEvent(String action, MapString,Object context) { _logger.debug(Event dispatch: + action); ListActionReceiver actionReceivers = getMatchingActionReceivers(action); for(ActionReceiver actionReceiver: actionReceivers) { _logger.debug(Invoking + actionReceiver); actionReceiver.invoke(context); } ListZoneActionReference zoneRefs = getMatchingZoneRefs(action); MultiZoneUpdate update = null; for(ZoneActionReference zoneRef: zoneRefs) { String zoneId = zoneRef.getZoneId(); Zone renderer = (Zone)zoneRef.getZone(); if(update == null) update = new MultiZoneUpdate(zoneId, renderer); else update.add(zoneId, renderer); } if(!_request.isXHR()) return null; return update; If I can just prevent the blackbird console from showing the error that's fine. Anyone with a solution to this? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-1-0-5-Eventlink-Zone-Blackbird-Error-tp5719172.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.1.0.5 Eventlink Zone Blackbird Error
Solved by changing rendersupport.addScriptLink(scriptfile.js) to renderSupport.addScript(Javascript code here) in the javaclass's beforeRender method. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-1-0-5-Eventlink-Zone-Blackbird-Error-tp5719172p5719182.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Post Upgrade Error: ioc.Registry | Code attribute in native or abstract methods in class file
I have not made any changes to the JDK at all. I made some changes resulting in that we are now decorating ComponentTemplateLocator for finding .html files in classpath instead. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Post-Upgrade-Error-ioc-Registry-Code-attribute-in-native-or-abstract-methods-in-class-file-tp5713768p5713960.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Post Upgrade Error: ioc.Registry | Code attribute in native or abstract methods in class file
Howard Lewis Ship wrote That can't be the full stack trace, and all the interesting parts certainly come later. Are you sure you don't have some other changes, such as a change to the JDK that compiled the LayoutX class? This is the full stacktrace; 2012-06-12 08:41:44.802:WARN::/ java.lang.RuntimeException: Page core/ExceptionReport did not generate any markup when rendered. This could be because its template file could not be located, or because a render phase method in the page prevented rendering. at org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:50) at $PageMarkupRenderer_137df6d19f3.renderPageMarkup($PageMarkupRenderer_137df6d19f3.java) at org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67) at $PageResponseRenderer_137df6d197e.renderPageResponse($PageResponseRenderer_137df6d197e.java) at my.project.handlers.ExceptionHandler.handleRequestException(ExceptionHandler.java:139) at $RequestExceptionHandler_137df6d19e9.handleRequestException($RequestExceptionHandler_137df6d19e9.java) at $RequestExceptionHandler_137df6d1935.handleRequestException($RequestExceptionHandler_137df6d1935.java) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42) at $RequestHandler_137df6d195b.service($RequestHandler_137df6d195b.java) at org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:984) at $RequestHandler_137df6d195b.service($RequestHandler_137df6d195b.java) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:974) at $RequestHandler_137df6d195b.service($RequestHandler_137df6d195b.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90) at $RequestHandler_137df6d195b.service($RequestHandler_137df6d195b.java) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:80) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103) at $RequestHandler_137df6d195b.service($RequestHandler_137df6d195b.java) at $RequestHandler_137df6d1953.service($RequestHandler_137df6d1953.java) at org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:272) at org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53) at $HttpServletRequestHandler_137df6d1955.service($HttpServletRequestHandler_137df6d1955.java) at org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) at $HttpServletRequestFilter_137df6d1952.service($HttpServletRequestFilter_137df6d1952.java) at $HttpServletRequestHandler_137df6d1955.service($HttpServletRequestHandler_137df6d1955.java) at at my.project.handlers.CustomContentHandler.service(CustomContentHandler.java:164) at $HttpServletRequestHandler_137df6d1955.service($HttpServletRequestHandler_137df6d1955.java) at org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:928) at $HttpServletRequestHandler_137df6d1955.service($HttpServletRequestHandler_137df6d1955.java) at $HttpServletRequestHandler_137df6d194e.service($HttpServletRequestHandler_137df6d194e.java) at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:147) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) at org.apache.cayenne.conf.WebApplicationContextFilter.doFilter(WebApplicationContextFilter.java:90) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) at
Post Upgrade Error: ioc.Registry | Code attribute in native or abstract methods in class file
Hi, After upgrading to 5.2.6 I get an error; [ERROR] ioc.Registry Code attribute in native or abstract methods in class file my/project/components/LayoutX [ERROR] ioc.Registry Operations trace: [ERROR] ioc.Registry [ 1] Constructing instance of page class my.project.page.Start [ERROR] ioc.Registry [ 2] Creating ComponentAssembler for my.project.page.Start [ERROR] TweaksModule.ExceptionHandler java.lang.ClassFormatError: Code attribute in native or abstract methods in class file my/project/components/LayoutX Start is built up by different components, one being LayoutX. We identify what LayoutX i want by t:layoutx.layoutx t:class=onelayout t:type=layouttype/ t:class=onelayout maps to a String in LayoutX; @Parameter(defaultPrefix = BindingConstants.LITERAL) @Property private String _class; When I comment out _class the project compiles and runs but with minimal functionality. This worked in 5.1.0.5. Could someone tell me how I make this 5.2.6 proof? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Post-Upgrade-Error-ioc-Registry-Code-attribute-in-native-or-abstract-methods-in-class-file-tp5713768.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org