| NullPointer on websphere deployment [message #508644] |
Tue, 19 January 2010 12:24  |
Missing name Missing name Messages: 94 Registered: November 2009 |
Member |
|
|
I tried deploying a report that worked in tomcat to websphere 6.1.0.9. I'm using BIRT 2.5.1 runtime. Previously we had reports deployed to the same websphere with 2.3.1 runtime. The error is as follows:
[19/01/10 17:03:31:547 GMT] 00000048 WebApp E [Servlet Error]-[Initialiser]: java.lang.NullPointerException
at org.eclipse.birt.report.model.i18n.ResourceHandle.getMessage(ResourceHandle.java:145)
at org.eclipse.birt.report.model.i18n.ThreadResources.getMessage(ThreadResources.java:131)
at org.eclipse.birt.report.model.i18n.ThreadResources.getMessage(ThreadResources.java:113)
at org.eclipse.birt.report.model.i18n.ModelMessages.getMessage(ModelMessages.java:53)
at org.eclipse.birt.report.model.metadata.Choice.getDisplayName(Choice.java:98)
at org.eclipse.birt.report.model.metadata.ChoiceSet.findChoiceByDisplayName(ChoiceSet.java:223)
at org.eclipse.birt.report.model.metadata.PropertyDefn.validateExtendedChoicesByDisplayName(PropertyDefn.java:830)
at org.eclipse.birt.report.model.metadata.PropertyDefn.validateValue(PropertyDefn.java:865)
at org.eclipse.birt.report.model.metadata.PeerExtensionLoader$PeerExtensionElementLoader.addDefaultStyleToMeta(PeerExtensionLoader.java:383)
at org.eclipse.birt.report.model.metadata.PeerExtensionLoader$PeerExtensionElementLoader.loadElement(PeerExtensionLoader.java:344)
at org.eclipse.birt.report.model.metadata.PeerExtensionLoader.loadExtension(PeerExtensionLoader.java:113)
at org.eclipse.birt.report.model.metadata.ExtensionLoader.doLoad(ExtensionLoader.java:137)
at org.eclipse.birt.report.model.metadata.PeerExtensionLoader.doLoad(PeerExtensionLoader.java:65)
at org.eclipse.birt.report.model.metadata.ExtensionLoader.load(ExtensionLoader.java:71)
at org.eclipse.birt.report.model.metadata.ExtensionManager.initialize(ExtensionManager.java:104)
at org.eclipse.birt.report.model.metadata.MetaDataDictionary.intializeExtension(MetaDataDictionary.java:1116)
at org.eclipse.birt.report.model.api.impl.DesignEngineImpl.initialize(DesignEngineImpl.java:99)
at org.eclipse.birt.report.model.api.impl.DesignEngineImpl.newSessionHandle(DesignEngineImpl.java:147)
at org.eclipse.birt.report.model.api.DesignEngine.newSessionHandle(DesignEngine.java:108)
at org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(ReportParser.java:143)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:255)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:195)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:129)
at org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java:308)
at com.fineos.reporting.birt.BirtReportManager.createDesignProperties(BirtReportManager.java:647)
at com.fineos.reporting.birt.BirtReportManager.getReportDefinition(BirtReportManager.java:610)
at com.fineos.reporting.birt.BirtReportManager.addReportDefinitionForFiles(BirtReportManager.java:547)
at com.fineos.reporting.birt.BirtReportManager.addReportCategoriesForDir(BirtReportManager.java:494)
at com.fineos.reporting.birt.BirtReportManager.addReportCategoriesForDir(BirtReportManager.java:511)
at com.fineos.reporting.birt.BIRTReportsProvider.getReports(BIRTReportsProvider.java:89)
at com.fineos.reporting.servlet.InitialiserServlet.doGet(InitialiserServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3252)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:264)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
This occurs when I try to open the report. It looks like its trying to look up a resource/message of some sort.
Is there anything special I should be doing to deploy the runtime to websphere?
thanks
[Updated on: Tue, 19 January 2010 12:25] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: NullPointer on websphere deployment [message #632305 is a reply to message #631787] |
Tue, 12 October 2010 10:14   |
Jitender Messages: 5 Registered: September 2010 |
Junior Member |
|
|
Hello Jason,
we are also facing this NPE problem, one thing I dont understand is that it was working quite fine, with our applications last build (2 weeks back) and we redeployed the application this week and all of sudden we started facing this NPE..... we are using WAS 7 and BIRT 2.5.1 runtime... and the stacktrace is:
java.lang.NullPointerException
at org.eclipse.birt.report.model.i18n.ResourceHandle.getMessage (ResourceHandle.java:145)
at org.eclipse.birt.report.model.i18n.ThreadResources.getMessag e(ThreadResources.java:131)
at org.eclipse.birt.report.model.i18n.ThreadResources.getMessag e(ThreadResources.java:113)
at org.eclipse.birt.report.model.i18n.ModelMessages.getMessage( ModelMessages.java:53)
at org.eclipse.birt.report.model.metadata.Choice.getDisplayName (Choice.java:98)
at org.eclipse.birt.report.model.metadata.ChoiceSet.findChoiceB yDisplayName(ChoiceSet.java:223)
at org.eclipse.birt.report.model.metadata.PropertyDefn.validate ExtendedChoicesByDisplayName(PropertyDefn.java:830)
at org.eclipse.birt.report.model.metadata.PropertyDefn.validate Value(PropertyDefn.java:865)
at org.eclipse.birt.report.model.metadata.PeerExtensionLoader$P eerExtensionElementLoader.addDefaultStyleToMeta(PeerExtensio nLoader.java:383)
at org.eclipse.birt.report.model.metadata.PeerExtensionLoader$P eerExtensionElementLoader.loadElement(PeerExtensionLoader.ja va:344)
at org.eclipse.birt.report.model.metadata.PeerExtensionLoader.l oadExtension(PeerExtensionLoader.java:113)
at org.eclipse.birt.report.model.metadata.ExtensionLoader.doLoa d(ExtensionLoader.java:137)
at org.eclipse.birt.report.model.metadata.PeerExtensionLoader.d oLoad(PeerExtensionLoader.java:65)
at org.eclipse.birt.report.model.metadata.ExtensionLoader.load( ExtensionLoader.java:71)
at org.eclipse.birt.report.model.metadata.ExtensionManager.init ialize(ExtensionManager.java:104)
at org.eclipse.birt.report.model.metadata.MetaDataDictionary.in tializeExtension(MetaDataDictionary.java:1116)
at org.eclipse.birt.report.model.api.impl.DesignEngineImpl.init ialize(DesignEngineImpl.java:99)
at org.eclipse.birt.report.model.api.impl.DesignEngineImpl.newS essionHandle(DesignEngineImpl.java:147)
at org.eclipse.birt.report.model.api.DesignEngine.newSessionHan dle(DesignEngine.java:108)
at org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:143)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:255)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:195)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:129)
at org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:308)
[Updated on: Tue, 12 October 2010 10:16] Report message to a moderator
|
|
|
|
|
|
| Re: NullPointer on websphere deployment [message #633030 is a reply to message #632596] |
Fri, 15 October 2010 03:31   |
Jitender Messages: 5 Registered: September 2010 |
Junior Member |
|
|
Jason,
We tried with cleaning the config area, but no relief 
by the way while debugging the NPE problem we come to the point which is causing problem, its in CachedBundles.java's populateBundle method and its throwing IOException but we are not able to figure out the reason as IOException is just ignored in the source code.
Line :- is = bundleURL.openStream( ); throwning the exception and IOException is ignored
catch ( FileNotFoundException e )
{
// just ignore
}
catch ( IOException e )
{
// just ignore.
}
Regards,
[Updated on: Fri, 15 October 2010 03:33] Report message to a moderator
|
|
|
|
|
| Re: NullPointer on websphere deployment [message #633241 is a reply to message #633240] |
Fri, 15 October 2010 15:40  |
Jason Weathersby Messages: 9167 Registered: July 2009 |
Senior Member |

|
|
Are you setting a locale? If you have debugged it to the filenotfound,
do you know what file its looking for? BTW do you have a temp directory
defined?
Jason
On 10/15/2010 3:30 PM, Jitender wrote:
> Jason,
>
> yes this is happening for all reports, and for debugging we created a
> simple design, which just has a label field nothing else even for this
> design we are getting NPE.
>
> Regards,
> Jitender
Jason Weathersby
BIRT Exchange
|
|
|
Powered by
FUDForum. Page generated in 0.02390 seconds