Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Peter Freund
Workflow - Approving Documents via DLAppServiceSoap
October 24, 2012 5:55 AM
Answer

Peter Freund

Rank: New Member

Posts: 5

Join Date: October 17, 2012

Recent Posts

Hello Community!

We migrated successfully a few weeks ago from LR5.2.3 to LR 6.1.1 CE GA2, till today - all good.

For our needs, we developed a servlet that generates automatically PDF with JasperReports and checkin the Documents via the new DLAppServiceSoap connection. The connection works, the documents are listed perfectly in document library.

The problem is, that all documents, we uploaded on this way have the status DRAFT, so the documents are only visible for the owner - and this is a system User!

Do you know how we can fix this, that the documents automatically receive the status APPROVED?

Thanks for Help

Peter
Alexander Chow
RE: Workflow - Approving Documents via DLAppServiceSoap
October 24, 2012 6:41 AM
Answer

Alexander Chow

LIFERAY STAFF

Rank: Liferay Master

Posts: 519

Join Date: July 19, 2005

Recent Posts

Hi Peter,

For soap, you need to set your workflow action in the serviceContext before calling the DLAppServiceSoap.addFileEntry():

1        ServiceContext serviceContext = new ServiceContext();
2
3        serviceContext.setWorkflowAction(WorkflowConstants.ACTION_PUBLISH);

So, if you looked at the file com.liferay.portal.service.ServiceContext (the one used within normal Java calls), you will notice that we actually default the workflowAction variable to ACTION_PUBLISH. However, the com.liferay.client.soap.portal.service.ServiceContext (the one you use) is generated and does not have that variable defaulted.

Alex
Peter Freund
RE: Workflow - Approving Documents via DLAppServiceSoap
October 24, 2012 7:03 AM
Answer

Peter Freund

Rank: New Member

Posts: 5

Join Date: October 17, 2012

Recent Posts

Hello Alex,

thank You for your fast answer. We try it tommorow!

Best for today!

Peter
Peter Freund
RE: Workflow - Approving Documents via DLAppServiceSoap
October 30, 2012 5:07 AM
Answer

Peter Freund

Rank: New Member

Posts: 5

Join Date: October 17, 2012

Recent Posts

Good Morning!

So, first Step done - update Files with published Status now working

Now there is an other problem.

