[opencms-dev] OpenCMS already initialised
Matthias Griselle
mgriselle at gmail.com
Fri May 30 15:51:24 CEST 2014
Hi,
When are you importing your modules ? Is it during installation or from the
workplace ?
I often had this CmsException (trying tricks) but never the
NullPointerException you have. That's why I think it's
the NullPointerException which creates the 'fake' CmsException.
But I have no idea why you get this NullPointerException. ^^'
Good luck !
2014-05-26 23:10 GMT+02:00 Sudheendra Singh <sudheendra.n.singh at gmail.com>:
> Hi,
> I am recreating my Glassfish domain and deploying the OpenCMS again, but
> it gives a Null Pointer exception in import modules page as shown below
>
>
> 17: at
> org.opencms.setup.CmsSetupWorkplaceImportThread.kill(CmsSetupWorkplaceImportThread.java:110)
> 16: at org.opencms.main.CmsShell.exit(CmsShell.java:577)
> 15: java.lang.NullPointerException
> 14: at
> org.opencms.setup.CmsSetupWorkplaceImportThread.run(CmsSetupWorkplaceImportThread.java:202)
> 13: at
> org.opencms.setup.CmsSetupWorkplaceImportThread.kill(CmsSetupWorkplaceImportThread.java:110)
> 12: at org.opencms.main.CmsShell.exit(CmsShell.java:571)
> 11: java.lang.NullPointerException
> 10: at
> org.opencms.setup.CmsSetupWorkplaceImportThread.run(CmsSetupWorkplaceImportThread.java:187)
> 9: at org.opencms.main.CmsShell.start(CmsShell.java:663)
> 8: at org.opencms.main.CmsShell.executeCommands(CmsShell.java:835)
> 7: at org.opencms.main.CmsShell.executeCommand(CmsShell.java:760)
> 6: ${user}@${project}>java.lang.NullPointerException
> 5: ${user}@${project}># Turn echo on
> 4: at
> org.opencms.setup.CmsSetupWorkplaceImportThread.run(CmsSetupWorkplaceImportThread.java:148)
> 3: at org.opencms.main.CmsShell.<init>(CmsShell.java:411)
> 2: at org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:297)
> 1: org.opencms.main.CmsInitException: OpenCms is already initialized!
>
> When I check the opencms.log, I see the following errors
>
>
> 26 May 2014 21:08:17,073 ERROR [g.opencms.main.OpenCmsListener: 83]
> Critical error during OpenCms initialization: The OpenCms setup wizard is
> still enabled.
> org.opencms.main.CmsInitException: Critical error during OpenCms
> initialization: The OpenCms setup wizard is still enabled.
> at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1284)
> at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1855)
> at
> org.opencms.main.OpenCmsListener.contextInitialized(OpenCmsListener.java:79)
> at
> org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4750)
> at
> com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:550)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5366)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
> at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
> at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
> at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
> at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> at
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> at
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> at
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:864)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:761)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1050)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
> at java.lang.Thread.run(Thread.java:745)
> 26 May 2014 21:08:17,086 INFO [.opencms.i18n.CmsLocaleManager: 330] .
> i18n configuration : the JVM default locale is "en"
> 26 May 2014 21:08:17,087 INFO [ org.opencms.main.OpenCmsCore:2452] .
> Runlevel change : Switching from 1 to 2
> 26 May 2014 21:08:17,088 ERROR [ org.opencms.main.OpenCmsCore: 327]
> Critical error during OpenCms initialization: The OpenCms setup wizard is
> still enabled.
> org.opencms.main.CmsException: Critical error during OpenCms
> initialization: The OpenCms setup wizard is still enabled.
> at org.opencms.main.OpenCmsCore.setErrorCondition(OpenCmsCore.java:327)
> at
> org.opencms.main.CmsInitException.setErrorCondition(CmsInitException.java:113)
> at org.opencms.main.CmsInitException.<init>(CmsInitException.java:70)
> at org.opencms.main.CmsInitException.<init>(CmsInitException.java:56)
> at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1284)
> at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1855)
> at org.opencms.main.OpenCmsServlet.init(OpenCmsServlet.java:241)
> at
> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1453)
> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1250)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5093)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5380)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
> at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
> at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
> at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
> at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> at
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> at
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> at
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:864)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:761)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1050)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
> at java.lang.Thread.run(Thread.java:745)
> 26 May 2014 21:08:17,089 ERROR [rg.opencms.main.OpenCmsServlet: 253] A
> Java system error occurred.
> org.opencms.main.CmsInitException: Critical error during OpenCms
> initialization: The OpenCms setup wizard is still enabled.
> at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1284)
> at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1855)
> at org.opencms.main.OpenCmsServlet.init(OpenCmsServlet.java:241)
> at
> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1453)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1250)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5093)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5380)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
> at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
> at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
> at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
> at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> at
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
> at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
> at
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
> at
> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:864)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:761)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1050)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
> at java.lang.Thread.run(Thread.java:745)
> 26 May 2014 21:08:32,748 INFO [.opencms.i18n.CmsLocaleManager: 330] .
> i18n configuration : the JVM default locale is "en"
> 26 May 2014 21:08:32,750 ERROR [ org.opencms.main.OpenCmsCore: 327]
> OpenCms is already initialized!
> org.opencms.main.CmsException: OpenCms is already initialized!
> at org.opencms.main.OpenCmsCore.setErrorCondition(OpenCmsCore.java:327)
> at
> org.opencms.main.CmsInitException.setErrorCondition(CmsInitException.java:113)
> at org.opencms.main.CmsInitException.<init>(CmsInitException.java:70)
> at org.opencms.main.CmsInitException.<init>(CmsInitException.java:56)
> at org.opencms.main.OpenCmsCore.<init>(OpenCmsCore.java:280)
> at org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:302)
> at
> org.opencms.main.OpenCmsServletErrorHandler.doGet(OpenCmsServletErrorHandler.java:72)
> at javax.servlet.http.HttpServlet.doHead(HttpServlet.java:292)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:685)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1554)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:809)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:670)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:508)
> at
> org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:479)
> at
> org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:355)
> at
> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:474)
> at
> org.apache.catalina.core.StandardHostValve.dispatchToErrorPage(StandardHostValve.java:671)
> at
> org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:358)
> at
> org.apache.catalina.core.StandardHostValve.postInvoke(StandardHostValve.java:221)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:333)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:864)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:761)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1050)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
> at java.lang.Thread.run(Thread.java:745)
>
>
> When I set the wizard.enabled=false and retry, I still get the error
> saying
>
> org.opencms.main.CmsException: OpenCms is already initialized!
>
> Any pointers will be helpful.
>
> --
> Regards,
> Sudheendra.N.Singh
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140530/6d264b32/attachment.htm>
More information about the opencms-dev
mailing list