1 2 Previous Next 16 Replies Latest reply: Jul 14, 2006 4:00 AM by Aron Gombas RSS

    Kosmos Jira Authentication using Soap

    Deepak Gunda Newbie

      Hi,

      We are trying to implement kosmos jira integration using soap. when we pass the url like

      http://?username=&password=; we are getting these errors

      12:36:01,288 ERROR [MainDeployer] Could not create deployment: file:/C:/JB/jboss-portal/server/default/deploy/kosmos-portlet.war/WEB-INF/
      org.jboss.deployment.DeploymentException: Cannot deploy portlet application; - nested throwable: (org.xml.sax.SAXParseException: The reference to entity "os_password" must end with the ';' delimiter.)
      at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.create(PortletAppDeployment.java:146)
      at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$DeploymentContext.create(PortalDeploymentInfo.java:196)
      at org.jboss.portal.server.deployment.jboss.ServerDeployer.create(ServerDeployer.java:229)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
      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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy105.deploy(Unknown Source)
      at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:298)
      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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy80.deploy(Unknown Source)
      at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:62)
      at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:152)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
      at $Proxy106.handleNotification(Unknown Source)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:112)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:93)
      at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:325)
      at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:293)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:416)
      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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy87.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:428)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
      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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)



      Any clues what are wrong

        • 1. Re: Kosmos Jira Authentication using Soap
          Aron Gombas Novice

          Your monitored URL should look like this:

          http://soaptester:soaptester@jira.atlassian.com/rpc/soap/jirasoapservice-v2?wsdl:Fixed for unreleased versions
          

          ...or more formally:
          http://username:password@myserver/rpc/soap/jirasoapservice-v2?wsdl:My Filter Name
          


          HTH.

          • 2. Re: Kosmos Jira Authentication using Soap
            Deepak Gunda Newbie

            Once i do that i am starting to get this error

            11:57:07,141 ERROR [JiraSoapServiceImpl] Unable to work with JIRA
            java.lang.IllegalArgumentException: Unknown issue status: 10001
            at hu.midori.kosmos.server.jira.JiraSoapServiceImpl.getProjects(JiraSoapServiceImpl.java:127)
            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(ReflectiveMethodInvocation.java:181)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
            at hu.midori.kosmos.server.MethodResultCacheInterceptor.invoke(MethodResultCacheInterceptor.java:56)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
            at $Proxy133.getProjects(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(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(JdkDynamicAopProxy.java:176)
            at $Proxy134.getProjects(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(HessianServiceExporter.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.java: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.java: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.java: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(Http11Protocol.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)
            11:57:08,272 INFO [ExportViewFactory] Initializing ExportViewFactory with type={csv,excel,xml,pdf}
            11:57:08,282 WARN [ExportViewFactory] Unable to instantiate class for pdf export. org.displaytag.export.PdfView was found, but required li
            11:57:08,292 INFO [TableProperties] No LocaleResolver configured.
            11:57:08,413 INFO [TableProperties] I18nResourceProvider initialized to org.displaytag.localization.I18nJstlAdapter.
            13:35:40,866 INFO [ServiceResultUpdaterJob] Running scheduled update job...
            13:35:40,866 INFO [ServiceResultUpdaterJob] Updating "hu.midori.kosmos.server.jira.JiraSoapServiceImpl.getProjects.http://DGunda:Rational+
            13:35:44,280 INFO [STDOUT] 33 issues downloaded
            13:35:44,280 ERROR [JiraSoapServiceImpl] Unable to work with JIRA
            java.lang.IllegalArgumentException: Unknown issue status: 10001
            at hu.midori.kosmos.server.jira.JiraSoapServiceImpl.getProjects(JiraSoapServiceImpl.java:127)
            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.util.MethodInvoker.invoke(MethodInvoker.java:248)
            at hu.midori.kosmos.server.ServiceResultUpdaterJob.executeInternal(ServiceResultUpdaterJob.java:58)
            at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90)
            at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
            13:35:44,370 INFO [ServiceResultUpdaterJob] Update job completed.

            • 3. Re: Kosmos Jira Authentication using Soap
              Aron Gombas Novice

              This issue has been fixed and the fix is available in the HEAD.
              Thanks.

              • 4. Re: Kosmos Jira Authentication using Soap
                Manuel del Castillo Newbie

                Could you please give me some steps or guide in how to authenticate against Jira?
                Thank you in advance,
                Bets Regards

                • 5. Re: Kosmos Jira Authentication using Soap
                  Aron Gombas Novice

                  Please study the Kosmos Reference Manual.
                  Basically, you have to take care of two things:

                  Configuring the proper "service.url" in portlet.xml


                  JIRA Monitoring portlet

                  This portlet monitors projects hosted by JIRA, a popular issue tracking and project management application. It helps you by giving a quick overview about the state of several projects in a single place.

                  Please note that Kosmos provides two different service implementations to serve data for this portlet. You can choose between these two implementations simply by specifying different service.url parameters for the portlet:

                  1. http://localhost:8080/kosmos-server/kosmos-services/jira-service: the data will be served by a service that downloads JIRA webpages and analyzes their HTML content.
                  2. http://localhost:8080/kosmos-server/kosmos-services/jirasoap-service: the data will be served by a service that uses the JIRA SOAP remote API to download information directly from the JIRA web application. Please note that you have to enable the SOAP interface in the JIRA settings, in this case


                  ...and...

                  Configuring the proper "monitored.urls" in the portlet.xml

                  JiraSoapMonitoringPortlet: list of colon-separated JIRA SOAP service URL and saved filter names related to the projects to monitor. Username and password is required for proper authentication. For example: http://soaptester:soaptester@jira.atlassian.com/rpc/soap/jirasoapservice-v2?wsdl:Fixedsoaptester@jira.atlassian.com/rpc/soap/jirasoapservice-v2?wsdl:Fixed for unreleased versions.


                  HTH.

                  • 6. Re: Kosmos Jira Authentication using Soap
                    Manuel del Castillo Newbie

                    Hi Aron,

                    Thanks a lot again,in the end I changed to exo-portal,
                    where the portlets are deployed as well without problems.

                    I have configured the Jira Portlet as you told me in
                    former mail.

                    This is my portlet.xml


                    <portlet-name>MyProjectJiraMonitoringPortlet</portlet-name>
                    <portlet-class>hu.midori.kosmos.portlet.jira.JiraMonitoringPortlet</portlet-class>
                    <init-param>
                    monitored.resource
                    Myproject Issues
                    </init-param>
                    <init-param>
                    service.url
                    http://localhost:8091/kosmos-server/kosmos-services/jirasoap-service
                    </init-param>
                    <init-param>
                    monitored.urls

                    http://myuser:mypassword@myjiraservice:8080/rpc/soap/jirasoapservice-v2?wsdl:Myproject

                    </init-param>

                    <mime-type>text/html</mime-type>
                    <portlet-mode>HELP</portlet-mode>
                    <portlet-mode>VIEW</portlet-mode>

                    <supported-locale>en</supported-locale>
                    <supported-locale>fr</supported-locale>
                    <resource-bundle>hu.midori.kosmos.portlet.jira.jira_monitoring</resource-bundle>
                    <portlet-info>
                    JIRA Monitoring
                    </portlet-info>



                    and I have got the following error

                    [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8443
                    [INFO] ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009
                    [INFO] JkMain - Jk running ID=0 time=0/18 config=/home/ONE/exo-tomcat/conf/jk2.properties
                    [INFO] Catalina - Server startup in 18918 ms
                    [INFO] JiraMonitoringPortlet - Initializing...
                    [INFO] JiraMonitoringPortlet - Viewing...
                    [INFO] MethodResultCacheInterceptor - Cache-miss: reloading "hu.midori.kosmos.server.jira.JiraSoapServiceImpl.getProjects.http://myuser:mypassword@myjiraserver:8080/rpc/soap/jirasoapservice-v2?wsdl:Myproject"...
                    [ERROR] JiraSoapServiceImpl - Unable to log out <java.lang.NullPointerException>java.lang.NullPointerException
                    at hu.midori.kosmos.server.jira.JiraSoapServiceImpl.disconnect(JiraSoapServiceImpl.java:217)
                    at hu.midori.kosmos.server.jira.JiraSoapServiceImpl.getProjects(JiraSoapServiceImpl.java:175)
                    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(ReflectiveMethodInvocation.java:181)
                    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
                    at hu.midori.kosmos.server.MethodResultCacheInterceptor.invoke(MethodResultCacheInterceptor.java:56)
                    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
                    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
                    at $Proxy3.getProjects(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(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(JdkDynamicAopProxy.java:176)
                    at $Proxy4.getProjects(Unknown Source).


                    When I try to access to

                    http://user:password@myjiraserver:8080/rpc/soap/jirasoapservice-v2?wsdl:Myproject

                    From mozilla, axis tell me that there is a web service in this adress.

                    Do you have any Idea?

                    Thank you in advance and best regards

                    • 7. Re: Kosmos Jira Authentication using Soap
                      Manuel del Castillo Newbie

                      Hi again,

                      I am very sorry, but I am not an expert in Jira administration and I am not pretty sure if I have got well configured the filter in JIRA for accesing to it from Kosmos.

                      1)when I type

                      http://user:password@myjiraserver:8080/rpc/soap/jirasoapservice-v2?wsdl

                      I get the WSDL

                      In Jira we have got this project created

                      http://myjiraserver:8080/browse/Myproject

                      This means that I can access to the project in this way?

                      http://user:password@myjiraserver:8080/rpc/soap/jirasoapservice-v2?wsdl:Myproject

                      or do I have to create any filter in Jira?

                      Thank you again and best Regards,





                      • 8. Re: Kosmos Jira Authentication using Soap
                        Aron Gombas Novice

                        Yes, you have to create a filter and specify that in this URL. (Using the project name instead of a valid filter name is not enough. This is a limitation in the JIRA remote API.)

                        • 9. Re: Kosmos Jira Authentication using Soap
                          Manuel del Castillo Newbie

                          Hi Aron,

                          I have already configured the cruise control monitoring portlet.Working fine at the moment.

                          Regarding Jira Portlet:

                          I have created a filter called Myfilter on my Jira project.
                          This filter querys any issue.

                          My portlet.xml

                          <portlet-name>MyProjectJiraMonitoringPortlet</portlet-name>
                          <portlet-class>hu.midori.kosmos.portlet.jira.JiraMonitoringPortlet</portlet-class>
                          <init-param>
                          monitored.resource
                          Myproject Issues
                          </init-param>
                          <init-param>
                          service.url
                          http://localhost:8091/kosmos-server/kosmos-services/jirasoap-service
                          </init-param>
                          <init-param>
                          monitored.urls

                          http://myuser:mypassword@myjiraserver:8080/rpc/soap/jirasoapservice-v2?wsdl:Myfilter

                          </init-param>

                          <mime-type>text/html</mime-type>
                          <portlet-mode>HELP</portlet-mode>
                          <portlet-mode>VIEW</portlet-mode>

                          <supported-locale>en</supported-locale>
                          <supported-locale>fr</supported-locale>
                          <resource-bundle>hu.midori.kosmos.portlet.jira.jira_monitoring</resource-bundle>
                          <portlet-info>

                          </portlet-info>

                          But I am still having the same problem/

                          [INFO] Http11Protocol - Starting Coyote HTTP/1.1 on http-8443
                          [INFO] ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009
                          [INFO] JkMain - Jk running ID=0 time=0/18 config=/home/ONE/exo-tomcat/conf/jk2.properties
                          [INFO] Catalina - Server startup in 18918 ms
                          [INFO] JiraMonitoringPortlet - Initializing...
                          [INFO] JiraMonitoringPortlet - Viewing...
                          [INFO] MethodResultCacheInterceptor - Cache-miss: reloading "hu.midori.kosmos.server.jira.JiraSoapServiceImpl.getProjects.http://myuser:mypassword@myjiraserver:8080/rpc/soap/jirasoapservice-v2?wsdl:Myfilter"...
                          [ERROR] JiraSoapServiceImpl - Unable to log out <java.lang.NullPointerException>java.lang.NullPointerException
                          at hu.midori.kosmos.server.jira.JiraSoapServiceImpl.disconnect(JiraSoapServiceImpl.java:217)
                          at hu.midori.kosmos.server.jira.JiraSoapServiceImpl.getProjects(JiraSoapServiceImpl.java:175)
                          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)


                          I have seen in Jira doc that when configuring the RPC plugin
                          you have to configure some properties

                          Allow users to vote on issues
                          Allo users to watch issues
                          Allow unassigned issues
                          Cache issues
                          External user management
                          Logout COnfirmation
                          Use GZip COmpression
                          Accept Remote API calls.

                          Which are the exact values of these properties in order to
                          work with Kosmos?

                          Sorry for the insistence, but I would really like to monitor my
                          project with Kosmos.


                          Thank you in advance and Best Regards,





                          • 10. Re: Kosmos Jira Authentication using Soap
                            Manuel del Castillo Newbie

                            Hi again,

                            Now I am configuring the subversion plugin, after reading
                            the reference manual I have seen that is possible to access to
                            secure subversion repositories.

                            I am accessing to my repository in this way:

                            portlet.xml


                            <portlet-name>ONESvnMonitoringPortlet</portlet-name>
                            <portlet-class>hu.midori.kosmos.portlet.svn.SvnMonitoringPortlet</portlet-class>
                            <init-param>
                            monitored.resource
                            ONE Subversion
                            </init-param>
                            <init-param>
                            service.url
                            http://localhost:8091/kosmos-server/kosmos-services/svn-service
                            </init-param>
                            <init-param>
                            monitored.urls

                            svn+ssh://myserver/home/myproject/svn_repo

                            </init-param>

                            <mime-type>text/html</mime-type>
                            <portlet-mode>HELP</portlet-mode>
                            <portlet-mode>VIEW</portlet-mode>

                            <supported-locale>en</supported-locale>
                            <supported-locale>fr</supported-locale>
                            <resource-bundle>hu.midori.kosmos.portlet.svn.svn_monitoring</resource-bundle>
                            <portlet-info>
                            Subversion Monitoring
                            </portlet-info>



                            and I am having this error

                            [INFO] SvnMonitoringPortlet - Initializing...
                            [INFO] SvnMonitoringPortlet - Viewing...
                            [INFO] MethodResultCacheInterceptor - Cache-miss: reloading "hu.midori.kosmos.server.svn.SvnServiceImpl.getRepositories.svn+ssh://myserver/home/myproject/svn_repo"...
                            [ERROR] SvnServiceImpl - Unable to process the SVN repo <java.net.MalformedURLException: unknown protocol: svn+ssh>java.net.MalformedURLException: unknown protocol: svn+ssh


                            Can i Use svn+ssh?
                            in case of being possible, how can I put the login/password in the request?

                            Thank you in advance,

                            Best Regards,

                            • 11. Re: Kosmos Jira Authentication using Soap
                              Aron Gombas Novice

                               


                              But I am still having the same problem

                              Could you set your logging level to DEBUG and show me that log? It's hard to find out what's the problem when I see only the INFO log messages.
                              Thanks.


                              I have seen in Jira doc that when configuring the RPC plugin you have to configure some properties

                              The defaults are OK. All you have to do is enabling the SOAP plugin.

                              • 12. Re: Kosmos Jira Authentication using Soap
                                Aron Gombas Novice

                                Hi,

                                If you have questions related to the SVN monitoring, could you ask them in a separate topic, in order not to destroy the current one?

                                • 14. Re: Kosmos Jira Authentication using Soap
                                  Aron Gombas Novice

                                  No problem, but it's important to protect the topics if someone else faces the same problem in the future and wants to look up the answers.
                                  Thanks.

                                  1 2 Previous Next