本文整理匯總了Java中org.pentaho.di.core.exception.KettleException.printStackTrace方法的典型用法代碼示例。如果您正苦於以下問題:Java KettleException.printStackTrace方法的具體用法?Java KettleException.printStackTrace怎麽用?Java KettleException.printStackTrace使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.pentaho.di.core.exception.KettleException
的用法示例。
在下文中一共展示了KettleException.printStackTrace方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: tree
import org.pentaho.di.core.exception.KettleException; //導入方法依賴的package包/類
@RequestMapping(value = ACTION_TREE, method = RequestMethod.POST)
public void tree(HttpServletRequest request, HttpServletResponse response)
throws IOException {
try {
Iterator<?> it = request.getParameterMap().entrySet().iterator();
KettleRepos entity = new KettleRepos();
while (it.hasNext()) {
Map.Entry<?, ?> ent = (Entry<?, ?>) it.next();
entity.setValue((String) ent.getKey(),
((String[]) ent.getValue())[0]);
}
List<?> list = service.iKettleReposService.getJobAndTrans(entity);
response.getWriter().write(JSONArray.fromObject(list).toString());
} catch (KettleException e) {
e.printStackTrace();
} finally {
response.getWriter().close();
}
}
示例2: get
import org.pentaho.di.core.exception.KettleException; //導入方法依賴的package包/類
@SuppressWarnings("all")
@RequestMapping(value = ACTION_GET, method = RequestMethod.POST)
public void get(HttpServletRequest request, HttpServletResponse response)
throws IOException {
try {
Iterator<?> it = request.getParameterMap().entrySet().iterator();
KettleSpoon entity = new KettleSpoon();
while (it.hasNext()) {
Map.Entry<?, ?> ent = (Entry<?, ?>) it.next();
entity.setValue((String) ent.getKey(),
((String[]) ent.getValue())[0]);
}
Map<String, String> map = (Map<String, String>) service.iKettleReposService
.getParameters(entity);
response.getWriter().write(JSONArray.fromObject(map).toString());
} catch (KettleException e) {
e.printStackTrace();
} finally {
response.getWriter().close();
}
}
示例3: main
import org.pentaho.di.core.exception.KettleException; //導入方法依賴的package包/類
public static void main(String[] args) {
try {
KettleClientEnvironment.init();
} catch (KettleException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
String obfuscated = Encr.encryptPasswordIfNotUsingVariables( "root" );
System.out.println( obfuscated );
}