private static void logTheAuditError( final ILogger logger, Exception e ) { String msg = null; try { msg = ( ( e.getMessage() != null ) ? e.getMessage() : Messages.getInstance().getErrorString( "AUDITHELPER.ERROR_0001_AUDIT_ENTRY_ERROR" ) ); //$NON-NLS-1$ } catch ( Throwable ignored ) { msg = Messages.getInstance().getErrorString( "AUDITHELPER.ERROR_0001_AUDIT_ENTRY_ERROR" ); //$NON-NLS-1$ } if ( ( msg.toLowerCase().indexOf( "not found" ) >= 0 ) ) { //$NON-NLS-1$ e = null; // Prevent Stack Trace } if ( logger != null ) { if ( e != null ) { logger.error( msg, e ); } else { logger.error( msg ); } } else { if ( e != null ) { Logger.error( AuditHelper.class.getName(), msg, e ); } else { Logger.error( AuditHelper.class.getName(), msg ); } } }
logger.error( Messages.getInstance().getErrorString( "SequenceDefinition.ERROR_0006_PARSING_RESOURCE" ), e ); //$NON-NLS-1$
@Override protected IPentahoResultSet getResultSet( final Map parameterProviders ) { String sessionAttribute = XmlDom4JHelper.getNodeText( "session-attribute", node ); //$NON-NLS-1$ try { IPentahoResultSet data = (IPentahoResultSet) session.getAttribute( sessionAttribute ); return data; } catch ( Exception e ) { logger.error( Messages.getInstance().getString( "FilterDefinition.ERROR_0003_NOT_IN_SESSION", sessionAttribute ), e ); //$NON-NLS-1$ } return null; }
content.append( xformHeader ); } catch ( Exception e ) { logger.error( Messages.getInstance().getErrorString( "FilterPanel.ERROR_0004_COULD_NOT_CREATE_CONTENT" ), e ); //$NON-NLS-1$ document = XmlDom4JHelper.getDocFromString( content.toString(), new PentahoEntityResolver() ); } catch ( XmlParseException e ) { logger.error( Messages.getInstance().getErrorString( "FilterPanel.ERROR_0004_COULD_NOT_CREATE_CONTENT" ), e ); //$NON-NLS-1$
@Override protected IPentahoResultSet getResultSet( final Map parameterProviders ) { String globalAttribute = XmlDom4JHelper.getNodeText( "global-attribute", node ); //$NON-NLS-1$ try { IPentahoResultSet data = (IPentahoResultSet) PentahoSystem.getGlobalParameters().getParameter( globalAttribute ); return data; } catch ( Exception e ) { logger.error( Messages.getInstance().getString( "FilterDefinition.ERROR_0003_NOT_IN_SESSION", globalAttribute ), e ); //$NON-NLS-1$ } return null; }
public static IActionSequence ActionSequenceFactory( final Document document, final String solutionPath, final ILogger logger, final IApplicationContext applicationContext, final int loggingLevel ) { // Check for a sequence document Node sequenceDefinitionNode = document.selectSingleNode( "//action-sequence" ); //$NON-NLS-1$ if ( sequenceDefinitionNode == null ) { logger.error( Messages.getInstance().getErrorString( "SequenceDefinition.ERROR_0002_NO_ACTION_SEQUENCE_NODE", "", solutionPath, "" ) ); //$NON-NLS-1$ return null; } ISequenceDefinition seqDef = new SequenceDefinition( sequenceDefinitionNode, solutionPath, logger, applicationContext ); Node actionNode = sequenceDefinitionNode.selectSingleNode( "actions" ); //$NON-NLS-1$ return ( SequenceDefinition.getNextLoopGroup( seqDef, actionNode, solutionPath, logger, loggingLevel ) ); }
static IConditionalExecution parseConditionalExecution( final Node actionRootNode, final ILogger logger, final String nodePath ) { try { Node condition = actionRootNode.selectSingleNode( nodePath ); if ( condition == null ) { return null; } String script = condition.getText(); IConditionalExecution ce = PentahoSystem.get( IConditionalExecution.class, null ); ce.setScript( script ); return ce; } catch ( Exception ex ) { logger.error( Messages.getInstance().getErrorString( "SequenceDefinition.ERROR_0005_PARSING_PARAMETERS" ), ex ); //$NON-NLS-1$ } return null; }
|| ( resourceType == IActionSequenceResource.FILE_RESOURCE ) ) { if ( resourceLocation == null ) { logger.error( Messages.getInstance().getErrorString( "SequenceDefinition.ERROR_0008_RESOURCE_NO_LOCATION", resourceName ) ); //$NON-NLS-1$ continue; resourceDefinitions.put( resourceName, resource ); } else { logger.error( Messages.getInstance().getErrorString( "SequenceDefinition.ERROR_0007_RESOURCE_NO_MIME_TYPE", resourceName ) ); //$NON-NLS-1$ logger.error( Messages.getInstance().getErrorString( "SequenceDefinition.ERROR_0006_PARSING_RESOURCE" ), e ); //$NON-NLS-1$
JFreeChartEngine.saveChart( chart, filePath, width, height, outputType, writer, info ); } catch ( IOException e ) { logger.error( Messages.getInstance().getString( "ChartEngine.ERROR_0001_COULD_NOT_CREATE_CHART" ), e ); //$NON-NLS-1$
logger.error( Messages.getInstance().getErrorString( "ChartHelper.ERROR_0001_IO_PROBLEM_GETTING_CHART_TYPE" ), e ); //$NON-NLS-1$ PentahoSystem logger.error( Messages.getInstance().getString( "ChartHelper.ERROR_0002_COULD_NOT_DETERMINE_CHART_TYPE" ) ); //$NON-NLS-1$ PentahoSystem .get( IMessageFormatter.class, userSession ) default: logger.error( Messages.getInstance().getString( "ChartHelper.ERROR_0003_INVALID_CHART_TYPE", chartTypeStr, Integer.toString( chartType ) ) ); //$NON-NLS-1$ PentahoSystem.get( IMessageFormatter.class, userSession ).formatErrorMessage( logger.error( Messages.getInstance().getErrorString( "Widget.ERROR_0001_COULD_NOT_CREATE_WIDGET" ), e ); //$NON-NLS-1$ logger.error( Messages.getInstance().getErrorString( "Widget.ERROR_0001_COULD_NOT_CREATE_WIDGET" ), e ); //$NON-NLS-1$
logger.error( Messages.getInstance().getString( "ChartEngine.ERROR_0002_COULD_NOT_CREATE_CHART" ) ); //$NON-NLS-1$ } else {