No - GWT doesn't propagate that exception/message to the client. --Sri
2009/9/12 Mohsen Saboorian <mohs...@gmail.com> > There is no way to obtain the exception thrown somewhere in the client > without overriding this class? > > > On Sat, Sep 12, 2009 at 2:58 PM, Sripathi Krishnan < > sripathi.krish...@gmail.com> wrote: > >> Just override the RemoteServiceServlet.doUnexpectedFailure() in your RPC >> Servlet and put appropriate loggers over there. >> >> >> --Sri >> >> >> 2009/9/12 Mohsen Saboorian <mohs...@gmail.com> >> >>> I know this. My problem is how to log the exception thrown. >>> >>> Mohsen >>> >>> >>> On Sat, Sep 12, 2009 at 2:39 PM, Sripathi Krishnan < >>> sripathi.krish...@gmail.com> wrote: >>> >>>> You cannot return hibernate classes in your RPC servlet - because GWT >>>> has no way of compiling that into javascript objects. >>>> >>>> In your case, org.hibernate.collection.PersistentBag cannot be a part of >>>> any object that is returned as part of RPC service call. >>>> >>>> --Sri >>>> >>>> >>>> 2009/9/12 Mohsen Saboorian <mohs...@gmail.com> >>>> >>>> Hi, >>>>> >>>>> When retrieving a Hibernate/JPA entity from server, I'm getting >>>>> SerializationException because of lazy issues. I know some ways to solve >>>>> this issue, but my current problem is that I cannot see the exception >>>>> anywhere when it happens. AsyncCallback.onFailure() is fired with: >>>>> StatusCodeException: 0: The call failed on the server; see server log >>>>> for details >>>>> and nothing is written to hosted mode console. I even could not see the >>>>> exception after adding throws SerializationException to my service >>>>> impl, async and interface (exception is not runtime, so I had to put a >>>>> try/catch at the client side) either in the client catch part or >>>>> AsyncCallback.onFailure(). >>>>> >>>>> I was able to track exception by putting breakpoint on >>>>> RemoteServiceServlet.doUnexpectedFailure(). >>>>> >>>>> Here is the last part of serialization exception I face: >>>>> Caused by: com.google.gwt.user.client.rpc.SerializationException: Type >>>>> 'org.hibernate.collection.PersistentBag' 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. >>>>> at >>>>> com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize(StandardSerializationPolicy.java:83) >>>>> at >>>>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591) >>>>> at >>>>> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) >>>>> at >>>>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146) >>>>> at >>>>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530) >>>>> at >>>>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:636) >>>>> at >>>>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:666) >>>>> at >>>>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:593) >>>>> at >>>>> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) >>>>> at >>>>> com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:43) >>>>> at >>>>> com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:36) >>>>> ... 34 more >>>>> >>>>> >>>>> Regards, >>>>> Mohsen >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---