'Java Form Loaded With Errors - Netbeans [closed]

I'm pretty new to netbeans and I've ran into this problem: When i try to open my netbeans project this shows

It also gives me A LOT of exceptions

I have no clue on how to solve this

Tysm



Solution 1:[1]

A shot in the dark since I had a similar problem once: I tried to pre-inialize a combobox with some values. Those values were supposed to come out of a (in-memory) database. The database was not available when using the NetBeans designer and therefore the designer could not construct the form and crashed.

So, check if your constructor contains code that has any dependency that works only in a certain environment.

Do NOT use "Allow Editing" if you are not knowing what you are doing / don't have a copy of your source. NetBeans will mess up your form.

Solution 2:[2]

In the end of your method you have

Task.WaitAll(tasks.ToArray());

This will block until all tasks are done. You should instead use WhenAll

await Task.WhenAll(tasks.ToArray());

You are also using result.Result in several places, and this also blocks. This should be replaced by awaiting the task, i.e. await result

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Joachim Rohde
Solution 2