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 2022/05/19 08:38:35 UTC
[GitHub] [shardingsphere] q3056917665 opened a new issue, #17804: Error when using sharding query
q3056917665 opened a new issue, #17804:
URL: https://github.com/apache/shardingsphere/issues/17804
sharding version: 5.1.1
error:
```
Caused by: java.lang.IllegalStateException
at com.google.common.base.Preconditions.checkState(Preconditions.java:492)
at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.<init>(ShardingSpherePreparedStatement.java:177)
at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.<init>(ShardingSpherePreparedStatement.java:149)
```
The reason for the error: I have no problem using idea to start the query , but using jar start to error.This is the reason why I found the error, but I don't know why it happened


--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] TeslaCN closed issue #17804: Error when using sharding query
Posted by GitBox <gi...@apache.org>.
TeslaCN closed issue #17804: Error when using sharding query
URL: https://github.com/apache/shardingsphere/issues/17804
--
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] q3056917665 commented on issue #17804: Error when using sharding query
Posted by GitBox <gi...@apache.org>.
q3056917665 commented on issue #17804:
URL: https://github.com/apache/shardingsphere/issues/17804#issuecomment-1131419269
@TeslaCN
Pack command: mvn clean package -Dmaven.test.skip=true
jar start command: java -jar demo.jar 127.0.0.1:2181
--
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] q3056917665 commented on issue #17804: Error when using sharding query
Posted by GitBox <gi...@apache.org>.
q3056917665 commented on issue #17804:
URL: https://github.com/apache/shardingsphere/issues/17804#issuecomment-1131435472
> 如果你正在包装胖罐,你可能需要在maven-shade-plugin中处理SPI。请参阅 https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html#ServicesResourceTransformer
@TeslaCN
Solved, thank you
--
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] TeslaCN commented on issue #17804: Error when using sharding query
Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #17804:
URL: https://github.com/apache/shardingsphere/issues/17804#issuecomment-1131422273
If you are packing fat jar, you may need to handle SPI in maven-shade-plugin. Refer to https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html#ServicesResourceTransformer
--
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] TeslaCN commented on issue #17804: Error when using sharding query
Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #17804:
URL: https://github.com/apache/shardingsphere/issues/17804#issuecomment-1131437047
You are welcome.
--
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] TeslaCN commented on issue #17804: Error when using sharding query
Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #17804:
URL: https://github.com/apache/shardingsphere/issues/17804#issuecomment-1131411471
Please show us how you packed the Jar.
--
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