Announcement

Collapse
No announcement yet.
X
  • 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:

    Code:
    2021-11-17T11:37:00,418 [claudio.bosticco@juventus.com ] ERROR DataSource Can't hash foreign key
    java.lang.ArrayIndexOutOfBoundsException: 1
        at com.isomorphic.datasource.DataSource.toJSON(DataSource.java:7432) [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:876) [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:730) [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.js.JSTranslater.toJS(JSTranslater.java:692) [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.taglib.LoadDSTag.printObjectAsJS(LoadDSTag.java:178) [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.taglib.LoadDSTag.outputDSAsJS(LoadDSTag.java:159) [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.taglib.LoadDSTag.outputJS(LoadDSTag.java:103) [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at com.isomorphic.taglib.LoadDSTag.doStartTag(LoadDSTag.java:59) [isomorphic-core-rpc-12.1-p20211112.jar:?]
        at org.apache.jsp.datasourcesJat_jsp._jspx_meth_isomorphic_005floadDS_005f60(datasourcesJat_jsp.java:2437) [Jat/:?]
        at org.apache.jsp.datasourcesJat_jsp._jspService(datasourcesJat_jsp.java:381) [Jat/:?]
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jasper.jar:8.5.23]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [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.

    #2
    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.

    Comment


      #3
      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.

      Comment

      Working...
      X