Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Liferay Contributor's Agreement:
      Accept

      Description

      How to reproduce
      -----------------
      1, Create a WURFL xml file to patch existing WURLF definitions and put into $

      {liferay.home}/data/wurfl (https://github.com/liferay/liferay-plugins/blob/master/webs/wurfl-web/docroot/WEB-INF/src/portlet.properties). You can use attached wurfl-test.xml.
      2, deploy/start wurfl-web

      Workaround
      ----------
      Put the XML file into directory where you've started the tomcat process so as new File("filename.xml") can be found.

      How to fix
      ----------
      WURFLHolderImpl.java lists files from the directory and then tries to load the file by name, without correct absolute path. See https://github.com/liferay/liferay-plugins/blob/master/webs/wurfl-web/docroot/WEB-INF/src/com/liferay/portal/mobile/device/wurfl/WURFLHolderImpl.java#L153
      When creating the new File, path should also contain absolute path prefix to the ${liferay.home}

      /data/wurfl/

      Error stacktrace
      ----------------
      10:03:14,160 ERROR [SerialDestination:104] Unable to process message {destinationName=liferay/hot_deploy, response=null, responseDestinationName=null, responseId=null, payload=null, values={principalPassword=null, principalName=null, command=deploy, companyId=0, servletContextName=wurfl-web}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.io.FileNotFoundException: wurfl-test.xml (No such file or directory)
      at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:31)
      at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
      at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:101)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.io.FileNotFoundException: wurfl-test.xml (No such file or directory)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:120)
      at com.liferay.portal.mobile.device.wurfl.WURFLHolderImpl.getWURFLDatabasePatches(WURFLHolderImpl.java:159)
      at com.liferay.portal.mobile.device.wurfl.WURFLHolderImpl.initialize(WURFLHolderImpl.java:75)
      at com.liferay.portal.mobile.device.wurfl.messaging.WURFLDeploymentMessageListener.doReceive(WURFLDeploymentMessageListener.java:52)
      at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
      ... 5 more

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 30 weeks ago

                Subcomponents