From austinkramer@example.org Tue Jun 15 17:37:25 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 8650 invoked from network); 15 Jun 2010 17:37:25 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 15 Jun 2010 17:37:25 -0000 Received: (qmail 5888 invoked by uid 500); 15 Jun 2010 17:37:25 -0000 Delivered-To: austinkramer@example.org Received: (qmail 5843 invoked by uid 500); 15 Jun 2010 17:37:25 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 5835 invoked by uid 500); 15 Jun 2010 17:37:25 -0000 Delivered-To: austinkramer@example.org Received: (qmail 5828 invoked by uid 99); 15 Jun 2010 17:37:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 17:37:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 17:37:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7EDF52388906; Tue, 15 Jun 2010 17:36:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r954977 - in /webservices/scout/trunk: ./ src/main/java/org/apache/ws/scout/registry/ src/test/java/org/apache/ws/scout/registry/qa/ src/test/resources/META-INF/ Date: Tue, 15 Jun 2010 17:36:31 -0000 To: austinkramer@example.org From: austinkramer@example.org X-Mailer: svnmailer-1.0.8 Message-Id: <austinkramer@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tcunning Date: Tue Jun 15 17:36:30 2010 New Revision: 954977 URL: http://svn.apache.org/viewvc?rev=954977&view=rev Log: SCOUT-95 Add an AOP-based test for the AuthToken cache, fix up the DELETE_ASSOCIATION case. Bring in aspectj into the build so that we can build the AOP test. The new AOP-based tests can be enabled by : mvn -Dtestcache=true clean install Added: webservices/scout/trunk/src/test/java/org/apache/ws/scout/registry/qa/BusinessLifeCycleManagerImplReplacement.java webservices/scout/trunk/src/test/resources/META-INF/ webservices/scout/trunk/src/test/resources/META-INF/aop.xml Modified: webservices/scout/trunk/pom.xml webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.java webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerV3Impl.java Modified: webservices/scout/trunk/pom.xml URL: http://svn.apache.org/viewvc/webservices/scout/trunk/pom.xml?rev=954977&r1=954976&r2=954977&view=diff ============================================================================== --- webservices/scout/trunk/pom.xml (original) +++ webservices/scout/trunk/pom.xml Tue Jun 15 17:36:30 2010 @@ -269,10 +269,35 @@ <version>1.2.13</version> <scope>test</scope> </dependency> + + <dependency> + <groupId>org.aspectj</groupId> + <artifactId>aspectjrt</artifactId> + <version>1.6.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>aspectj</groupId> + <artifactId>aspectjweaver</artifactId> + <version>1.5.2</version> + <scope>test</scope> + </dependency> </dependencies> <build> <pluginManagement> - <plugins> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>aspectj-maven-plugin</artifactId> + <version>1.3</version> + <executions> + <execution> + <goals> + <goal>test-compile</goal> <!-- use this goal to weave all your test classes --> + </goals> + </execution> + </executions> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> @@ -378,11 +403,31 @@ </dependency> </dependencies> </plugin> - </plugins> </build> </profile> - + <profile> + <id>testcache</id> + <activation> + <activeByDefault>false</activeByDefault> + <property> + <name>testcache</name> + <value>true</value> + </property> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <forkMode>pertest</forkMode> + <argLine>-javaagent:${settings.localRepository}/aspectj/aspectjweaver/1.5.2/aspectjweaver-1.5.2.jar</argLine> + </configuration> + </plugin> + </plugins> + </build> + </profile> </profiles> <reporting> Modified: webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.java URL: http://svn.apache.org/viewvc/webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.java?rev=954977&r1=954976&r2=954977&view=diff ============================================================================== --- webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.java (original) +++ webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.java Tue Jun 15 17:36:30 2010 @@ -643,7 +643,7 @@ public class BusinessLifeCycleManagerImp token = getAuthToken(connection, ireg); clearPublisherAssertions(token.getAuthInfo(), ireg); regobj = ireg.deleteBusiness(token.getAuthInfo(), (String[]) dataarray); - } + } } else if (op.equalsIgnoreCase("DELETE_SERVICE")) { try { @@ -654,7 +654,7 @@ public class BusinessLifeCycleManagerImp AuthTokenSingleton.deleteAuthToken(username); } token = getAuthToken(connection, ireg); - clearPublisherAssertions(token.getAuthInfo(), ireg); + //clearPublisherAssertions(token.getAuthInfo(), ireg); regobj = ireg.deleteService(token.getAuthInfo(), (String[]) dataarray); } } @@ -667,7 +667,7 @@ public class BusinessLifeCycleManagerImp AuthTokenSingleton.deleteAuthToken(username); } token = getAuthToken(connection, ireg); - clearPublisherAssertions(token.getAuthInfo(), ireg); + //clearPublisherAssertions(token.getAuthInfo(), ireg); regobj = ireg.deleteBinding(token.getAuthInfo(), (String[]) dataarray); } } @@ -685,7 +685,7 @@ public class BusinessLifeCycleManagerImp } } else if (op.equalsIgnoreCase("DELETE_ASSOCIATION")) { - int len = ((String[]) dataarray).length; + int len = ((String[]) dataarray).length; PublisherAssertion[] paarr = new PublisherAssertion[len]; for(int i=0;i<len;i++) { @@ -705,7 +705,17 @@ public class BusinessLifeCycleManagerImp } } else if (op.equalsIgnoreCase("DELETE_CLASSIFICATIONSCHEME")) { - regobj = ireg.deleteTModel(token.getAuthInfo(), (String[]) dataarray); + try { + regobj = ireg.deleteTModel(token.getAuthInfo(), (String[]) dataarray); + } catch (RegistryException rve) { + String username = getUsernameFromCredentials(connection.getCredentials()); + if (AuthTokenSingleton.getToken(username) != null) { + AuthTokenSingleton.deleteAuthToken(username); + } + token = getAuthToken(connection, ireg); + clearPublisherAssertions(token.getAuthInfo(), ireg); + regobj = ireg.deleteTModel(token.getAuthInfo(), (String[]) dataarray); + } } else { throw new JAXRException("Unsupported operation:" + op); @@ -749,7 +759,17 @@ public class BusinessLifeCycleManagerImp } catch (RegistryException e) { - throw new RuntimeException(e); + ConnectionImpl connection = registry.getConnection(); + String username = getUsernameFromCredentials(connection.getCredentials()); + if (AuthTokenSingleton.getToken(username) != null) { + AuthTokenSingleton.deleteAuthToken(username); + } + AuthToken token = null; + try { + token = getAuthToken(connection, ireg); + } catch (JAXRException je) { + } + clearPublisherAssertions( token.getAuthInfo(), ireg); } } Modified: webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerV3Impl.java URL: http://svn.apache.org/viewvc/webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerV3Impl.java?rev=954977&r1=954976&r2=954977&view=diff ============================================================================== --- webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerV3Impl.java (original) +++ webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerV3Impl.java Tue Jun 15 17:36:30 2010 @@ -639,7 +639,7 @@ public class BusinessLifeCycleManagerV3I AuthTokenV3Singleton.deleteAuthToken(username); } token = getAuthToken(connection, ireg); - clearPublisherAssertions(token.getAuthInfo(), ireg); + //clearPublisherAssertions(token.getAuthInfo(), ireg); regobj = ireg.deleteBusiness(token.getAuthInfo(), (String[]) dataarray); } } @@ -652,7 +652,7 @@ public class BusinessLifeCycleManagerV3I AuthTokenV3Singleton.deleteAuthToken(username); } token = getAuthToken(connection, ireg); - clearPublisherAssertions(token.getAuthInfo(), ireg); + //clearPublisherAssertions(token.getAuthInfo(), ireg); regobj = ireg.deleteService(token.getAuthInfo(), (String[]) dataarray); } } @@ -665,7 +665,7 @@ public class BusinessLifeCycleManagerV3I AuthTokenV3Singleton.deleteAuthToken(username); } token = getAuthToken(connection, ireg); - clearPublisherAssertions(token.getAuthInfo(), ireg); + //clearPublisherAssertions(token.getAuthInfo(), ireg); regobj = ireg.deleteBinding(token.getAuthInfo(), (String[]) dataarray); } } @@ -678,7 +678,7 @@ public class BusinessLifeCycleManagerV3I AuthTokenV3Singleton.deleteAuthToken(username); } token = getAuthToken(connection, ireg); - clearPublisherAssertions(token.getAuthInfo(), ireg); + //clearPublisherAssertions(token.getAuthInfo(), ireg); regobj = ireg.deleteTModel(token.getAuthInfo(), (String[]) dataarray); } } @@ -698,7 +698,7 @@ public class BusinessLifeCycleManagerV3I AuthTokenV3Singleton.deleteAuthToken(username); } token = getAuthToken(connection, ireg); - clearPublisherAssertions(token.getAuthInfo(), ireg); + //clearPublisherAssertions(token.getAuthInfo(), ireg); regobj = ireg.deletePublisherAssertions(token.getAuthInfo(), paarr); } } @@ -711,7 +711,7 @@ public class BusinessLifeCycleManagerV3I AuthTokenV3Singleton.deleteAuthToken(username); } token = getAuthToken(connection, ireg); - clearPublisherAssertions(token.getAuthInfo(), ireg); + //clearPublisherAssertions(token.getAuthInfo(), ireg); regobj = ireg.deleteTModel(token.getAuthInfo(), (String[]) dataarray); } } Added: webservices/scout/trunk/src/test/java/org/apache/ws/scout/registry/qa/BusinessLifeCycleManagerImplReplacement.java URL: http://svn.apache.org/viewvc/webservices/scout/trunk/src/test/java/org/apache/ws/scout/registry/qa/BusinessLifeCycleManagerImplReplacement.java?rev=954977&view=auto ============================================================================== --- webservices/scout/trunk/src/test/java/org/apache/ws/scout/registry/qa/BusinessLifeCycleManagerImplReplacement.java (added) +++ webservices/scout/trunk/src/test/java/org/apache/ws/scout/registry/qa/BusinessLifeCycleManagerImplReplacement.java Tue Jun 15 17:36:30 2010 @@ -0,0 +1,111 @@ +package org.apache.ws.scout.registry.qa; + +import java.net.URL; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.Statement; +import java.util.Properties; + +import org.apache.ws.scout.model.uddi.v2.BusinessDetail; +import org.apache.ws.scout.model.uddi.v2.BusinessEntity; + +import org.apache.ws.scout.model.uddi.v2.PublisherAssertion; +import org.apache.ws.scout.model.uddi.v2.PublisherAssertions; + +import org.aspectj.lang.annotation.After; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Before; + +@Aspect +public class BusinessLifeCycleManagerImplReplacement { + private static final String JUDDI_PROPERTIES_FILE = "juddi.properties"; + + private static final String JDBC_DRIVER = "juddi.jdbcDriver"; + private static final String JDBC_URL = "juddi.jdbcUrl"; + private static final String JDBC_USER = "juddi.jdbcUsername"; + private static final String JDBC_PASSWORD = "juddi.jdbcPassword"; + + private Connection conn; + +// @Before(" call(org.apache.ws.scout.model.uddi.v2.BusinessDetail saveBusiness(String,org.apache.ws.scout.model.uddi.v2.BusinessEntity[])) " +// + "&& within(org.apache.ws.scout.registry.BusinessLifeCycleManagerImpl)") + @Before(" call(boolean equalsIgnoreCase(String)) " + + "&& within(org.apache.ws.scout.registry.BusinessLifeCycleManagerImpl)") + public void beforeSaveOrgCall() throws Exception { + System.out.println("Clearing the AUTH_TOKEN table..."); + dbinit(); + clearAuthTokens(); + dbclose(); + } + + public void dbinit () throws Exception { + URL url = this.getClass().getClassLoader().getResource(JUDDI_PROPERTIES_FILE); + Properties prop = new Properties(); + prop.load(url.openStream()); + + String jdbcURL = System.getProperty(JDBC_URL, prop.getProperty(JDBC_URL)); + String jdbcDriver = System.getProperty(JDBC_DRIVER, prop.getProperty(JDBC_DRIVER)); + String jdbcUser = System.getProperty(JDBC_USER, prop.getProperty(JDBC_USER)); + String jdbcPass = System.getProperty(JDBC_PASSWORD, prop.getProperty(JDBC_PASSWORD)); + + Class.forName(jdbcDriver); + conn = DriverManager.getConnection(jdbcURL, jdbcUser, jdbcPass); + } + + public void dbclose() throws Exception { + if (conn != null) { + conn.close(); + conn = null; + } + } + + public void clearAuthTokens() throws Exception { + String delQuery = "delete from AUTH_TOKEN"; + Statement st = conn.createStatement(); + st.executeUpdate(delQuery); + } + +/* + @Before(" call(org.apache.ws.scout.model.uddi.v2.ServiceDetail saveService(String,org.apache.ws.scout.model.uddi.v2.BusinessService[]))" + + "&& within(org.apache.ws.scout.registry.qa.JAXR065AuthTokenCacheTest)") + public void beforeServiceCall() { + System.out.println("POINTCUT: deleteAuthTokens"); + } + + @Before(" call(org.apache.ws.scout.model.uddi.v2.BindingDetail saveBinding(String,org.apache.ws.scout.model.uddi.v2.BindingTemplate[]))" + + "&& within(org.apache.ws.scout.registry.qa.JAXR065AuthTokenCacheTest)") + public void beforeSaveServiceBindingCall() { + System.out.println("POINTCUT: deleteAuthTokens"); + } + + @Before(" call(org.apache.ws.scout.model.uddi.v2.TModelDetail saveTModel(String,org.apache.ws.scout.model.uddi.v2.TModel[]))" + + "&& within(org.apache.ws.scout.registry.qa.JAXR065AuthTokenCacheTest..*)") + public void beforeSaveTModelCall() { + System.out.println("POINTCUT: deleteAuthTokens"); + } + + @Before(" call(org.apache.ws.scout.model.uddi.v2.DispositionReport deleteBusiness(String,String[]))" + + "&& within(org.apache.ws.scout.registry.qa.JAXR065AuthTokenCacheTest..*)") + public void beforeDeleteOrgCall() { + System.out.println("POINTCUT: deleteAuthTokens"); + } + + @Before(" call(org.apache.ws.scout.model.uddi.v2.DispositionReport deleteService(String,String[]))" + + "&& within(org.apache.ws.scout.registry.qa.JAXR065AuthTokenCacheTest..*)") + public void beforeDeleteServiceCall() { + System.out.println("POINTCUT: deleteAuthTokens"); + } + + @Before(" call(org.apache.ws.scout.model.uddi.v2.DispositionReport deleteTModel(String,String[]))" + + "&& within(org.apache.ws.scout.registry.qa.JAXR065AuthTokenCacheTest..*)") + public void beforeDeleteTModelCall() { + System.out.println("POINTCUT: deleteAuthTokens"); + } + + @Before(" call(org.apache.ws.scout.model.uddi.v2.DispositionReport deleteBinding(String,String[]))" + + "&& within(org.apache.ws.scout.registry.qa.JAXR065AuthTokenCacheTest..*)") + public void beforeDeleteServiceBindingCall() { + System.out.println("POINTCUT: deleteAuthTokens"); + } + */ +} \ No newline at end of file Added: webservices/scout/trunk/src/test/resources/META-INF/aop.xml URL: http://svn.apache.org/viewvc/webservices/scout/trunk/src/test/resources/META-INF/aop.xml?rev=954977&view=auto ============================================================================== --- webservices/scout/trunk/src/test/resources/META-INF/aop.xml (added) +++ webservices/scout/trunk/src/test/resources/META-INF/aop.xml Tue Jun 15 17:36:30 2010 @@ -0,0 +1,5 @@ +<aspectj> + <aspects> + <aspect name="org.apache.ws.scout.registry.qa.BusinessLifeCycleManagerImplReplacement"/> + </aspects> +</aspectj> --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Tue Jun 15 17:39:43 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 9334 invoked from network); 15 Jun 2010 17:39:43 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 15 Jun 2010 17:39:43 -0000 Received: (qmail 8518 invoked by uid 500); 15 Jun 2010 17:39:43 -0000 Delivered-To: austinkramer@example.org Received: (qmail 8474 invoked by uid 500); 15 Jun 2010 17:39:43 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 8467 invoked by uid 99); 15 Jun 2010 17:39:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 17:39:43 +0000 X-ASF-Spam-Status: No, hits=-1005.3 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 17:39:42 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5FHdM0s012449 for <austinkramer@example.org>; Tue, 15 Jun 2010 17:39:22 GMT Message-ID: <10273404.10391276623562624.JavaMail.jira@thor> Date: Tue, 15 Jun 2010 13:39:22 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Resolved: (SCOUT-95) Provide a mechanism for caching the AuthToken In-Reply-To: <705-469-8828.1255359211346.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SCOUT-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham resolved SCOUT-95. --------------------------------- Resolution: Fixed Added an AuthToken cache and an AOP based test that tests the cache. To run the tests with the AOP test aspect : mvn -Dtestcache=true clean test > Provide a mechanism for caching the AuthToken > --------------------------------------------- > > Key: SCOUT-95 > URL: https://issues.apache.org/jira/browse/SCOUT-95 > Project: Scout > Issue Type: Bug > Components: Scout - jUDDI Interface > Affects Versions: 1.2 > Reporter: Tom Cunningham > Assignee: Tom Cunningham > Fix For: 1.2.2 > > > We need to look at reusing the AuthToken rather than grabbing it before each publish call for performance. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Tue Jun 15 19:29:53 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 61948 invoked from network); 15 Jun 2010 19:29:52 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 15 Jun 2010 19:29:52 -0000 Received: (qmail 99671 invoked by uid 500); 15 Jun 2010 19:29:52 -0000 Delivered-To: austinkramer@example.org Received: (qmail 99631 invoked by uid 500); 15 Jun 2010 19:29:52 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 99624 invoked by uid 99); 15 Jun 2010 19:29:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:29:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:29:50 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5FJTSOR014215 for <austinkramer@example.org>; Tue, 15 Jun 2010 19:29:28 GMT Message-ID: <2884120.14161276630168458.JavaMail.jira@thor> Date: Tue, 15 Jun 2010 15:29:28 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Resolved: (SCOUT-94) Look at commented out Slot code in ScoutJaxrUddiV3Helper.getTModelFromJAXRClassificationScheme In-Reply-To: <328672592.1255358131646.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SCOUT-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham resolved SCOUT-94. --------------------------------- Resolution: Fixed After looking at this, I think we are okay commenting out the lines that try to set authorizedName and operator on the TModel structure. V3 uddi-ws TModel.java does not include these fields - from what I see in the spec, they are handled by operationalInfo / publisher in v3. > Look at commented out Slot code in ScoutJaxrUddiV3Helper.getTModelFromJAXRClassificationScheme > ---------------------------------------------------------------------------------------------- > > Key: SCOUT-94 > URL: https://issues.apache.org/jira/browse/SCOUT-94 > Project: Scout > Issue Type: Bug > Affects Versions: 1.2 > Reporter: Tom Cunningham > Assignee: Tom Cunningham > Fix For: 1.2.2 > > > A few of the lines of code that set authorized name and that set the operator are commented out because we had issues on V3 with them. Investigate these issues and mark why they are happening. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Tue Jun 15 19:31:49 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 64404 invoked from network); 15 Jun 2010 19:31:49 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 15 Jun 2010 19:31:49 -0000 Received: (qmail 3520 invoked by uid 500); 15 Jun 2010 19:31:49 -0000 Delivered-To: austinkramer@example.org Received: (qmail 3488 invoked by uid 500); 15 Jun 2010 19:31:49 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 3480 invoked by uid 99); 15 Jun 2010 19:31:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:31:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:31:46 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5FJVPYW014237 for <austinkramer@example.org>; Tue, 15 Jun 2010 19:31:25 GMT Message-ID: <32458825.14231276630285306.JavaMail.jira@thor> Date: Tue, 15 Jun 2010 15:31:25 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Closed: (SCOUT-94) Look at commented out Slot code in ScoutJaxrUddiV3Helper.getTModelFromJAXRClassificationScheme In-Reply-To: <328672592.1255358131646.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SCOUT-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham closed SCOUT-94. ------------------------------- > Look at commented out Slot code in ScoutJaxrUddiV3Helper.getTModelFromJAXRClassificationScheme > ---------------------------------------------------------------------------------------------- > > Key: SCOUT-94 > URL: https://issues.apache.org/jira/browse/SCOUT-94 > Project: Scout > Issue Type: Bug > Affects Versions: 1.2 > Reporter: Tom Cunningham > Assignee: Tom Cunningham > Fix For: 1.2.2 > > > A few of the lines of code that set authorized name and that set the operator are commented out because we had issues on V3 with them. Investigate these issues and mark why they are happening. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Tue Jun 15 19:37:44 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 67709 invoked from network); 15 Jun 2010 19:37:44 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 15 Jun 2010 19:37:44 -0000 Received: (qmail 8336 invoked by uid 500); 15 Jun 2010 19:37:44 -0000 Delivered-To: austinkramer@example.org Received: (qmail 8311 invoked by uid 500); 15 Jun 2010 19:37:44 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 8304 invoked by uid 99); 15 Jun 2010 19:37:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:37:44 +0000 X-ASF-Spam-Status: No, hits=-1052.7 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:37:43 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5FJbNNO014637 for <austinkramer@example.org>; Tue, 15 Jun 2010 19:37:23 GMT Message-ID: <5976072.14481276630642989.JavaMail.jira@thor> Date: Tue, 15 Jun 2010 15:37:22 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Resolved: (SCOUT-98) BusinessLifeCycleManager.saveOrganizations(Collection organizations) does not return exception list if failed to save In-Reply-To: <735520799.1257610172477.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SCOUT-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham resolved SCOUT-98. --------------------------------- Resolution: Fixed Fixed this issue. > BusinessLifeCycleManager.saveOrganizations(Collection organizations) does not return exception list if failed to save > --------------------------------------------------------------------------------------------------------------------- > > Key: SCOUT-98 > URL: https://issues.apache.org/jira/browse/SCOUT-98 > Project: Scout > Issue Type: Bug > Components: Scout Implementation > Affects Versions: 1.1.1, 1.2 > Reporter: Rafal N > Assignee: Kurt T Stam > Fix For: 1.2.2 > > > Just look at the source: > 422 catch (RegistryException e) { > 423 exceptions.add(new SaveException(e.getLocalizedMessage())); > 424 bulk.setStatus(JAXRResponse.STATUS_FAILURE); > 425 return bulk; > 426 } > bulk.setExceptions() is not called to set the exceptions before return. > It is trival to fix. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Tue Jun 15 19:37:46 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 67757 invoked from network); 15 Jun 2010 19:37:46 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 15 Jun 2010 19:37:46 -0000 Received: (qmail 8413 invoked by uid 500); 15 Jun 2010 19:37:46 -0000 Delivered-To: austinkramer@example.org Received: (qmail 8380 invoked by uid 500); 15 Jun 2010 19:37:45 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 8373 invoked by uid 99); 15 Jun 2010 19:37:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:37:45 +0000 X-ASF-Spam-Status: No, hits=-1135.0 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:37:45 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5FJbPwM014658 for <austinkramer@example.org>; Tue, 15 Jun 2010 19:37:25 GMT Message-ID: <17926284.14551276630645430.JavaMail.jira@thor> Date: Tue, 15 Jun 2010 15:37:25 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Closed: (SCOUT-98) BusinessLifeCycleManager.saveOrganizations(Collection organizations) does not return exception list if failed to save In-Reply-To: <735520799.1257610172477.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SCOUT-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham closed SCOUT-98. ------------------------------- > BusinessLifeCycleManager.saveOrganizations(Collection organizations) does not return exception list if failed to save > --------------------------------------------------------------------------------------------------------------------- > > Key: SCOUT-98 > URL: https://issues.apache.org/jira/browse/SCOUT-98 > Project: Scout > Issue Type: Bug > Components: Scout Implementation > Affects Versions: 1.1.1, 1.2 > Reporter: Rafal N > Assignee: Tom Cunningham > Fix For: 1.2.2 > > > Just look at the source: > 422 catch (RegistryException e) { > 423 exceptions.add(new SaveException(e.getLocalizedMessage())); > 424 bulk.setStatus(JAXRResponse.STATUS_FAILURE); > 425 return bulk; > 426 } > bulk.setExceptions() is not called to set the exceptions before return. > It is trival to fix. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Tue Jun 15 19:37:48 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 67797 invoked from network); 15 Jun 2010 19:37:48 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 15 Jun 2010 19:37:48 -0000 Received: (qmail 8475 invoked by uid 500); 15 Jun 2010 19:37:48 -0000 Delivered-To: austinkramer@example.org Received: (qmail 8444 invoked by uid 500); 15 Jun 2010 19:37:48 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 8437 invoked by uid 99); 15 Jun 2010 19:37:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:37:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:37:46 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5FJbOfR014646 for <austinkramer@example.org>; Tue, 15 Jun 2010 19:37:24 GMT Message-ID: <32604403.14511276630644849.JavaMail.jira@thor> Date: Tue, 15 Jun 2010 15:37:24 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Assigned: (SCOUT-98) BusinessLifeCycleManager.saveOrganizations(Collection organizations) does not return exception list if failed to save In-Reply-To: <735520799.1257610172477.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SCOUT-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham reassigned SCOUT-98: ----------------------------------- Assignee: Tom Cunningham (was: Kurt T Stam) > BusinessLifeCycleManager.saveOrganizations(Collection organizations) does not return exception list if failed to save > --------------------------------------------------------------------------------------------------------------------- > > Key: SCOUT-98 > URL: https://issues.apache.org/jira/browse/SCOUT-98 > Project: Scout > Issue Type: Bug > Components: Scout Implementation > Affects Versions: 1.1.1, 1.2 > Reporter: Rafal N > Assignee: Tom Cunningham > Fix For: 1.2.2 > > > Just look at the source: > 422 catch (RegistryException e) { > 423 exceptions.add(new SaveException(e.getLocalizedMessage())); > 424 bulk.setStatus(JAXRResponse.STATUS_FAILURE); > 425 return bulk; > 426 } > bulk.setExceptions() is not called to set the exceptions before return. > It is trival to fix. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Tue Jun 15 19:38:00 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 67940 invoked from network); 15 Jun 2010 19:38:00 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 15 Jun 2010 19:38:00 -0000 Received: (qmail 8611 invoked by uid 500); 15 Jun 2010 19:38:00 -0000 Delivered-To: austinkramer@example.org Received: (qmail 8579 invoked by uid 500); 15 Jun 2010 19:38:00 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 8572 invoked by uid 500); 15 Jun 2010 19:38:00 -0000 Delivered-To: austinkramer@example.org Received: (qmail 8569 invoked by uid 99); 15 Jun 2010 19:38:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:38:00 +0000 X-ASF-Spam-Status: No, hits=-1412.5 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:37:59 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2581F23888E8; Tue, 15 Jun 2010 19:37:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r955020 - /webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.java Date: Tue, 15 Jun 2010 19:37:14 -0000 To: austinkramer@example.org From: austinkramer@example.org X-Mailer: svnmailer-1.0.8 Message-Id: <austinkramer@example.org> Author: tcunning Date: Tue Jun 15 19:37:13 2010 New Revision: 955020 URL: http://svn.apache.org/viewvc?rev=955020&view=rev Log: SCOUT-98 Add bulk.setExceptions() to catch block. Modified: webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.java Modified: webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.java URL: http://svn.apache.org/viewvc/webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.java?rev=955020&r1=955019&r2=955020&view=diff ============================================================================== --- webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.java (original) +++ webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/BusinessLifeCycleManagerImpl.java Tue Jun 15 19:37:13 2010 @@ -424,6 +424,7 @@ public class BusinessLifeCycleManagerImp catch (RegistryException e) { exceptions.add(new SaveException(e.getLocalizedMessage())); bulk.setStatus(JAXRResponse.STATUS_FAILURE); + bulk.setExceptions(exceptions); return bulk; } --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Tue Jun 15 19:41:45 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 68833 invoked from network); 15 Jun 2010 19:41:45 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 15 Jun 2010 19:41:45 -0000 Received: (qmail 11974 invoked by uid 500); 15 Jun 2010 19:41:45 -0000 Delivered-To: austinkramer@example.org Received: (qmail 11946 invoked by uid 500); 15 Jun 2010 19:41:45 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 11938 invoked by uid 99); 15 Jun 2010 19:41:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:41:45 +0000 X-ASF-Spam-Status: No, hits=-1171.1 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 19:41:44 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5FJfOlp014675 for <austinkramer@example.org>; Tue, 15 Jun 2010 19:41:24 GMT Message-ID: <28360134.14601276630884240.JavaMail.jira@thor> Date: Tue, 15 Jun 2010 15:41:24 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Assigned: (SCOUT-101) Faults are not handled properly by RegistryImpl.execute(JAXBElement<?> uddiRequest, URI endPointURI) In-Reply-To: <1874449011.1259110599874.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SCOUT-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham reassigned SCOUT-101: ------------------------------------ Assignee: Tom Cunningham (was: Kurt T Stam) > Faults are not handled properly by RegistryImpl.execute(JAXBElement<?> uddiRequest, URI endPointURI) > ---------------------------------------------------------------------------------------------------- > > Key: SCOUT-101 > URL: https://issues.apache.org/jira/browse/SCOUT-101 > Project: Scout > Issue Type: Bug > Affects Versions: 1.1.1, 1.2 > Reporter: Rafal N > Assignee: Tom Cunningham > Fix For: 1.2.2 > > > Faults are not handled properly because the handling code does not get a chance to do its job. JAXB unmarshalling is attempted first and if it fails (on fault it does) it throws exception. It appears that in order to fix this issue, these two pieces of code just need to be reordered. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Wed Jun 16 17:10:35 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 1015 invoked from network); 16 Jun 2010 14:46:44 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 16 Jun 2010 14:46:44 -0000 Received: (qmail 53946 invoked by uid 500); 16 Jun 2010 14:46:44 -0000 Delivered-To: austinkramer@example.org Received: (qmail 53875 invoked by uid 500); 16 Jun 2010 14:46:44 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 53831 invoked by uid 99); 16 Jun 2010 14:46:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 14:46:44 +0000 X-ASF-Spam-Status: No, hits=-1234.8 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 14:46:43 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5GEkNCM024679 for <austinkramer@example.org>; Wed, 16 Jun 2010 14:46:23 GMT Message-ID: <20343899.30211276699583347.JavaMail.jira@thor> Date: Wed, 16 Jun 2010 10:46:23 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Resolved: (SCOUT-101) Faults are not handled properly by RegistryImpl.execute(JAXBElement<?> uddiRequest, URI endPointURI) In-Reply-To: <1874449011.1259110599874.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SCOUT-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham resolved SCOUT-101. ---------------------------------- Resolution: Fixed Moved the fault-handling code before the unmarshalling. > Faults are not handled properly by RegistryImpl.execute(JAXBElement<?> uddiRequest, URI endPointURI) > ---------------------------------------------------------------------------------------------------- > > Key: SCOUT-101 > URL: https://issues.apache.org/jira/browse/SCOUT-101 > Project: Scout > Issue Type: Bug > Affects Versions: 1.1.1, 1.2 > Reporter: Rafal N > Assignee: Tom Cunningham > Fix For: 1.2.2 > > > Faults are not handled properly because the handling code does not get a chance to do its job. JAXB unmarshalling is attempted first and if it fails (on fault it does) it throws exception. It appears that in order to fix this issue, these two pieces of code just need to be reordered. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Wed Jun 16 17:11:04 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 2818 invoked from network); 16 Jun 2010 15:00:49 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 16 Jun 2010 15:00:49 -0000 Received: (qmail 81543 invoked by uid 500); 16 Jun 2010 15:00:49 -0000 Delivered-To: austinkramer@example.org Received: (qmail 81496 invoked by uid 500); 16 Jun 2010 15:00:48 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 81489 invoked by uid 99); 16 Jun 2010 15:00:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 15:00:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 15:00:46 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5GF0PD5024818 for <austinkramer@example.org>; Wed, 16 Jun 2010 15:00:25 GMT Message-ID: <19300906.30371276700425363.JavaMail.jira@thor> Date: Wed, 16 Jun 2010 11:00:25 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Updated: (SCOUT-69) Do not search service bindings on the specification In-Reply-To: <392695169.1233893039780.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SCOUT-69?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham updated SCOUT-69: -------------------------------- Fix Version/s: (was: 1.2.2) > Do not search service bindings on the specification > --------------------------------------------------- > > Key: SCOUT-69 > URL: https://issues.apache.org/jira/browse/SCOUT-69 > Project: Scout > Issue Type: Bug > Affects Versions: 1.0rc2 > Environment: java version "1.6.0_0" > IcedTea6 1.4 (fedora-7.b12.fc10-i386) Runtime Environment (build 1.6.0_0-= b12) > OpenJDK Server VM (build 10.0-b19, mixed mode) > Reporter: Waldemar K=C5=82aczy=C5=84ski > Assignee: Kurt T Stam > > ClassificationScheme classification =3D bqm.findClassificatio= nSchemeByName(null, "saba-com:centrum:services:penpay-terminal:ver-1.00"); > SpecificationLink fSpecificationLink =3D blm.createSpecificat= ionLink(); > Concept fconcept =3D blm.createConcept(classification, "Order= number of books", "Number number"); > fconcept.setKey(classification.getKey()); > fSpecificationLink.setSpecificationObject(fconcept); > RegistryObject registryObject =3D bqm.getRegistryObject("EA33= 6660-EF42-11DD-A660-9C97145B13F6",LifeCycleManager.SERVICE); > if(registryObject instanceof Service){ > Service service =3D (Service) registryObject; > BulkResponse fServiceBindings =3D bqm.findServiceBindings= (service.getKey(), null, null, Collections.singletonList(fSpecificationLink= )); > =09 > Always return all service bimdings! > =20 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Wed Jun 16 17:11:05 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 2800 invoked from network); 16 Jun 2010 15:00:47 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 16 Jun 2010 15:00:47 -0000 Received: (qmail 81465 invoked by uid 500); 16 Jun 2010 15:00:47 -0000 Delivered-To: austinkramer@example.org Received: (qmail 81418 invoked by uid 500); 16 Jun 2010 15:00:47 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 81402 invoked by uid 99); 16 Jun 2010 15:00:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 15:00:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 15:00:45 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5GF0NnI024803 for <austinkramer@example.org>; Wed, 16 Jun 2010 15:00:23 GMT Message-ID: <28790479.30321276700423601.JavaMail.jira@thor> Date: Wed, 16 Jun 2010 11:00:23 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Commented: (SCOUT-69) Do not search service bindings on the specification In-Reply-To: <392695169.1233893039780.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SCOUT-69?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D128793= 55#action_12879355 ]=20 Tom Cunningham commented on SCOUT-69: ------------------------------------- Still waiting for a reply from Waldemar on this (over a year). Moving t= o future release. > Do not search service bindings on the specification > --------------------------------------------------- > > Key: SCOUT-69 > URL: https://issues.apache.org/jira/browse/SCOUT-69 > Project: Scout > Issue Type: Bug > Affects Versions: 1.0rc2 > Environment: java version "1.6.0_0" > IcedTea6 1.4 (fedora-7.b12.fc10-i386) Runtime Environment (build 1.6.0_0-= b12) > OpenJDK Server VM (build 10.0-b19, mixed mode) > Reporter: Waldemar K=C5=82aczy=C5=84ski > Assignee: Kurt T Stam > > ClassificationScheme classification =3D bqm.findClassificatio= nSchemeByName(null, "saba-com:centrum:services:penpay-terminal:ver-1.00"); > SpecificationLink fSpecificationLink =3D blm.createSpecificat= ionLink(); > Concept fconcept =3D blm.createConcept(classification, "Order= number of books", "Number number"); > fconcept.setKey(classification.getKey()); > fSpecificationLink.setSpecificationObject(fconcept); > RegistryObject registryObject =3D bqm.getRegistryObject("EA33= 6660-EF42-11DD-A660-9C97145B13F6",LifeCycleManager.SERVICE); > if(registryObject instanceof Service){ > Service service =3D (Service) registryObject; > BulkResponse fServiceBindings =3D bqm.findServiceBindings= (service.getKey(), null, null, Collections.singletonList(fSpecificationLink= )); > =09 > Always return all service bimdings! > =20 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Wed Jun 16 17:12:18 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 902 invoked from network); 16 Jun 2010 14:45:30 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 16 Jun 2010 14:45:30 -0000 Received: (qmail 50727 invoked by uid 500); 16 Jun 2010 14:45:30 -0000 Delivered-To: austinkramer@example.org Received: (qmail 50695 invoked by uid 500); 16 Jun 2010 14:45:30 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 50688 invoked by uid 500); 16 Jun 2010 14:45:30 -0000 Delivered-To: austinkramer@example.org Received: (qmail 50685 invoked by uid 99); 16 Jun 2010 14:45:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 14:45:30 +0000 X-ASF-Spam-Status: No, hits=-1445.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 14:45:30 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7BBEC238897A; Wed, 16 Jun 2010 14:44:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r955243 - /webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/RegistryImpl.java Date: Wed, 16 Jun 2010 14:44:44 -0000 To: austinkramer@example.org From: austinkramer@example.org X-Mailer: svnmailer-1.0.8 Message-Id: <austinkramer@example.org> Author: tcunning Date: Wed Jun 16 14:44:44 2010 New Revision: 955243 URL: http://svn.apache.org/viewvc?rev=955243&view=rev Log: SCOUT-99 Put the fault handling code before the unmarshalling code in RegistryImpl so that if both a fault and an unmarshalling error occurs, we get the base fault. Modified: webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/RegistryImpl.java Modified: webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/RegistryImpl.java URL: http://svn.apache.org/viewvc/webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/RegistryImpl.java?rev=955243&r1=955242&r2=955243&view=diff ============================================================================== --- webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/RegistryImpl.java (original) +++ webservices/scout/trunk/src/main/java/org/apache/ws/scout/registry/RegistryImpl.java Wed Jun 16 14:44:44 2010 @@ -327,32 +327,8 @@ public class RegistryImpl implements IRe if (responseName == null) { throw new RegistryException("Unsupported response " + "from registry. A value was not present."); - } + } - // Let's now try to determine which UDDI response - // we received and unmarshal it appropriately or - // throw a RegistryException if it's unknown. - // Well, we have now determined that something was - // returned and it is "a something" that we know - // about so let's unmarshal it into a RegistryObject - // Next, let's make sure we didn't recieve a SOAP - // Fault. If it is a SOAP Fault then throw it - // immediately. - - JAXBElement<?> uddiResponse = null; - try { - String xml = XMLUtils.convertNodeToXMLString(response); - log.debug("Response is: " + xml); - - StringReader reader = new StringReader(xml); - uddiResponse = (JAXBElement<?>) unmarshaller.unmarshal(new StreamSource(reader)); - //It is probably faster not to go to a String, but JAXB has issues with this - //uddiResponse = (JAXBElement<?>) unmarshaller.unmarshal(response); - - } catch (JAXBException xmle) { - throw (new RegistryException(xmle)); - } - if (responseName.toLowerCase().equals("fault")) { NodeList nodeList = null; @@ -395,6 +371,30 @@ public class RegistryImpl implements IRe // Create RegistryException instance and return throw e; } + + // Let's now try to determine which UDDI response + // we received and unmarshal it appropriately or + // throw a RegistryException if it's unknown. + // Well, we have now determined that something was + // returned and it is "a something" that we know + // about so let's unmarshal it into a RegistryObject + // Next, let's make sure we didn't recieve a SOAP + // Fault. If it is a SOAP Fault then throw it + // immediately. + + JAXBElement<?> uddiResponse = null; + try { + String xml = XMLUtils.convertNodeToXMLString(response); + log.debug("Response is: " + xml); + + StringReader reader = new StringReader(xml); + uddiResponse = (JAXBElement<?>) unmarshaller.unmarshal(new StreamSource(reader)); + //It is probably faster not to go to a String, but JAXB has issues with this + //uddiResponse = (JAXBElement<?>) unmarshaller.unmarshal(response); + + } catch (JAXBException xmle) { + throw (new RegistryException(xmle)); + } return uddiResponse; } --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Wed Jun 16 18:12:23 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 85076 invoked from network); 16 Jun 2010 18:12:23 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 16 Jun 2010 18:12:23 -0000 Received: (qmail 59196 invoked by uid 500); 16 Jun 2010 18:12:23 -0000 Delivered-To: austinkramer@example.org Received: (qmail 58884 invoked by uid 500); 16 Jun 2010 18:12:22 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 58877 invoked by uid 500); 16 Jun 2010 18:12:22 -0000 Delivered-To: austinkramer@example.org Received: (qmail 58874 invoked by uid 99); 16 Jun 2010 18:12:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 18:12:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 18:12:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 89386238890B; Wed, 16 Jun 2010 18:11:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r955333 - in /webservices/scout/trunk/src: main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java test/java/org/apache/ws/scout/registry/JAXRLocaleTest.java Date: Wed, 16 Jun 2010 18:11:32 -0000 To: austinkramer@example.org From: austinkramer@example.org X-Mailer: svnmailer-1.0.8 Message-Id: <austinkramer@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tcunning Date: Wed Jun 16 18:11:32 2010 New Revision: 955333 URL: http://svn.apache.org/viewvc?rev=955333&view=rev Log: SCOUT-99 Make sure we copy over all the localized strings and not just the first one. Modified: webservices/scout/trunk/src/main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java webservices/scout/trunk/src/test/java/org/apache/ws/scout/registry/JAXRLocaleTest.java Modified: webservices/scout/trunk/src/main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java URL: http://svn.apache.org/viewvc/webservices/scout/trunk/src/main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java?rev=955333&r1=955332&r2=955333&view=diff ============================================================================== --- webservices/scout/trunk/src/main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java (original) +++ webservices/scout/trunk/src/main/java/org/apache/ws/scout/util/ScoutUddiJaxrHelper.java Wed Jun 16 18:11:32 2010 @@ -112,19 +112,32 @@ public class ScoutUddiJaxrHelper throws JAXRException { List<Name> namesList = businessEntity.getName(); - Name n = null; - if (namesList.size()>0) n = namesList.get(0); - List<Description> descriptionList = businessEntity.getDescription(); - Description desc =null; - if (descriptionList.size()>0) desc = descriptionList.get(0); Organization org = new OrganizationImpl(lifeCycleManager); - if(n != null ) { - org.setName(getIString(n.getLang(), n.getValue(), lifeCycleManager)); + if ((namesList != null) && (namesList.size() > 0)) { + InternationalString is = null; + for (int i = 0; i < namesList.size(); i++) { + Name n = namesList.get(i); + if (is == null) { + is = getIString(n.getLang(), n.getValue(), lifeCycleManager); + } else { + is.setValue(getLocale(n.getLang()), n.getValue()); + } + } + org.setName(is); } - if( desc != null) { - org.setDescription(getIString(desc.getLang(), desc.getValue(), lifeCycleManager)); + if ((descriptionList != null) && (descriptionList.size() > 0)) { + InternationalString is = null; + for (int i = 0; i < descriptionList.size(); i++) { + Description desc = descriptionList.get(i); + if (is == null) { + is = getIString(desc.getLang(), desc.getValue(), lifeCycleManager); + } else { + is.setValue(getLocale(desc.getLang()), desc.getValue()); + } + } + org.setDescription(is); } org.setKey(lifeCycleManager.createKey(businessEntity.getBusinessKey())); @@ -196,20 +209,35 @@ public class ScoutUddiJaxrHelper throw new JAXRException("Unexpected count of organizations in BusinessDetail: " + bizEntityList.size()); } BusinessEntity entity = bizEntityList.get(0); - Name n = null; - if (entity.getName().size()>0) n = entity.getName().get(0); - + List<Name> namesList = entity.getName(); List<Description> descriptionList = entity.getDescription(); - Description desc =null; - if (descriptionList.size()>0) desc = descriptionList.get(0); Organization org = new OrganizationImpl(lifeCycleManager); - if( n != null ) { - org.setName(getIString(n.getLang(), n.getValue(), lifeCycleManager)); + if ((namesList != null) && (namesList.size() > 0)) { + InternationalString is = null; + for (int i = 0; i < namesList.size(); i++) { + Name n = namesList.get(i); + if (is == null) { + is = getIString(n.getLang(), n.getValue(), lifeCycleManager); + } else { + is.setValue(getLocale(n.getLang()), n.getValue()); + } + } + org.setName(is); } - if( desc != null ) { - org.setDescription(getIString(desc.getLang(), desc.getValue(), lifeCycleManager)); + if ((descriptionList != null) && (descriptionList.size() > 0)) { + InternationalString is = null; + for (int i = 0; i < descriptionList.size(); i++) { + Description desc = descriptionList.get(i); + if (is == null) { + is = getIString(desc.getLang(), desc.getValue(), lifeCycleManager); + } else { + is.setValue(getLocale(desc.getLang()), desc.getValue()); + } + } + org.setDescription(is); } + org.setKey(lifeCycleManager.createKey(entity.getBusinessKey())); //Set Services also @@ -353,20 +381,31 @@ public class ScoutUddiJaxrHelper serve.setKey(lifeCycleManager.createKey(keystr)); } - Name n = null; - if (businessService.getName().size()>0) n = businessService.getName().get(0); + List<Name> namesList = businessService.getName(); + List<Description> descriptionList = businessService.getDescription(); - if (n != null) { - String name = n.getValue(); - serve.setName(lifeCycleManager.createInternationalString(getLocale(n.getLang()), name)); + InternationalString is = null; + for (int i = 0; i < namesList.size(); i++) { + Name n = namesList.get(i); + if (is == null) { + is = lifeCycleManager.createInternationalString(getLocale(n.getLang()), n.getValue()); + } else { + is.setValue(getLocale(n.getLang()), n.getValue()); + } } - - Description desc =null; - if (businessService.getDescription().size()>0) desc = businessService.getDescription().get(0); - if (desc != null ) { - serve.setDescription(lifeCycleManager.createInternationalString(getLocale(desc.getLang()), desc.getValue())); + serve.setName(is); + + InternationalString dis = null; + for (int i = 0; i < namesList.size(); i++) { + Description desc = descriptionList.get(i); + if (dis == null) { + dis = lifeCycleManager.createInternationalString(getLocale(desc.getLang()), desc.getValue()); + } else { + dis.setValue(getLocale(desc.getLang()), desc.getValue()); + } } - + serve.setDescription(dis); + //Populate the ServiceBindings for this Service BindingTemplates bts = businessService.getBindingTemplates(); List<BindingTemplate> bindingTemplateList = bts.getBindingTemplate(); @@ -390,12 +429,18 @@ public class ScoutUddiJaxrHelper service.setKey(lifeCycleManager.createKey(keystr)); } - Name n = null; - if (serviceInfo.getName().size()>0) n = serviceInfo.getName().get(0); - if (n != null) { - String name = n.getValue(); - service.setName(lifeCycleManager.createInternationalString(getLocale(n.getLang()), name)); + List<Name> namesList = serviceInfo.getName(); + InternationalString is = null; + for (int i = 0; i < namesList.size(); i++) { + Name n = namesList.get(i); + if (is == null) { + is = lifeCycleManager.createInternationalString(getLocale(n.getLang()), n.getValue()); + } else { + is.setValue(getLocale(n.getLang()), n.getValue()); + } } + service.setName(is); + return service; } Modified: webservices/scout/trunk/src/test/java/org/apache/ws/scout/registry/JAXRLocaleTest.java URL: http://svn.apache.org/viewvc/webservices/scout/trunk/src/test/java/org/apache/ws/scout/registry/JAXRLocaleTest.java?rev=955333&r1=955332&r2=955333&view=diff ============================================================================== --- webservices/scout/trunk/src/test/java/org/apache/ws/scout/registry/JAXRLocaleTest.java (original) +++ webservices/scout/trunk/src/test/java/org/apache/ws/scout/registry/JAXRLocaleTest.java Wed Jun 16 18:11:32 2010 @@ -80,8 +80,10 @@ public class JAXRLocaleTest extends Base Organization organization = (Organization) blm.createObject(BusinessLifeCycleManager.ORGANIZATION); is = getIString(locale, "Apache Scout Org"); + is.setValue(Locale.JAPANESE, "Apache Scoot Org"); organization.setName(is); is = getIString(locale, "This is the org for Apache Scout Test"); + is.setValue(Locale.JAPANESE, "This is the org for Apache Scout Test"); organization.setDescription(is); Collection<Organization> organizations = new ArrayList<Organization>(); @@ -99,16 +101,22 @@ public class JAXRLocaleTest extends Base assertEquals(organization.getName().getValue(locale), organization1.getName().getValue(locale)); + assertEquals(organization.getName().getValue(Locale.JAPANESE), + organization1.getName().getValue(Locale.JAPANESE)); assertEquals(organization.getDescription().getValue(locale), organization1.getDescription().getValue(locale)); - + assertEquals(organization.getDescription().getValue(Locale.JAPANESE), + organization1.getDescription().getValue(Locale.JAPANESE)); + // create Service Service service = (Service) blm.createObject(BusinessLifeCycleManager.SERVICE); is = getIString(locale, "Apache Scout Service"); + is.setValue(Locale.JAPANESE, "Apache Scoot Service"); service.setName(is); is = getIString(locale, "This is the service for Apache Scout Test"); + is.setValue(Locale.JAPANESE, "This is the service for Apache Scoot Test"); service.setDescription(is); organization1.addService(service); @@ -128,6 +136,8 @@ public class JAXRLocaleTest extends Base assertEquals(service.getName().getValue(locale), service1.getName().getValue(locale)); + assertEquals(service.getName().getValue(Locale.JAPANESE), + service1.getName().getValue(Locale.JAPANESE)); assertEquals(service.getDescription().getValue(locale), service1.getDescription().getValue(locale)); --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Wed Jun 16 18:14:47 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 85528 invoked from network); 16 Jun 2010 18:14:47 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 16 Jun 2010 18:14:47 -0000 Received: (qmail 66254 invoked by uid 500); 16 Jun 2010 18:14:47 -0000 Delivered-To: austinkramer@example.org Received: (qmail 66216 invoked by uid 500); 16 Jun 2010 18:14:47 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 66209 invoked by uid 99); 16 Jun 2010 18:14:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 18:14:47 +0000 X-ASF-Spam-Status: No, hits=-1289.5 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 18:14:46 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5GIEP8x026854 for <austinkramer@example.org>; Wed, 16 Jun 2010 18:14:26 GMT Message-ID: <2938814.33731276712065041.JavaMail.jira@thor> Date: Wed, 16 Jun 2010 14:14:25 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Assigned: (SCOUT-99) OrganizationS returned by findOrganizations() contain at most one name and description even if multiple names or descriptions are present In-Reply-To: <50734430.1257700712513.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SCOUT-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham reassigned SCOUT-99: ----------------------------------- Assignee: Tom Cunningham (was: Kurt T Stam) > OrganizationS returned by findOrganizations() contain at most one name and description even if multiple names or descriptions are present > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: SCOUT-99 > URL: https://issues.apache.org/jira/browse/SCOUT-99 > Project: Scout > Issue Type: Bug > Components: Scout Implementation > Affects Versions: 1.1.1, 1.2 > Reporter: Rafal N > Assignee: Tom Cunningham > Fix For: 1.2.2 > > > class ScoutUddiJaxrHelper ignores additional names/descriptions as it uses pieces of code like this: > if (namesList.size()>0) n = namesList.get(0); > if (descriptionList.size()>0) desc = descriptionList.get(0); > Why doesn't it just copy the lists?? I need all the names and descriptions, not just an arbitrary one... Does this behaviour actually conform to the UDDI v2 spec? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Wed Jun 16 18:14:49 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 85575 invoked from network); 16 Jun 2010 18:14:49 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 16 Jun 2010 18:14:49 -0000 Received: (qmail 66333 invoked by uid 500); 16 Jun 2010 18:14:49 -0000 Delivered-To: austinkramer@example.org Received: (qmail 66291 invoked by uid 500); 16 Jun 2010 18:14:48 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 66284 invoked by uid 99); 16 Jun 2010 18:14:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 18:14:48 +0000 X-ASF-Spam-Status: No, hits=-1314.0 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 18:14:48 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5GIESGl026872 for <austinkramer@example.org>; Wed, 16 Jun 2010 18:14:28 GMT Message-ID: <24496224.33791276712068273.JavaMail.jira@thor> Date: Wed, 16 Jun 2010 14:14:28 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Work started: (SCOUT-99) OrganizationS returned by findOrganizations() contain at most one name and description even if multiple names or descriptions are present In-Reply-To: <50734430.1257700712513.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SCOUT-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on SCOUT-99 started by Tom Cunningham. > OrganizationS returned by findOrganizations() contain at most one name and description even if multiple names or descriptions are present > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: SCOUT-99 > URL: https://issues.apache.org/jira/browse/SCOUT-99 > Project: Scout > Issue Type: Bug > Components: Scout Implementation > Affects Versions: 1.1.1, 1.2 > Reporter: Rafal N > Assignee: Tom Cunningham > Fix For: 1.2.2 > > > class ScoutUddiJaxrHelper ignores additional names/descriptions as it uses pieces of code like this: > if (namesList.size()>0) n = namesList.get(0); > if (descriptionList.size()>0) desc = descriptionList.get(0); > Why doesn't it just copy the lists?? I need all the names and descriptions, not just an arbitrary one... Does this behaviour actually conform to the UDDI v2 spec? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Wed Jun 16 18:14:51 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 85640 invoked from network); 16 Jun 2010 18:14:50 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 16 Jun 2010 18:14:50 -0000 Received: (qmail 66623 invoked by uid 500); 16 Jun 2010 18:14:50 -0000 Delivered-To: austinkramer@example.org Received: (qmail 66586 invoked by uid 500); 16 Jun 2010 18:14:50 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 66579 invoked by uid 99); 16 Jun 2010 18:14:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 18:14:50 +0000 X-ASF-Spam-Status: No, hits=-1336.9 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 18:14:50 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5GIEThS026887 for <austinkramer@example.org>; Wed, 16 Jun 2010 18:14:29 GMT Message-ID: <13181751.33841276712069897.JavaMail.jira@thor> Date: Wed, 16 Jun 2010 14:14:29 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Resolved: (SCOUT-99) OrganizationS returned by findOrganizations() contain at most one name and description even if multiple names or descriptions are present In-Reply-To: <50734430.1257700712513.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SCOUT-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham resolved SCOUT-99. --------------------------------- Resolution: Fixed Copy all of the localized strings and not just the first one. > OrganizationS returned by findOrganizations() contain at most one name and description even if multiple names or descriptions are present > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: SCOUT-99 > URL: https://issues.apache.org/jira/browse/SCOUT-99 > Project: Scout > Issue Type: Bug > Components: Scout Implementation > Affects Versions: 1.1.1, 1.2 > Reporter: Rafal N > Assignee: Tom Cunningham > Fix For: 1.2.2 > > > class ScoutUddiJaxrHelper ignores additional names/descriptions as it uses pieces of code like this: > if (namesList.size()>0) n = namesList.get(0); > if (descriptionList.size()>0) desc = descriptionList.get(0); > Why doesn't it just copy the lists?? I need all the names and descriptions, not just an arbitrary one... Does this behaviour actually conform to the UDDI v2 spec? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: austinkramer@example.org For additional commands, e-mail: austinkramer@example.org From austinkramer@example.org Wed Jun 16 18:22:48 2010 Return-Path: <austinkramer@example.org> Delivered-To: austinkramer@example.org Received: (qmail 91447 invoked from network); 16 Jun 2010 18:22:48 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 16 Jun 2010 18:22:48 -0000 Received: (qmail 78966 invoked by uid 500); 16 Jun 2010 18:22:48 -0000 Delivered-To: austinkramer@example.org Received: (qmail 78923 invoked by uid 500); 16 Jun 2010 18:22:48 -0000 Mailing-List: contact austinkramer@example.org; run by ezmlm Precedence: bulk list-help: <mailto:austinkramer@example.org> list-unsubscribe: <mailto:austinkramer@example.org> List-Post: <mailto:austinkramer@example.org> Reply-To: austinkramer@example.org List-Id: <scout-dev.ws.apache.org> Delivered-To: mailing list austinkramer@example.org Received: (qmail 78916 invoked by uid 99); 16 Jun 2010 18:22:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 18:22:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO thor.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 18:22:46 +0000 Received: from thor (localhost [83.161.120.155]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5GIMMkE026960 for <austinkramer@example.org>; Wed, 16 Jun 2010 18:22:24 GMT Message-ID: <22168088.33911276712542763.JavaMail.jira@thor> Date: Wed, 16 Jun 2010 14:22:22 -0400 (EDT) From: "Tom Cunningham (JIRA)" <austinkramer@example.org> To: austinkramer@example.org Subject: [jira] Closed: (SCOUT-99) OrganizationS returned by findOrganizations() contain at most one name and description even if multiple names or descriptions are present In-Reply-To: <50734430.1257700712513.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SCOUT-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Cunningham closed SCOUT-99. ------------------------------- > OrganizationS returned by findOrganizations() contain at most one name and description even if multiple names or descriptions are present > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: SCOUT-99 > URL: https://issues.apache.org/jira/browse/SCOUT-99 > Project: Scout > Issue Type: Bug > Components: Scout Implementation > Affects Versions: 1.1.1, 1.2 > Reporter: Rafal N > Assignee: Tom Cunningham > Fix For: 1.2.2 > > > class ScoutUddiJaxrHelper ignores additional names/descriptions as it uses pieces of code like this: > if (namesList.size()>0) n = namesList.get(0); > if (descriptionList.size()>0) desc = descriptionList.get(0); > Why doesn't it just copy the lists?? I need all the names
{'source': 'Apache Software Foundation Public Mail Archives'}