cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the content through the DownLoadContnetServlet.

shanmugaraja
Champ in-the-making
Champ in-the-making
I am accessing the content from my servlet resides in Jboss portal to Alfreco Servlet - DownloadContentServlet
However I am getting the Status code of 505. Any help is appreciated.

The code is below.

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.MalformedURLException;
import org.alfresco.webservice.util.AuthenticationUtils;


public class TestServlet {
      
      public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
         PrintWriter writer = res.getWriter();
         try{
            AuthenticationUtils.startSession("admin","admin");
             String ticket=AuthenticationUtils.getTicket();
             String urlStr="http://localhost:8080/alfresco/download/direct?path=/Company Home/highlights/Employees.html?ticket="+ticket;
              URL url=new URL(urlStr);
                  HttpURLConnection huc =  ( HttpURLConnection )  url.openConnection () ;
                  huc.connect () ;
                  int code = huc.getResponseCode () ;
             writer.println (code);
              } catch (MalformedURLException e) {
                 writer.println ("Invalid URL");
              } catch (IOException e) {
                 writer.println ("Error reading URL");
              }
         catch (Exception e) {
            writer.println (e.getMessage());
         }
      }
}


We would like to access the content through DownLoadContnetServlet

However, the following url for the same content Node works fine.

http://localhost:8080/alfresco/d/d/workspace/SpacesStore/3510a6a2-3494-11dc-85ac-990993d36c72/Employ...;

Thanks in advance.
6 REPLIES 6

kevinr
Star Contributor
Star Contributor
Any error stack traces on the server log?

shanmugaraja
Champ in-the-making
Champ in-the-making
Kevin, Thank you so much for your response.

There is no stck trace while accesing first and second time after the server is up. however the status message is return is 505.

The Code is below:

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.MalformedURLException;
import org.alfresco.webservice.util.AuthenticationUtils;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.net.HttpURLConnection;


public class TestServlet extends HttpServlet{
      
      public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
         System.out.println("Inside the Test Servlet");
         PrintWriter writer = res.getWriter();
         try{
            AuthenticationUtils.startSession("admin","admin");
             String ticket=AuthenticationUtils.getTicket();
             String urlStr="http://localhost:8080/alfresco/service/topic/Compliance Guides/Industries?ticket="+ticket;
              URL url=new URL(urlStr);
                  HttpURLConnection huc =  ( HttpURLConnection )  url.openConnection () ;
                  huc.connect () ;
                  int code = huc.getResponseCode () ;
             //writer.println (code);
              } catch (MalformedURLException e) {
                 writer.println ("Invalid URL");
              } catch (IOException e) {
                 e.printStackTrace();
                 //writer.println ("Error reading URL");
              }
         catch (Exception e) {
            writer.println (e.getMessage());
         }
      }
}

When i redeploy the servlet as hot deployment in Jboss then
the following Stack is thrown.

