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 41056

Summary: When editing platform, exception is thrown on finish with auto-filled values.
Product: java Reporter: Petr Nejedly <pnejedly>
Component: PlatformAssignee: Tomas Zezula <tzezula>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    

Description Petr Nejedly 2004-03-17 09:02:58 UTC
java.lang.IllegalArgumentException: SourceFolder
must be a folder.
org.netbeans.modules.java.j2seplatform.platformdefinition.J2SEPlatformImpl.setSourceFolders(J2SEPlatformImpl.java:193)
org.netbeans.modules.java.j2seplatform.wizard.SrcDocLocation$Panel.storeSettings(SrcDocLocation.java:254)
org.openide.WizardDescriptor.resetWizard(WizardDescriptor.java:832)
org.openide.WizardDescriptor.setValue(WizardDescriptor.java:822)
org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:967)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
[...]

I was editinf the default platform in project
customizer, pointed it to JDK1.5 instalation, it
autodetected everything and prefilled out the path
to sources as ..../src.zip.
But the wizard refused to finish with above
mentioned exception.
It went OK if I cleared the sources field.
Comment 1 Tomas Zezula 2004-08-04 14:56:05 UTC
Fixed.
Comment 2 Petr Nejedly 2004-08-05 08:48:50 UTC
Works OK now.