Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » NPE initializing EngineExtensionManager (BirtViewer)
NPE initializing EngineExtensionManager (BirtViewer) [message #731362] Fri, 30 September 2011 17:48 Go to next message
Eclipse UserFriend
Originally posted by: Donkey Hottie

IExtensionRegistry registry = Platform.getExtensionRegistry( );
IExtensionPoint extensionPoint = registry
.getExtensionPoint( "org.eclipse.birt.core.FactoryService" );

This seems to throw a NPE sometimes. Apparently the registry is null!
With sometimes I mean following.

I have two machines, development and production. Both run JBoss 5.1.0
with Liferay 6.0.6 Portal. The production machine works fine, but
development machine fails when deploying BIRT Viewer.

Same thing with 3.7.0 and 3.7.1.

I'm not sure if this is a bug or not. Maybe the dev machine has
something wrong. The birt.war in both is exactly same copy.

What might cause this?


20:13:44,198 ERROR [[/birt]] Exception sending context initialized event
to listener instance of class
org.eclipse.birt.report.listener.ViewerServletContextListener
java.lang.NullPointerException
at
org.eclipse.birt.report.engine.api.impl.ReportEngine$EngineExtensionManager.<init>(ReportEngine.java:819)
at
org.eclipse.birt.report.engine.api.impl.ReportEngine.<init>(ReportEngine.java:111)
at
org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:18)
at
org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.birt.report.engine.api.impl.ReportEngineFactory.createReportEngine(ReportEngineFactory.java:14)
at
org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:336)
at
org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1022)
at
org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:62)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
at
org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at
org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy38.start(Unknown Source)
at
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)


--

The devil can cite Scripture for his purpose.
-- William Shakespeare, "The Merchant of Venice"
Re: NPE initializing EngineExtensionManager (BirtViewer) [message #731392 is a reply to message #731362] Fri, 30 September 2011 19:52 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Are you are copying the WebViewerExample directory to the JBoss default
deploy directory, and renaming it to birt.war?

Jason


On 9/30/2011 1:48 PM, Donkey Hottie wrote:
>
> IExtensionRegistry registry = Platform.getExtensionRegistry( );
> IExtensionPoint extensionPoint = registry
> .getExtensionPoint( "org.eclipse.birt.core.FactoryService" );
>
> This seems to throw a NPE sometimes. Apparently the registry is null!
> With sometimes I mean following.
>
> I have two machines, development and production. Both run JBoss 5.1.0
> with Liferay 6.0.6 Portal. The production machine works fine, but
> development machine fails when deploying BIRT Viewer.
>
> Same thing with 3.7.0 and 3.7.1.
>
> I'm not sure if this is a bug or not. Maybe the dev machine has
> something wrong. The birt.war in both is exactly same copy.
>
> What might cause this?
>
>
> 20:13:44,198 ERROR [[/birt]] Exception sending context initialized event
> to listener instance of class
> org.eclipse.birt.report.listener.ViewerServletContextListener
> java.lang.NullPointerException
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngine$EngineExtensionManager.<init>(ReportEngine.java:819)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngine.<init>(ReportEngine.java:111)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:18)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:1)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory.createReportEngine(ReportEngineFactory.java:14)
> at
> org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:336)
> at
> org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1022)
> at
> org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:62)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
> at
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
> at
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
> at
> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
> at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> at
> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
> at $Proxy38.start(Unknown Source)
> at
> org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
>
>
Re: NPE initializing EngineExtensionManager (BirtViewer) [message #731553 is a reply to message #731392] Sat, 01 October 2011 17:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Donkey Hottie

30.9.2011 22:52, Jason Weathersby kirjoitti:
> Are you are copying the WebViewerExample directory to the JBoss default
> deploy directory, and renaming it to birt.war?
>
> Jason

No. I'm zipping the WebViewerExample directory to birt.war, and dropping
that to Liferay's proprietary deploy directory. It expands the war and
modifies the web.xml a little.


>
>
> On 9/30/2011 1:48 PM, Donkey Hottie wrote:
>>
>> IExtensionRegistry registry = Platform.getExtensionRegistry( );
>> IExtensionPoint extensionPoint = registry
>> .getExtensionPoint( "org.eclipse.birt.core.FactoryService" );
>>
>> This seems to throw a NPE sometimes. Apparently the registry is null!
>> With sometimes I mean following.
>>
>> I have two machines, development and production. Both run JBoss 5.1.0
>> with Liferay 6.0.6 Portal. The production machine works fine, but
>> development machine fails when deploying BIRT Viewer.
>>
>> Same thing with 3.7.0 and 3.7.1.
>>
>> I'm not sure if this is a bug or not. Maybe the dev machine has
>> something wrong. The birt.war in both is exactly same copy.
>>
>> What might cause this?
>>
>>
>> 20:13:44,198 ERROR [[/birt]] Exception sending context initialized event
>> to listener instance of class
>> org.eclipse.birt.report.listener.ViewerServletContextListener
>> java.lang.NullPointerException
>> at
>> org.eclipse.birt.report.engine.api.impl.ReportEngine$EngineExtensionManager.<init>(ReportEngine.java:819)
>>
>> at
>> org.eclipse.birt.report.engine.api.impl.ReportEngine.<init>(ReportEngine.java:111)
>>
>> at
>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:18)
>>
>> at
>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:1)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory.createReportEngine(ReportEngineFactory.java:14)
>>
>> at
>> org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:336)
>>
>> at
>> org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1022)
>>
>> at
>> org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:62)
>>
>> at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
>>
>> at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
>> at
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>
>> at
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>
>> at
>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>
>> at
>> org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>> at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>
>> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>> at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>
>> at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>> at
>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>
>> at $Proxy38.start(Unknown Source)
>> at
>> org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
>>
>>
>>
>


--

You are a fluke of the universe; you have no right to be here.
Re: NPE initializing EngineExtensionManager (BirtViewer) [message #731933 is a reply to message #731553] Mon, 03 October 2011 14:00 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Do you have the same common app server jars in both the dev and
production machines? Do you get this error running a report or just
bringing up the index page?

Jason

On 10/1/2011 1:38 PM, Donkey Hottie wrote:
> 30.9.2011 22:52, Jason Weathersby kirjoitti:
>> Are you are copying the WebViewerExample directory to the JBoss default
>> deploy directory, and renaming it to birt.war?
>>
>> Jason
>
> No. I'm zipping the WebViewerExample directory to birt.war, and dropping
> that to Liferay's proprietary deploy directory. It expands the war and
> modifies the web.xml a little.
>
>
>>
>>
>> On 9/30/2011 1:48 PM, Donkey Hottie wrote:
>>>
>>> IExtensionRegistry registry = Platform.getExtensionRegistry( );
>>> IExtensionPoint extensionPoint = registry
>>> .getExtensionPoint( "org.eclipse.birt.core.FactoryService" );
>>>
>>> This seems to throw a NPE sometimes. Apparently the registry is null!
>>> With sometimes I mean following.
>>>
>>> I have two machines, development and production. Both run JBoss 5.1.0
>>> with Liferay 6.0.6 Portal. The production machine works fine, but
>>> development machine fails when deploying BIRT Viewer.
>>>
>>> Same thing with 3.7.0 and 3.7.1.
>>>
>>> I'm not sure if this is a bug or not. Maybe the dev machine has
>>> something wrong. The birt.war in both is exactly same copy.
>>>
>>> What might cause this?
>>>
>>>
>>> 20:13:44,198 ERROR [[/birt]] Exception sending context initialized event
>>> to listener instance of class
>>> org.eclipse.birt.report.listener.ViewerServletContextListener
>>> java.lang.NullPointerException
>>> at
>>> org.eclipse.birt.report.engine.api.impl.ReportEngine$EngineExtensionManager.<init>(ReportEngine.java:819)
>>>
>>> at
>>> org.eclipse.birt.report.engine.api.impl.ReportEngine.<init>(ReportEngine.java:111)
>>>
>>> at
>>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:18)
>>>
>>> at
>>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:1)
>>>
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory.createReportEngine(ReportEngineFactory.java:14)
>>>
>>> at
>>> org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:336)
>>>
>>> at
>>> org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1022)
>>>
>>> at
>>> org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:62)
>>>
>>> at
>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
>>>
>>> at
>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
>>> at
>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>
>>> at
>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>
>>> at
>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>
>>> at
>>> org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>> at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at
>>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>>
>>> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>> at
>>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>>
>>> at
>>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>> at
>>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>>
>>> at $Proxy38.start(Unknown Source)
>>> at
>>> org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
>>>
>>>
>>>
>>
>
>
Re: NPE initializing EngineExtensionManager (BirtViewer) [message #731985 is a reply to message #731933] Mon, 03 October 2011 15:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Donkey Hottie

3.10.2011 17:00, Jason Weathersby kirjoitti:
> Do you have the same common app server jars in both the dev and
> production machines? Do you get this error running a report or just
> bringing up the index page?
>
> Jason

They should be identical installations. The error happens when deploying
the war, or starting the AS. Running a report then says that there is
not /birt. It does not deploy.

>
> On 10/1/2011 1:38 PM, Donkey Hottie wrote:
>> 30.9.2011 22:52, Jason Weathersby kirjoitti:
>>> Are you are copying the WebViewerExample directory to the JBoss default
>>> deploy directory, and renaming it to birt.war?
>>>
>>> Jason
>>
>> No. I'm zipping the WebViewerExample directory to birt.war, and dropping
>> that to Liferay's proprietary deploy directory. It expands the war and
>> modifies the web.xml a little.
>>
>>
>>>
>>>
>>> On 9/30/2011 1:48 PM, Donkey Hottie wrote:
>>>>
>>>> IExtensionRegistry registry = Platform.getExtensionRegistry( );
>>>> IExtensionPoint extensionPoint = registry
>>>> .getExtensionPoint( "org.eclipse.birt.core.FactoryService" );
>>>>
>>>> This seems to throw a NPE sometimes. Apparently the registry is null!
>>>> With sometimes I mean following.
>>>>
>>>> I have two machines, development and production. Both run JBoss 5.1.0
>>>> with Liferay 6.0.6 Portal. The production machine works fine, but
>>>> development machine fails when deploying BIRT Viewer.
>>>>
>>>> Same thing with 3.7.0 and 3.7.1.
>>>>
>>>> I'm not sure if this is a bug or not. Maybe the dev machine has
>>>> something wrong. The birt.war in both is exactly same copy.
>>>>
>>>> What might cause this?
>>>>
>>>>
>>>> 20:13:44,198 ERROR [[/birt]] Exception sending context initialized
>>>> event
>>>> to listener instance of class
>>>> org.eclipse.birt.report.listener.ViewerServletContextListener
>>>> java.lang.NullPointerException
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.ReportEngine$EngineExtensionManager.<init>(ReportEngine.java:819)
>>>>
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.ReportEngine.<init>(ReportEngine.java:111)
>>>>
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:18)
>>>>
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:1)
>>>>
>>>>
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory.createReportEngine(ReportEngineFactory.java:14)
>>>>
>>>>
>>>> at
>>>> org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:336)
>>>>
>>>>
>>>> at
>>>> org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1022)
>>>>
>>>>
>>>> at
>>>> org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:62)
>>>>
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
>>>>
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
>>>>
>>>> at
>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>
>>>>
>>>> at
>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>
>>>>
>>>> at
>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>
>>>>
>>>> at
>>>> org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>> at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>> Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>
>>>>
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>
>>>>
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>> at
>>>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>>>
>>>>
>>>> at
>>>> org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>>> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>>> at
>>>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>>>
>>>>
>>>> at
>>>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>>> at
>>>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>>>
>>>>
>>>> at $Proxy38.start(Unknown Source)
>>>> at
>>>> org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>


--

Your aim is high and to the right.
Re: NPE initializing EngineExtensionManager (BirtViewer) [message #732030 is a reply to message #731985] Mon, 03 October 2011 18:08 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You may need to log a bug for this. I have not seen this error. You
may also want to see if deploying the viewer to JBoss manually works as
a test.

Jason

On 10/3/2011 11:06 AM, Donkey Hottie wrote:
> 3.10.2011 17:00, Jason Weathersby kirjoitti:
>> Do you have the same common app server jars in both the dev and
>> production machines? Do you get this error running a report or just
>> bringing up the index page?
>>
>> Jason
>
> They should be identical installations. The error happens when deploying
> the war, or starting the AS. Running a report then says that there is
> not /birt. It does not deploy.
>
>>
>> On 10/1/2011 1:38 PM, Donkey Hottie wrote:
>>> 30.9.2011 22:52, Jason Weathersby kirjoitti:
>>>> Are you are copying the WebViewerExample directory to the JBoss default
>>>> deploy directory, and renaming it to birt.war?
>>>>
>>>> Jason
>>>
>>> No. I'm zipping the WebViewerExample directory to birt.war, and dropping
>>> that to Liferay's proprietary deploy directory. It expands the war and
>>> modifies the web.xml a little.
>>>
>>>
>>>>
>>>>
>>>> On 9/30/2011 1:48 PM, Donkey Hottie wrote:
>>>>>
>>>>> IExtensionRegistry registry = Platform.getExtensionRegistry( );
>>>>> IExtensionPoint extensionPoint = registry
>>>>> .getExtensionPoint( "org.eclipse.birt.core.FactoryService" );
>>>>>
>>>>> This seems to throw a NPE sometimes. Apparently the registry is null!
>>>>> With sometimes I mean following.
>>>>>
>>>>> I have two machines, development and production. Both run JBoss 5.1.0
>>>>> with Liferay 6.0.6 Portal. The production machine works fine, but
>>>>> development machine fails when deploying BIRT Viewer.
>>>>>
>>>>> Same thing with 3.7.0 and 3.7.1.
>>>>>
>>>>> I'm not sure if this is a bug or not. Maybe the dev machine has
>>>>> something wrong. The birt.war in both is exactly same copy.
>>>>>
>>>>> What might cause this?
>>>>>
>>>>>
>>>>> 20:13:44,198 ERROR [[/birt]] Exception sending context initialized
>>>>> event
>>>>> to listener instance of class
>>>>> org.eclipse.birt.report.listener.ViewerServletContextListener
>>>>> java.lang.NullPointerException
>>>>> at
>>>>> org.eclipse.birt.report.engine.api.impl.ReportEngine$EngineExtensionManager.<init>(ReportEngine.java:819)
>>>>>
>>>>>
>>>>> at
>>>>> org.eclipse.birt.report.engine.api.impl.ReportEngine.<init>(ReportEngine.java:111)
>>>>>
>>>>>
>>>>> at
>>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:18)
>>>>>
>>>>>
>>>>> at
>>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:1)
>>>>>
>>>>>
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>> at
>>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineFactory.createReportEngine(ReportEngineFactory.java:14)
>>>>>
>>>>>
>>>>> at
>>>>> org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:336)
>>>>>
>>>>>
>>>>> at
>>>>> org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1022)
>>>>>
>>>>>
>>>>> at
>>>>> org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:62)
>>>>>
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
>>>>>
>>>>>
>>>>> at
>>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
>>>>>
>>>>> at
>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>>
>>>>>
>>>>> at
>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>>
>>>>>
>>>>> at
>>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>>
>>>>>
>>>>> at
>>>>> org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>> at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>> Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>
>>>>>
>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>> at
>>>>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>>>>
>>>>>
>>>>> at
>>>>> org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>>>> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>>>> at
>>>>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>>>>
>>>>>
>>>>> at
>>>>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>>>> at
>>>>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>>>>
>>>>>
>>>>> at $Proxy38.start(Unknown Source)
>>>>> at
>>>>> org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>
Previous Topic:BIRT Eclipse workspace is hanging, not responding
Next Topic:Missing ; before statement
Goto Forum:
  


Current Time: Fri Sep 20 17:27:44 GMT 2024

Powered by FUDForum. Page generated in 0.04380 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top