matyb / java-koans

A framework and lessons to learn java syntax and idioms in a logical sequence.
Apache License 2.0
733 stars 494 forks source link

NPE in Ubuntu 11.04 with Java 1.6.0_24 #10

Closed borillo closed 13 years ago

borillo commented 13 years ago

When i execute the run.sh command, i get the following error:

Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException at com.sandwich.koan.runner.AppLauncher.run(AppLauncher.java:32) at com.sandwich.koan.runner.AppLauncher.main(AppLauncher.java:15) Caused by: java.lang.RuntimeException: java.lang.NullPointerException at com.sandwich.koan.path.PathToEnlightenment.createPath(PathToEnlightenment.java:26) at com.sandwich.koan.path.PathToEnlightenment.getPathToEnlightment(PathToEnlightenment.java:32) at com.sandwich.koan.runner.RunKoans.getPathToEnlightement(RunKoans.java:150) at com.sandwich.koan.runner.RunKoans.runKoans(RunKoans.java:59) at com.sandwich.koan.runner.RunKoans.run(RunKoans.java:46) at com.sandwich.koan.constant.ArgumentType.run(ArgumentType.java:74) at com.sandwich.koan.cmdline.CommandLineArgument.run(CommandLineArgument.java:36) at com.sandwich.koan.runner.KoanSuiteRunner.run(KoanSuiteRunner.java:41) at com.sandwich.koan.runner.AppLauncher.run(AppLauncher.java:30) ... 1 more Caused by: java.lang.NullPointerException at com.sandwich.koan.path.xmltransformation.XmlToPathTransformer.getKoanMethods(XmlToPathTransformer.java:131) at com.sandwich.koan.path.xmltransformation.XmlToPathTransformer.createKoanMethods(XmlToPathTransformer.java:76) at com.sandwich.koan.path.xmltransformation.XmlToPathTransformer.createSuitesAndKoans(XmlToPathTransformer.java:68) at com.sandwich.koan.path.xmltransformation.XmlToPathTransformer.transform(XmlToPathTransformer.java:55) at com.sandwich.koan.path.PathToEnlightenment.createPath(PathToEnlightenment.java:24) ... 9 more

Any ideas?

Best regards, RIcardo

matyb commented 13 years ago

yuck! looks like i've broken something :)

i am looking into this now. should have a fix shortly.

thanks for bringing it to my attention!

borillo commented 13 years ago

Thank you for you very quick response :)

matyb commented 13 years ago

OK - think we are good to go. Tested on ubuntu 11.04 - and it looked good.

Please do let me know if this doesn't fix it.