Hi Geoff,

I found upgrading JBossAS may not help, it can be a bug in Javassist.

I compiled latest T5 (5.0.11 SNAPSHOT) code by using JDK 1,6, just
want to see how well T5 works on Java 6 bytecode. I started the
integration app1, then ended up of  ArrayIndexOutOfBoundsException
when I was trying to access the start page.

What I found is:

When there is a field be accessed in method in transformed class, and
be used in one side of condition statement such as

            if (_encoder == null)  // this line may cause error
             {
                 _formSupport.store(this, new RestoreState(_value));
             }
             else
            ...

later on, a Javassist FieldAccess for this field replace the method
body by "$_ = $0._$read_parameter_anchor();", (happens on line 1546 in
InternalClassTransformationImpl.class), then I got
ArrayIndexOutOfBoundsException on methods either write16bit() or
sameLocals().

The workaround is  to simply use a local variable to replace the
field, _encoder in example, in the condition. e.g.

            PrimaryKeyEncoder<Serializable, Object> localEncoder = _encoder;
            if (localEncoder  == null)
             {
                 _formSupport.store(this, new RestoreState(_value));
             }
             else

will remove the exception and everything works very well.

So far I found 3 components get affected: Form, Loop and GridPager.

I am not familiar with Javassist, have no idea of means of "$_ =
$0._$read_parameter_anchor();"
hope someone else who are professional of Javassist and have Java 6
available can write a test case to prove it and report a bug to
Javassist Jira.


Regards,
Yunhua



