Uploaded image for project: 'PUBLIC - Liferay Social Office Community Edition'
  1. PUBLIC - Liferay Social Office Community Edition
  2. SOS-1495

Private Messaging portlet fails to compile in 6.1.20

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 2.0.3 EE
    • Fix Version/s: 2.0.3 EE
    • Labels:
      None
    • Environment:
      Tomcat 7.0.27 + MySQL 5. Portal 6.1.20 GIT ID: 4e1d93ece1028e812354ee21646498261b3dc5f3.
      Plugins 6.1.20 GIT ID: 098cae39a36209cd6a59aaec21967a2a27d4a13f.

      Description

      This occurs in 6.1.20. I was unable to reproduce in trunk or 6.1.x EE.

      Steps to reproduce:

      1. compile the private-messaging-portlet
        • The following compile error will display
      D:\git\private\ee-6.1.20-plugins\portlets\private-messaging-portlet>ant all
      Buildfile: D:\git\private\ee-6.1.20-plugins\portlets\private-messaging-portlet\build.xml
      
      all:
      
      clean:
      
      clean-portal-dependencies:
      
      compile:
      
      merge:
          [mkdir] Created dir: D:\git\private\ee-6.1.20-plugins\portlets\private-messaging-portlet\docroot\WEB-INF\classes
           [copy] Copying 3 files to D:\git\private\ee-6.1.20-plugins\portlets\private-messaging-portlet\docroot\WEB-INF\lib
           [copy] Copying 1 file to D:\git\private\ee-6.1.20-plugins\portlets\private-messaging-portlet\docroot\WEB-INF\tld
           [copy] Copying 5 files to D:\git\private\ee-6.1.20-plugins\portlets\private-messaging-portlet\docroot\WEB-INF\lib
      
      compile-java:
           [copy] Copying 60 files to D:\git\private\ee-6.1.20-plugins\portlets\private-messaging-portlet\docroot\WEB-INF\classes
           [copy] Copied 18 empty directories to 11 empty directories under D:\git\private\ee-6.1.20-plugins\portlets\private-messaging-portlet\docroot\WEB-INF\classes
          [javac] Compiling 17 source files to D:\git\private\ee-6.1.20-plugins\portlets\private-messaging-portlet\docroot\WEB-INF\classes
          [javac] ----------
          [javac] 1. ERROR in D:\git\private\ee-6.1.20-plugins\portlets\private-messaging-portlet\docroot\WEB-INF\src\com\liferay\privatemessaging\service\impl\UserThreadLocalServiceImpl.java (at line 239)
          [javac]     public void updateUserName(User user)
          [javac]             throws PortalException, SystemException {
          [javac]                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          [javac] Exception PortalException is not compatible with throws clause in UserThreadLocalService.updateUserName(User)
          [javac] ----------
          [javac] 1 problem (1 error)
      
      BUILD FAILED
      D:\git\private\ee-6.1.20-plugins\build-common-plugin.xml:48: The following error occurred while executing this line:
      D:\git\private\ee-6.1.20-plugins\build-common-plugin.xml:511: The following error occurred while executing this line:
      D:\git\private\ee-6.1.20-plugins\build-common.xml:95: Compile failed; see the compiler error output for details.
      
      Total time: 2 seconds

        Attachments

          Activity

            People

            • Assignee:
              brian.chiu Brian Chiu (Inactive)
              Reporter:
              brian.chiu Brian Chiu (Inactive)
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 18 weeks, 5 days ago

                Packages

                Version Package
                2.0.3 EE