當前位置: 首頁>>代碼示例>>Java>>正文


Java KettleException.printStackTrace方法代碼示例

本文整理匯總了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();
	}
}
 
開發者ID:jiangzongyao,項目名稱:kettle_support_kettle8.0,代碼行數:20,代碼來源:KettleSpoonController.java

示例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();
	}
}
 
開發者ID:jiangzongyao,項目名稱:kettle_support_kettle8.0,代碼行數:22,代碼來源:KettleSpoonController.java

示例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 );
}
 
開發者ID:jiangzongyao,項目名稱:kettle_support_kettle8.0,代碼行數:11,代碼來源:KettleReposServiceImpl.java


注:本文中的org.pentaho.di.core.exception.KettleException.printStackTrace方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。