Sometimes documents receive the PWC status, 90 % of updates working fine. logging says, whe have duplicate entries..

  113:01:07,954 ERROR [http-apr-80-exec-22][DLAppServiceSoap:244] com.liferay.portlet.documentlibrary.DuplicateFileException: C:\liferay-portal-6.1.1-ce-ga2\data\document_library\10112\1300211\146479\1.3
  2com.liferay.portlet.documentlibrary.DuplicateFileException: C:\liferay-portal-6.1.1-ce-ga2\data\document_library\10112\1300211\146479\1.3
  3    at com.liferay.portlet.documentlibrary.store.FileSystemStore.updateFileVersion(FileSystemStore.java:371)
  4    at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.updateFileVersion(StoreProxyImpl.java:283)
  5    at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.updateFileVersion(SafeFileNameStoreWrapper.java:433)
  6    at com.liferay.portlet.documentlibrary.store.DLStoreImpl.updateFileVersion(DLStoreImpl.java:526)
  7    at com.liferay.portlet.documentlibrary.store.DLStoreUtil.updateFileVersion(DLStoreUtil.java:669)
  8    at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.checkInFileEntry(DLFileEntryLocalServiceImpl.java:300)
  9    at sun.reflect.GeneratedMethodAccessor1665.invoke(Unknown Source)
 10    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 11    at java.lang.reflect.Method.invoke(Method.java:597)
 12    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
 13    at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
 14    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 15    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 16    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 17    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 18    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 19    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 20    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 21    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 22    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 23    at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
 24    at $Proxy184.checkInFileEntry(Unknown Source)
 25    at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl.checkInFileEntry(DLFileEntryServiceImpl.java:93)
 26    at sun.reflect.GeneratedMethodAccessor1664.invoke(Unknown Source)
 27    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 28    at java.lang.reflect.Method.invoke(Method.java:597)
 29    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
 30    at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
 31    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 32    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 33    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 34    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 35    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 36    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 37    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 38    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 39    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 40    at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
 41    at $Proxy185.checkInFileEntry(Unknown Source)
 42    at com.liferay.portal.repository.liferayrepository.LiferayRepository.checkInFileEntry(LiferayRepository.java:187)
 43    at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.checkInFileEntry(DLAppServiceImpl.java:435)
 44    at sun.reflect.GeneratedMethodAccessor1663.invoke(Unknown Source)
 45    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 46    at java.lang.reflect.Method.invoke(Method.java:597)
 47    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
 48    at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
 49    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 50    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 51    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 52    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 53    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 54    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 55    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 56    at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
 57    at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
 58    at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
 59    at $Proxy181.checkInFileEntry(Unknown Source)
 60    at com.liferay.portlet.documentlibrary.service.DLAppServiceUtil.checkInFileEntry(DLAppServiceUtil.java:348)
 61    at com.liferay.portlet.documentlibrary.service.http.DLAppServiceSoap.checkInFileEntry(DLAppServiceSoap.java:240)
 62    at sun.reflect.GeneratedMethodAccessor1662.invoke(Unknown Source)
 63    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 64    at java.lang.reflect.Method.invoke(Method.java:597)
 65    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
 66    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
 67    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
 68    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
 69    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
 70    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
 71    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
 72    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
 73    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
 74    at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
 75    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
 76    at com.liferay.util.axis.AxisServlet.service(AxisServlet.java:178)
 77    at com.liferay.portal.servlet.AxisServlet.service(AxisServlet.java:96)
 78    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 79    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 80    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 81    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 82    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 83    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 84    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 85    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 86    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 87    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 88    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
 89    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 90    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 91    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 92    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 93    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
 94    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 95    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 96    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 97    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 98    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
 99    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
