spring - SmartGWT s on JSTranslate


so have been trying smartgwt work automatic data source connection spring configured hibernate bean , plug advanced filter builder widget.

i can see in log works halfway in builds data source lookup stuff correctly , maps model class automatically should. makes correct hibernated sql query pull data database, when sends json result client, jstranslator stack overflows on translate method. it's it recursing indefinitely reason. smells smartgwt bug me, i'm not sure. reason think smells bug when delete data table doesn't error , returns column list client correctly. frustrating! ds.xml file looks this:

<datasource     id="huminthb"     servertype="hibernate"     autoderiveschema="true"     schemabean="com.fgm.csip.model.pub.humint"     beanclassname="com.fgm.csip.model.pub.humint"> <serverobject lookupstyle="spring" bean="humintdao"/>  <operationbindings>         <binding operationtype="fetch" servermethod="fetch">         <serverobject  lookupstyle="spring" bean="humintdao"/>         </binding>     </operationbindings> </datasource> 

ok, tested commenting out member field types 1 one , got working.

the culprit member field following:

@column(name = "geog") @type(type = "org.hibernatespatial.geometryusertype") public geometry getgeog() {     return geog; } 

where geog com.vividsolutions.jts.geom.geometry instance. when commenting out getter, else works expected. when getter left in, barfs infinite recursion in jstranslator.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -