Re: javassist problems with Java 1.6
-Dsun.lang.ClassLoader.allowArraySyntex=true a typo just in this email, or in the actual usage? On Fri, Mar 7, 2008 at 1:17 PM, Geoff Callender [EMAIL PROTECTED] 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)
Re: javassist problems with Java 1.6
Typo in the email only. -Dsun.lang.ClassLoader.allowArraySyntax=true On 07/03/2008, at 10:36 PM, Andreas Andreou wrote: -Dsun.lang.ClassLoader.allowArraySyntex=true a typo just in this email, or in the actual usage? On Fri, Mar 7, 2008 at 1:17 PM, Geoff Callender [EMAIL PROTECTED] 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
Re: javassist problems with Java 1.6
How right you are. Thanks. From http://sourceforge.net/project/shownotes.php?release_id=548923group_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
Re: javassist problems with Java 1.6
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. PrimaryKeyEncoderSerializable, 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=548923group_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