10 Replies Latest reply on Oct 23, 2006 10:27 AM by aron.gombas

    SvnMonitoringPortlet

    lamerbot

      Hello. I'am new to kosmos and when i try to deploy SvnMonitoringPortlet i had next exception:

      [hu.midori.kosmos.server.svn.SvnServiceImpl] Unable to proces
      s the SVN repo org.tmatesoft.svn.core.SVNException: svn: REPORT of '/repos/asf/!svn/bc/465523/d
      b': 400 Bad Request (http://svn.apache.org)
      
      08:35:38,135 ERROR [hu.midori.kosmos.server.svn.SvnServiceImpl] Unable to proces
      s the SVN repo
      org.tmatesoft.svn.core.SVNException: svn: REPORT of '/!svn/bc/6907/labs/shotoku/
      trunk': 400 Bad Request (http://anonsvn.labs.jboss.com) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorMana
      ger.java:43) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.log(DAVRepositor
      y.java:487) at org.tmatesoft.svn.core.io.SVNRepository.log(SVNRepository.java:629)
      


      Portlet.xml contains next:
      <portlet>
       <portlet-name>JBossSvnMonitoringPortlet</portlet-name>
       <portlet-class>hu.midori.kosmos.portlet.svn.SvnMonitoringPortlet</portlet-class>
       <init-param>
       <name>monitored.resource</name>
       <value>JBoss Labs Subversion</value>
       </init-param>
       <init-param>
       <name>service.url</name>
       <value>http://localhost:8085/kosmos-server/kosmos-services/svn-service</value>
       </init-param>
       <init-param>
       <name>monitored.urls</name>
       <value>
       http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/,
       http://anonsvn.labs.jboss.com/labs/kosmos/trunk/,
       http://anonsvn.labs.jboss.com/labs/shotoku/trunk/,
       http://svn.apache.org/repos/asf/commons/,
       http://svn.apache.org/repos/asf/db/
       </value>
       </init-param>
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>HELP</portlet-mode>
       <portlet-mode>VIEW</portlet-mode>
       </supports>
       <supported-locale>de</supported-locale>
       <supported-locale>en</supported-locale>
       <supported-locale>fr</supported-locale>
       <supported-locale>hu</supported-locale>
       <supported-locale>ja</supported-locale>
       <supported-locale>pl</supported-locale>
       <resource-bundle>hu.midori.kosmos.portlet.svn.svn_monitoring</resource-bundle>
       <portlet-info>
       <title>Subversion Monitoring</title>
       </portlet-info>
       </portlet>
      

      I try to start it on liferay and jboss.
      Also, uner liferay i catch next exception:
      java.lang.ClassCastException: com.liferay.util.axis.SimpleHTTPSender
       at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
       at org.apache.axis.client.AxisClient.invoke(AxisClient.java:216)
       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 _soapclient.JirasoapserviceV2SoapBindingStub.logout(JirasoapserviceV2
      SoapBindingStub.java:3194)
       at hu.midori.kosmos.server.jira.JiraSoapServiceImpl.disconnect(JiraSoapS
      erviceImpl.java:217)
       at hu.midori.kosmos.server.jira.JiraSoapServiceImpl.getProjects(JiraSoap
      ServiceImpl.java:175)
       at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
      on(AopUtils.java:287)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
      inpoint(ReflectiveMethodInvocation.java:181)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
      ReflectiveMethodInvocation.java:148)
       at hu.midori.kosmos.server.MethodResultCacheInterceptor.invoke(MethodRes
      ultCacheInterceptor.java:56)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
      ReflectiveMethodInvocation.java:170)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
      cAopProxy.java:176)
       at $Proxy128.getProjects(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
      on(AopUtils.java:287)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
      inpoint(ReflectiveMethodInvocation.java:181)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
      ReflectiveMethodInvocation.java:148)
       at org.springframework.remoting.support.RemoteInvocationTraceInterceptor
      .invoke(RemoteInvocationTraceInterceptor.java:68)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
      ReflectiveMethodInvocation.java:170)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
      cAopProxy.java:176)
       at $Proxy129.getProjects(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java
      :157)
       at org.springframework.remoting.caucho.HessianServiceExporter.handleRequ
      est(HessianServiceExporter.java:110)
       at org.springframework.web.servlet.mvc.SimpleHandlerAdapter.handle(Simpl
      eHandlerAdapter.java:46)
       at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch
      erServlet.java:792)
       at org.springframework.web.servlet.DispatcherServlet.doService(Dispatche
      rServlet.java:726)
       at org.springframework.web.servlet.FrameworkServlet.processRequest(Frame
      workServlet.java:396)
       at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServ
      let.java:360)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:237)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:157)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:214)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:520)
       at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
      ContextValve.java:198)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:152)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:520)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:137)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:104)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:118)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:102)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:520)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:520)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      
       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
      0)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :799)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:705)
       at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
      :577)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
      ool.java:683)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.ClassCastException: com.liferay.util.axis.SimpleHTTPSender
       at org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSD
      DTargetedChain.java:157)
       at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSD
      DDeployableItem.java:274)
       at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDe
      ployableItem.java:260)
       at org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeplo
      yment.java:410)
       at org.apache.axis.configuration.FileProvider.getTransport(FileProvider.
      java:257)
       at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)
       at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)
       ... 64 more
      


      What's wrong?

        • 1. Re: SvnMonitoringPortlet
          aron.gombas

          Hi!

          Your config looks OK, but could you post the full stack trace related to the SVN problem here?

          For the Axis under Liferay problem: I think the axis.jar is not the version that Kosmos expects! Could you update that JAR with latest stable Axis?

          • 2. Re: SvnMonitoringPortlet
            lamerbot

            I found class com.liferay.util.axis.SimpleHTTPSender in liferay/common/lib/ext/util-java.jar (standart deployment)

            Full stack trace related to the SVN:

            18:05:37,699 INFO [SvnMonitoringPortlet] Viewing...
            18:05:37,870 INFO [MethodResultCacheInterceptor] Cache-miss: reloading "hu.midori.kosmos.server.svn
            .SvnServiceImpl.getRepositories.http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/"...
            18:05:38,011 INFO [SvnServiceImpl] Analyzing log of "http://anonsvn.labs.jboss.com/labs/jbossrules/
            trunk" repository...
            18:05:39,824 ERROR [SvnServiceImpl] Unable to process the SVN repo
            org.tmatesoft.svn.core.SVNException: svn: REPORT of '/!svn/bc/6912/labs/jbossrules/trunk': 400 Bad R
            equest (http://anonsvn.labs.jboss.com)
             at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:43)
             at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.log(DAVRepository.java:487)
             at org.tmatesoft.svn.core.io.SVNRepository.log(SVNRepository.java:629)
             at org.tmatesoft.svn.core.io.SVNRepository.log(SVNRepository.java:919)
             at hu.midori.kosmos.server.svn.SvnServiceImpl.analyzeLog(SvnServiceImpl.java:166)
             at hu.midori.kosmos.server.svn.SvnServiceImpl.getRepositories(SvnServiceImpl.java:80)
             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:287
            )
             at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMe
            thodInvocation.java:181)
             at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
            cation.java:148)
             at hu.midori.kosmos.server.MethodResultCacheInterceptor.invoke(MethodResultCacheInterceptor.
            java:56)
             at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
            cation.java:170)
             at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
             at $Proxy134.getRepositories(Unknown Source)
             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:287
            )
             at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMe
            thodInvocation.java:181)
             at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
            cation.java:148)
             at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvoca
            tionTraceInterceptor.java:68)
             at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvo
            cation.java:170)
             at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
             at $Proxy135.getRepositories(Unknown Source)
             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 com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:157)
             at org.springframework.remoting.caucho.HessianServiceExporter.handleRequest(HessianServiceEx
            porter.java:110)
             at org.springframework.web.servlet.mvc.SimpleHandlerAdapter.handle(SimpleHandlerAdapter.java
            :46)
             at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:792)
             at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:726)
             at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396
            )
             at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
            ava:252)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
            ava:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
             at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
            va:159)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11P
            rotocol.java:744)
             at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
             at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
             at java.lang.Thread.run(Thread.java:595)
            18:05:39,855 INFO [MethodResultCacheInterceptor] Cache-miss: reloading "hu.midori.kosmos.server.svn
            .SvnServiceImpl.getRepositories.http://anonsvn.labs.jboss.com/labs/kosmos/trunk/"...
            18:05:39,855 INFO [SvnServiceImpl] Analyzing log of "http://anonsvn.labs.jboss.com/labs/kosmos/trun
            k" repository...
            
            


            • 3. Re: SvnMonitoringPortlet
              lamerbot

              Can anybody help me?

              • 4. Re: SvnMonitoringPortlet
                aron.gombas

                Hmm, it seems like an internal problem with javasvn.
                Could you make a try with the latest javasvn.jar? You can download the latest stable from http://tmate.org/svn/download/ and replace it in the kosmos-server.war.

                • 5. Re: SvnMonitoringPortlet
                  lamerbot

                  I tryed latest jar, but exception comes again. I check source and found that simple code :

                  try {
                   SVNRepository repository = connect("http://anonsvn.labs.jboss.com/labs/jbossrules/trunk");
                   System.out.println(repository.getLocation().toString());
                   Collection logEntries = repository.log(new String[] {
                   ""
                   }, null, 0L, repository.getLatestRevision(), true, false);
                   }
                   catch (Exception ex) {
                   ex.printStackTrace();
                   }
                  

                  throws that exception
                  org.tmatesoft.svn.core.SVNException: svn: REPORT of '/!svn/bc/7012/labs/jbossrules/trunk': 400 Bad Request (http://anonsvn.labs.jboss.com)
                   at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:43)
                   at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.log(DAVRepository.java:487)
                   at org.tmatesoft.svn.core.io.SVNRepository.log(SVNRepository.java:629)
                   at org.tmatesoft.svn.core.io.SVNRepository.log(SVNRepository.java:919)
                   at main.main(main.java:24)
                   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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
                  

                  Exception throws
                  Collection logEntries = repository.log(new String[] {
                   ""
                   }, null, 0L, repository.getLatestRevision(), true, false);
                   }
                  


                  • 6. Re: SvnMonitoringPortlet
                    aron.gombas

                    In this case, it is a javasvn problem.
                    Could you post this bug report to their issue tracker?
                    Thx a lot for investigating the details.

                    • 7. Re: SvnMonitoringPortlet
                      lamerbot

                      Hm, may it depends on lan configuration (proxy servers and ets.)?

                      • 8. Re: SvnMonitoringPortlet
                        aron.gombas

                        Maybe. Can you make a try from a different network location?

                        • 9. Re: SvnMonitoringPortlet
                          lamerbot

                          Yes, i try it on another computer of another Company. All work fine. Problem in my network configuration. But i don't understand - what's wrong in javasvn :(

                          • 10. Re: SvnMonitoringPortlet
                            aron.gombas

                            Plz ask it on their mailing list.
                            The javasvn guys are usually very quick with answers.