Alfresco Web script Portlet rivet

Compiler error

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.5.0
  • Fix Version/s: None
  • Component/s: awpr-liferay-portal
  • Description:
    Hide
    Does this portlet work with Liferay 6.
    I get the following error when compiling.

    compile-java:
        [javac] Compiling 3 source files to /Users/cfox570/Documents/Knowledge/Development/LiferayDev/liferay-plugins-sdk-6/portlets/awpr-1.5.1/docroot/WEB-INF/classes
        [javac] /Users/cfox570/Documents/Knowledge/Development/LiferayDev/liferay-plugins-sdk-6/portlets/awpr-1.5.1/docroot/WEB-INF/src/org/rivetlogic/rivet/portlet/awpr/util/Utils.java:37: unreported exception com.liferay.portal.kernel.exception.PortalException; must be caught or declared to be thrown
        [javac] User user = UserServiceUtil.getUserById(Long.parseLong(userId));
        [javac] ^
        [javac] /Users/cfox570/Documents/Knowledge/Development/LiferayDev/liferay-plugins-sdk-6/portlets/awpr-1.5.1/docroot/WEB-INF/src/org/rivetlogic/rivet/portlet/awpr/util/Utils.java:38: unreported exception com.liferay.portal.kernel.exception.PortalException; must be caught or declared to be thrown
        [javac] userName = user.getLogin();
        [javac] ^
        [javac] Note: /Users/cfox570/Documents/Knowledge/Development/LiferayDev/liferay-plugins-sdk-6/portlets/awpr-1.5.1/docroot/WEB-INF/src/org/rivetlogic/rivet/portlet/awpr/util/Utils.java uses or overrides a deprecated API.
        [javac] Note: Recompile with -Xlint:deprecation for details.
        [javac] 2 errors
    Show
    Does this portlet work with Liferay 6. I get the following error when compiling. compile-java:     [javac] Compiling 3 source files to /Users/cfox570/Documents/Knowledge/Development/LiferayDev/liferay-plugins-sdk-6/portlets/awpr-1.5.1/docroot/WEB-INF/classes     [javac] /Users/cfox570/Documents/Knowledge/Development/LiferayDev/liferay-plugins-sdk-6/portlets/awpr-1.5.1/docroot/WEB-INF/src/org/rivetlogic/rivet/portlet/awpr/util/Utils.java:37: unreported exception com.liferay.portal.kernel.exception.PortalException; must be caught or declared to be thrown     [javac] User user = UserServiceUtil.getUserById(Long.parseLong(userId));     [javac] ^     [javac] /Users/cfox570/Documents/Knowledge/Development/LiferayDev/liferay-plugins-sdk-6/portlets/awpr-1.5.1/docroot/WEB-INF/src/org/rivetlogic/rivet/portlet/awpr/util/Utils.java:38: unreported exception com.liferay.portal.kernel.exception.PortalException; must be caught or declared to be thrown     [javac] userName = user.getLogin();     [javac] ^     [javac] Note: /Users/cfox570/Documents/Knowledge/Development/LiferayDev/liferay-plugins-sdk-6/portlets/awpr-1.5.1/docroot/WEB-INF/src/org/rivetlogic/rivet/portlet/awpr/util/Utils.java uses or overrides a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] 2 errors
  • Environment:
    liferay portal 6.0, osx 10.6.6

Activity

Hide
VuDu added a comment - 25/Feb/11 7:27 AM
You can easily go around this problem by changing lines 7 and 8 of awpr-1.5.1\docroot\WEB-INF\src\org\rivetlogic\rivet\portlet\awpr\util\Utils.java to this:

import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
Show
VuDu added a comment - 25/Feb/11 7:27 AM You can easily go around this problem by changing lines 7 and 8 of awpr-1.5.1\docroot\WEB-INF\src\org\rivetlogic\rivet\portlet\awpr\util\Utils.java to this: import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException;

People

Dates

  • Created:
    11/Jan/11 2:54 PM
    Updated:
    25/Feb/11 7:27 AM