| createFactoryObject returns null after upgrade of BIRT [message #665718] |
Fri, 15 April 2011 11:20  |
aca Missing name Messages: 35 Registered: March 2011 |
Member |
|
|
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 #915170 is a reply to message #901067] |
Sun, 16 September 2012 13:59   |
Omer Akhter Messages: 4 Registered: August 2012 |
Junior Member |
|
|
Thanks for the reply Jason.
Sorry to be this late with reply but I got around the problem. I am posting my solution here so that it might be helpful for someone else.
Yes, I verified the downloaded jars.
What I did to resolve this, however, was to copy the all the dependencies into a folder:
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>${dependency-plugin.version}</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
and then added them to classpath.
I was trying to create a single jar so that there may be no hassle in deployment/installation. But it seems to be a better solution to me since if I have a change in my code, I would need to replace my jar only.
[Updated on: Sun, 16 September 2012 14:03] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01882 seconds