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

Summary: NullPointerException at org.netbeans.modules.spring.webmvc.SpringConfigPanelVisual.getSpringLibrary
Product: javaee Reporter: ssazonov
Component: SpringAssignee: Martin Fousek <marfous>
Status: VERIFIED FIXED    
Severity: normal CC: vriha
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207880
Attachments: stacktrace

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)