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 135538 - Retriever is triggered 8 times when you add an external import
Summary: Retriever is triggered 8 times when you add an external import
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Mapper (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@soa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-21 18:24 UTC by Kirill Sorokin
Modified: 2008-08-07 19:26 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Retriever Output (4.82 KB, text/plain)
2008-05-23 18:42 UTC, tonybeckham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2008-05-21 18:24:21 UTC
Steps:

* Create a SynchronousSample project
* Open the SynchronousSample BPEL process in the text editor
* Copy the schema import statement and edit it
  * Set the 'namespace' field to 'urn:uddi-org:api_v2'
  * Set the 'location' field to 'http://www.uddi.org/schema/uddi_v2.xsd'

As a result the retriever output window will show up and it will contain a log of 8 (!!!!) consequent invocations of
retriever for the same file (http://www.uddi.org/schema/uddi_v2.xsd). This was reproduced on a trunk.
Comment 1 Kirill Sorokin 2008-05-22 09:48:29 UTC
Of course I meant "on a trunk build".
Comment 2 Samaresh Panda 2008-05-23 15:13:19 UTC
No functionality is broken here and with above instruction, it just fetches just once for me.
Comment 3 Samaresh Panda 2008-05-23 15:14:46 UTC
BTW pl. attach (do not paste) the retriever output.
Comment 4 tonybeckham 2008-05-23 18:41:35 UTC
I am able to reproduce and see the exact same results (8 retrievals)

System Info:
Product Version: NetBeans IDE Dev (Build 200805221203)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.2 running on x86_64; MacRoman; en_US (nb)
Comment 5 tonybeckham 2008-05-23 18:42:27 UTC
Created attachment 61864 [details]
Retriever Output
Comment 6 Sonali Kochar 2008-08-07 19:26:24 UTC
I debugged this issue and I see that the RetrieverImpl is being created multiple times. Here is the call stack. The
BpelNode.updateName(BpelNode.java:810) is calling/creating retriever multiple times. Transferring it the BPEL team so
that they can debug further.

stack trace
============
org.netbeans.modules.xml.retriever.impl.RetrieverEngineImpl.<init>(RetrieverEngineImpl.java:106)
org.netbeans.modules.xml.retriever.impl.RetrieverImpl.retrieveResourceImpl(RetrieverImpl.java:138)
org.netbeans.modules.xml.retriever.impl.RetrieverImpl.retrieveResource(RetrieverImpl.java:132)
org.netbeans.modules.xml.retriever.impl.RetrieverImpl.retrieveResource(RetrieverImpl.java:88)
org.netbeans.modules.xml.retriever.impl.Util.retrieveAndCache(Util.java:113)
org.netbeans.modules.xml.retriever.catalog.impl.CatalogModelImpl.retrieveCacheAndLookup(CatalogModelImpl.java:396)
org.netbeans.modules.xml.retriever.catalog.impl.CatalogModelImpl.doGetModelSource(CatalogModelImpl.java:207)
org.netbeans.modules.xml.retriever.catalog.impl.CatalogModelImpl.getModelSource(CatalogModelImpl.java:163)
org.netbeans.modules.bpel.model.api.support.ImportHelper.getWsdlModel(ImportHelper.java:85)
org.netbeans.modules.bpel.model.api.support.ImportHelper.getWsdlModel(ImportHelper.java:118)
org.netbeans.modules.bpel.properties.ResolverUtility.getImportedModelSource(ResolverUtility.java:284)
org.netbeans.modules.bpel.properties.ResolverUtility.getImportedFileObject(ResolverUtility.java:294)
org.netbeans.modules.bpel.nodes.ImportNode.getRelativePath(ImportNode.java:209)
org.netbeans.modules.bpel.nodes.ImportNode.getNameImpl(ImportNode.java:92)
org.netbeans.modules.bpel.nodes.BpelNode.getName(BpelNode.java:758)
org.netbeans.modules.bpel.nodes.BpelNode.updateName(BpelNode.java:810)
org.netbeans.modules.bpel.nodes.BpelNode$Synchronizer.notifyPropertyUpdated(BpelNode.java:1101)
org.netbeans.modules.bpel.design.model.DelegatingChangeEventListener$3.run(DelegatingChangeEventListener.java:62)
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)