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 2019/06/03 02:35:54 UTC

[GitHub] [incubator-shardingsphere-example] zhfeng commented on issue #143: example for sharding-transaction-xa-narayana.

zhfeng commented on issue #143: example for sharding-transaction-xa-narayana.
URL: https://github.com/apache/incubator-shardingsphere-example/issues/143#issuecomment-498093837
 
 
   Well, how to run YamlConfigurationTransactionExample ? I tried
   ```
   java -jar target/transaction-xa-raw-jdbc-example-4.0.0-RC2-SNAPSHOT.jar
   ```
   but it looks like "target/transaction-xa-raw-jdbc-example-4.0.0-RC2-SNAPSHOT.jar中没有主清单属性"
   
   ```
   mvn exec:java -Dexec.mainClass="org.apache.shardingsphere.example.transaction.xa.raw.jdbc.YamlConfigurationTransactionExample"
   
   java.lang.NullPointerException
       at org.apache.shardingsphere.example.transaction.xa.raw.jdbc.YamlConfigurationTransactionExample.getFile (YamlConfigurationTransactionExample.java:52)
       at org.apache.shardingsphere.example.transaction.xa.raw.jdbc.YamlConfigurationTransactionExample.main (YamlConfigurationTransactionExample.java:44)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:282)
       at java.lang.Thread.run (Thread.java:748)
   ```
   It looks like it can not find the configuration yaml file in the class resources. So can you show me the commands to run this example ?
   

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


With regards,
Apache Git Services