createFactoryObject returns null after upgrade of BIRT [message #665718] |
Fri, 15 April 2011 11:20  |
Eclipse User |
|
|
|
Hi,
After an upgrade of BIRT from version 2.2.1.1 to 2.6.2 I have a similar problem as many older bugs I've found in here. I cant find an answer that fixes my problem, though.
My problem is that I get a NullPointerException due to that the method createFactoryObject returns null.
I have verified that the engine path is correct, and that all permissions are correct. All the jar-files from the lib-library and no other are placed correctly.
Now I'm stuck on what to look at or try to make this work, and I appreciate any help on the topic!
The code that generates the nullpointer:
IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_ REPORT_ENGINE_FACTORY);
birtEngine = factory.createReportEngine(config);
The log:
java.lang.NullPointerException
at com.edb.finance.reporting.util.BirtEngine.getBirtEngine(Birt Engine.java:57)
at com.edb.finance.reporting.impl.ReportEngineServiceImpl.creat eReport(ReportEngineServiceImpl.java:147)
at com.edb.finance.salessupport.reporting.salessupport.bean.use case.SalesSupportReportingUseCaseBean.printSalesSupportRepor ts(SalesSupportReportingUseCaseBean.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBinding Impl.java:129)
at org.apache.myfaces.application.ActionListenerImpl.processAct ion(ActionListenerImpl.java:63)
at se.lf.bbp.security.authorization.jsf.AuthorizationActionList ener.processAction(AuthorizationActionListener.java:78)
at javax.faces.component.UICommand.broadcast(UICommand.java:106 )
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRo ot.java:90)
at javax.faces.component.UIViewRoot.processApplication(UIViewRo ot.java:164)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication (LifecycleImpl.java:316)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(Lifecycle Impl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:10 6)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceA ction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(S tubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStu bImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.jav a:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterCha inImpl.java:56)
at se.lf.bbp.security.AuthorizationFilter.doFilter(Authorizatio nFilter.java:168)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterCha inImpl.java:56)
at org.apache.shale.faces.ShaleApplicationFilter.doFilter(Shale ApplicationFilter.java:285)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterCha inImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvoca tionAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvoca tionAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Aut henticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityMana ger.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecut e(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAp pServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequ estImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
|
|
|
|
|
|
|
|
|
|
|
Re: createFactoryObject returns null after upgrade of BIRT [message #1624674 is a reply to message #915635] |
Thu, 19 February 2015 18:40  |
Eclipse User |
|
|
|
I am coming to this discussion a couple of years too late, but I am wondering if anyone has solved Omer's issue without the workaround?
While I appreciate the workaround, it still doesn't give me the ideal solution I would like of having a single deployable jar with my application in it.
I am using org.eclipse.birt.runtime version 4.4.1 and Eclipse Luna and am having the same exact issue.
The code runs fine in eclipse, but I get an NPE on createFactoryObject when I create a jar with dependencies using the maven-assembly-plugin.
BTW, my pom is essentially the same as Omer's except I have some other dependencies for other aspects of my application.
Finally, I am sorry for re-animating an apparent zombie thread, but I could not find anywhere else but here that this specific problem was mentioned.
|
|
|
Powered by
FUDForum. Page generated in 0.04387 seconds