11:19:12,527 INFO  [JkMain] Jk running ID=0 time=0/742  config=null
11:19:12,537 INFO  [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 1m:19s:418ms
11:19:21,860 INFO  [STDOUT] Inside the Test Servlet
11:19:45,415 INFO  [STDOUT] Inside the Test Servlet
11:20:24,373 INFO  [TomcatDeployer] undeploy, ctxPath=/download, warUrl=…/tmp/deploy/tmp38220download-exp.war/
11:20:24,643 INFO  [TomcatDeployer] deploy, ctxPath=/download, warUrl=…/tmp/deploy/tmp38222download-exp.war/
11:20:38,734 INFO  [STDOUT] Inside the Test Servlet
11:20:38,734 INFO  [WebappClassLoader] Illegal access: this web application instance has been stopped already.  Could not load META-INF/services/org.apache.axis.EngineConfigurationFactory.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the ill
11:20:38,734 INFO  [STDOUT] [WARN ] DiscoverResources - -getNextResources: Ignoring Exception <java.io.IOException: Invalid use of destroyed classloader, UCL destroyed atSmiley Embarassed
11:20:38,734 ERROR [STDERR] java.io.IOException: Invalid use of destroyed classloader, UCL destroyed at:
11:20:38,734 ERROR [STDERR]     at org.jboss.mx.loading.RepositoryClassLoader.findResources(RepositoryClassLoader.java:585)
11:20:38,734 ERROR [STDERR]     at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
11:20:38,734 ERROR [STDERR]     at java.lang.ClassLoader.getResources(ClassLoader.java:1011)
11:20:38,734 ERROR [STDERR]     at java.lang.ClassLoader.getResources(ClassLoader.java:1011)
11:20:38,734 ERROR [STDERR]     at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:150)
11:20:38,734 ERROR [STDERR]     at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(DiscoverResources.java:153)
11:20:38,734 ERROR [STDERR]     at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(DiscoverResources.java:129)
11:20:38,734 ERROR [STDERR]     at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverResources.java:116)
11:20:38,734 ERROR [STDERR]     at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassNames(DiscoverNamesInFile.java:186)
11:20:38,734 ERROR [STDERR]     at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassName(DiscoverNamesInFile.java:170)
11:20:38,734 ERROR [STDERR]     at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(DiscoverNamesInFile.java:157)
11:20:38,734 ERROR [STDERR]     at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterator(NameDiscoverers.java:143)
11:20:38,734 ERROR [STDERR]     at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDiscoverers.java:126)
11:20:38,734 ERROR [STDERR]     at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.getNextResource(ResourceClassDiscoverImpl.java:159)
11:20:38,734 ERROR [STDERR]     at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.hasNext(ResourceClassDiscoverImpl.java:147)
11:20:38,734 ERROR [STDERR]     at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:120)
11:20:38,734 ERROR [STDERR]     at java.security.AccessController.doPrivileged(Native Method)
11:20:38,734 ERROR [STDERR]     at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113)
11:20:38,734 ERROR [STDERR]     at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:160)
11:20:38,734 ERROR [STDERR]     at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813)
11:20:38,734 ERROR [STDERR]     at org.apache.axis.client.Service.getAxisClient(Service.java:104)
11:20:38,734 ERROR [STDERR]     at org.apache.axis.client.Service.<init>(Service.java:113)
11:20:38,734 ERROR [STDERR]     at org.alfresco.webservice.authentication.AuthenticationServiceLocator.<init>(AuthenticationServiceLocator.java:16)
11:20:38,734 ERROR [STDERR]     at org.alfresco.webservice.util.WebServiceFactory.getAuthenticationService(WebServiceFactory.java:142)
11:20:38,734 ERROR [STDERR]     at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:79)
11:20:38,734 ERROR [STDERR]     at gov.sba.bgportal.download.TestServlet.service(TestServlet.java:25)
11:20:38,734 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
11:20:38,734 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
11:20:38,734 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
11:20:38,734 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
11:20:38,734 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
11:20:38,734 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
11:20:38,734 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
11:20:38,734 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
11:20:38,734 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
11:20:38,734 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
11:20:38,734 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
11:20:38,734 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
11:20:38,734 ERROR [STDERR]     at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
11:20:38,734 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
11:20:38,734 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
11:20:38,744 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
11:20:38,744 ERROR [STDERR]     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
11:20:38,744 ERROR [STDERR]     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
11:20:38,744 ERROR [STDERR]     at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
11:20:38,744 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:595)
11:20:38,744 ERROR [STDERR] Caused by: java.lang.Exception
11:20:38,744 ERROR [STDERR]     at org.jboss.mx.loading.RepositoryClassLoader.unregister(RepositoryClassLoader.java:262)
11:20:38,744 ERROR [STDERR]     at org.jboss.mx.loading.UnifiedClassLoader.unregister(UnifiedClassLoader.java:196)
11:20:38,744 ERROR [STDERR]     at org.jboss.deployment.DeploymentInfo.cleanup(DeploymentInfo.java:402)
11:20:38,744 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:731)
11:20:38,744 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:639)
11:20:38,744 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:632)
11:20:38,744 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:615)
11:20:38,744 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:20:38,744 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:20:38,744 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:20:38,744 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
11:20:38,744 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
11:20:38,744 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
11:20:38,744 ERROR [STDERR]     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
11:20:38,744 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
11:20:38,744 ERROR [STDERR]     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
11:20:38,744 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
11:20:38,744 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
11:20:38,744 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:20:38,744 ERROR [STDERR]     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
11:20:38,744 ERROR [STDERR]     at $Proxy9.undeploy(Unknown Source)
11:20:38,744 ERROR [STDERR]     at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:450)
11:20:38,744 ERROR [STDERR]     at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:604)
11:20:38,744 ERROR [STDERR]     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
11:20:38,744 ERROR [STDERR]     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
11:20:38,744 ERROR [STDERR]     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
11:20:38,744 INFO  [WebappClassLoader] Illegal access: this web application instance has been stopped already.  Could not load org/apache/axis/configuration/EngineConfigurationFactoryServlet.class.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which cause
11:20:38,744 INFO  [WebappClassLoader] Illegal access: this web application instance has been stopped already.  Could not load org/apache/axis/configuration/EngineConfigurationFactoryDefault.class.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which cause

kevinr
Star Contributor
Star Contributor
The hot-deloy stacktrace does not look like an Alfresco issue - the hot-deploy feature doesn't seem to like Axis/Spring apps sometimes…

As far as your issue with loading from the downloadcontentservlet url, have you tried encoding the space characters to %20 etc. using URLEncoder?

Thanks,

Kevin

shanmugaraja
Champ in-the-making
Champ in-the-making
Kevin Thanks a lot for your immediate response.

