You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Peter Kanze <pe...@gmail.com> on 2010/03/27 14:02:21 UTC
Tapestry 5.2 + Google Appengine
Hello I have a working webapp with Tapestry 5.2 running with Google
Appengine.
But when I add a simple form like this I get the error shown below.
<form t:type="form" t:id="names">
First Name: <input t:type="TextField" t:id="firstName"/><br/>
Last Name: <input t:type="TextField" t:id="lastName"/><br/>
<input type="submit" value="submit"/>
</form>
12:58:00,625 ERROR
[org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler] -
Processing of request failed with uncaught exception: Invalid length 65384
in LocalVariableTable in class file
org/apache/tapestry5/corelib/components/Form
java.lang.ClassFormatError: Invalid length 65384 in LocalVariableTable in
class file org/apache/tapestry5/corelib/components/Form
at java.lang.ClassLoader.defineClass1(Native Method)
Does anyone know what is causing this strange error. I have a simple Index
page with only one form element.
Re: Tapestry 5.2 + Google Appengine
Posted by Dmitry Gusev <dm...@gmail.com>.
You can use eclipse quick fix to ignore this error.
2010/3/27, Peter Kanze <pe...@gmail.com>:
> I solved the problem using this blog:
> http://dmitrygusev.blogspot.com/2009/10/develope-java-applications-with-gae-sdk.html
>
> I added the AppEngineDevAgent class (see below) to my project. But now I get
> this error in Eclipse:
>
> java.lang.instrument.Instrumentation is not supported by Google App Engine's
> Java runtime environment
>
> Although everything works now. Is there a way to disable this error?
>
> regards,
> Peter
>
>
>
> package com.google.appengine.tools.development.agent;
>
> import java.lang.instrument.Instrumentation;
>
> public class AppEngineDevAgent {
>
> public static void premain(String s, Instrumentation instrumentation) {
>
> }
>
> public static Object getAgent()
> {
> return null;
> }
>
> }
>
> On Sat, Mar 27, 2010 at 2:02 PM, Peter Kanze <pe...@gmail.com> wrote:
>
>> Hello I have a working webapp with Tapestry 5.2 running with Google
>> Appengine.
>>
>> But when I add a simple form like this I get the error shown below.
>>
>> <form t:type="form" t:id="names">
>> First Name: <input t:type="TextField" t:id="firstName"/><br/>
>> Last Name: <input t:type="TextField" t:id="lastName"/><br/>
>> <input type="submit" value="submit"/>
>> </form>
>>
>> 12:58:00,625 ERROR
>> [org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler] -
>> Processing of request failed with uncaught exception: Invalid length 65384
>> in LocalVariableTable in class file
>> org/apache/tapestry5/corelib/components/Form
>> java.lang.ClassFormatError: Invalid length 65384 in LocalVariableTable in
>> class file org/apache/tapestry5/corelib/components/Form
>> at java.lang.ClassLoader.defineClass1(Native Method)
>>
>> Does anyone know what is causing this strange error. I have a simple Index
>> page with only one form element.
>>
>
--
Отправлено с моего мобильного устройства
Dmitry Gusev
AnjLab Team
http://anjlab.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tapestry 5.2 + Google Appengine
Posted by Peter Kanze <pe...@gmail.com>.
I solved the problem using this blog:
http://dmitrygusev.blogspot.com/2009/10/develope-java-applications-with-gae-sdk.html
I added the AppEngineDevAgent class (see below) to my project. But now I get
this error in Eclipse:
java.lang.instrument.Instrumentation is not supported by Google App Engine's
Java runtime environment
Although everything works now. Is there a way to disable this error?
regards,
Peter
package com.google.appengine.tools.development.agent;
import java.lang.instrument.Instrumentation;
public class AppEngineDevAgent {
public static void premain(String s, Instrumentation instrumentation) {
}
public static Object getAgent()
{
return null;
}
}
On Sat, Mar 27, 2010 at 2:02 PM, Peter Kanze <pe...@gmail.com> wrote:
> Hello I have a working webapp with Tapestry 5.2 running with Google
> Appengine.
>
> But when I add a simple form like this I get the error shown below.
>
> <form t:type="form" t:id="names">
> First Name: <input t:type="TextField" t:id="firstName"/><br/>
> Last Name: <input t:type="TextField" t:id="lastName"/><br/>
> <input type="submit" value="submit"/>
> </form>
>
> 12:58:00,625 ERROR
> [org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler] -
> Processing of request failed with uncaught exception: Invalid length 65384
> in LocalVariableTable in class file
> org/apache/tapestry5/corelib/components/Form
> java.lang.ClassFormatError: Invalid length 65384 in LocalVariableTable in
> class file org/apache/tapestry5/corelib/components/Form
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> Does anyone know what is causing this strange error. I have a simple Index
> page with only one form element.
>