You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/06/23 09:32:51 UTC

[GitHub] [shardingsphere] moses-keqi opened a new issue #6175: EncryptDataSource cannot be cast to ShardingDataSource

moses-keqi opened a new issue #6175:
URL: https://github.com/apache/shardingsphere/issues/6175


   ## Question
   EncryptDataSource cannot be cast to ShardingDataSource
   **For English only**, other languages will not accept.
    aes Encrypt   EncryptDataSource cannot be cast to ShardingDataSource
   
   
   Before asking a question, make sure you have:
   
   spring:
     shardingsphere:
       props:
         proxy:
           transaction:
             type: xa
             enabled: true
         sql.show: true
       encrypt:
         encryptors:
           encryptor_aes:
             type: aes
             props:
               aes.key.value: Metlife202005030
         tables:
           zz_sms_send:
             columns:
               mobile:
                 cipherColumn: mobile
                 encryptor: encryptor_aes
           activity_record:
             columns:
               mobile:
                 cipherColumn: reply_mobile
                 encryptor: encryptor_aes
           blacklist:
             columns:
               mobile:
                 cipherColumn: mobile
                 encryptor: encryptor_aes
   
   - Googled your question.
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   
   nested exception is java.lang.ClassCastException: org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.EncryptDataSource cannot be cast to org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] tristaZero commented on issue #6175: EncryptDataSource cannot be cast to ShardingDataSource

Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #6175:
URL: https://github.com/apache/shardingsphere/issues/6175#issuecomment-652157311


   @moses-keqi Hi
   > nested exception is java.lang.ClassCastException: org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.EncryptDataSource cannot be cast to org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource
   
   These parts of the log can not give us some useful hints, so more detailed logs are needed.
   Besides, At first glance, it looks like you mix up the `ShardingRule` and `EncryptRule.` My suggestion is you'd better review your configuration referring to our document.
   
   Thanks,
   Trista


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] moses-keqi commented on issue #6175: EncryptDataSource cannot be cast to ShardingDataSource

Posted by GitBox <gi...@apache.org>.
moses-keqi commented on issue #6175:
URL: https://github.com/apache/shardingsphere/issues/6175#issuecomment-650758074


   > @moses-keqi you can upgrade to `4.1.1` version and try again.
   
   upgrade to 4.1.1 version sqlserver2012 use what version drives ,now drives not support


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] moses-keqi commented on issue #6175: EncryptDataSource cannot be cast to ShardingDataSource

Posted by GitBox <gi...@apache.org>.
moses-keqi commented on issue #6175:
URL: https://github.com/apache/shardingsphere/issues/6175#issuecomment-650698823


   > Could you try 4.1.1 ?
   
   version: 4.0.0-RC2
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] kimmking commented on issue #6175: EncryptDataSource cannot be cast to ShardingDataSource

Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #6175:
URL: https://github.com/apache/shardingsphere/issues/6175#issuecomment-648677376


   Could you try 4.1.1 ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] tristaZero commented on issue #6175: EncryptDataSource cannot be cast to ShardingDataSource

Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #6175:
URL: https://github.com/apache/shardingsphere/issues/6175#issuecomment-666883982


   Since there is no any feedback beyond 7 days, I have to close it.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] menghaoranss commented on issue #6175: EncryptDataSource cannot be cast to ShardingDataSource

Posted by GitBox <gi...@apache.org>.
menghaoranss commented on issue #6175:
URL: https://github.com/apache/shardingsphere/issues/6175#issuecomment-650731747


   @moses-keqi you can upgrade to `4.1.1` version and try again.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] tristaZero closed issue #6175: EncryptDataSource cannot be cast to ShardingDataSource

Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #6175:
URL: https://github.com/apache/shardingsphere/issues/6175


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org