OK, let me set up an eclipse debugger and check what's happening. Placed on work schedule despite approved time-off request. We need a reproduceable test case as we have never seen this problem. QuoteMy build was the same 2010.1 code + one if statement Isnt yours different? More about the author
As I said, mine is a new installation, except for what Eclipse might be picking up from my old projects. I'm in favor of a solution where a class manages it's state as much as possible rather than relying on client code (even a subclass) to be careful about such things. Comment 5 chris.rimmer 2011-01-07 04:40:28 UTC Btw I would have written a test or tests to show that my patch fixes the problem, but there don't seem to be any tests You are right, it does find the properties file. http://stackoverflow.com/questions/18699255/nullpointerexception-when-running-maven-antrun-plugin-for-an-ant-build-xml-that
I hope this helps someone else in the future, because i spent 10 hours trying to track this issue down. AbstractCatalinaTask.execute /never/ opens the redirector (BaseRedirectorHelperTask.openRedirector), yet calls BaseRedirectorHelperTask.closeRedirector in the finally block, unconditionally. Computational chemistry: research in organic chemistry? Not the answer you're looking for?
Like Show 0 Likes(0) Actions 2. It fails with the following error: C:\PATH\android-sdks\tools\ant\build.xml:546: java.lang.NullPointerException That is all it says without the -debug flag. Back to top #8 P4Matt P4Matt Advanced Member Staff Moderators 1383 posts Posted 24 January 2014 - 04:49 PM rampmr, on 24 January 2014 - 03:12 PM, said: Thanks for your Unfortunately, I am still seeing the NPE.
I hadn't taken enough time to determine if that fix (adding the null check, right?) would be appropriate, since other streams in the redirector may have been open, and a call But I hope you will agree that the initialization issue with "player" still should be addressed. Unless I'm looking in the wrong place? Comment 6 Mark Thomas 2011-01-07 06:28:10 UTC Fixed in 7.0.x for 7.0.6 using Chris S's first proposal.
I want to validate the configuration first to catch any strange inputs other than the defaults set at construction to report back to the user immediately and then push the shared Update I was able to work around this problem when I had it. Re: java.lang.NullPointerException running
Just that - on my distribution, it has a different path. http://forums.perforce.com/index.php?/topic/3029-p4-ant-task-throws-nullpointerexception/ You can tell the maven-antrun-plugin to use a more recent version of ant as its dependency, instead of the one it uses by default. Error Executing Ant Tasks Null Nullpointerexception My Eclipse installation is very fresh and done from wtp-all-in-one-0.7-win32.zip which should contain a consistent set of plugins. What happens if you call ant with: ant -logger org.apache.tools.ant.DefaultLogger Back to top #6 rampmr rampmr Member Members 13 posts Posted 24 January 2014 - 03:12 PM Thanks for your time.
Powered by Blogger. my review here Legend Correct Answers - 10 points © 2016 Adobe Systems Incorporated. You have been a great help in my learning curve so far - thanks so much. Re: java.lang.NullPointerException running
In this particular case it managed to pick up the Ant home from an old project. Re: java.lang.NullPointerException running
Also usually when it can't find the properties file it throws a different error. Back to top #2 P4Matt P4Matt Advanced Member Staff Moderators 1383 posts Posted 22 January 2014 - 05:22 PM Not that I know of. Mail about any other subject will be silently ignored.
I'm posting my solution to this issue which I already had once. Description frederic.lombardo 2003-09-10 04:29:42 EDT To perform custom action in my build.xml, I created a custom task called MyTask, that I defined in a taskdef tag in a separate file (test.xml) Hope this helps. Please Note: this e-mail address is only for reporting problems with ASF Bugzilla.
Add the following line to the beginning of a target that will be executed in your build.xml file to find out:
Tenant claims they paid rent in cash and that it was stolen from a mailbox. From your original post It's only different in so much as I built it myself, and for some reason that I haven't sussed out when i build with Maven it puts Asking client for discount on tickets to amusement park Why I am always unable to buy low cost airline ticket when airline has 50% or more reduction Why are so many Making my building blocks modular Simulate keystrokes Computational chemistry: research in organic chemistry?
Format For Printing -XML -Clone This Bug -Top of page First Last Prev Next This bug is not in your last search results. You can not post a blank message. I've just switched the evaluation order for the player property so it now reads: if((flexHome == null || !flexHome.exists()) && (new String("air").equals(testRunConfiguration.getPlayer()) || shouldCompile()))Additionally, I've renamed generateDefaults to propagateSharedConfiguration() since it's Back to top #7 rampmr rampmr Member Members 13 posts Posted 24 January 2014 - 03:20 PM QuoteI've been flipping through the code (you can too, it's open source) and all
Browse other questions tagged maven nullpointerexception pom.xml maven-antrun-plugin or ask your own question. Maybe you can now reproduce the problem and add extra defensive code or at least a more helpfull message.