Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
BIRT Engine Logging Levels - WebSphere vs WebLogic
lenburt
Hello out there -- we are using the BIRT 2.6.2 Engine and the code below works fine on WebLogic but not under WebSphere 7.x.
We look at an external property value to set the logging level....
For some reason, on WebSphere, the logging level seems to be always set to WARNING (as opposed to FINE in this case).
This may turn out to be something simple but it has been eluding me..... -- len
Platform.startup(config);
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
engine = factory.createReportEngine(config);
System.out.println("Logging Property -> " + getPropertyValue(BIRT_ENGINE_LOG_LEVEL));
if (getPropertyValue(BIRT_ENGINE_LOG_LEVEL).equalsIgnoreCase("FINE")){
System.out.println("Changing Logging to FINE");
engine.changeLogLevel(Level.FINE);
}
This is what i get under WebLogic when set to FINE:
Dec 6, 2012 8:56:05 PM org.eclipse.birt.report.engine.api.impl.ReportEngine <init>
FINE: ReportEngine created. EngineConfig: EngineConfig: org.eclipse.birt.report.engine.api.EngineConfig.scriptObjects={};BIRT_HOME=c:/birt-runtime-2_6_2/ReportEngine;logLevel=FINE;PLATFORM_CONTEXT=org.eclipse.birt.core.framework.PlatformFileContext@1348f49a;org.eclipse.birt.report.engine.api.EngineConfig.emitterConfigs={html=org.eclipse.birt.report.engine.api.HTMLEmitterConfig@134fa801};webapplication.projectclasspath=<null>;logDest=c:/birt-runtime-2_6_2/ReportEngine/logs;
Dec 6, 2012 8:56:05 PM org.eclipse.birt.report.engine.extension.internal.ExtensionManager getExtensions
FINE: Start load extension point: org.eclipse.birt.report.engine.reportitemGeneration
Dec 6, 2012 8:56:05 PM org.eclipse.birt.report.engine.extension.internal.ExtensionManager loadGenerationExtensionDefns
FINE: Load generation extension: Chart
Dec 6, 2012 8:56:05 PM org.eclipse.birt.report.engine.extension.internal.ExtensionManager getExtensions
FINE: Start load extension point: org.eclipse.birt.report.engine.reportitemPresentation
Dec 6, 2012 8:56:05 PM org.eclipse.birt.report.engine.extension.internal.ExtensionManager loadPresentationExtensionDefns
FINE: Load prsentation extension: Chart
Dec 6, 2012 8:56:05 PM org.eclipse.birt.report.engine.extension.internal.ExtensionManager getExtensions
FINE: Start load extension point: org.eclipse.birt.report.engine.reportitemQuery
Dec 6, 2012 8:56:05 PM org.eclipse.birt.report.engine.extension.internal.ExtensionManager loadQueryExtensionDefns
FINE: Load query extension: Chart
Dec 6, 2012 8:56:05 PM org.eclipse.birt.report.engine.extension.internal.ExtensionManager getExtensions
FINE: Start load extension point: org.eclipse.birt.report.engine.emitters
Dec 6, 2012 8:56:05 PM org.eclipse.birt.report.engine.extension.internal.ExtensionManager loadEmitterExtensionDefns
FINE: Load html emitter org.eclipse.birt.report.engine.emitter.html
Dec 6, 2012 8:56:05 PM org.eclipse.birt.report.engine.extension.internal.ExtensionManager loadEmitterExtensionDefns
Under WebSphere i only get WARNINGs
Dec 8, 2012 10:51:51 AM org.eclipse.birt.report.data.oda.jdbc.Statement setProperty
WARNING: No named Parameter supported.
Throwable occurred: org.eclipse.datatools.connectivity.oda.OdaException: Unsupported query property: parameterMetaData
at org.eclipse.birt.report.data.oda.jdbc.Statement.setProperty(Statement.java:218)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQuery.setProperty(OdaQuery.java:244)
at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.doSetProperty(PreparedStatement.java:203)
at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.setProperty(PreparedStatement.java:185)
at org.eclipse.birt.data.engine.executor.DataSourceQuery.addPropertiesToPreparedStatement(DataSourceQuery.java:504)
at org.eclipse.birt.data.engine.executor.DataSourceQuery.prepare(DataSourceQuery.java:280)
at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery$OdaDSQueryExecutor.prepareOdiQuery(PreparedOdaDSQuery.java:455)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:340)
Find more posts tagged with
Comments
There are no comments yet