本文整理汇总了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);
}
示例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);
}
}
示例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;
}
示例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 );
}
示例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);
}
示例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;
}