cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice api/audit/control is broken after installing records management

robinho
Champ in-the-making
Champ in-the-making
Hello,

After installing alfresco-rm-2.1.0-630 the webservice "/alfresco/service/api/audit/control" seems to be broken.

Before installing records management I was able to call the webservice to check if auditing is enabled (as stated in http://docs.alfresco.com/4.1/topic/com.alfresco.enterprise.doc/tasks/audit-config.html )

Now I get:

{
    "status" :
  {
    "code" : 500,
    "name" : "Internal Error",
    "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
  }, 
 
  "message" : "11180005 Wrapped Exception (with status template): java.lang.String cannot be cast to org.alfresco.service.namespace.QName", 
  "exception" : "org.springframework.extensions.webscripts.WebScriptException - 11180005 Wrapped Exception (with status template): java.lang.String cannot be cast to org.alfresco.service.namespace.QName",
 
  "callstack" :
  [
       ""      ,"java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.service.namespace.QName"
      ,"org.alfresco.service.namespace.QName.compareTo(QName.java:36)"
      ,"java.util.TreeMap.getEntry(TreeMap.java:346)"
      ,"java.util.TreeMap.containsKey(TreeMap.java:227)"
      ,"org.alfresco.module.org_alfresco_module_rm.capability.RMAfterInvocationProvider.decide(RMAfterInvocationProvider.java:954)"
      ,"org.alfresco.module.org_alfresco_module_rm.capability.RMAfterInvocationProvider.decide(RMAfterInvocationProvider.java:210)"
      ,"net.sf.acegisecurity.afterinvocation.AfterInvocationProviderManager.decide(AfterInvocationProviderManager.java:107)"
      ,"net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.afterInvocation(AbstractSecurityInterceptor.java:333)"
      ,"net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:82)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:196)"
      ,"org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)"
      ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)"
      ,"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)"
      ,"com.sun.proxy.$Proxy131.getAuditApplications(Unknown Source)"
      ,"org.alfresco.repo.web.scripts.audit.AuditControlGet.executeImpl(AuditControlGet.java:45)"
      ,"org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:422)"
      ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:491)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:529)"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:341)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)"
      ,"org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)"
      ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:728)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)"
      ,"org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)"
      ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)"
      ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)"
      ,"org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)"
      ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)"
      ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)"
      ,"org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)"
      ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)"
      ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)"
      ,"org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)"
      ,"org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)"
      ,"org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)"
      ,"java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)"
      ,"java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)"
      ,"java.lang.Thread.run(Thread.java:724)"
      ,"org.springframework.extensions.webscripts.WebScriptException: 11180005 Wrapped Exception (with status template): java.lang.String cannot be cast to org.alfresco.service.namespace.QName"
      ,"org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1067)"

  ],
 
  "server" : "Enterprise v4.2.0 (r57217-b28) schema 6,034",
  "time" : "Dec 18, 2013 5:02:30 PM"
}


Can anybody help me on this? How can I convert QName value to string and where should I do it?
1 REPLY 1

mrogers
Star Contributor
Star Contributor
Please raise issue in jira.  And/ or alfresco support.