BIRT 2.2.0 WebViewerExample on Geronimo 2.0 M6 [message #252955] |
Sat, 18 August 2007 23:03 |
Tim Stephenson Messages: 18 Registered: July 2009 |
Junior Member |
|
|
Hi,
On deploying the example war file into geronimo I get the app home page but
on clicking the sample report link there is an error (stack trace at end of
this mail).
The log file indicates it is while starting up the eclipse platform,
specifically whilst invoking
at org.eclipse.core.runtime.adaptor.EclipseStarter.setInitialPr operties
one of the properties turns out to not be a String. I dont know what it is
used for but the property
org.apache.activeio.journal.active.lockMap
contains a HashSet with one value, in my case:
C:\share\geronimo\geronimo-tomcat6-jee5-2.0-M6-rc1\var\activ emq\journal\control.dat
SO, how do people feel about iterating properties and removing any that are
not String type before making the setInitialProperties call? I tried the
following addition to org.eclipse.birt.core.framework.osgi.OSGILauncher
// This needed to protect against non-String properties,
// such as in WebViewer under Geronimo 2.0
Properties checkedProps = new Properties() ;
Iterator iter = properties.entrySet( ).iterator( );
while ( iter.hasNext( ) )
{
Map.Entry entry = (Map.Entry) iter.next( );
if ((entry.getValue() instanceof String)) {
checkedProps.put(entry.getKey(), entry.getValue());
}
}
// existing code continues with this
initPropertiesMethod.invoke( null, new Object[]{checkedProps} );
and it resolved the initial issue but subsequently the report factory
service is not found, that is the following line in
org.eclipse.birt.report.service.ReportEngineService returns null
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(
IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
I feel this must be a separate issue, any advice you may give me would be
appreciated
thanks in advance, tim
Geronimo stack trace follows:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OS GILaunche
r.java:145)
at
org.eclipse.birt.core.framework.Platform.startup(Platform.ja va:77)
at
org.eclipse.birt.report.service.ReportEngineService.setEngin eContext(
Unknown Source)
at
org.eclipse.birt.report.service.BirtViewerReportService.setC ontext(Un
known Source)
at
org.eclipse.birt.report.servlet.ViewerServlet.__getContext(U nknown So
urce)
at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doGe
t(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBas
e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(Appl
icationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationF
ilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperV
alve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextV
alve.java:175)
at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke( DefaultSu
bjectValve.java:56)
at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMet hodValve.
invoke(GeronimoStandardContext.java:358)
at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.in voke(Gero
nimoBeforeAfterValve.java:47)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.j
ava:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.j
ava:104)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineVal
ve.java:109)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa lve.java:
563)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.jav
a:261)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java
:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.proce
ss(Http11Protocol.java:581)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:44
7)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException: java.util.HashSet cannot be cast to
jav
a.lang.String
at
org.eclipse.core.runtime.adaptor.EclipseStarter.setInitialPr operties(
EclipseStarter.java:1536)
... 29 more
org.eclipse.birt.report.exception.ViewerException: Fatal error occurred when
try
to startup report engine.
at
org.eclipse.birt.report.service.ReportEngineService.setEngin eContext(
Unknown Source)
at
org.eclipse.birt.report.service.BirtViewerReportService.setC ontext(Un
known Source)
at
org.eclipse.birt.report.servlet.ViewerServlet.__getContext(U nknown So
urce)
at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doGe
t(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBas
e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(Appl
icationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationF
ilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperV
alve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextV
alve.java:175)
at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke( DefaultSu
bjectValve.java:56)
at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMet hodValve.
invoke(GeronimoStandardContext.java:358)
at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.in voke(Gero
nimoBeforeAfterValve.java:47)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.j
ava:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.j
ava:104)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineVal
ve.java:109)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa lve.java:
563)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.jav
a:261)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java
:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.proce
ss(Http11Protocol.java:581)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:44
7)
at java.lang.Thread.run(Thread.java:619)
|
|
|
Powered by
FUDForum. Page generated in 0.02831 seconds