Nb 8.2RC "The type of DialogDescriptor .... is erroneous" - and a solution

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Nb 8.2RC "The type of DialogDescriptor .... is erroneous" - and a solution

bruehlicke
After updating to 8.2RC and porting an older module I got the error in NetBeans that "The type of DialogDescriptor ... is erroneous"

I see numerous similar issues with older versions (https://netbeans.org/bugzilla/show_bug.cgi?id=252729) or (https://netbeans.org/bugzilla/show_bug.cgi?id=244749). None of the suggested solution was the core of the issue.

I have attached a small freshly made Netbeans Platform app with one module called "module" which as a "MyTopComponent" which opens a Dialog (line 94).

Solution/Fix:  Adding "Utilities API" to the dependencies.  

Question:  I see this is done automatically for a new module created but this is a port and how would a humble programmer ever find that he/she needs to add Utilities API ? I was just lucky that another moduel using similar code had this added and did not have the error, hence I found out.

This is not a show stopper at all, but if anyone can explain why and what this NetBeans error means that would be great.

Bests and thanx for the 8.2RC ! Looking good so far.




Attachments:
http://forums.netbeans.org//files/erroneous_141.zip

Reply | Threaded
Open this post in threaded view
|

Re: Nb 8.2RC "The type of DialogDescriptor .... is erroneous" - and a solution

Dmitry Avtonomov

I guess this was a thing since 8.1?


On Sep 20, 2016 22:33, "bruehlicke" <[hidden email]> wrote:
After updating to 8.2RC and porting an older module I got the error in NetBeans that "The type of DialogDescriptor ... is erroneous"

I see numerous similar issues with older versions (https://netbeans.org/bugzilla/show_bug.cgi?id=252729) or (https://netbeans.org/bugzilla/show_bug.cgi?id=244749). None of the suggested solution was the core of the issue.

I have attached a small freshly made Netbeans Platform app with one module called "module" which as a "MyTopComponent" which opens a Dialog (line 94).

Solution/Fix:  Adding "Utilities API" to the dependencies.

Question:  I see this is done automatically for a new module created but this is a port and how would a humble programmer ever find that he/she needs to add Utilities API ? I was just lucky that another moduel using similar code had this added and did not have the error, hence I found out.

This is not a show stopper at all, but if anyone can explain why and what this NetBeans error means that would be great.

Bests and thanx for the 8.2RC ! Looking good so far.




Attachments:
http://forums.netbeans.org//files/erroneous_141.zip