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 168169 - Background validation should not take a long time for HL7
Summary: Background validation should not take a long time for HL7
Status: CLOSED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2009-07-06 10:25 UTC by Vladimir Yaroslavskiy
Modified: 2009-12-09 02:52 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
HL7 project (1.35 MB, application/octet-stream)
2009-07-06 10:26 UTC, Vladimir Yaroslavskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Yaroslavskiy 2009-07-06 10:25:03 UTC
Background validation should not take a long time for HL7.

If you open attached HL7 project and change bpel document,
background validation. All checks, except XPath expression
validation, take ~1 sec, see:

Validator: org.netbeans.modules.bpel.validation.custom.Validator    : 0.031 sec.
Validator: org.netbeans.modules.bpel.validation.property.Validator  : 0.0 sec.
Validator: org.netbeans.modules.bpel.validation.reference.Validator : 0.234 sec.
Validator: org.netbeans.modules.bpel.validation.runtime.Validator   : 0.0 sec.
Validator: org.netbeans.modules.bpel.validation.schema.Validator    : 0.016 sec.
Validator: org.netbeans.modules.bpel.validation.statics.Validator   : 0.5 sec.
Validator: org.netbeans.modules.bpel.validation.variable.Validator  : 0.125 sec.
Validator: org.netbeans.modules.bpel.validation.compatibility.Validator: 0.0 sec.
Total: 0.906 sec.

When I switch off all validators and switch on XPath only, it takes *** xxx ***, I don't
know how long, because I wait about 5 minutes and then close the IDE.

So, I'll switch off XPath checks from *background* (partial) validation. Note, that complete
validation (including XPath and all imported document) is run when a project is built or
validation button is pressed.
Comment 1 Vladimir Yaroslavskiy 2009-07-06 10:26:02 UTC
Created attachment 84394 [details]
HL7 project
Comment 2 Vladimir Yaroslavskiy 2009-07-06 10:47:36 UTC
fixed: http://hg.netbeans.org/soa-dev65?cmd=changeset;node=6e1e233a8fb5
Comment 3 raghukolar 2009-12-02 18:40:57 UTC
Assigned to raghukolar for verification.
Comment 4 Vladimir Yaroslavskiy 2009-12-03 00:04:38 UTC
use CC for adding interested person(s)
Comment 5 raghukolar 2009-12-08 03:46:21 UTC
Could you please give the steps for switching on and off, all the specified validators.
Comment 6 Vladimir Yaroslavskiy 2009-12-08 04:02:01 UTC
you can not switch on/off validators.
the request was (and it was implemented) to switch off XPath validation from background validation.
Comment 7 Vladimir Yaroslavskiy 2009-12-08 05:01:58 UTC
steps to reproduce:

Create Synchronous sample,
open the BPEL document in Source view,
go to the assign "Assign1" and "broke" from
<from>$inputVar.inputType/ns2:paramA</from>
to
<from>$inputVar.inputType/ns2:paramA_BAD_</from>

save document, wait 5 seconds (time when background
validation is triggered), see that no errors.

press "Validate XML" button (it runs full validation),
see that error is shown:
ERROR: From: Cannot find the element "ns2:paramA_BAD_" at the namespace "http://xml.netbeans.org/schema/Synchronous". Expression: "$inputVar.inputType/ns2:paramA_BAD_"
Comment 8 raghukolar 2009-12-09 02:52:05 UTC
verified using below builds: Closing the issue.

updateKit: installed GFESB build               = 20091206-0720
updateKit: installed Open ESB build            = 091205 (version 2.6.1)
updateKit: installed Open JBI Components build = 091205 (version 2.6.1)
updateKit: installed NetBeans build            = 200911291800

The issue is fixed. The Xpath validation is disabled during background validation. This will kick in on explicit validation of the XML.

XML validation started.

E:/jdev/paths/jbidev/jbi/shasta/bindings/hl7bc/nb/Synchronous/Synchronous/src/Synchronous.bpel:98,16
ERROR: From: Cannot find the element "ns2:paramA_BAD_" at the namespace "http://xml.netbeans.org/schema/Synchronous". Expression: "$inputVar.inputType/ns2:paramA_BAD_"

1 Error(s),  0 Warning(s).
XML validation finished.