On Fri, Mar 7, 2008 at 10:04 PM, Geoff Callender
<[EMAIL PROTECTED]> wrote:
> How right you are.  Thanks.  From 
> http://sourceforge.net/project/shownotes.php?release_id=548923&group_id=22866
>   :
>
>         "JDK5 is *required* to run JBossAS 4.2.x" and "JDK6 support will come
>  with JBossAS 5.x."
>
>
>
>  On 07/03/2008, at 10:57 PM, Joachim Van der Auwera wrote:
>
>  > From what I understand, JBoss 4 is not Java 6 compatible. For that
>  > you should ues JBoss 5.
>  >
>  > Kind regards,
>  > Joachim
>  >
>  > Geoff Callender wrote:
>  >> To Howard, and anyone else with experience of javassist problems
>  >> with Java 1.6 (with the possibly that it's only related to Tomcat
>  >> in JBoss 4.2.2):
>  >>
>  >> It looks like this is a javassist classloading issue with Java
>  >> 1.6.  Everything works fine with Java 1.5.  The root cause is an
>  >> ArrayIndexOutOfBoundsException: 4, within javassist.  Any
>  >> suggestions?
>  >>
>  >> I commented out the pagelink to the offending page and the problem
>  >> moved to the next pagelink that had a context.  The root cause was
>  >> identical.
>  >>
>  >> Each time I commented out the offending pagelink, the problem
>  >> occurred on the next pagelink that had a context and the root cause
>  >> was identical.
>  >>
>  >> I tried -Dsun.lang.ClassLoader.allowArraySyntex=true (read 
> http://lists.jboss.org/pipermail/jboss-development/2007-June/009714.html
>  >>  )but the problem didn't change.
>  >>
>  >> Below is the full stack trace of the original problem.
>  >>
>  >> Cheers,
>  >>
>  >> Geoff
>  >>
>  >> 2008-03-07 21:22:27,150 ERROR
>  >> [org
>  >> .apache.tapestry.services.TapestryModule.RequestExceptionHandler]
>  >> Processing of request failed with uncaught exception: Render queue
>  >> error in BeginRender[Start:pagelink_10]: Could not convert
>  >> 'errorMessage' into a component parameter binding:
>  >> java.lang.NoClassDefFoundError: jumpstart/web/pages/examples/
>  >> request/PageLinkOrActionLink2
>  >> org.apache.tapestry.internal.services.RenderQueueException: Render
>  >> queue error in BeginRender[Start:pagelink_10]: Could not convert
>  >> 'errorMessage' into a component parameter binding:
>  >> java.lang.NoClassDefFoundError: jumpstart/web/pages/examples/
>  >> request/PageLinkOrActionLink2 [at classpath:jumpstart/web/pages/
>  >> Start.tml, line 41, column 84]
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal.services.RenderQueueImpl.run(RenderQueueImpl.java:75)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:63)
>  >>    at
>  >> $
>  >> PageRenderQueue_11888c18640.render($PageRenderQueue_11888c18640.java)
>  >>    at
>  >> $
>  >> PageRenderQueue_11888c18639.render($PageRenderQueue_11888c18639.java)
>  >>    at org.apache.tapestry.services.TapestryModule
>  >> $19.renderMarkup(TapestryModule.java:1289)
>  >>    at org.apache.tapestry.services.TapestryModule
>  >> $23.renderMarkup(TapestryModule.java:1397)
>  >>    at
>  >> $
>  >> MarkupRenderer_11888c18641
>  >> .renderMarkup($MarkupRenderer_11888c18641.java)
>  >>    at org.apache.tapestry.services.TapestryModule
>  >> $22.renderMarkup(TapestryModule.java:1378)
>  >>    at
>  >> $
>  >> MarkupRenderer_11888c18641
>  >> .renderMarkup($MarkupRenderer_11888c18641.java)
>  >>    at org.apache.tapestry.services.TapestryModule
>  >> $21.renderMarkup(TapestryModule.java:1360)
>  >>    at
>  >> $
>  >> MarkupRenderer_11888c18641
>  >> .renderMarkup($MarkupRenderer_11888c18641.java)
>  >>    at org.apache.tapestry.services.TapestryModule
>  >> $20.renderMarkup(TapestryModule.java:1342)
>  >>    at
>  >> $
>  >> MarkupRenderer_11888c18641
>  >> .renderMarkup($MarkupRenderer_11888c18641.java)
>  >>    at
>  >> $
>  >> MarkupRenderer_11888c1863e
>  >> .renderMarkup($MarkupRenderer_11888c1863e.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .PageMarkupRendererImpl
>  >> .renderPageMarkup(PageMarkupRendererImpl.java:55)
>  >>    at
>  >> $
>  >> PageMarkupRenderer_11888c1863c
>  >> .renderPageMarkup($PageMarkupRenderer_11888c1863c.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .PageResponseRendererImpl
>  >> .renderPageResponse(PageResponseRendererImpl.java:57)
>  >>    at
>  >> $
>  >> PageResponseRenderer_11888c185fd
>  >> .renderPageResponse($PageResponseRenderer_11888c185fd.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .PageRenderRequestHandlerImpl
>  >> .handle(PageRenderRequestHandlerImpl.java:59)
>  >>    at
>  >> $
>  >> PageRenderRequestHandler_11888c185f8
>  >> .handle($PageRenderRequestHandler_11888c185f8.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services.RootPathDispatcher.dispatch(RootPathDispatcher.java:55)
>  >>    at $Dispatcher_11888c185fb.dispatch($Dispatcher_11888c185fb.java)
>  >>    at $Dispatcher_11888c185ee.dispatch($Dispatcher_11888c185ee.java)
>  >>    at org.apache.tapestry.services.TapestryModule
>  >> $13.service(TapestryModule.java:911)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services.LocalizationFilter.service(LocalizationFilter.java:43)
>  >>    at
>  >> $RequestHandler_11888c185ef.service($RequestHandler_11888c185ef.java)
>  >>    at org.apache.tapestry.services.TapestryModule
>  >> $3.service(TapestryModule.java:529)
>  >>    at
>  >> $RequestHandler_11888c185ef.service($RequestHandler_11888c185ef.java)
>  >>    at org.apache.tapestry.services.TapestryModule
>  >> $2.service(TapestryModule.java:504)
>  >>    at
>  >> $RequestHandler_11888c185ef.service($RequestHandler_11888c185ef.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal.services.StaticFilesFilter.service(StaticFilesFilter.java:
>  >> 79)
>  >>    at
>  >> $RequestHandler_11888c185ef.service($RequestHandler_11888c185ef.java)
>  >>    at org.apache.tapestry.internal.services.CheckForUpdatesFilter
>  >> $2.invoke(CheckForUpdatesFilter.java:93)
>  >>    at org.apache.tapestry.internal.services.CheckForUpdatesFilter
>  >> $2.invoke(CheckForUpdatesFilter.java:84)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .ioc
>  >> .internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:
>  >> 106)
>  >>    at
>  >> $RequestHandler_11888c185ef.service($RequestHandler_11888c185ef.java)
>  >>    at
>  >> $RequestHandler_11888c185e7.service($RequestHandler_11888c185e7.java)
>  >>    at org.apache.tapestry.services.TapestryModule
>  >> $12.service(TapestryModule.java:891)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
>  >>    at
>  >> $
>  >> HttpServletRequestFilter_11888c185e6
>  >> .service($HttpServletRequestFilter_11888c185e6.java)
>  >>    at
>  >> $
>  >> HttpServletRequestHandler_11888c185e8
>  >> .service($HttpServletRequestHandler_11888c185e8.java)
>  >>    at
>  >> $
>  >> HttpServletRequestHandler_11888c185e5
>  >> .service($HttpServletRequestHandler_11888c185e5.java)
>  >>    at
>  >> org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:164)
>  >>    at
>  >> org
>  >> .apache
>  >> .catalina
>  >> .core
>  >> .ApplicationFilterChain
>  >> .internalDoFilter(ApplicationFilterChain.java:235)
>  >>    at
>  >> org
>  >> .apache
>  >> .catalina
>  >> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>  >> 206)
>  >>    at
>  >> org
>  >> .jboss
>  >> .web
>  >> .tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>  >>    at
>  >> org
>  >> .apache
>  >> .catalina
>  >> .core
>  >> .ApplicationFilterChain
>  >> .internalDoFilter(ApplicationFilterChain.java:235)
>  >>    at
>  >> org
>  >> .apache
>  >> .catalina
>  >> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>  >> 206)
>  >>    at
>  >> org
>  >> .apache
>  >> .catalina
>  >> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
>  >>    at
>  >> org
>  >> .apache
>  >> .catalina
>  >> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>  >>    at
>  >> org
>  >> .jboss
>  >> .web
>  >> .tomcat
>  >> .security
>  >> .SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
>  >>    at
>  >> org
>  >> .jboss
>  >> .web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
>  >> 84)
>  >>    at
>  >> org
>  >> .apache
>  >> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>  >>    at
>  >> org
>  >> .apache
>  >> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>  >>    at
>  >> org
>  >> .jboss
>  >> .web
>  >> .tomcat
>  >> .service
>  >> .jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
>  >>    at
>  >> org
>  >> .apache
>  >> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>  >> 109)
>  >>    at
>  >> org
>  >> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>  >> 262)
>  >>    at
>  >> org
>  >> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>  >> 844)
>  >>    at org.apache.coyote.http11.Http11Protocol
>  >> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>  >>    at org.apache.tomcat.util.net.JIoEndpoint
>  >> $Worker.run(JIoEndpoint.java:446)
>  >>    at java.lang.Thread.run(Thread.java:619)
>  >> Caused by: org.apache.tapestry.ioc.internal.util.TapestryException:
>  >> Could not convert 'errorMessage' into a component parameter
>  >> binding: java.lang.NoClassDefFoundError: jumpstart/web/pages/
>  >> examples/request/PageLinkOrActionLink2 [at classpath:jumpstart/web/
>  >> pages/Start.tml, line 41, column 84]
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .structure
>  >> .ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:884)
>  >>    at
>  >> org
>  >> .apache.tapestry.internal.structure.ComponentPageElementImpl.access
>  >> $100(ComponentPageElementImpl.java:54)
>  >>    at
>  >> org.apache.tapestry.internal.structure.ComponentPageElementImpl
>  >> $11.render(ComponentPageElementImpl.java:342)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal.services.RenderQueueImpl.run(RenderQueueImpl.java:63)
>  >>    ... 61 more
>  >> Caused by: org.apache.tapestry.ioc.internal.util.TapestryException:
>  >> Could not convert 'errorMessage' into a component parameter
>  >> binding: java.lang.NoClassDefFoundError: jumpstart/web/pages/
>  >> examples/request/PageLinkOrActionLink2 [at classpath:jumpstart/web/
>  >> pages/examples/request/PageLinkOrActionLink1.tml, line 34, column 41]
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services.BindingSourceImpl.newBinding(BindingSourceImpl.java:79)
>  >>    at
>  >> $
>  >> BindingSource_11888c18609.newBinding($BindingSource_11888c18609.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .PageElementFactoryImpl
>  >> .newExpansionElement(PageElementFactoryImpl.java:176)
>  >>    at
>  >> $
>  >> PageElementFactory_11888c18602
>  >> .newExpansionElement($PageElementFactory_11888c18602.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services.PageLoaderProcessor.expansion(PageLoaderProcessor.java:356)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .PageLoaderProcessor
>  >> .loadTemplateForComponent(PageLoaderProcessor.java:489)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .PageLoaderProcessor.workComponentQueue(PageLoaderProcessor.java:808)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:393)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:60)
>  >>    at $PageLoader_11888c18600.loadPage($PageLoader_11888c18600.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal.services.PagePoolCache.checkout(PagePoolCache.java:188)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:
>  >> 107)
>  >>    at $PagePool_11888c185ff.checkout($PagePool_11888c185ff.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:43)
>  >>    at
>  >> $RequestPageCache_11888c185fe.get($RequestPageCache_11888c185fe.java)
>  >>    at
>  >> $RequestPageCache_11888c185d2.get($RequestPageCache_11888c185d2.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services.LinkFactoryImpl.createPageLink(LinkFactoryImpl.java:239)
>  >>    at
>  >> $
>  >> LinkFactory_11888c18603.createPageLink($LinkFactory_11888c18603.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry.internal.structure.PageImpl.createPageLink(PageImpl.java:
>  >> 161)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .structure
>  >> .InternalComponentResourcesImpl
>  >> .createPageLink(InternalComponentResourcesImpl.java:128)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry.corelib.components.PageLink.beginRender(PageLink.java:73)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry.corelib.components.PageLink.beginRender(PageLink.java)
>  >>    at
>  >> org.apache.tapestry.internal.structure.ComponentPageElementImpl
>  >> $11$1.run(ComponentPageElementImpl.java:338)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .structure
>  >> .ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:874)
>  >>    ... 64 more
>  >> Caused by: org.apache.tapestry.ioc.internal.util.TapestryException:
>  >> java.lang.NoClassDefFoundError: jumpstart/web/pages/examples/
>  >> request/PageLinkOrActionLink2 [at classpath:jumpstart/web/pages/
>  >> examples/request/PageLinkOrActionLink1.tml, line 34, column 41]
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .bindings.PropBindingFactory.newBinding(PropBindingFactory.java:57)
>  >>    at
>  >> $
>  >> BindingFactory_11888c1862f
>  >> .newBinding($BindingFactory_11888c1862f.java)
>  >>    at
>  >> $
>  >> BindingFactory_11888c18616
>  >> .newBinding($BindingFactory_11888c18616.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services.BindingSourceImpl.newBinding(BindingSourceImpl.java:75)
>  >>    ... 87 more
>  >> Caused by: java.lang.RuntimeException:
>  >> java.lang.NoClassDefFoundError: jumpstart/web/pages/examples/
>  >> request/PageLinkOrActionLink2
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .ioc
>  >> .internal
>  >> .services.PropertyAccessImpl.buildAdapter(PropertyAccessImpl.java:97)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .ioc
>  >> .internal
>  >> .services.PropertyAccessImpl.getAdapter(PropertyAccessImpl.java:65)
>  >>    at
>  >> $
>  >> PropertyAccess_11888c185d6
>  >> .getAdapter($PropertyAccess_11888c185d6.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .PropertyConduitSourceImpl
>  >> .readInfoForTerm(PropertyConduitSourceImpl.java:451)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .PropertyConduitSourceImpl
>  >> .writePropertyNavigationCode(PropertyConduitSourceImpl.java:276)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .PropertyConduitSourceImpl
>  >> .buildGetter(PropertyConduitSourceImpl.java:216)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .PropertyConduitSourceImpl.build(PropertyConduitSourceImpl.java:173)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .PropertyConduitSourceImpl.create(PropertyConduitSourceImpl.java:120)
>  >>    at
>  >> $
>  >> PropertyConduitSource_11888c1862e
>  >> .create($PropertyConduitSource_11888c1862e.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .bindings.PropBindingFactory.newBinding(PropBindingFactory.java:48)
>  >>    ... 90 more
>  >> Caused by: java.lang.NoClassDefFoundError: jumpstart/web/pages/
>  >> examples/request/PageLinkOrActionLink2
>  >>    at java.lang.Class.getDeclaredMethods0(Native Method)
>  >>    at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
>  >>    at java.lang.Class.getDeclaredMethods(Class.java:1791)
>  >>    at java.beans.Introspector$1.run(Introspector.java:1272)
>  >>    at java.security.AccessController.doPrivileged(Native Method)
>  >>    at
>  >> java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:
>  >> 1270)
>  >>    at java.beans.Introspector.getTargetMethodInfo(Introspector.java:
>  >> 1136)
>  >>    at java.beans.Introspector.getBeanInfo(Introspector.java:387)
>  >>    at java.beans.Introspector.getBeanInfo(Introspector.java:159)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .ioc
>  >> .internal
>  >> .services.PropertyAccessImpl.buildAdapter(PropertyAccessImpl.java:85)
>  >>    ... 99 more
>  >> Caused by: java.lang.ClassNotFoundException: caught an exception
>  >> while obtaining a class file for 
> jumpstart.web.pages.examples.request.PageLinkOrActionLink
>  >> 2
>  >>    at javassist.Loader.findClass(Loader.java:359)
>  >>    at
>  >> org
>  >> .apache.tapestry.internal.services.ComponentInstantiatorSourceImpl
>  >> $PackageAwareLoader.findClass(ComponentInstantiatorSourceImpl.java:
>  >> 73)
>  >>    at javassist.Loader.loadClass(Loader.java:311)
>  >>    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>  >>    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>  >>    ... 109 more
>  >> Caused by:
>  >> org.apache.tapestry.internal.services.TransformationException: 4
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .ComponentClassTransformerImpl
>  >> .transformComponentClass(ComponentClassTransformerImpl.java:153)
>  >>    at
>  >> $
>  >> ComponentClassTransformer_11888c185e2
>  >> .transformComponentClass($ComponentClassTransformer_11888c185e2.java)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .ComponentInstantiatorSourceImpl
>  >> .onLoad(ComponentInstantiatorSourceImpl.java:162)
>  >>    at javassist.Loader.findClass(Loader.java:340)
>  >>    ... 113 more
>  >> Caused by: java.lang.ArrayIndexOutOfBoundsException: 4
>  >>    at javassist.bytecode.ByteArray.write16bit(ByteArray.java:41)
>  >>    at javassist.bytecode.StackMapTable
>  >> $Shifter.update(StackMapTable.java:744)
>  >>    at javassist.bytecode.StackMapTable
>  >> $Shifter.sameFrame(StackMapTable.java:720)
>  >>    at javassist.bytecode.StackMapTable
>  >> $Walker.stackMapFrames(StackMapTable.java:194)
>  >>    at javassist.bytecode.StackMapTable
>  >> $Walker.parse(StackMapTable.java:179)
>  >>    at javassist.bytecode.StackMapTable
>  >> $Shifter.doit(StackMapTable.java:714)
>  >>    at javassist.bytecode.StackMapTable.shiftPc(StackMapTable.java:
>  >> 693)
>  >>    at javassist.bytecode.CodeIterator.insertGap0(CodeIterator.java:
>  >> 676)
>  >>    at javassist.bytecode.CodeIterator.insertGap(CodeIterator.java:
>  >> 636)
>  >>    at
>  >> javassist.bytecode.CodeIterator.insertGapCore(CodeIterator.java:467)
>  >>    at javassist.bytecode.CodeIterator.insertGap(CodeIterator.java:
>  >> 413)
>  >>    at javassist.expr.Expr.replace0(Expr.java:290)
>  >>    at javassist.expr.FieldAccess.replace(FieldAccess.java:213)
>  >>    at
>  >> org
>  >> .apache.tapestry.internal.services.InternalClassTransformationImpl
>  >> $2.edit(InternalClassTransformationImpl.java:1515)
>  >>    at javassist.expr.ExprEditor.loopBody(ExprEditor.java:197)
>  >>    at javassist.expr.ExprEditor.doit(ExprEditor.java:90)
>  >>    at javassist.CtClassType.instrument(CtClassType.java:1288)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .InternalClassTransformationImpl
>  >> .replaceFieldAccess(InternalClassTransformationImpl.java:1521)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .InternalClassTransformationImpl
>  >> .performFieldTransformations(InternalClassTransformationImpl.java:
>  >> 1449)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .InternalClassTransformationImpl
>  >> .finish(InternalClassTransformationImpl.java:1127)
>  >>    at
>  >> org
>  >> .apache
>  >> .tapestry
>  >> .internal
>  >> .services
>  >> .ComponentClassTransformerImpl
>  >> .transformComponentClass(ComponentClassTransformerImpl.java:149)
>  >>    ... 116 more
>  >> On 06/03/2008, at 9:35 PM, Geoff Callender wrote:
>  >>
>  >>> I've finally been able to reproduce this problem by using JDK
>  >>> 1.6.  Not sure why that is but I'll be looking into it.
>  >>>
>  >>> in the meantime please drop back to JDK 1.5 like this:
>  >>> - In Eclipse choose Window > Preferences > Java Compiler and set
>  >>> Compiler compliance level to 5.0.
>  >>> - Before running JBoss's run.bat, set JAVA_HOME tothe location of
>  >>> a 1.5 JDK.
>  >>>
>  >>> Please note too that the Downloads page specifies JDK 1.5 and
>  >>> Eclipse 3.2 as system requirements, because 1.6 and 3.3 haven't
>  >>> been tested before now.
>  >>>
>  >>> Geoff
>  >>> http://files.doublenegative.com.au/jumpstart/
>  >>>
>  >>> On 06/03/2008, at 8:49 AM, Borut Bolčina wrote:
>  >>>
>  >>>> Hi,
>  >>>>
>  >>>> I am also getting an error at step 9.
>  >>>>
>  >>>> An unexpected application exception has occurred.
>  >>>>
>  >>>> - org.apache.tapestry.internal.services.RenderQueueExceptionRender
>  >>>> queue error in BeginRender[Start:pagelink_10]: Could not convert
>  >>>> 'errorMessage' into a component parameter binding:
>  >>>> java.lang.NoClassDefFoundError:
>  >>>> jumpstart/web/pages/examples/request/PageLinkOrActionLink2
>  >>>> activeComponents
>  >>>>    - Start (class jumpstart.web.pages.Start)
>  >>>>    - Start:pagelink_10 (class
>  >>>>    org.apache.tapestry.corelib.components.PageLink)
>  >>>>    classpath:jumpstart/web/pages/Start.tml, line 41, column
>  >>>> 8436<br/>
>  >>>>    37 <a t:type="pagelink"
>  >>>>    t:page="examples/request/RenderRequests1" href="#">Render
>  >>>> Requests</a><br/>
>  >>>>    38 <a t:type="pagelink" t:page="examples/request/ActionRequests"
>  >>>>    href="#">Action Requests</a><br/>39 <a t:type="pagelink"
>  >>>>    t:page="examples/request/ActionThenNewPage1" href="#">Action
>  >>>> Then New
>  >>>>    Page</a><br/>40 <a t:type="pagelink"
>  >>>>    t:page="examples/request/PersistingThroughTheRedirection1"
>  >>>>    href="#">Persisting Through The Redirection</a><br/>41 <a
>  >>>>    t:type="pagelink" t:page="examples/request/
>  >>>> PageLinkOrActionLink1"
>  >>>>    href="#">PageLink or ActionLink?</a><br/>42 <a t:type="pagelink"
>  >>>>    t:page="examples/request/FormSubmission1" href="#">Form
>  >>>> Submission</a><br/>
>  >>>>    43 <br/>44 <a t:type="pagelink"
>  >>>>    t:page="examples/input/BasicInput1" href="#">Basic Input</
>  >>>> a><br/>
>  >>>>    45 <a t:type="pagelink" t:page="examples/input/Validators1"
>  >>>>    href="#">Validators</a><br/>46 <a t:type="pagelink"
>  >>>>    t:page="examples/input/ProgrammaticValidation1"
>  >>>> href="#">Programmatic
>  >>>>    Validation</a><br/>
>  >>>> locationclasspath:jumpstart/web/pages/Start.tml, line 41, column 84
>  >>>> - org.apache.tapestry.ioc.internal.util.TapestryExceptionCould not
>  >>>> convert 'errorMessage' into a component parameter binding:
>  >>>> java.lang.NoClassDefFoundError:
>  >>>> jumpstart/web/pages/examples/request/PageLinkOrActionLink2
>  >>>> locationclasspath:jumpstart/web/pages/examples/request/
>  >>>> PageLinkOrActionLink1.tml,
>  >>>> line 34, column 4129
>  >>>> 30 This ActionLink should work OK: 31 <a t:type="actionlink"
>  >>>> t:id="ActionLinkA" t:context="literal:1" href="#">Person 1</a>.
>  >>>> 32This ActionLink will receive an exception, which it handles:
>  >>>> 33 <a t:type="actionlink" t:id="ActionLinkB" t:context="literal:
>  >>>> 999"
>  >>>> href="#">Person 999</a><br/>34 <span
>  >>>> style="color:red">${errorMessage}</span><br/><br/>35
>  >>>> 36 <a t:type="pagelink" t:page="Start" href="#">To Start</a><br/
>  >>>> ><br/>
>  >>>> 37
>  >>>> 38 <t:sourcecodedisplay
>  >>>> src="/web/src/main/webapp/pages/examples/request/
>  >>>> PageLinkOrActionLink1.tml"/>
>  >>>> 39 <t:sourcecodedisplay
>  >>>> src="/web/src/main/java/jumpstart/web/pages/examples/request/
>  >>>> PageLinkOrActionLink1.java"/>
>  >>>> - java.lang.ClassNotFoundExceptioncaught an exception while
>  >>>> obtaining
>  >>>> a class file for
>  >>>> jumpstart.web.pages.examples.request.PageLinkOrActionLink2
>  >>>> exceptionorg
>  >>>> .apache.tapestry.internal.services.TransformationException:
>  >>>> Class
>  >>>> jumpstart.web.pages.examples.request.PageLinkOrActionLink2contains
>  >>>> field(s) (_$resources) that are not private. You should change
>  >>>> these fields to private, and add accessor methods if needed.
>  >>>> -
>  >>>> org.apache.tapestry.internal.services.TransformationExceptionClass
>  >>>> jumpstart.web.pages.examples.request.PageLinkOrActionLink2 contains
>  >>>> field(s) (_$resources) that are not private. You should change
>  >>>> these fields
>  >>>> to private, and add accessor methods if needed.
>  >>>>
>  >>>> ...and more
>  >>>>
>  >>>> Here is the exploder info:
>  >>>>
>  >>>>
>  >>>> Buildfile: C:\Users\Borut\Workarea\jumpstart-min-3.3.3\exploder.xml
>  >>>> copy-all-to-exploded-dir:
>  >>>> mkdir:
>  >>>> copy-enterprise-to-exploded-ear:
>  >>>>   [copy] Copying 2 files to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear
>  >>>>   [copy] Copying 2 files to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear
>  >>>> mkdir:
>  >>>> copy-datasource-descriptor-to-exploded-ear:
>  >>>>   [copy] Copying 1 file to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded
>  >>>> mkdir:
>  >>>> copy-business-to-exploded-jar:
>  >>>>   [copy] Copying 50 files to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear\jumpstart-min.jar
>  >>>>   [copy] Copying 1 file to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear\jumpstart-min.jar\META-INF
>  >>>> mkdir:
>  >>>> copy-web-to-exploded-war:
>  >>>>   [copy] Copying 8 files to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear\jumpstart-min.war
>  >>>>   [copy] Copying 81 files to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear\jumpstart-min.war\WEB-INF
>  >>>> \classes
>  >>>>   [copy] Copying 63 files to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear\jumpstart-min.war\WEB-INF
>  >>>> \classes\jumpstart\web
>  >>>>   [copy] Copying 7 files to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear\jumpstart-min.war\WEB-INF\lib
>  >>>> mkdir:
>  >>>> copy-src-to-exploded-war:
>  >>>>  [mkdir] Created dir: C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear\jumpstart-min.war\WEB-INF
>  >>>> \sourcecode
>  >>>>   [copy] Copying 71 files to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear\jumpstart-min.war\WEB-INF
>  >>>> \sourcecode
>  >>>>   [copy] Copying 81 files to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear\jumpstart-min.war\WEB-INF
>  >>>> \sourcecode
>  >>>>   [copy] Copying 47 files to C:\Users\Borut\Workarea\jumpstart-
>  >>>> min-3.3.3\exploded\jumpstart-min.ear\jumpstart-min.war\WEB-INF
>  >>>> \sourcecode
>  >>>> BUILD SUCCESSFUL
>  >>>> Total time: 940 milliseconds
>  >>>>
>  >>>>
>  >>>> I am on Eclipse 3.3, Vista.
>  >>>>
>  >>>> Regards,
>  >>>> Borut
>  >>>>
>  >>>> 2008/3/4, Geoff Callender <[EMAIL PROTECTED]>:
>  >>>>>
>  >>>>> Hi Greg,
>  >>>>>
>  >>>>> I can't explain why this would be happening, as I'm successfully
>  >>>>> running it on OS X 10.5 and Windows XP SP2, all with JBoss
>  >>>>> 4.2.2.GA on
>  >>>>> Java 1.5, to browsers running Safari, Firefox, and IE 7.
>  >>>>>
>  >>>>> What are the details of your operating environment?  What's in the
>  >>>>> JBoss log on the console (please paste any stacktrace in your
>  >>>>> reply)?
>  >>>>> If you choose Project > Clean... in Eclipse and restart JBoss do
>  >>>>> you
>  >>>>> get the same result?  if so, what was in the Eclipse Console
>  >>>>> following
>  >>>>> the clean (please paste the exploder's output in your reply).
>  >>>>>
>  >>>>> Cheers,
>  >>>>>
>  >>>>>
>  >>>>> Geoff
>  >>>>>
>  >>>>>
>  >>>>> On 03/03/2008, at 2:57 AM, Gregory Mazurek wrote:
>  >>>>>
>  >>>>>> Hi Geoff,
>  >>>>>>
>  >>>>>> I'm new to Tapestry coming recently from RoR (encountered scaling
>  >>>>>> problems
>  >>>>>> in some of my web applications but still use it occasionally!).
>  >>>>>>
>  >>>>>> I'm going through the JumpStart 3.3.3 installation process and
>  >>>>>> all
>  >>>>>> has been
>  >>>>>> going well until step 9 (of
>  >>>>>> http://files.doublenegative.com.au/jumpstart/
>  >>>>>> installation.html).  I'm
>  >>>>>> encountering an error that I haven't been able to resolve for the
>  >>>>>> past 3
>  >>>>>> days.  When I load localhost:8080/jumpstart, I get this error:
>  >>>>>>
>  >>>>>> An unexpected application exception has occurred.  Render queue
>  >>>>>> error in
>  >>>>>> BeginRender[Start:pagelink_10]: Could not convert 'errorMessage'
>  >>>>>> into a
>  >>>>>> component parameter binding: java.lang.NoClassDefFoundError:
>  >>>>>> jumpstart/web/pages/examples/request/PageLinkOrActionLink2
>  >>>>>> Can you point me to what might be happening/what I need to do?
>  >>>>>>
>  >>>>>> Thanks for any help you can offer,
>  >>>>>>
>  >>>>>> Greg
>  >>>>>>
>  >>>>>>
>  >>>>>> On Wed, Feb 27, 2008 at 7:16 AM, Geoff Callender <
>  >>>>>> [EMAIL PROTECTED]> wrote:
>  >>>>>>
>  >>>>>>> Hi all,
>  >>>>>>>
>  >>>>>>> JumpStart 3.3.3 is now available for T5.0.10.  It fixes these
>  >>>>>>> bugs
>  >>>>>>> that were in 3.3.1 which was released a few days ago:
>  >>>>>>>
>  >>>>>>>    * Editing a Person always displayed a "Double Wow!!!" error
>  >>>>>>> (My
>  >>>>>>> thanks to Julian Wood for reporting this).
>  >>>>>>>    * Exploder directory is not set to "derived" in Eclipse, so
>  >>>>>>> searches
>  >>>>>>> don't bypass it.
>  >>>>>>>
>  >>>>>>> You'll find it at:
>  >>>>>>>
>  >>>>>>>    http://files.doublenegative.com.au/jumpstart
>  >>>>>>>
>  >>>>>>> Comments and suggestions are always welcome.  Be helpful or
>  >>>>>>> brutal
>  >>>>>>> - I
>  >>>>>>> don't care which, because it all helps to make this stuff more
>  >>>>>>> useful.
>  >>>>>>>
>  >>>>>>> Cheers,
>  >>>>>>>
>  >>>>>>> Geoff Callender
>  >>>>>
>  >>>>>
>  >>>>>
>  >>>>> ---------------------------------------------------------------------
>  >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>  >>>>>
>  >>>>>
>  >>>
>  >>
>  >>
>  >
>  >
>  > --
>  > Joachim Van der Auwera
>  > PROGS bvba, progs.be
>  >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>
>

Reply via email to