[MAGNOLIA-8264] Public instance is not starting and giving respository exception Created: 21/Dec/21  Updated: 21/Dec/21  Resolved: 21/Dec/21

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Urgent
Reporter: Sai Chaitanaya Krishna Reddy Assignee: Unassigned
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

MAGNOLIA LICENSE

---------------------------------------------
Version number : 6.1.4
Core version   : 6.1.4
Build          : 19. December 2019 (rev. 8baac33d0c53b5df0576769555e6431cf46a2df3 of UNKNOWN)
Edition        : Community Edition
Provider       : Magnolia International Ltd. (info@magnolia-cms.com)
2021-12-21 08:35:07,248 INFO  info.magnolia.cms.beans.config.ConfigLoader       : Initializing content repositories
2021-12-21 08:35:07,250 INFO  info.magnolia.repository.DefaultRepositoryManager : Loading JCR
2021-12-21 08:35:07,273 WARN  info.magnolia.repository.DefaultRepositoryManager : Please remove mgnlSystem workspace definition from the repositories.xml configuration, this workspace is created automatically for each repository thus does not need to be specified in the configuration file.
2021-12-21 08:35:07,282 WARN  info.magnolia.repository.DefaultRepositoryManager : Please remove mgnlVersion workspace definition from the repositories.xml configuration, this workspace is created automatically for each repository thus does not need to be specified in the configuration file.
2021-12-21 08:35:07,284 INFO  info.magnolia.repository.DefaultRepositoryManager : Loading JCR magnolia
2021-12-21 08:35:07,356 INFO  info.magnolia.jackrabbit.ProviderImpl             : Loading repository at /public_master/repositories/magnolia (config file: /usr/local/tomcat/webapps/ROOT/WEB-INF/config/repo-conf/test-public-masters-mysql.xml) - cluster id: "test_public_master"
[Fatal Error] :1:1: Premature end of file.
2021-12-21 08:35:08,203 ERROR org.apache.jackrabbit.core.RepositoryImpl         : failed to start Repository: internal error: failed to read custom node type definitions stored in /nodetypes/custom_nodetypes.xml
javax.jcr.RepositoryException: internal error: failed to read custom node type definitions stored in /nodetypes/custom_nodetypes.xml
        at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.loadCustomNodeTypeDefs(NodeTypeRegistry.java:851) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.<init>(NodeTypeRegistry.java:763) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.RepositoryImpl.createNodeTypeRegistry(RepositoryImpl.java:412) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:275) [jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:616) [jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.jndi.BindableRepository.createRepository(BindableRepository.java:141) [jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:117) [jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.jndi.BindableRepository.<init>(BindableRepository.java:106) [jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.jndi.BindableRepositoryFactory.getObjectInstance(BindableRepositoryFactory.java:52) [jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.jndi.RegistryHelper.registerRepository(RegistryHelper.java:74) [jackrabbit-core-2.18.1.jar:2.18.1]
        at info.magnolia.jackrabbit.ProviderImpl.init(ProviderImpl.java:240) [magnolia-core-6.1.4.jar:?]
        at info.magnolia.repository.DefaultRepositoryManager.loadRepository(DefaultRepositoryManager.java:259) [magnolia-core-6.1.4.jar:?]
        at info.magnolia.repository.DefaultRepositoryManager.loadRepositories(DefaultRepositoryManager.java:222) [magnolia-core-6.1.4.jar:?]
        at info.magnolia.repository.DefaultRepositoryManager.init(DefaultRepositoryManager.java:121) [magnolia-core-6.1.4.jar:?]
        at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:136) [magnolia-core-6.1.4.jar:?]
        at info.magnolia.init.MagnoliaServletContextListener$1.doExec(MagnoliaServletContextListener.java:259) [magnolia-core-6.1.4.jar:?]
        at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:407) [magnolia-core-6.1.4.jar:?]
        at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:404) [magnolia-core-6.1.4.jar:?]
        at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:378) [magnolia-core-6.1.4.jar:?]
        at info.magnolia.init.MagnoliaServletContextListener.startServer(MagnoliaServletContextListener.java:256) [magnolia-core-6.1.4.jar:?]
        at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:182) [magnolia-core-6.1.4.jar:?]
        at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:128) [magnolia-core-6.1.4.jar:?]
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) [catalina.jar:8.5.73]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) [catalina.jar:8.5.73]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:8.5.73]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) [catalina.jar:8.5.73]
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727) [catalina.jar:8.5.73]
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695) [catalina.jar:8.5.73]
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1016) [catalina.jar:8.5.73]
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903) [catalina.jar:8.5.73]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_312]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_312]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_312]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_312]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]
Caused by: java.io.IOException: Premature end of file.
        at org.apache.jackrabbit.core.util.DOMWalker.<init>(DOMWalker.java:65) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.nodetype.xml.NodeTypeReader.<init>(NodeTypeReader.java:108) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.nodetype.xml.NodeTypeReader.read(NodeTypeReader.java:77) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.nodetype.NodeTypeDefStore.load(NodeTypeDefStore.java:63) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.loadCustomNodeTypeDefs(NodeTypeRegistry.java:845) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        ... 34 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257) ~[?:1.8.0_312]
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339) ~[?:1.8.0_312]
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) ~[?:1.8.0_312]
        at org.apache.jackrabbit.core.util.DOMWalker.<init>(DOMWalker.java:60) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.nodetype.xml.NodeTypeReader.<init>(NodeTypeReader.java:108) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.nodetype.xml.NodeTypeReader.read(NodeTypeReader.java:77) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.nodetype.NodeTypeDefStore.load(NodeTypeDefStore.java:63) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.loadCustomNodeTypeDefs(NodeTypeRegistry.java:845) ~[jackrabbit-core-2.18.1.jar:2.18.1]
        ... 34 more
2021-12-21 08:35:08,234 ERROR org.apache.jackrabbit.core.RepositoryImpl         : In addition to startup fail, another unexpected problem occurred while shutting down the repository again.
java.lang.NullPointerException: null
        at org.apache.jackrabbit.core.RepositoryImpl.doShutdown(RepositoryImpl.java:1157) ~[jackrabbit-core-2.18.1.jar:2.18.1]



 Comments   
Comment by Sai Chaitanaya Krishna Reddy [ 21/Dec/21 ]

Hi All, Please let me know what is going wrong in the startup please

Comment by Mercedes Iruela [ 21/Dec/21 ]

custom_nodetypes.xml file seems to be corrupted. You can try to check that everything is correct in the file and if it seems correct try to delete it and let jackrabbit create the file again during the start (it is recommended to have a backup of the content in case the instance needs to be restored.)

I am closing this ticket since this channel is aimed for reporting bugs in the product. To get support about your instance error, as a community user, you can still get some help from the community by posting your issue on the forum.

Generated at Mon Feb 12 04:31:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.