Are you using Microsoft Visual Source Safe? If so, checking files in and out
of source safe tends to lose bindings of
computed fields, and also mess up any related
links (sids).
Again, I have not found a pattern in this behaviour.
Martin
Shamdasani Nimmi-ANS004 <[EMAIL PROTECTED]> wrote:
>This message is in MIME format. Since your mail reader does not understand
>this format, some or all of this message may not be legible.
>
>------_=_NextPart_000_01BF26DA.8CF528EA
>
>> Hi All,
>>
>> I found a strange problem with combobox whose display field is a computed
>> field in a dataobject. I want to share this with others incase someone
>> faces the same problem and searches the Forum for some clue.
>>
>> Randomly my otherwise well-behaved project has been throwing strange
>> error. Everytime this happened I thought I had done something wrong and
>> would copy back the error giving pages from the backup. Finally I had to
>> research the cause and this is what I have found. I am attaching the error
>> messages too.
>> --------------------------------------------------------------------------
>> -----------------------------------------------------------------------
>>
>> The .sdo file for a dataobject does not contain a SID for a computedField
>> but if you look into the .sid file of that dataobject you will see that a
>> SID has been assigned to the computedField.
>>
>> Now when you use that computedField for display in your combobox, you will
>> see that the combobox entry in the .spg file of the page has <dataobject
>> SID>.<computedField.SID> for 'AutoFillFormatFields'.
>>
>> So far so good.
>>
>> Well what happens is that randomly( I say randomly 'cos I haven't seen a
>> pattern in this behavior) this entry in .spg file changes to <dataobject
>> SID>.<someNonExistent SID> for 'AutoFillFormatFields' of that combobox.
>> Seems like the computedField SID gets changed to something else in .spg
>> file but the .sdo file of the dataobject still has the old SID for that
>> computedField. And when you try to run the project that 'someNonExistent
>> SID' throws up an error.
>>
>> Everytime I was bringing back the pages from backup I was restoring the
>> culprit SID back to a good one and the project would be fine till the next
>> 'RANDOM ACT OF TORTURE'.
>>
>> Hopefully I have saved someone from those scary moments when you can't
>> fathom as to what you did wrong to make a project misbehave.
>>
>>
>> -Nimmi
>>
>> <<error.txt>>
>
>------_=_NextPart_000_01BF26DA.8CF528EA
>Content-Transfer-Encoding: quoted-printable
>Content-Disposition: attachment;
> filename="error.txt"
>
>Software Messages :
>
>spider.visual.CSpComboBox.readObject[CSpSelectableGroup]: Unexpected =
>Exception (java.lang.ArrayIndexOutOfBoundsException) caught in =
>'MCSC2_NETWORK_ELEMENTS_LOAD_PERFORMER_EMP_ID'(a =
>spider.visual.CSpComboBox) [Parent: 'pgAddNetworkElement'(a =
>MCSC.pgAddNetworkElement)]. Top of stack: =
>|java.lang.ArrayIndexOutOfBoundsException at =
>spider.util.CSpFormattedString.construct(Compiled Code) at =
>spider.util.CSpFormattedString.<init>(Compiled Code) at =
>spider.visual.CSpSelectableGroup.readAutoFillControl(Compiled Code) at =
>spider.visual.CSpSelectableGroup.readObject(Compiled Code) at =
>spider.intrp.CSpIntrpModel.createNodeObject(Compiled Code) at =
>spider.intrp.CSpIntrpModel.createNamedListObject(Compiled Code) at =
>spider.CSpFileBased.readNamedList(Compiled Code) at =
>spider.visual.CSpDataDrivenVisual.readObject(Compiled Code) at =
>spider.visual.CSpCommonPage.readObject(Compiled Code) at =
>spider.visual.CSpPage.readObject(Compiled Code) at =
>spider.intrp.CSpIntrpModel.createNodeObject(Compiled Code) at =
>spider.intrp.CSpIntrpModel.open(Compiled Code) at =
>spider.CSpProject.readPostV40ChildObjects(Compiled Code) at =
>spider.CSpProject.readObject(CSpProject.java) at =
>spider.intrp.CSpIntrpModel.createNodeObject(Compiled Code) at =
>spider.intrp.CSpIntrpModel.open(Compiled Code) at =
>spider.intrp.CSpIntrpModel.open(CSpIntrpModel.java) at =
>spider.CSpider.instantiateFirstProjectInstance(CSpider.java) at =
>spider.CSpider.createAndSetNewProjectInstance(CSpider.java) at =
>spider.CSpider.allocateProjectUserContext(Compiled Code) at =
>spider.CSpider.allocateProjectUserContext(Compiled Code) at =
>spider.CSpider.getProjectUserContext(Compiled Code) at =
>spider.CSpider.getProject(Compiled Code) at =
>spider.control.CSpWebEventProcessor.extractProjectAndPage(Compiled =
>Code) at spider.control.CSpWebEventProcessor.callThisMethod(Compiled =
>Code) at spider.control.CSpWebEventProcessor.run(Compiled Code) at =
>netdyn.services.cp.worker.CNdCPWorkerImpl.webEventMessage(Compiled =
>Code) at =
>netdyn.services.cp.stubs._tie_INdCPWorker.webEventMessage(Compiled =
>Code) at =
>netdyn.services.cp.stubs._INdCPWorkerImplBase._execute(Compiled Code) =
>at netdyn.services.cp.stubs._INdCPWorkerImplBase._execute(Compiled =
>Code) at =
>com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(Compiled Code) =
>at com.visigenic.vbroker.orb.GiopProtocolAdapter.doRequest(Compiled =
>Code) at =
>com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(Compiled =
>Code) at com.visigenic.vbroker.orb.ThreadPoolDispatcher.run(Compiled =
>Code) at com.visigenic.vbroker.orb.WorkerThread.run(Compiled Code) |
>CSpIntrpModel.createNodeObject : Unable to initialize object at line =
>313
>Exception (java.lang.ArrayIndexOutOfBoundsException) caught in =
>'ComboBox1'(a spider.visual.CSpComboBox) [Parent: =
>'pgModifyNetworkElement'(a MCSC.pgModifyNetworkElement)]. Top of stack: =
>|java.lang.ArrayIndexOutOfBoundsException at =
>spider.util.CSpFormattedString.construct(Compiled Code) at =
>spider.util.CSpFormattedString.<init>(Compiled Code) at =
>spider.visual.CSpSelectableGroup.readAutoFillControl(Compiled Code) at =
>spider.visual.CSpSelectableGroup.readObject(Compiled Code) at =
>spider.intrp.CSpIntrpModel.createNodeObject(Compiled Code) at =
>spider.intrp.CSpIntrpModel.createNamedListObject(Compiled Code) at =
>spider.CSpFileBased.readNamedList(Compiled Code) at =
>spider.visual.CSpDataDrivenVisual.readObject(Compiled Code) at =
>spider.visual.CSpCommonPage.readObject(Compiled Code) at =
>spider.visual.CSpPage.readObject(Compiled Code) at =
>spider.intrp.CSpIntrpModel.createNodeObject(Compiled Code) at =
>spider.intrp.CSpIntrpModel.open(Compiled Code) at =
>spider.CSpProject.readPostV40ChildObjects(Compiled Code) at =
>spider.CSpProject.readObject(CSpProject.java) at =
>spider.intrp.CSpIntrpModel.createNodeObject(Compiled Code) at =
>spider.intrp.CSpIntrpModel.open(Compiled Code) at =
>spider.intrp.CSpIntrpModel.open(CSpIntrpModel.java) at =
>spider.CSpider.instantiateFirstProjectInstance(CSpider.java) at =
>spider.CSpider.createAndSetNewProjectInstance(CSpider.java) at =
>spider.CSpider.allocateProjectUserContext(Compiled Code) at spider.CSpid=
>er.allocateProjectUserContext(Compiled Code) at =
>spider.CSpider.getProjectUserContext(Compiled Code) at =
>spider.CSpider.getProject(Compiled Code) at =
>spider.control.CSpWebEventProcessor.extractProjectAndPage(Compiled =
>Code) at spider.control.CSpWebEventProcessor.callThisMethod(Compiled =
>Code) at spider.control.CSpWebEventProcessor.run(Compiled Code) at =
>netdyn.services.cp.worker.CNdCPWorkerImpl.webEventMessage(Compiled =
>Code) at =
>netdyn.services.cp.stubs._tie_INdCPWorker.webEventMessage(Compiled =
>Code) at =
>netdyn.services.cp.stubs._INdCPWorkerImplBase._execute(Compiled Code) =
>at netdyn.services.cp.stubs._INdCPWorkerImplBase._execute(Compiled =
>Code) at =
>com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(Compiled Code) =
>at com.visigenic.vbroker.orb.GiopProtocolAdapter.doRequest(Compiled =
>Code) at =
>com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(Compiled =
>Code) at com.visigenic.vbroker.orb.ThreadPoolDispatcher.run(Compiled =
>Code) at com.visigenic.vbroker.orb.WorkerThread.run(Compiled Code) |
>344
>MCSC.pgAddNetworkElement.mapEvent: Can't map =
>'MCSC2_NETWORK_ELEMENTS_LOAD_PERFORMER_EMP_ID_onBeforeDisplayEvent'. =
>The source 'MCSC2_NETWORK_ELEMENTS_LOAD_PERFORMER_EMP_ID' can't be =
>found
>MCSC.pgModifyNetworkElement.mapEvent: Can't map =
>'ComboBox1_onBeforeDisplayEvent'. The source 'ComboBox1' can't be found
>
>------_=_NextPart_000_01BF26DA.8CF528EA--
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]