Fail to convert to internal representation

前端 未结 2 1568
被撕碎了的回忆
被撕碎了的回忆 2021-01-02 07:44

I am bringing up Broadleaf Commerce application using Oracle Database and Tomcat 6 server. I followed the steps from here I have made chang

相关标签:
2条回答
  • 2021-01-02 08:21

    This was an older version of Broadleaf that had not been fully tested with Oracle. There were a number of queries that were modified in later releases for compatibility with Oracle, and as I recall, this was one of them. I believe the problem is with the boolean parameter in the query:

    select user_name,password,'TRUE' from blc_customer where user_name=?
    

    This query has been changed to the following in 1.6 and beyond:

    select user_name,password,true from blc_customer where user_name=?
    

    This change in the Broadleaf customer security configuration should address this issue.

    0 讨论(0)
  • 2021-01-02 08:33

    This is most likely because your code (either directly or via Hibernate) is trying to read a value from a returned result set and it's using the wrong type (such as getString(...) on a numeric value). Make sure you've correctlly configured your ORM framework (or whatever Broadleaf is) for your oracle db. Especially the dialect, make sure it's Oracle and not some other value.

    0 讨论(0)
提交回复
热议问题