What is the exception logged on the server that caused the HTTP 500 error?
Generally your classes and their field references must implement
Serializable, have a default constructor (can be private) and should not
have final fields. Is that the case for RectangularWithDiagonalsPuzzle and
its super classes?
-- J.
Neil Aggarwal schrieb am Mittwoch, 18. Dezember 2024 um 00:44:06 UTC+1:
> Now, when I call my service, I am getting this error:
> 500 500 The call failed on the server; see server log for details
>
> Here is the code in my service:
> public Puzzle getPuzzle(String category) {
> try {
> Puzzle puzzle =
> (Puzzle)FileUtil.deSerialize(PathUtil.PUZZLES_DIR+"/DiagonalSlitherlink/Ch
> allenging/DiagonalSlitherlink-00001-3.ser");
> LogManager.getLogger(getClass()).warn("Loaded puzzle "+puzzle);
> return puzzle;
> } catch( Exception e ) {
> LogManager.getLogger(getClass()).error(e);
> return null;
> }
> }
>
> My server log has this:
> WARN: Loaded puzzle
> com._3dmathpuzzles.slitherlink.RectangularWithDiagonalsPuzzle@3f8ef4a0
>
> The only code after that line is the return.
>
> Does GWT not like that I am returning a subclass which is referenced by a
> superclass reference?
>
> Thank you,
> Neil
>
> --
> Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
> We offer 30 year loans on single family houses!
>
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/google-web-toolkit/31d6956b-2289-4ab4-96d2-8cb01e4093f7n%40googlegroups.com.