Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Liferay Contributor's Agreement:
      Accept
    • Similar Issues:
      Show 5 results 

      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

      1. wurfl-test.xml
        0.3 kB
        Tomáš Polešovský

        Activity

        Hide
        azzazzel Milen Dyankov added a comment -

        Added the missing path to WURFL patch files. It would be nice to have this merged to 6.1.x branch as well. Should not introduce any conflicts.

        Show
        azzazzel Milen Dyankov added a comment - Added the missing path to WURFL patch files. It would be nice to have this merged to 6.1.x branch as well. Should not introduce any conflicts.
        Hide
        michael.saechang Michael Saechang added a comment - - edited

        Committed on:
        Plugins 6.2.x GIT ID: 1e86182efece636b344144f26eadf5d9d142d30e.

        Show
        michael.saechang Michael Saechang added a comment - - edited Committed on: Plugins 6.2.x GIT ID: 1e86182efece636b344144f26eadf5d9d142d30e.
        Hide
        paul.piao Paul Piao (Inactive) added a comment -

        PASSED Manual Testing following the steps in the description.

        Reproduced on:
        Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

        You can see the description error message in console.

        Fixed on:
        Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 2c152d9937caab967b8183fe0c4a9062aba61ac1.
        Plugins 6.1.x EE GIT ID: 58217456efc138b3bf418d8619f246c790864577.
        Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 2e99791f6ea1b1c1f74769e79e979ced15eda990.
        Plugins 6.2.x GIT ID: 1e86182efece636b344144f26eadf5d9d142d30e.

        The console dose not throw error message.

        Show
        paul.piao Paul Piao (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. You can see the description error message in console. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 2c152d9937caab967b8183fe0c4a9062aba61ac1. Plugins 6.1.x EE GIT ID: 58217456efc138b3bf418d8619f246c790864577. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 2e99791f6ea1b1c1f74769e79e979ced15eda990. Plugins 6.2.x GIT ID: 1e86182efece636b344144f26eadf5d9d142d30e. The console dose not throw error message.
        Hide
        michael.saechang Michael Saechang added a comment -

        Thank you Paul for testing. Closing as 'Fixed'.

        Show
        michael.saechang Michael Saechang added a comment - Thank you Paul for testing. Closing as 'Fixed'.

          People

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

            Dates

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

              Development

                Subcomponents

                  Structure Helper Panel