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 121572 - [customerdbclient] can't create sample
Summary: [customerdbclient] can't create sample
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-09 13:41 UTC by Lukas Jungmann
Modified: 2007-11-12 17:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2007-11-09 13:41:20 UTC
-create new ClientDBclient sample

=> SEVERE: can't get model
java.lang.IllegalStateException: can't get model
        at
org.netbeans.modules.websvc.rest.projects.WebRestSupportLookupProvider$1.projectOpened(WebRestSupportLookupProvider.java:86)
        at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:81)
        at
org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:198)
        at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:81)
...
Comment 1 Nam Nguyen 2007-11-09 18:07:44 UTC
Fixed by removing assertion that model is not null.  Also, defensive checks for no Java source root cases in wizards.

Checked in both trunk and release60 branch:

/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/support/SourceGroupSupport.java,v  <--  SourceGroupSupport.java
new revision: 1.13; previous revision: 1.12
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/projects/WebRestSupportLookupProvider.java,v  <-- 
WebRestSupportLookupProvider.java
new revision: 1.17; previous revision: 1.16
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/Bundle.properties,v  <--  Bundle.properties
new revision: 1.53; previous revision: 1.52
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/SingletonSetupPanelVisual.form,v  <-- 
SingletonSetupPanelVisual.form
new revision: 1.7; previous revision: 1.6
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/SingletonSetupPanelVisual.java,v  <-- 
SingletonSetupPanelVisual.java
new revision: 1.11; previous revision: 1.10
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/EntityResourcesIterator.java,v  <-- 
EntityResourcesIterator.java
new revision: 1.4; previous revision: 1.3
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/ContainerItemSetupPanelVisual.java,v  <-- 
ContainerItemSetupPanelVisual.java
new revision: 1.11; previous revision: 1.10
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/EntityResourcesSetupPanelVisual.java,v  <-- 
EntityResourcesSetupPanelVisual.java
new revision: 1.5; previous revision: 1.4


/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/support/SourceGroupSupport.java,v  <--  SourceGroupSupport.java
new revision: 1.12.2.1; previous revision: 1.12
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/projects/WebRestSupportLookupProvider.java,v  <-- 
WebRestSupportLookupProvider.java
new revision: 1.16.2.1; previous revision: 1.16
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/Bundle.properties,v  <--  Bundle.properties
new revision: 1.52.2.1; previous revision: 1.52
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/SingletonSetupPanelVisual.form,v  <-- 
SingletonSetupPanelVisual.form
new revision: 1.6.2.1; previous revision: 1.6
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/SingletonSetupPanelVisual.java,v  <-- 
SingletonSetupPanelVisual.java
new revision: 1.10.2.1; previous revision: 1.10
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/EntityResourcesIterator.java,v  <-- 
EntityResourcesIterator.java
new revision: 1.3.2.1; previous revision: 1.3
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/ContainerItemSetupPanelVisual.java,v  <-- 
ContainerItemSetupPanelVisual.java
new revision: 1.10.2.1; previous revision: 1.10
/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/EntityResourcesSetupPanelVisual.java,v  <-- 
EntityResourcesSetupPanelVisual.java
new revision: 1.4.2.1; previous revision: 1.4
Comment 2 Lukas Jungmann 2007-11-12 17:34:49 UTC
v.