I can't solve this NetBeans Exception Error of Ant? - exception

Everything works without a hitch on NetBeans from starting up to writing a code and running it.
When It runs the code "successfully". It gives an exception error and won't close the Program execution from the execution tab below even though I click "cancel".
It will just keep showing my program running even though it is already ended.
Following is a few lines Log Data of exception error:
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.apache.tools.ant.module.bridge.impl.BridgeImpl$PostRun
java.lang.IllegalArgumentException: Key contains code point U+0000
at java.prefs/java.util.prefs.AbstractPreferences.get(AbstractPreferences.java:296)
at org.apache.tools.ant.module.api.IntrospectedInfo$3.load(IntrospectedInfo.java:681)
at org.apache.tools.ant.module.AntSettings.getCustomDefs(AntSettings.java:119)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl$PostRun.run(BridgeImpl.java:443)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
That's it. And if I keep running others programs. It will just keep stacking them in the execution tab below even though they are finished. I have to close my whole NetBeans Software. Then it will give a small pop-up box saying "Your programs are still running. Do you wish to close?" Then I will confirm it and it will close everything.
This is a annoying error!! I hope you understood the problem.
I would appreciate some help. Thanks!

Related

Problem with VScode output tab and debugging

I have been running all the files using the terminal till now, but I wanted to run the code and have its execution time displayed along with the output. I found out that this specification is already present in VScode if we just goto the run & debug command, the output tab will have the output and the execution time.
That's where I get the error same as posted here long time ago-
https://superuser.com/questions/1475378/visual-studio-code-doesnt-run-code
I have been trying to understand what mistake i did while setting my VScode and I think the problem is at the debugging phase itself. I used the just debug option and it gave me errors of this kind. So I want to know what I missed and to be able to run my code in the output tab also. (and also have the execution time without using the Measure-command)

Build Failed before adding code. How is this possible?

I don't understand why I am getting a "run build" and "build failed" error when I have not added or deleted any code.
I tried the "invalidate cache/restart" as well as "rebuild project" but the error still occurs.
The first is below:
Unable to resolve dependency for
':app#debugAndroidTest/compileClasspath': Could not resolve
androidx.test.espresso:espresso-core:3.2.0.9
The second error is
Unable to resolve dependency for
':app#debugAndroidTest/compileClasspath': Could not resolve
androidx.test:monitor:1.2.0
.
These errors are occurring in the initial build as I am attempting to do my 1st class assignment. My accountability partner and I attempted to figure it out but he has a Mac (Maybe that's why he couldn't reproduce the errors) I cleared the cache, restarted the build several times. Updated Gradle. Doubled checked settings. etc.
I am at a loss for a resolution.
The problem was traced back to my machine not having enough RAM.
Meh, I'm a coding newbie this is all apart of the learning process as well as changing career fields.

MS Access quits on errors

When encountering an error in the VBA code I am presented with two options: End or Debug. Now - perhaps after a company-wide upgrade to W10 - I experience that pressing "End" shuts down the program and pressing "debug" brings me to the code editor, but when I stop execution to correct the error, the program shuts down.
Is this new behavior a part of some security group policy?
Also, it seems as if Setwarnings is true, the code execution is simply suspended with no messagebox when encounting an error.
Thank you for your contributions. Especially that this is not a standard behavior. That led me to some findings:
1) No "Use Acces Special Keys" turns off error handling.
2) Using "frmInactiveShutDown v2.3 for MS Access from Peter's Software" (peterssoftware.com) causes the problem.
3) I had scripted me from using frmInactiveShutDown based on my network user name so I never noticed.
4) A major change in our network environment gave me another user name and I am/was thus subjected to frmInactiveShutDown.
I will refrain from trying to solve the problem in frmInactiveShutDown.

Eclipse console shows a red text run-time error but doesn't have enough error information. How do I find this error?

I'm working on a large ActionScript 3.0 project in Eclipse(Flash-builder 4.5) where I input a file via drag and drop into the program window. I don't know much about the codebase since I've come into it recently. Usually, while debugging and something gets thrown, it has a stack trace and more information on the error(in red text on the console). This time, however, the program continues to run and doesn't respond to my drag and drop with anything but one line of red text with some error information.
How can I pinpoint this problem so I can find out what's going wrong? The one line is just the input file I'm trying to run the program on. I've tried to step through earlier in the code when it's still working, but there must be other events being dispatched that I don't know about. I've also put traces in all the catch brackets to make sure I see if anything is thrown.
Thanks for your help.

How to prevent the browser from killing the Flash plugin while debugging

When I am debugging broken code, after a while the browser announces that the Flash plugin has crashed, and I can't continue debugging my code. Can I prevent the browser from killing Flash?
I am using Firefox.
Going to the debugger on a breakpoint makes the plugin "freeze". This is intentional, it's a breakpoint after all!
However, from the browsers perspective, the plugin seems to be stuck in some kind of infinite loop. The timeout value varies, my Firefox installation is set to 45 seconds.
To change the timeout value go enter about:config in the url field and look for the setting dom.ipc.plugins.timeoutSecs increase this or set it to -1 to disable the timeout altogether.
When the plugin crashes, it does in fact not so, because the browser is "killing" it, but rather the plugin terminates itself when a fatal error occurs. This is necessary to prevent the browser, or even your entire machine from crashing - there is no way to tell what is going to happen after an error like that. And besides: After the first uncaught error, your program will likely not be able to perform even correct code the way you intended, so you won't do any good by continuing a broken debugging session. So it is not a flaw, it is actually a good thing this happens!
However, you can do some things in order to work more effectively (and make your programs better). The most important I can think of right now are:
Learn to use good object-oriented programming techniques and get acquainted with design patterns, if you haven't already done so.
Take extra care to prevent error conditions from happening (e.g. test if an object is null before accessing its properties, give default values to variables when possible, etc.)
Use proper error handling to gracefully catch errors at runtime.
Use unit tests to thoroughly test your code for errors one piece at a time, before debugging in the browser. Getting to know FlexUnit is a good place to start.
EDIT
I should also have said this: A Debugger is a useful tool for stepping through your code to find the source of an error, such as a variable not being properly initialized, or unexpected return values. It is not helpful when trying to find out what's happening after a fatal error has occurred - which will also not help you to fix the code.