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 2021/11/10 01:47:54 UTC

[GitHub] [shardingsphere] m350058411 opened a new issue #13526: NullPointerException when using shardingjdbc5.0.0 and flyway

m350058411 opened a new issue #13526:
URL: https://github.com/apache/shardingsphere/issues/13526


   my yaml is this:
   
   ···
   
   spring:
     shardingsphere:
       datasource:
         names: master
         master:
           type: com.alibaba.druid.pool.DruidDataSource
           driver-class-name: com.mysql.cj.jdbc.Driver
           url: jdbc:mysql://localhost:3306/membership
           username: membership
           password: membership
       mode:
         type: Memory
       schema:
         name: membership
   
   ···
   
   when i run my project,flyway  throw NullPointerException when init itemself and get cachedDatabaseMetaData in ShardingSphereDatabaseMetaData,i debug and found shardingjdbc  constructor org\apache\shardingsphere\driver\jdbc\core\datasource\metadata\ShardingSphereDatabaseMetaData  super class AdaptedDatabaseMetaData.cachedDatabaseMetaData   is null,what can i do to make  cachedDatabaseMetaData  has something?
   
   thanks


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] m350058411 commented on issue #13526: NullPointerException when using shardingjdbc5.0.0 and flyway

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


   > @m350058411 Maybe there is some config error? Can you offer me a demo?
   
   install parent before running membership
   


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] zjcnb edited a comment on issue #13526: NullPointerException when using shardingjdbc5.0.0 and flyway

Posted by GitBox <gi...@apache.org>.
zjcnb edited a comment on issue #13526:
URL: https://github.com/apache/shardingsphere/issues/13526#issuecomment-966880902


   @makexiao113 Hi bro,  you must be set rule for your config.  you can set rule and try it 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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] zjcnb commented on issue #13526: NullPointerException when using shardingjdbc5.0.0 and flyway

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


   @makexiao113 Hi bro, you must be set rule for your config.  you can set rule and try it 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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] tuichenchuxin commented on issue #13526: NullPointerException when using shardingjdbc5.0.0 and flyway

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


   @m350058411 Maybe there is some config error? Can you offer me a demo?


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] makexiao113 closed issue #13526: NullPointerException when using shardingjdbc5.0.0 and flyway

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


   


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] m350058411 commented on issue #13526: NullPointerException when using shardingjdbc5.0.0 and flyway

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


   > @m350058411 Maybe there is some config error? Can you offer me a demo?
   [spring.zip](https://github.com/apache/shardingsphere/files/7509552/spring.zip)
   sure,thank you,waitting for your good news
   
   


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] FuckDoctors commented on issue #13526: NullPointerException when using shardingjdbc5.0.0 and flyway

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


   same here, but with liquibase


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] makexiao113 commented on issue #13526: NullPointerException when using shardingjdbc5.0.0 and flyway

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


   > @m350058411 Maybe there is some config error? Can you offer me a demo?
   
   @tuichenchuxin   Have you received the demo?  I have uploaded demo in comments, thanks  


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] makexiao113 commented on issue #13526: NullPointerException when using shardingjdbc5.0.0 and flyway

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


   > @makexiao113 Hi bro, you must be set rule for your config. you can set rule and try it again.
   > 
   > By the way, i had download your demo
   
   thanks,I'll try


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] zjcnb edited a comment on issue #13526: NullPointerException when using shardingjdbc5.0.0 and flyway

Posted by GitBox <gi...@apache.org>.
zjcnb edited a comment on issue #13526:
URL: https://github.com/apache/shardingsphere/issues/13526#issuecomment-966880902


   @makexiao113 Hi bro,  you must be set rule for your config.  you can set rule and try it again.
   
   By the way, i had download your demo


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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