Note that there are some explanatory texts on larger screens.

plurals
  1. PODeserialization of ArrayList GWT
    primarykey
    data
    text
    <p>In my application I'm getting some data from a file located in the server. The data is stored in a text file (.obj), so I'm using an rpc to read the file and get the data. The file is read using a third party library <a href="http://www.pixelnerve.com/processing/libraries/objimport/" rel="nofollow">http://www.pixelnerve.com/processing/libraries/objimport/</a> I'm sending the data to the client using ArrayLists, basicly I'm sending this: ArrayList[ArrayList[Vertex3dDTO]] where Vertex3dDTO is an serializable object with contains float parameters. ArrayList[Vertex3dDTO] is contained in another serializable class Face3dDTO, and ArrayList[Face3dDTO] is in the serializable class Group3dDTO.</p> <pre class="lang-java prettyprint-override"><code>package com.nyquicksale.tailorapp.shared; import java.io.Serializable; public class Vertex3dDTO implements Serializable { float x,y,z; public Vertex3dDTO(){ } public Vertex3dDTO(float x, float y, float z){ this.x = x; this.y = y; this.z = z; } } public class Face3dDTO implements Serializable { ArrayList&lt;Vertex3dDTO&gt; vL = new ArrayList&lt;Vertex3dDTO&gt;(); Vertex3dDTO normal = new Vertex3dDTO(); Vertex3dDTO color = new Vertex3dDTO(); public Face3dDTO(){ } public Face3dDTO(ArrayList&lt;Vertex3dDTO&gt; v) { for(Vertex3dDTO v3dDTO : v){ vL.add(v3dDTO); } updateNormal(); } public class Group3dDTO implements Serializable { ArrayList&lt;Face3dDTO&gt; fL = new ArrayList&lt;Face3dDTO&gt;(); String name; public Group3dDTO(){ } public Group3dDTO(ArrayList&lt;Face3dDTO&gt; f) { for(Face3dDTO f3dDTO : f){ fL.add(f3dDTO); } } } </code></pre> <p>Now, everything is working well in development mode, but when I tested the application in hosted mode, everything I receive as response is: //OK[0,1, ["java.util.ArrayList/4159755760"],0,7]</p> <p>So, I've been checked some other questions and seems the problem is about deserialization, but I've not found anything concrete. </p> <p>The question is what do I have to do to get the app working well in hosted mode?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload