NPE initializing EngineExtensionManager (BirtViewer) [message #731362] |
Fri, 30 September 2011 13:48  |
Eclipse User |
|
|
|
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 #731985 is a reply to message #731933] |
Mon, 03 October 2011 11:06   |
Eclipse User |
|
|
|
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 14:08  |
Eclipse User |
|
|
|
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)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06132 seconds