100    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
101    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
102    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
103    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
104    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
105    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
106    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
107    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
108    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
109    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
110    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
111    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
112    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
113    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
114    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
115    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
116    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
117    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
118    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
119    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
120    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
121    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
122    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
123    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
124    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
125    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
126    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
127    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
128    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
129    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
130    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
131    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
132    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1812)
133    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
134    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
135    at java.lang.Thread.run(Thread.java:662)
13629.10-13:01:07 ERROR [Thread: http-bio-443-exec-555] (DmsService.addDocument() 238) - ERROR checkin/out or updating (existing) FileEntry with Id [1300853] java.rmi.RemoteException: C:\liferay-portal-6.1.1-ce-ga2\data\document_library\10112\1300211\146479\1.3
13729.10-13:01:07 ERROR [Thread: http-bio-443-exec-555] (DmsService.addDocument() 239) - AxisFault
138 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
139 faultSubcode:
140 faultString: java.rmi.RemoteException: C:\liferay-portal-6.1.1-ce-ga2\data\document_library\10112\1300211\146479\1.3
141 faultActor:
142 faultNode:
143 faultDetail:
144    {http://xml.apache.org/axis/}hostname:32001W2
145
146java.rmi.RemoteException: C:\liferay-portal-6.1.1-ce-ga2\data\document_library\10112\1300211\146479\1.3
147    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
148    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
149    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
150    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
151    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
152    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)
153    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
154    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
155    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
156    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
157    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
158    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
159    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
160    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
161    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
162    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
163    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
164    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
165    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
166    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
167    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
168    at org.apache.axis.client.Call.invoke(Call.java:2767)
169    at org.apache.axis.client.Call.invoke(Call.java:2443)
170    at org.apache.axis.client.Call.invoke(Call.java:2366)
171    at org.apache.axis.client.Call.invoke(Call.java:1812)
172    at com.liferay.client.soap.portlet.documentlibrary.service.http.Portlet_DL_DLAppServiceSoapBindingStub.checkInFileEntry(Portlet_DL_DLAppServiceSoapBindingStub.java:1502)
173    at de.valuenet.servlets.DmsService.addDocument(DmsService.java:235)
174    at de.valuenet.servlets.ReportsServlet.createErgebnisReport(ReportsServlet.java:969)
175    at de.valuenet.servlets.ReportsServlet.doGet(ReportsServlet.java:385)
176    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
177    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
178    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
179    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
180    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
181    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
182    at sun.reflect.GeneratedMethodAccessor332.invoke(Unknown Source)
183    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
184    at java.lang.reflect.Method.invoke(Method.java:597)
185    at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
186    at $Proxy509.doFilter(Unknown Source)
187    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
188    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
189    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
190    at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:70)
191    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
192    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
193    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
194    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
195    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
196    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
197    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
198    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
199    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
200    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
201    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
202    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
203    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
204    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
205    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
206    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
207    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
208    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
209    at java.lang.Thread.run(Thread.java:662)
210
21129.10-13:01:07 ERROR [Thread: http-bio-443-exec-555] (ReportsServlet.doGet() 439) - ReportsServlet-servlet_rep_id [96]: java.rmi.RemoteException: C:\liferay-portal-6.1.1-ce-ga2\data\document_library\10112\1300211\146479\1.3
212AxisFault
213 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
214 faultSubcode:
215 faultString: java.rmi.RemoteException: C:\liferay-portal-6.1.1-ce-ga2\data\document_library\10112\1300211\146479\1.3
216 faultActor:
217 faultNode:
218 faultDetail:
219    {http://xml.apache.org/axis/}hostname:32001W2
220
221java.rmi.RemoteException: C:\liferay-portal-6.1.1-ce-ga2\data\document_library\10112\1300211\146479\1.3
222    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
223    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
224    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
225    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
226    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
227    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)
228    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
229    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
230    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
231    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
232    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
233    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
234    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
235    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
236    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
237    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
238    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
239    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
240    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
241    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
242    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
243    at org.apache.axis.client.Call.invoke(Call.java:2767)
244    at org.apache.axis.client.Call.invoke(Call.java:2443)
245    at org.apache.axis.client.Call.invoke(Call.java:2366)
246    at org.apache.axis.client.Call.invoke(Call.java:1812)
247    at com.liferay.client.soap.portlet.documentlibrary.service.http.Portlet_DL_DLAppServiceSoapBindingStub.checkInFileEntry(Portlet_DL_DLAppServiceSoapBindingStub.java:1502)
248    at de.valuenet.servlets.DmsService.addDocument(DmsService.java:235)
249    at de.valuenet.servlets.ReportsServlet.createErgebnisReport(ReportsServlet.java:969)
250    at de.valuenet.servlets.ReportsServlet.doGet(ReportsServlet.java:385)
251    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
252    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
253    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
254    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
255    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
256    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
257    at sun.reflect.GeneratedMethodAccessor332.invoke(Unknown Source)
258    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
259    at java.lang.reflect.Method.invoke(Method.java:597)
260    at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
261    at $Proxy509.doFilter(Unknown Source)
262    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
263    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
264    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
265    at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:70)
266    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
267    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
268    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
269    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
270    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
271    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
272    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
273    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
274    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
275    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
276    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
277    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
278    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
279    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
280    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
281    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
282    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
283    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
284    at java.lang.Thread.run(Thread.java:662)


someone knows?
Alexander Chow
RE: Workflow - Approving Documents via DLAppServiceSoap
October 30, 2012 3:14 AM
Answer

Alexander Chow

LIFERAY STAFF

Rank: Liferay Master

Posts: 519

Join Date: July 19, 2005

Recent Posts

This implies the DB and the data store is out of sync and really shouldn't be the case.

Is this by chance a development environment that you may be reusing the same data store folder against a clean DB?
Peter Freund
RE: Workflow - Approving Documents via DLAppServiceSoap
October 30, 2012 5:45 AM
Answer