I am able access the following url through the browser. It goes to alfresco login page,
after successful login, The page is getting displayed.

http://localhost:8080/alfresco/download/direct?path=/Company%20Home/Business%20Gateway/highlights/Em...


As suggested, the %20 characters are used for the space. Now I am getting the 500 status code in the Jboss side

I am attaching the stack traces on the Alfresco and the Jboss Servers.
Do I need to change any settings in the Alfresco so that this error could be avoided.
Your help is highly appreciated, Thanks in advance. I am using Alfesco 2.1 community release.



the Stack Trace on the jboss side is as below

14:01:08,814 INFO  [STDOUT] http://localhost:8080/alfresco/download/direct?path=/Company%20Home/Business%20Gateway/highlights/Em...
14:01:09,125 ERROR [STDERR] java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/alfresco/download/direct?path=/Company%20Home/Business%20Gateway/highlights/Em...
14:01:09,135 ERROR [STDERR]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
14:01:09,135 ERROR [STDERR]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
14:01:09,145 ERROR [STDERR]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
14:01:09,145 ERROR [STDERR]     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
14:01:09,155 ERROR [STDERR]     at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1227)
14:01:09,155 ERROR [STDERR]     at java.security.AccessController.doPrivileged(Native Method)
14:01:09,165 ERROR [STDERR]     at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1221)
14:01:09,165 ERROR [STDERR]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:910)
14:01:09,175 ERROR [STDERR]     at gov.sba.bgportal.util.HTMLParser.getAlfrecoContent(HTMLParser.java:105)
14:01:09,175 ERROR [STDERR]     at gov.sba.bgportal.util.HTMLParser.getParsedHtml(HTMLParser.java:54)
14:01:09,185 ERROR [STDERR]     at gov.sba.bgportal.download.DownloadContentServlet.methodEight(DownloadContentServlet.java:343)
14:01:09,195 ERROR [STDERR]     at gov.sba.bgportal.download.DownloadContentServlet.service(DownloadContentServlet.java:33)
14:01:09,195 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
14:01:09,205 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
14:01:09,205 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
14:01:09,215 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
14:01:09,215 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
14:01:09,225 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
14:01:09,225 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
14:01:09,235 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
14:01:09,245 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
14:01:09,245 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
14:01:09,255 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
14:01:09,255 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
14:01:09,265 ERROR [STDERR]     at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
14:01:09,265 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
14:01:09,275 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
14:01:09,275 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
14:01:09,285 ERROR [STDERR]     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
14:01:09,285 ERROR [STDERR]     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
14:01:09,295 ERROR [STDERR]     at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
14:01:09,295 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:595)
14:01:09,305 ERROR [STDERR] Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/alfresco/download/direct?path=/Company%20Home/Business%20Gateway/highlights/Em...
14:01:09,315 ERROR [STDERR]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1174)
14:01:09,315 ERROR [STDERR]     at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
14:01:09,325 ERROR [STDERR]     at gov.sba.bgportal.util.HTMLParser.getAlfrecoContent(HTMLParser.java:99)
14:01:09,325 ERROR [STDERR]     … 23 more



The Alfresco Side Stack Trace is below:


14:01:08,914 WARN  [app.servlet.BaseServlet] Failed to resolve webdav path
org.alfresco.service.cmr.model.FileNotFoundException: File not found:
        at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.resolveNamePath(FileFolderServiceImpl.java:849)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
        at org.alfresco.repo.model.filefolder.TempFileMarkerInterceptor.invoke(TempFileMarkerInterceptor.java:83)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:129)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.alfresco.repo.model.filefolder.MLTranslationInterceptor.invoke(MLTranslationInterceptor.java:210)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:256)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:191)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
        at $Proxy40.resolveNamePath(Unknown Source)
        at org.alfresco.web.app.servlet.BaseServlet.resolveWebDAVPath(BaseServlet.java:297)
        at org.alfresco.web.app.servlet.BaseServlet.resolveWebDAVPath(BaseServlet.java:263)
        at org.alfresco.web.app.servlet.BaseServlet.resolveNamePath(BaseServlet.java:343)
        at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:139)
        at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:106)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:595)
14:01:08,934 ERROR [[localhost].[/alfresco].[downloadContent]] Servlet.service() for servlet downloadContent threw exception
java.lang.IllegalArgumentException: Unable to resolve item Path: /Company Home/Business Gateway/highlights/Employees.html?ticket=TICKET_2643b5db65b8fdc023937eb7134cf00befd79d38
        at org.alfresco.web.app.servlet.BaseServlet.resolveNamePath(BaseServlet.java:347)
        at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:139)
        at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:106)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:595)

shanmugaraja
Champ in-the-making
Champ in-the-making
Hi Kevin, I have solved the problem. It is working now.
Thanks a lot.

jzulu2000
Champ in-the-making
Champ in-the-making
how did you solve it?
I have the same problem!