No announcement yet.
  • Filter
  • Time
Clear All
new posts

    error while translating a dataSource

    SmartClient Version: v12.1p_2021-11-12/Enterprise Deployment (built 2021-11-12)

    Hello, I've just noticed that, when loading the jsp for one of my application, there's an error in the tomcat logs:

    2021-11-17T11:37:00,418 [ ] ERROR DataSource Can't hash foreign key
    java.lang.ArrayIndexOutOfBoundsException: 1
        at com.isomorphic.datasource.DataSource.toJSON( [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.js.JSTranslater.convert( [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.js.JSTranslater.convert( [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.js.JSTranslater.toJS( [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.taglib.LoadDSTag.printObjectAsJS( [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.taglib.LoadDSTag.outputDSAsJS( [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.taglib.LoadDSTag.outputJS( [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.taglib.LoadDSTag.doStartTag( [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at org.apache.jsp.datasourcesJat_jsp._jspx_meth_isomorphic_005floadDS_005f60( [Jat/:?]
        at org.apache.jsp.datasourcesJat_jsp._jspService( [Jat/:?]
        at org.apache.jasper.runtime.HttpJspBase.service( [jasper.jar:8.5.23]
        at javax.servlet.http.HttpServlet.service( [servlet-api.jar:?]
    but actually the application seems to work.
    Any hints on what to check? I don't see something strange in the foreignKeys for the dataSource which is being loaded.

    This is an internal error that occurs when the DataSource fails to correctly auto derive foreignKey data, but we could not reproduce the circumstances that would cause this. Knowing this do you have any thoughts what that might be?

    Did this error occur once or is it consistent after each server restart? Also, could you please share your DB setup, datasource definition and ideally the SQL for table creation? If the information is sensitive you may change/trim it to the minimum necessary to reproduce the issue.


      Hello, actually I found a mistake in the dataSource: there were two nativeFK attibutes on two fields which aren't even foreignKeys...and nativeFK isn't even documented.

      Sorry for the bogus report.