Details

      Description

      Dlappservicesoap.getfileentry(long entryId) is not working correctly.

      Steps to reproduce:

      Use this Code:

      public FileEntrySoap getFileEntry(long entryId) {
      FileEntrySoap dlsoap = null;
      try
      Unknown macro: { DLAppServiceSoap soap = getDLAppServiceSoap(); dlsoap = soap.getFileEntry(entryId); }
      catch (Exception e)
      Unknown macro: { throw new LiferayWsException(LiferayWsErrorCode.GenericError, e.getMessage(), e); }
      return dlsoap;
      }
      private DLAppServiceSoap getDLAppServiceSoap() {
      try
      Unknown macro: { DLAppServiceSoapService service = new DLAppServiceSoapServiceLocator(); StringBuilder b = LiferayServiceHelper.getBaseUrl(); b.append("Portlet_DL_DLAppService"); DLAppServiceSoap soap = service.getPortlet_DL_DLAppService(new URL(b.toString())); return soap; }
      catch (Exception e)
      }
      

      Resulting Error:

      	06 Nov 2013 13:39:16,991 ERROR [DLAppServiceSoap:859] com.liferay.portal.NoSuchRepositoryEntryException: No RepositoryEntry exists with the primary key 16303
      	 com.liferay.portal.NoSuchRepositoryEntryException: No RepositoryEntry exists with the primary key 16303
      	com.liferay.portal.NoSuchRepositoryEntryException: No RepositoryEntry exists with the primary key 16303
      		at com.liferay.portal.service.persistence.RepositoryEntryPersistenceImpl.findByPrimaryKey(RepositoryEntryPersistenceImpl.java:548)
      		at com.liferay.portal.service.impl.RepositoryLocalServiceImpl.createRepositoryImpl(RepositoryLocalServiceImpl.java:344)
      		at com.liferay.portal.service.impl.RepositoryLocalServiceImpl.getRepositoryImpl(RepositoryLocalServiceImpl.java:295)
      		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

      It should be noted that using dlappservicesoap.getfileentry(groupId, folderId, fileName) does work.

      Current Workaround:
      Using dlfileentryservice.getfileentry(entryId) meets certain needs, but there is concern that if DLFileEntryService is deprecated, this will be a huge hindrance.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 2 weeks, 2 days ago

                Packages

                Version Package