Questions tagged [autobean]

The AutoBean Framework provides automatically-generated implementations of bean-like interfaces and a low-level serialization mechanism for those interfaces. AutoBeans can be used in both client and server code to improve code re-use. For example, the Requestfactory system uses AutoBeans extensively in both the client and server code.

The AutoBean framework provides automatically-generated implementations of bean-like interfaces and a low-level serialization mechanism for those interfaces. AutoBeans can be used in both client and server code to improve code re-use. For example, the Requestfactory system uses AutoBeans extensively in both the client and server code. This document describes the state of AutoBeans as found in the GWT 2.1.1 release.

62 questions
2
votes
1 answer

Using lists with AutoBean

I have an AutoBean of type GetGenericQuerySources. GetGenericQuerySources looks like this: public class GetGenericQuerySources implements Serializable, GetGenericQuerySourcesInt { /** * */ private static final long serialVersionUID =…
Pieter van Niekerk
  • 848
  • 15
  • 42
2
votes
1 answer

How to deserialize BigDecimal by using GWT AutoBean?

I have json coming from server and representing pojos. When i deserialize to json using AutoBean some works some dont! I figure out that those which cant be deserialize has BigDecimal getters/setters. Error: TypeError: Cannot read property 'length'…
3logy
  • 2,634
  • 8
  • 46
  • 99
2
votes
0 answers

Does GWT's JSR 303 validation work with AutoBeans?

The newest release of GWT has support for JSR 303 Bean Validation. I've hunted around, and I yet to find any mention of whether or not this works with AutoBeans. Any ideas? Thanks ahead of time!
Jonathan
  • 705
  • 5
  • 16
2
votes
2 answers

Is there a way to annotate an AutoBean property so that it will not be serialized/deserialized?

I have an autobean with a property that is only needed for the UI. I believe that you can null out values and the AutoBeanCodex will not serialized that property, but that equates to an extra step which is needed at serialization. I was hoping for…
Jonathan
  • 705
  • 5
  • 16
2
votes
1 answer

RequestFactory request (AutoBeanCodexImpl.doCoderFor) never finish and use 100% cpu

We have a GWT application deployed onto tomcat, after a few hours of use (2 QAs perform general testing), java process start to use all CPUs and app become slow. I looked into tomcat manager and find out there are many long running HTTP requests and…
Jiang Zhu
  • 97
  • 1
  • 8
2
votes
2 answers

GWT Autobean Codex reading a Map

I have a JSON map like: { "element":"value","element2":"value2",...} With both key and value strings. I try to read it with an autobean and I get strange exceptions. It should be straightforward, shouldn't? The error I'm getting is: [ERROR]…
Jordi P.S.
  • 3,838
  • 7
  • 36
  • 59
1
vote
3 answers

GWT Autobeans, parsing root-level as Map or List

Autobeans are pretty powerful. Yet, for the life of me, I cannot figure out how to handle root-level JSON maps or lists. Most of the documentation suggests that you have a defined top level object that can contain a variety of sub-objects…
Matt Traynham
  • 205
  • 3
  • 11
1
vote
1 answer

What is the reason to support autobean wrapping in gwt

I am investigating the usage of gwt autobeans in my project. When I were reading about this component, I came across a concept of autobean wrapping but found no explanation why it was created. What is it good for? Where can I use it?
Konstantin Solomatov
  • 10,252
  • 8
  • 58
  • 88
1
vote
1 answer

GWT AutoBean: annotation @PropertyName doesn't work anymore

I use AutoBean to code/decode data to JSON and that was all right in previous GWT versions. In my opinion AutoBean is very good and convenient tool to deal with JSON. Since GWT ver.2.4.0 this functionality has changed and I spent some time to…
1
vote
0 answers

GWT Autobeans and Dates

I am trying to use AutoBeans, i am parsing json that has a date such as '2011-12-08T10:07:24.247-05:00' to a Date variable in my bean, but StringQuoter.tryParseDate() always returns null. Also if i had a string "2011-12-08" can i not specify a…
Asim
  • 869
  • 1
  • 10
  • 17
1
vote
1 answer

Autobean category runs well on develoment mode but fails when GWT-compiling

This code runs well in development mode but it fails with an exception when gwt compiling. I don't know why. The MechanicCategory class is on path, compiles well with eclipse and all runs well in dev mode but fails gwt compiling... :-/ Any…
1
vote
1 answer

GWT Autobean JSON spec

If I used Autobean on GWT client to serialise my POJO (sent out thro RequestBuilder) but I plan to use say, groovy, perl or php to service that request, I would need to know the serialization format of Autobean. What is and where can I get the JSON…
Blessed Geek
  • 21,058
  • 23
  • 106
  • 176
1
vote
1 answer

GWT Autobeans / NoClassDefFoundError: What am I doing wrong?

I am trying to serialize a POJO to JSON in GWT using Autobeans, an I keep receiving a NoClassDefFoundError and ClassNotFoundException, both looking for org.json.JSONObject. This is in the context of tokenizing a Place. I created a JUnit test to…
Ray
  • 4,829
  • 4
  • 28
  • 55
1
vote
1 answer

How to use autobean for converting json to java class in GWT

I have a class Person in gwt and I have sent an instance of Person with servlet converted using Gson from server to client. But in the client side seems I can't use Gson. From what I read in forums it seems that the best way is using AutoBeans to…
Saeid
  • 448
  • 1
  • 7
  • 19
1
vote
0 answers

Is there a way to auto-generate AutoBean interfaces

I just stumbled upon the GWT com.google.web.bindery.autobean.shared.AutoBean and learned that I have to write and maintain AutoBean Interfaces for my classes if I want to create AutoBeans from them. This looks like a lot of boilerplate code for me.…
Sebastian
  • 5,721
  • 3
  • 43
  • 69