[T5] StackMapTable format error: bad class index
Hi all, First of all: I'm using the 5.0.5 snapshot with JBoss 4.0.5-GA. I have a component named LoginView. It shows the login status of the user. The thing is, if I implement the beginRender method in this way: @Inject private SecurityService security; void beginRender(MarkupWriter writer) { if( this.security.getAuthentication().isAuthenticated() ) { ... writer.write(this.security.getAuthentication().getUserName()); } else ... } The application works fine. But, if I change the code to this: @Inject private SecurityService security; void beginRender(MarkupWriter writer) { Authentication auth = this.security.getAuthentication(); if( auth.isAuthenticated() ) { ... writer.write(auth.getAuthentication().getUserName()); } else ... } I receive the following exception: An unexpected application exception has occurred. ... * java.lang.ClassFormatError StackMapTable format error: bad class index ... Stack trace o java.lang.Class.getDeclaredConstructors0(Native Method) o java.lang.Class.privateGetDeclaredConstructors(Unknown Source) o java.lang.Class.getConstructors(Unknown Source) o org.apache.tapestry.internal.services.ReflectiveInstantiator.findConstructor(ReflectiveInstantiator.java:65) o org.apache.tapestry.internal.services.ReflectiveInstantiator.init(ReflectiveInstantiator.java:53) I just want to know if this is a bug, or if I´m missing something, or if I´m going crazy! Thanks. Sid. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] StackMapTable format error: bad class index
That's an odd one! You've done the normal ... clean rebuild, fresh restart, etc? Are you using any inner classes in your page/component? I recently fixed a bug (in 5.0.5) related to those. If you can use 5.0.5 please do ... it produces much more comprehensive exception data when an error occurs related to runtime bytecode enhancement. On 6/8/07, Siddhartha Argollo [EMAIL PROTECTED] wrote: Hi all, First of all: I'm using the 5.0.5 snapshot with JBoss 4.0.5-GA. I have a component named LoginView. It shows the login status of the user. The thing is, if I implement the beginRender method in this way: @Inject private SecurityService security; void beginRender(MarkupWriter writer) { if( this.security.getAuthentication().isAuthenticated() ) { ... writer.write(this.security.getAuthentication().getUserName()); } else ... } The application works fine. But, if I change the code to this: @Inject private SecurityService security; void beginRender(MarkupWriter writer) { Authentication auth = this.security.getAuthentication(); if( auth.isAuthenticated() ) { ... writer.write(auth.getAuthentication().getUserName()); } else ... } I receive the following exception: An unexpected application exception has occurred. ... * java.lang.ClassFormatError StackMapTable format error: bad class index ... Stack trace o java.lang.Class.getDeclaredConstructors0(Native Method) o java.lang.Class.privateGetDeclaredConstructors(Unknown Source) o java.lang.Class.getConstructors(Unknown Source) o org.apache.tapestry.internal.services.ReflectiveInstantiator.findConstructor(ReflectiveInstantiator.java:65) o org.apache.tapestry.internal.services.ReflectiveInstantiator.init(ReflectiveInstantiator.java:53) I just want to know if this is a bug, or if I´m missing something, or if I´m going crazy! Thanks. Sid. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: StackMapTable format error: bad class index
hi all, i get the above error message when i link from my home page to another page with exactly one component. i have no clue what's missing... (i'm using the latest classes from SVN) g, kris Home Page: public class Start { @InjectPage(guess) private Guess guessPage; public Object onAction() { return guessPage; } } Target Page: public class Guess { @Component(parameters={page=home},id=startPage) private PageLink startPage; public PageLink getStartPage() { return startPage; } } target template: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleGuess/title /head body div style=position:absolute;left:200px;top:50px; a href=# t:id=startPageGo back .../a
RE: T5: StackMapTable format error: bad class index
found my mistake the name of my home page is start and not home ... force of habit g kris Kristian Marinkovic [EMAIL PROTECTED] 18.04.2007 11:14 Bitte antworten an Tapestry users users@tapestry.apache.org An users@tapestry.apache.org Kopie Thema T5: StackMapTable format error: bad class index hi all, i get the above error message when i link from my home page to another page with exactly one component. i have no clue what's missing... (i'm using the latest classes from SVN) g, kris Home Page: public class Start { @InjectPage(guess) private Guess guessPage; public Object onAction() { return guessPage; } } Target Page: public class Guess { @Component(parameters={page=home},id=startPage) private PageLink startPage; public PageLink getStartPage() { return startPage; } } target template: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleGuess/title /head body div style=position:absolute;left:200px;top:50px; a href=# t:id=startPageGo back .../a