Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-86836

Portal startup with error in the folder with special characters, log files missing

    Details

      Description

      Steps to Reproduce:

      1. Add a special character in file path of liferay home, for example, "master&20181031".
      2. Start bundle.

      Expected result:
      Portal start without error.

      Actual result:
      Portal startup with error. And you cannot find log files.

      log4j:WARN Fatal parsing error 13 and column 74
      log4j:WARN The entity name must immediately follow the '&' in the entity reference.
      log4j:ERROR Could not parse reader [com.liferay.portal.kernel.io.unsync.UnsyncStringReader@53b8afea].
      org.xml.sax.SAXParseException; systemId: dummy://log4j.dtd; lineNumber: 13; columnNumber: 74; The entity name must immediately follow the '&' in the entity reference.
              at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
              at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
              at org.apache.log4j.xml.DOMConfigurator$4.parse(DOMConfigurator.java:814)
              at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871)
              at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:820)
              at com.liferay.petra.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:97)
              at com.liferay.petra.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:62)
              at com.liferay.portal.util.InitUtil.init(InitUtil.java:139)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:214)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5109)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1840)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:525)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
              at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
              at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
              at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:966)
              at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
              at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      07:10:09,386 ERROR [root:143] org.dom4j.DocumentException: Error on line 13 of document jar:file:/D:/test/Portaltest/master/master&20181031/tomcat-9.0.10/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/META-INF/portal-log4j.xml : The entity name must immediately follow the '&' in the entity reference. Nested exception: The entity name must immediately follow the '&' in the entity reference.
      org.dom4j.DocumentException: Error on line 13 of document jar:file:/D:/test/Portaltest/master/master&20181031/tomcat-9.0.10/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/META-INF/portal-log4j.xml : The entity name must immediately follow the '&' in the entity reference. Nested exception: The entity name must immediately follow the '&' in the entity reference.
              at org.dom4j.io.SAXReader.read(SAXReader.java:482)
              at org.dom4j.io.SAXReader.read(SAXReader.java:417)
              at com.liferay.petra.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:122)
              at com.liferay.petra.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:62)
              at com.liferay.portal.util.InitUtil.init(InitUtil.java:139)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:214)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5109)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1840)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:525)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
              at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
              at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
              at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:966)
              at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
              at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      Nested exception:
      org.xml.sax.SAXParseException; systemId: jar:file:/D:/test/Portaltest/master/master&20181031/tomcat-9.0.10/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/META-INF/portal-log4j.xml; lineNumber: 13; columnNumber: 74; The entity name must immediately follow the '&' in the entity reference.
              at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
              at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
              at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
              at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
              at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown Source)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown Source)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
              at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
              at org.dom4j.io.SAXReader.read(SAXReader.java:465)
              at org.dom4j.io.SAXReader.read(SAXReader.java:417)
              at com.liferay.petra.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:122)
              at com.liferay.petra.log4j.Log4JUtil.configureLog4J(Log4JUtil.java:62)
              at com.liferay.portal.util.InitUtil.init(InitUtil.java:139)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:214)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5109)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1840)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:525)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
              at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
              at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
              at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:966)
              at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
              at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      

        Attachments

          Activity

            People

            • Assignee:
              harry.chai Harry Chai
              Reporter:
              harry.chai Harry Chai
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 28 weeks, 3 days ago

                Packages

                Version Package
                7.1.10 DXP FP6
                7.1.10.2 SP2
                7.1.3 CE GA4
                Master