Skip to content

Fix impropper spacing in user mapper#73

Open
zeridon wants to merge 1 commit intoh-mdm:masterfrom
zeridon:fix-impropper-spacing
Open

Fix impropper spacing in user mapper#73
zeridon wants to merge 1 commit intoh-mdm:masterfrom
zeridon:fix-impropper-spacing

Conversation

@zeridon
Copy link

@zeridon zeridon commented Feb 17, 2023

When Viewing the Device list it is empty (with just indicator for connectivity) and in the settings >Device table section nothing can be selected/saved

Below is a sample of the error.

The error stems from the missing space on line 38

[2023-02-15 17:25:25] [info] 2023-02-15 17:25:25 [ERROR] com.hmdm.rest.resource.SettingsResource : Unexpected error when getting the user role settings for current user
[2023-02-15 17:25:25] [info] org.apache.ibatis.exceptions.PersistenceException:
[2023-02-15 17:25:25] [info] ### Error querying database.  Cause: org.postgresql.util.PSQLException: ERROR: trailing junk after parameter at or near "$2L"
[2023-02-15 17:25:25] [info]   Position: 67
[2023-02-15 17:25:25] [info] ### The error may exist in com/hmdm/persistence/mapper/UserRoleSettingsMapper.java (best guess)
[2023-02-15 17:25:25] [info] ### The error may involve com.hmdm.persistence.mapper.UserRoleSettingsMapper.getUserRoleSettings-Inline
[2023-02-15 17:25:25] [info] ### The error occurred while setting parameters
[2023-02-15 17:25:25] [info] ### SQL: SELECT * FROM userRoleSettings WHERE customerId = ? AND roleId = ?LIMIT 1
[2023-02-15 17:25:25] [info] ### Cause: org.postgresql.util.PSQLException: ERROR: trailing junk after parameter at or near "$2L"
[2023-02-15 17:25:25] [info]   Position: 67
[2023-02-15 17:25:25] [info] #011at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
[2023-02-15 17:25:25] [info] #011at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)
[2023-02-15 17:25:25] [info] #011at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
[2023-02-15 17:25:25] [info] #011at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76)
[2023-02-15 17:25:25] [info] #011at jdk.internal.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)

fix

org.postgresql.util.PSQLException: ERROR: trailing junk after parameter at or near "$2L"

```
[2023-02-15 17:25:25] [info] 2023-02-15 17:25:25 [ERROR] com.hmdm.rest.resource.SettingsResource : Unexpected error when getting the user role settings for current user
[2023-02-15 17:25:25] [info] org.apache.ibatis.exceptions.PersistenceException:
[2023-02-15 17:25:25] [info] ### Error querying database.  Cause: org.postgresql.util.PSQLException: ERROR: trailing junk after parameter at or near "$2L"
[2023-02-15 17:25:25] [info]   Position: 67
[2023-02-15 17:25:25] [info] ### The error may exist in com/hmdm/persistence/mapper/UserRoleSettingsMapper.java (best guess)
[2023-02-15 17:25:25] [info] ### The error may involve com.hmdm.persistence.mapper.UserRoleSettingsMapper.getUserRoleSettings-Inline
[2023-02-15 17:25:25] [info] ### The error occurred while setting parameters
[2023-02-15 17:25:25] [info] ### SQL: SELECT * FROM userRoleSettings WHERE customerId = ? AND roleId = ?LIMIT 1
[2023-02-15 17:25:25] [info] ### Cause: org.postgresql.util.PSQLException: ERROR: trailing junk after parameter at or near "$2L"
[2023-02-15 17:25:25] [info]   Position: 67
[2023-02-15 17:25:25] [info] #011at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
[2023-02-15 17:25:25] [info] #011at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149)
[2023-02-15 17:25:25] [info] #011at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
[2023-02-15 17:25:25] [info] #011at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76)
[2023-02-15 17:25:25] [info] #011at jdk.internal.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants