Re: GWT 2.0 serialization policy file

2009-12-23 Thread rlag...@googlemail.com
Hi Oleg,

i'm facing the same problem for 5 days now... Can you tell me please
how you  solved it?

Many thanks in advance

Rodrigue

On Nov 22, 12:56 am, "Oleg K."  wrote:
> Hi all.
>
> I have the following problem.
>
> My project tries to use GWT RPC.
>
> It has one jar in dependency libs which contain several model classes.
> All of that classes implements Serializable and IsSerializable
> interfaces (one of that classes is CHAttrGroup). That jar also
> includes .java files with source code and Module.gwt.xml file so that
> model classes can be used in main GWT application by including
> .
>
> GWT compiler (2.0-rc1) doesn't write error messages when building
> application and all that model classes (e.g. CHAttrGroup) work
> correctly in client-side code (like other gwt client classes). But
> when I try to send objects of that class from server to client I get
> following exception:
>
> 2009-11-22 02:34:49.688:tasktrackgwt:WARN:  Exception while
> dispatching incoming RPC call
> com.google.gwt.user.client.rpc.SerializationException:
> java.lang.reflect.InvocationTargetException
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeWithCustomSerializer
> (ServerSerializationStreamWriter.java:760)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeImpl
> (ServerSerializationStreamWriter.java:723)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze
> (ServerSerializationStreamWriter.java:612)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write 
> Object
> (AbstractSerializationStreamWriter.java:129)
>         at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeValue
> (ServerSerializationStreamWriter.java:534)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeClass
> (ServerSerializationStreamWriter.java:700)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeImpl
> (ServerSerializationStreamWriter.java:730)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze
> (ServerSerializationStreamWriter.java:612)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write 
> Object
> (AbstractSerializationStreamWriter.java:129)
>         at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeValue
> (ServerSerializationStreamWriter.java:534)
>         at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:607)
>         at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess
> (RPC.java:465)
>         at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:562)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:188)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
> (RemoteServiceServlet.java:224)
>         at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
> (AbstractRemoteServiceServlet.java:62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>         at com.google.inject.servlet.ServletDefinition.doService
> (ServletDefinition.java:216)
>         at com.google.inject.servlet.ServletDefinition.service
> (ServletDefinition.java:141)
>         at com.google.inject.servlet.ManagedServletPipeline.service
> (ManagedServletPipeline.java:93)
>         at com.google.inject.servlet.FilterChainInvocation.doFilter
> (FilterChainInvocation.java:63)
>         at com.google.inject.servlet.ManagedFilterPipeline.dispatch
> (ManagedFilterPipeline.java:122)
>         at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
> 110)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1157)
>         at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:388)
>         at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>         at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:182)
>         at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:765)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 418)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle
> (ContextHandlerCollection.java:230)
>         at org.mortbay.jetty.handler.HandlerCollection.handle
> (HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWr

Re: GWT 2.0 - com.google.gwt.user.client.rpc.IsSerializable is mandatory again?

2009-12-22 Thread rlag...@googlemail.com
Hi all!

I tested this behavior the last days, and remarked that this generated
rpc file contains entries (as row) with all types that could be use
during rpc call, all with "false" after it. It's not possible to set
it back to true, since the gwt.rpc file is generated at any running.

Is there a possibiliy to take control on the generation of this file.
For example with compiler variables.

Rodrigue Lagoue

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT 2.0 - com.google.gwt.user.client.rpc.IsSerializable is mandatory again?

2009-12-20 Thread rlag...@googlemail.com
Hi all

i just spent more than a whole day on this issue. Do somebody why this
problem occurs?

I tried almost all solutions discussed on this thread. But nothing
seems to work.
here is my error message:

Type 'cm.bao.sms.ui.web.gwt.client.wrapper.BooleanWrapper' was not
included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded. For
security purposes, this type will not be serialized.: instance = false

Since i used an instance of Boolean before, here the previous error
message was

Type 'cm.bao.sms.ui.web.gwt.client.wrapper.Boolean' was not included
in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded. For
security purposes, this type will not be serialized.: instance = false

The Service method signature look like this;

public , V extends Serializable, D extends
Serializable> T execute(
Action action);

The Boolean Wrapper class definition:

public final class BooleanWrapper implements Serializable,
IsSerializable {

/**
 *
 */
private static final long serialVersionUID = -5103012029222801034L;

private boolean value;

public BooleanWrapper() {
super();
}

public BooleanWrapper(boolean v) {
this.value = v;
}

public boolean getValue() {
return value;
}

public String toString() {
return ""+ value;
}

}

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Setting Background image on panel

2009-07-28 Thread rlag...@googlemail.com

Hi all,

i'm new to GWT. I would like to know if there is a way to set a
background image on a panel.

thanks


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---