>
> Would that be something like the onSuccess() method .. ?
>>
> Sorry if this sounds like a silly question, but what would be an example of
> an eventhandler method?
>
> Yes. Or some method annotated with @OnEvent.

Hmm, i figured as much so i did some stripping. Below the code that i end up
with whilst still throwing the error.
How much shorter does it have to be .. ;-)

public class Search {
    public List<String> onProvideCompletionsFromFieldName(String partial) {
        return new ArrayList<String>();
    }

    void onValidateForm() {
    }

    Object onSuccess() {
        return this;
    }

    private List<Object> _results;
    public List<Object> getResults() {
        return _results;
    }

    @Log
    void setupRender() {
    }
}

I don't have any estimate for that. Just take a look at the Tapestry page
> that has that problem and try to shorten their event handler methods.
>
As you can tell i went a bit overboard but i'm starting to think that the
problem is not in the code but something that's going on in the
AutocompleteMixin, or so it seems to me at least.

To be complete the .tml code as well
...
       <form t:type="form" t:id="mixinform">
            Type in your search arguments:
            <input t:id="fieldName" t:type="TextField"
t:mixins="autocomplete"/>
            <br/>
            <input type="submit" value="Search"/>
        </form>
...

The combo of the above code gave me the following trace (top part ..)

java.lang.ClassFormatErrorInvalid length 112 in LocalVariableTable in class
file org/apache/tapestry5/corelib/mixins/Autocomplete
Hide uninteresting stack frames Stack trace

   - java.lang.ClassLoader.defineClass1(Native Method)
   - java.lang.ClassLoader.defineClass(ClassLoader.java:621)
   - java.lang.ClassLoader.defineClass(ClassLoader.java:466)
   - javassist.Loader.findClass(Loader.java:379)
   - 
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl$PackageAwareLoader.findClass(ComponentInstantiatorSourceImpl.java:94)

   - javassist.Loader.loadClass(Loader.java:311)

...

Is there any chance i'm looking at a 'corrupted' class of sorts, even though
the whole thing is based on the quickstart archetype from Maven.

Or doesn't T5 like Ubuntu on a MacPro .. ;)

Tia

Fermin DCG

Reply via email to