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 166321 - Bpel old2new SunExtensions convertor in some cases brokes bpel or doesn't stop converting at all
Summary: Bpel old2new SunExtensions convertor in some cases brokes bpel or doesn't sto...
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-01 07:40 UTC by Vitaly Bychkov
Modified: 2009-12-16 15:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (125.54 KB, application/x-compressed)
2009-06-01 07:43 UTC, Vitaly Bychkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Bychkov 2009-06-01 07:40:09 UTC
Bpel old2new SunExtensions convertor in some cases brokes bpel or doesn't stop converting at all.

See the project from the attachment.
Invoke "Validate Xml" on PropertiesExample.bpel to be sure that there is a old styled SunExtensions format.

Invoke "Check compatibility..." on PropertiesExample.bpel press "Convert".
See "The bpel file has successfully converted"

Try to validate - there is no warnings but while opening bpel designer the error message appears:

Unable to show diagram:
"
Verify that the XML is well-formed.
Verify that the BPEL schema namespace URI is http://docs.oasis-open.org/wsbpel/2.0/process/executable
"
Both points isn't valid.

Looks like another issue.
The workaround: close this bpel, open another one and close, then this bpel can be opened successfully.

Try to validate again - see the warning message still there.
Go to the source - see there are mix of an old and new SunExtensions:
                    <sxed:editor>
                        <sxed2:predicate
xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"
path="$GetPropertiesIn.parameters/keyList[position() = 1]" source="to"/>
                    </sxed:editor>


Invoke "Check compatibility..." on PropertiesExample.bpel press "Convert" again.
The converting process process bar appears and never stop. 
More over there are no possibilities to cancel it except restart netbeans.


There are no any warnings/errors in netbeans log.
Comment 1 Vitaly Bychkov 2009-06-01 07:43:03 UTC
Created attachment 83050 [details]
Sample project
Comment 2 Nikita Krjukov 2009-06-01 08:52:20 UTC
I fixed the problem with hanging in progress dialog. 
See change-set here: http://hg.netbeans.org/soa-dev65/rev/a76555632d23
Comment 3 Nikita Krjukov 2009-06-02 11:06:31 UTC
The project contains BPEL Editor extensions in an intermediate unofficial format. It is used by development versions
some months between GF2.0 and GF2.1 The converter doesn't support that version. It is only intended to convert from GF20
to GF21 format.  
Comment 4 Nikita Krjukov 2009-06-02 11:54:55 UTC
The most serious problem is with getting BPEL model invalid after running conversion. It turned out more general. So I
created a new issue #166393, which describes the problem with more details. 

Unfortunately, the problem is located in XAM module, so it can't be fixed in JCAPS in short time. 

Anyway, I think this issue can be considered as fixed in favor of the new one #166393
Comment 5 rajupgl 2009-12-03 04:17:11 UTC
Verified in the latest build(20091202-0720) and still not able to view the Bpel after made the conversion.

Also Validate XML didn't throw any Warnings.
Closing and Reopening the Bpel doesn't solve the problem
Hence reopening the issue.
Comment 6 Nikita Krjukov 2009-12-07 07:41:56 UTC
I need more details to reproduce the issue. A project for example. 

Be aware that the project, which was initially attached, is invalid. See here:
https://netbeans.org/bugzilla/show_bug.cgi?id=166321#c3
https://netbeans.org/bugzilla/show_bug.cgi?id=178149#c4
Comment 7 sbondada 2009-12-11 13:25:56 UTC
Open the attached sample project.
Right Click on BPEL file -> Check Compatibility->Press Convert button in pop up window
Creates a new bpel file by renaming the old file.
Click on design shows
Unable to show diagram:
"
Verify that the XML is well-formed.
Verify that the BPEL schema namespace URI is

Close and reopen shows the diagram, validate throws the following exceptions

C:/temp/data/PropertiesExample_BP/src/PropertiesExample/PropertiesExample.bpel:50,16
WARNING: Currently the Sun BPEL SE does not support the operation "position()".

C:/temp/data/PropertiesExample_BP/src/PropertiesExample/PropertiesExample.bpel:25,8
WARNING: A part of variable "PropertiesExampleOperationIn.PropertiesExampleRequestPart" is not used.

C:/temp/data/PropertiesExample_BP/src/PropertiesExample/PropertiesExample.bpel:22,8
WARNING: The variable "PROPERTY_B" is not used.

C:/temp/data/PropertiesExample_BP/src/PropertiesExample/PropertiesExample.bpel:2,0
WARNING: The BPEL file contains BPEL's extensions in an old format. You should convert it to the new format. Call pop-up menu on the file at the Project View and invoke "Check Compatibility" action.

0 Error(s),  4 Warning(s).
XML validation finished.
Comment 8 Nikita Krjukov 2009-12-14 07:14:36 UTC
As I've already wrote here
https://netbeans.org/bugzilla/show_bug.cgi?id=166321#c3
https://netbeans.org/bugzilla/show_bug.cgi?id=166321#c6
the attached project is incorrect. 

Try use project here https://netbeans.org/bugzilla/show_bug.cgi?id=161688#c3
Comment 9 terrybraun 2009-12-16 15:05:21 UTC
This issue is tested and verified with the GFESB Build of 12/14/09, including NetBeans IDE 6.7.1 (Build 200912112133).

The designated project now converts properly.