easysoa / EasySOA

A light, collaborative platform to make Service Oriented Architecture simple.
http://www.easysoa.org
35 stars 8 forks source link

Error in SCA import when bad appli URL #14

Closed mdutoo closed 13 years ago

mdutoo commented 13 years ago

Step to reproduce :

2011-07-20 17:39:25,288 ERROR [org.easysoa.sca.ScaImporter] Error when visiting binding org.easysoa.sca.visitors.WSBindingScaVisitor@12011a7 at archi path /trip in SCA composite file smart-travel-mock-services.composite java.net.MalformedURLException: For input string: "9000S" at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at org.easysoa.doctypes.PropertyNormalizer.normalizeUrl(PropertyNormalizer.java:35) at org.easysoa.services.NotificationService.computeApiUrl(NotificationService.java:293) at org.easysoa.sca.visitors.ServiceBindingVisitorBase.visit(ServiceBindingVisitorBase.java:41) at org.easysoa.sca.ScaImporter.acceptBindingVisitors(ScaImporter.java:201) at org.easysoa.sca.ScaImporter.acceptBindingParentVisitors(ScaImporter.java:190) at org.easysoa.sca.ScaImporter.importSCA(ScaImporter.java:129) ... 2011-07-20 17:39:25,292 ERROR [org.easysoa.sca.ScaImportBean] Failed to import SCA java.lang.NullPointerException at org.easysoa.sca.visitors.ReferenceBindingVisitorBase.getDescription(ReferenceBindingVisitorBase.java:35) at org.easysoa.sca.ScaImporter.acceptBindingVisitors(ScaImporter.java:204) at org.easysoa.sca.ScaImporter.acceptBindingParentVisitors(ScaImporter.java:190) at org.easysoa.sca.ScaImporter.importSCA(ScaImporter.java:136) ...

To patch it, check appli URL (and others) with new URL(...) when first entered by the user.

mkalam-alami commented 13 years ago

The document forms now validate the URLs before to save.