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.

Bug 242214 - NullPointerException at org.netbeans.modules.spring.webmvc.SpringConfigPanelVisual.getSpringLibrary
Summary: NullPointerException at org.netbeans.modules.spring.webmvc.SpringConfigPanelV...
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-22 09:43 UTC by ssazonov
Modified: 2014-04-24 02:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207880


Attachments
stacktrace (1.84 KB, text/plain)
2014-02-22 09:43 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2014-02-22 09:43:56 UTC
Build: NetBeans IDE Dev (Build 201402180001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b67, Java(TM) SE Runtime Environment, 1.8.0-b126
OS: Windows 7

User Comments:
ssazonov: I tried to add Spring MVC framework instead I got this error




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.spring.webmvc.SpringConfigPanelVisual.getSpringLibrary(SpringConfigPanelVisual.java:285)
   at org.netbeans.modules.spring.webmvc.SpringWebModuleExtender$CreateSpringConfig.run(SpringWebModuleExtender.java:305)
   at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
   at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:609)
   at org.netbeans.modules.spring.webmvc.SpringWebModuleExtender.extend(SpringWebModuleExtender.java:231)
   at org.netbeans.modules.maven.j2ee.ui.customizer.impl.CustomizerFrameworks$6$1.run(CustomizerFrameworks.java:497)
Comment 1 ssazonov 2014-02-22 09:43:58 UTC
Created attachment 145486 [details]
stacktrace
Comment 2 ssazonov 2014-02-22 09:47:18 UTC
I created maven web application, than right click the project > properties > frameworks > add... > spring web mvc

>> web.xml has been configurated, but framework has not been added
Comment 3 Martin Fousek 2014-02-24 08:23:56 UTC
(In reply to ssazonov from comment #2)
> I created maven web application, than right click the project > properties >
> frameworks > add... > spring web mvc
> 
> >> web.xml has been configurated, but framework has not been added

Thanks for your report. You are right, it's possible to finish the wizard before the library was found. Fixed in web-main #8e87b0c41711.
Comment 4 Quality Engineering 2014-02-25 02:45:06 UTC
Integrated into 'main-silver', will be available in build *201402250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8e87b0c41711
User: Martin Fousek <marfous@netbeans.org>
Log: #242214 - NullPointerException at org.netbeans.modules.spring.webmvc.SpringConfigPanelVisual.getSpringLibrary
Comment 5 Vladimir Riha 2014-04-18 06:22:52 UTC
Cannot reproduce steps from comment #2, verified

Product Version: NetBeans IDE Dev (Build 201404170001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 6 Martin Fousek 2014-04-18 06:48:25 UTC
Transplanted as releases #aa088befe745.
Spec.version, long description change in releases #1ffd7be880e3.
Comment 7 Quality Engineering 2014-04-24 02:13:42 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/aa088befe745
User: Martin Fousek <marfous@netbeans.org>
Log: #242214 - NullPointerException at org.netbeans.modules.spring.webmvc.SpringConfigPanelVisual.getSpringLibrary
(transplanted from 8e87b0c417113e69e1792965702767eb0e8287c5)