Note that there are some explanatory texts on larger screens.

plurals
  1. PO"Cannot find symbol" errors in NetBeans
    primarykey
    data
    text
    <p>I work on a school project using NetBeans 7, Maven and the NetBeans Platform. The project has been created using the "Maven/POM Project" project template. It is a multi-tiered "enterprise" application that uses several modules (model, integration, bussiness, presentation, the rich client application itself and couple of others).</p> <p>There are dependencies between these modules (but no circular dependencies). The problem is, either Maven, or NetBeans, keep getting confused. There are several types of problems which appear semmingly without any trigger. I have to keep recompiling the modules, closing and re-opening NetBeans, clearing NetBeans cache, removing and readding the dependencies and so on to <em>temporarily</em> remove the issues. I keep having these problems with two different installations of NetBeans on Windows XP SP3 and Mac OS X.</p> <p>The symptoms are:</p> <p>1) Sometimes NetBeans decides that none of the classes imported from another module exist (and I get the <code>cannot find symbol</code> errors. This happens repeatedly, sometimes to modules I have succesfully compiled seconds ago. Most of the time, recompiling the dependency doesn't help. The necessary dependencies are declared in the POM, the jar files exist, and if I expand them in the project view, I can see the classes in question.</p> <p>2) Sometimes NetBeans decides that a method of an imported class doesn't actually throw an exception it declares to throw. Since the calls to such methods are usually surrounded by <code>try</code> blocks, NetBeans display error with the message <code>a.package.SomeException is never thrown in body of corresponding try statement</code>. If I don't remove the try block, the module doesn't compile because of NetBeans. If do remove the block, the module doesn't compile because of Maven (Maven, for some reason, <em>can</em> see the exception, and complains that it's not caught). This also happens repeatedly, I am not quite sure how to reliably fix this one.</p> <p>At this point, the problems with Maven and NetBeans are so bad I cannot actually work on the project. If I didn't have to use NetBeans and Maven, I would have been back to vim and Makefiles by now. Does anyone at least recognize these problems?</p> <p><strong>EDIT:</strong> I've submitted the project, got 30 out of 20 points for it for some extra work I've done on it, and until it leaves the alpha stage, I hope to never have to work with NetBeans again.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload