当前位置: 首页>>代码示例>>Java>>正文


Java MalformedURIException.printStackTrace方法代码示例

本文整理汇总了Java中org.apache.axis.types.URI.MalformedURIException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java MalformedURIException.printStackTrace方法的具体用法?Java MalformedURIException.printStackTrace怎么用?Java MalformedURIException.printStackTrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.axis.types.URI.MalformedURIException的用法示例。


在下文中一共展示了MalformedURIException.printStackTrace方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: runStep

import org.apache.axis.types.URI.MalformedURIException; //导入方法依赖的package包/类
@Override
public void runStep() throws RemoteException, MalformedURIException {
	
	assertNotNull("Null identifier list", testInfo.getIdentifiers());
	assertNotNull("Null identifier values list", testInfo.getIdentifierData());
	
	// Just pick one
	URI identifier = testInfo.getIdentifiers().get(0);
	IdentifierData values = testInfo.getIdentifierData().get(0);
	
	assertNotNull("Null identifier", identifier);
	assertNotNull("Null values", values);
	
	EndpointReferenceType epr = null;
    try {
        epr = testInfo.getGridSvcEPR();
    } catch (MalformedURIException e) {
        e.printStackTrace();
        fail("Error constructing client:" + e.getMessage());
    }
    
    IdentifiersNAServiceClient client = new IdentifiersNAServiceClient( epr );
    testCreateKeys(client, identifier);
    testReplaceKeys(client, identifier);
    testDeleteKeys(client, identifier);
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:27,代码来源:IdentifiersMaintenanceStep.java

示例2: addService

import org.apache.axis.types.URI.MalformedURIException; //导入方法依赖的package包/类
private void addService() {
    try {
        ServiceType[] types = getServiceTypePanel().getServiceTypes();
        String[] typeNames = null;
        if (types != null) { 
            typeNames = new String[types.length];
            for (int i = 0; i < types.length; i++) {
                typeNames[i] = types[i].getTypeName();
            }
        }
        ServiceDescription desc = AddServiceDialog.getDescription(this, typeNames);
        if (desc != null) {
            getServiceTable().addService(desc);
        }
    } catch (MalformedURIException ex) {
        ex.printStackTrace();
        JOptionPane.showMessageDialog(this, "The specified URL does not appear to be valid", 
            "Error", JOptionPane.ERROR_MESSAGE);
    }
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:21,代码来源:DeploymentValidationBuilder.java

示例3: getServiceUrl

import org.apache.axis.types.URI.MalformedURIException; //导入方法依赖的package包/类
private String getServiceUrl() {
    String url = null;
    try {
        URI baseUri = container.getContainerBaseURI();
        url = baseUri.toString() + "cagrid/" + testInfo.getName();
    } catch (MalformedURIException ex) {
        ex.printStackTrace();
        fail("Error generating service url: " + ex.getMessage());
    }
    LOG.debug("Data service url: " + url);
    return url;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:13,代码来源:InvokeSDK4DataServiceStep.java

示例4: runStep

import org.apache.axis.types.URI.MalformedURIException; //导入方法依赖的package包/类
@Override
  public void runStep() throws RemoteException, MalformedURIException {
    

EndpointReferenceType epr = null;
      try {
          epr = testInfo.getGridSvcEPR();
      } catch (MalformedURIException e) {
          e.printStackTrace();
          fail("Error constructing client:" + e.getMessage());
      }
      
      IdentifiersNAServiceClient client = new IdentifiersNAServiceClient( epr );
      testInvalidIdentifierFault( client );
  }
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:16,代码来源:GridServiceFaultsTestStep.java

示例5: runStep

import org.apache.axis.types.URI.MalformedURIException; //导入方法依赖的package包/类
@Override
  public void runStep() throws RemoteException, MalformedURIException {
    

EndpointReferenceType epr = null;
      try {
          epr = testInfo.getGridSvcEPR();
      } catch (MalformedURIException e) {
          e.printStackTrace();
          fail("Error constructing client:" + e.getMessage());
      }
      
      String[] keys = new String[] { "CODES", "URLS" };
      String[][] values = new String[][]{
      		{"007"},
      		{"http://na.cagrid.org/foo", "http://na.cagrid.org/bar" }
      };
      
      KeyNameData[] kvs = new KeyNameData[ keys.length ];
for( int i=0; i < keys.length; i++) {
	kvs[i] = IdentifiersTestUtil.createKeyNameData(keys[i], values[i]);
}

IdentifierData id = new IdentifierData(kvs);

      IdentifiersNAServiceClient client = new IdentifiersNAServiceClient( epr );
      URI identifier = client.createIdentifier(id);
      this.testInfo.addIdentifier(identifier, id);
  }
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:30,代码来源:GridServiceIdentifierCreationStep.java

示例6: getServiceUrl

import org.apache.axis.types.URI.MalformedURIException; //导入方法依赖的package包/类
protected String getServiceUrl() {
    String url = null;
    try {
        URI baseUri = container.getContainerBaseURI();
        url = baseUri.toString() + "cagrid/" + testInfo.getName();
    } catch (MalformedURIException ex) {
        ex.printStackTrace();
        fail("Error generating service url: " + ex.getMessage());
    }
    LOG.debug("Data service url: " + url);
    return url;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:13,代码来源:InvokeSDK41DataServiceStep.java


注:本文中的org.apache.axis.types.URI.MalformedURIException.printStackTrace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。