This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Freeform projects are brittle in NB6 - provide better logging | ||
---|---|---|---|
Product: | java | Reporter: | bruff <bruff> |
Component: | Freeform | Assignee: | Tomas Zezula <tzezula> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
bruff
2007-10-08 21:33:07 UTC
Please could you elaborate more about the problem? Where is the property used? What's the purpose of such property definition? When was the WARNING message printed? I have created such a setup and I can open the project without a problem. Thanks for additional info. Please provide more info, isn't this issue related to issue #116879? Thanks. An included property file (which was referenced via the <properties><property-file> element) had one property with a value like this: propertyName=${property.value} This property wasn't used by (explicitly referenced in) the project.xml file. Yet it caused the project to fail to load. Removing this property from the property file allowed the NB project to load successfully. It would be useful to at least provide more details to the user when a project fails to open or encounters other errors. With NB 5.5 I would sometimes see a message at the bottom of the IDE (status bar?). I'm not seeing these in NB 6. It would be useful to get more details possibly in the log for these conditions. Something better could be a dialog with project errors encountered upon opening a Freeform project (something like normal project missing references). You might spend a little time catching exceptions and adding some context to the messages. For example I encountered an issue with a classpath (via a referenced property). In org.netbeans.modules.java.freeform.Classpaths the SourcePRI constructor was failing in computeMatcher(). If you captured the URL root that caused the exception, this information could be at least logged. This would provide a clue as to what was going wrong. I'm suggesting a similar evaluation for other Freeform project initialization issues. *** Issue 116879 has been marked as a duplicate of this issue. *** I tried to reproduce the problem doing exactly what you have written but the project opened without any error. I know that error logging in freeform project could be better and it's highly probable that freeform project will undergo major upgrade in next release (6.0 is past Beta2), so I will reclassify this issue as enhancement that will be addressed in next release. BTW I am fixing the NPE from the diag tool: contrib #891ff1c4a666 Changing the default component owner to tzezula. |