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 113006 - IAE after checking use development defaults
Summary: IAE after checking use development defaults
Status: VERIFIED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Model (show other bugs)
Version: 6.x
Hardware: All Linux
: P1 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-16 15:03 UTC by Lukas Jungmann
Modified: 2007-10-25 21:40 UTC (History)
2 users (show)

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-08-16 15:03:32 UTC
-create new STS service
-open edit WS attrs dialog
-check secure service -> use development defaults

=> java.lang.IllegalArgumentException: Model source is read-only.
	at org.netbeans.modules.xml.xam.AbstractModel.startTransaction(AbstractModel.java:329)
	at org.netbeans.modules.xml.xam.AbstractModel.startTransaction(AbstractModel.java:319)
	at
org.netbeans.modules.websvc.wsitconf.wsdlmodelext.ProprietarySecurityPolicyModelHelper.createStore(ProprietarySecurityPolicyModelHelper.java:1274)
	at
org.netbeans.modules.websvc.wsitconf.wsdlmodelext.ProprietarySecurityPolicyModelHelper.setKeyStoreAlias(ProprietarySecurityPolicyModelHelper.java:601)
	at
org.netbeans.modules.websvc.wsitconf.ui.service.profiles.UsernameAuthenticationProfile.setServiceDefaults(UsernameAuthenticationProfile.java:153)
	at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.ProfilesModelHelper.setServiceDefaults(ProfilesModelHelper.java:294)
	at org.netbeans.modules.websvc.wsitconf.ui.service.ServicePanel.setValue(ServicePanel.java:302)
	at org.netbeans.modules.xml.multiview.ui.SectionInnerPanel$CheckBoxActionListener.doSetValue(SectionInnerPanel.java:599)
	at org.netbeans.modules.xml.multiview.ui.SectionInnerPanel$FlushActionListener.actionPerformed(SectionInnerPanel.java:557)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
...
Comment 1 Lukas Jungmann 2007-08-16 15:08:01 UTC
one can't set/change anything WSIT-related in the edit ws attributes due to this => P1
Comment 2 Martin Grebac 2007-08-17 09:18:15 UTC
This one is a puzzle for me. If IDE is restarted, everything works fine. I double checked, and wsit module is creating
the modelsource with editing enabled always (with exception of one case on client side).
I added breakpoint to all creations of ModelSource, and what I think is going on is that
WebServiceHintsProvider.initServiceMetadata provider is loading the model in non-editable mode (which makes sense) or
perhaps it's loaded as non-editable in more places as well. Then when wsit module asks for the model, this immutable
instance is returned instead of mutable one.

I'm reassigning to wsdl model for further evaluation, as it seems to be a bug in the model itself. Please reassign back
if you think the evaluation is not correct.
Comment 3 Shivanand Kini 2007-08-20 21:28:21 UTC
Nam, can you guide me on this?
Comment 4 Nam Nguyen 2007-08-20 21:43:39 UTC
As Martin observed, can you try the test case without going the source view to avoid the hint functionality loading the
WSDL model in read-only mode.  If Martin observation is confirmed, please reassign the issue to Samaresh for further
investigation.
Comment 5 Shivanand Kini 2007-08-20 23:17:20 UTC
assigning to sam for further investigation.
Comment 6 Samaresh Panda 2007-08-23 00:14:54 UTC
I acknowledge that there is a usage problem w.r.t. the creation of ModelSource APIs. I encourage you to use
editable=true for all use-cases. I've filed a RFE to deprecate these APIs and will work on it post 6.0. Please see
http://www.netbeans.org/issues/show_bug.cgi?id=113559.

In the mean while, I'll have to mark this as WONTFIX.
Comment 7 Lukas Jungmann 2007-10-25 21:40:30 UTC
v.