Peter Freund

Rank: New Member

Posts: 5

Join Date: October 17, 2012

Recent Posts

No, we have migrated a running system from Liferay 5.2.3 over 6.0.0, 6.1.0 to 6.1.1.

In the 5.2.3 we had the out of sync periodically. That was one of the most important reasons we migrated to the next major.

Could it be a problem from the past?

If Yes, Is there a way to synchronise both systems - data store folder and DB - to avoid this problems in the future?

thx.
Alexander Chow
RE: Workflow - Approving Documents via DLAppServiceSoap
October 30, 2012 6:30 AM
Answer

Alexander Chow

LIFERAY STAFF

Rank: Liferay Master

Posts: 519

Join Date: July 19, 2005

Recent Posts

I see. So yes, if you were out of sync in 5.2.3, this would most likely just carry forward to your upgraded data.

It is a little hard to determine what is out of sync without looking at your DB and data store folder. So, your DB will have two tables that are important here: DLFileEntry and DLFileVersion. DLFileEntry will have a version column telling you the latest version it is aware about. This should correspond to the highest version number available in DLFileVersion, for the given fileEntryId. From the looks of it, I'm guessing that these two are pretty much in sync (if not, then DLFileEntry.version needs to be updated too). If that is the case, then what is happening is you have, let's say, DLFileEntry.version = 1.2 while, for the given file, you have an existing file 1.3.

Have you tried running the verify code in VerifyDocumentLibrary? You can activate it in your portal-ext.properties. Alternatively, you can create your own (Advanced)FileSystemStore to clobber any pre-existing files rather than throwing a DuplicateFileEntryException.
Peter Freund
RE: Workflow - Approving Documents via DLAppServiceSoap
October 30, 2012 11:57 AM
Answer

Peter Freund

Rank: New Member

Posts: 5

Join Date: October 17, 2012

Recent Posts

Hi Alex,

i think we didn't tried the verify code till now. Maybe this is an solution.

Today we received the message that also new documents (documents generated after the migration) make that problems. Could it be the same problem from the old entries?

we go on there on thursday. thanks for your support, I hope, i can ask you something more after we have the results.
Miquel Angel Bada Zuazo
RE: Workflow - Approving Documents via DLAppServiceSoap
November 8, 2012 1:13 AM
Answer

Miquel Angel Bada Zuazo

Rank: New Member

Posts: 2

Join Date: October 26, 2011

Recent Posts

It's working like an angel!!!!!!!!!!!!


Alexander Chow:
Hi Peter,

For soap, you need to set your workflow action in the serviceContext before calling the DLAppServiceSoap.addFileEntry():

1        ServiceContext serviceContext = new ServiceContext();
2
3        serviceContext.setWorkflowAction(WorkflowConstants.ACTION_PUBLISH);

So, if you looked at the file com.liferay.portal.service.ServiceContext (the one used within normal Java calls), you will notice that we actually default the workflowAction variable to ACTION_PUBLISH. However, the com.liferay.client.soap.portal.service.ServiceContext (the one you use) is generated and does not have that variable defaulted.

Alex
Navin D Singh
RE: Workflow - Approving Documents via DLAppServiceSoap
November 18, 2012 4:44 PM
Answer

Navin D Singh

Rank: Junior Member

Posts: 40

Join Date: July 15, 2008

Recent Posts

LifeRay 6.0 SP2 EE with Tomcat 6.0
Can you please help me to get around the issue I am facing while creating message board entry through web services.
No problem when deleting, getting the information but when I try to create an entry this is what I get:

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.rmi.RemoteException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:HQ-10642-E4310

java.rmi.RemoteException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.liferay.portlet.messageboards.service.http.Portlet_MB_MBMessageServiceSoapBindingStub.addMessage(Portlet_MB_MBMessageServiceSoapBindingStub.java:554)
at MessageBoardBroker.main(MessageBoardBroker.java:64)