[AWPR-10] Compiler error Created: 11/Jan/11 Updated: 25/Feb/11 |
|
| Status: | Open |
| Project: | Alfresco Web script Portlet rivet |
| Component/s: | awpr-liferay-portal |
| Affects Version/s: | 1.5.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Craig Fox [X] (Inactive) | Assignee: | Al El-Nattar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: | liferay portal 6.0, osx 10.6.6 | ||
| Description |
|
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 |
| Comments |
| Comment by VuDu [X] (Inactive) [ 25/Feb/11 ] |
|
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; |