trouble connecting with gitlab

Issue #71 invalid
Marek Boniewski created an issue

Configuration: * jira 8.0.2 with apache2 * jigit 1.2.10

When I try to connect to gitlab I get an error:

error: http://gitlab/api/v4/projects/test%2Ftest/repository/branches?page=1&per_page=100 . See JIRA log for details.

Jira log:

2019-03-13 15:23:16,629 http-nio-8080-exec-16 ERROR maro 923x55052x2 vnrdi9 192.168.7.37 /rest/jigit/1.0/repo/test [jigit.resource.JigitAdminResource] An exception was occurred while testing a repository test java.io.FileNotFoundException: http://gitlab/api/v4/projects/test%2Ftest/repository/branches?page=1&per_page=100 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1890) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) at api.client.http.ApiHttpRequester.parse(ApiHttpRequester.java:104) at api.client.http.ApiHttpRequester.withResultOf(ApiHttpRequester.java:76) at api.client.http.ApiHttpRequester.withResultOf(ApiHttpRequester.java:68) at jigit.client.gitlab.GitLabRepositoryAPI.branches(GitLabRepositoryAPI.java:67) at jigit.indexer.api.gitlab.GitLabAPIAdapter.branches(GitLabAPIAdapter.java:70) at jigit.indexer.branch.BranchesApiCall.branches(BranchesApiCall.java:23) at jigit.indexer.repository.RepoInfoGroupProxy.<init>(RepoInfoGroupProxy.java:32) at jigit.indexer.repository.RepoType$2.repositories(RepoType.java:45) at jigit.indexer.repository.ServiceType.gitlabRepositories(ServiceType.java:80) at jigit.indexer.repository.ServiceType.access$100(ServiceType.java:26) at jigit.indexer.repository.ServiceType$1.repositories(ServiceType.java:32) at jigit.indexer.repository.RepoInfoFactoryImpl.build(RepoInfoFactoryImpl.java:20) at jigit.resource.JigitAdminResource.testRepo(JigitAdminResource.java:142) ... 3 filtered at java.lang.reflect.Method.invoke(Method.java:498) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ... 13 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:159) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:69) ... 41 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 53 filtered at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66) ... 1 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64) ... 16 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 19 filtered at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) ... 10 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 4 filtered at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36) ... 26 filtered at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) ... 25 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) 2019-03-13 15:23:18,423 http-nio-8080-exec-23 ERROR adrianch 923x55074x1 1pu01ta 192.168.7.21 /rest/softwareplant-bigpicture/1.0/ppm/views/column [c.s.u.rest.exceptionhandling.RequestThrowableTokenizer] Token: 18e3840c8d9816989813c89eb944c885.803dad37a8f1cd4674d5bffce5e25c18.Wed Mar 13 15:23:18 CET 2019, Exception: URL: GET http://jira:8080/rest/softwareplant-bigpicture/1.0/ppm/views/column?contextId=&moduleCode=WBS_EXTERNAL_TASK_PANEL Cookies: javax.servlet.http.Cookie@6ee3485c[name=systemRESTBaseURL,value=http%3A%2F%2Fjira%3A8080%2Frest%2Fsoftwareplant-bigpicture%2F1.0,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@52f6e71e[name=paramsCookie,value=isLicenseValid%7Etrue%7ChasRightsToCreate%7Efalse%7ChasPluginAdministratorPermission%7Etrue%7CpluginName%7Ebigpicture%7CrestBaseURL%7Esoftwareplant-bigpicture%7CisDownloadingLogsEnabled%7Etrue%7CpluginKey%7Eeu.softwareplant.bigpicture%7CextUserKey%7Eadrianch%7CfeedbackEnabled%7Etrue%7ChasRightsToCreateProject%7Etrue,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@d11b407[name=application-base-url,value=,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@732c8006[name=bpRestBaseURL,value=softwareplant-bigpicture,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@7798797[name=bpPluginKey,value=eu.softwareplant.bigpicture,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@62524e71[name=loggedInUserName,value=Adrian%20Chomicki,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@62637fb0[name=bpActiveProgramId,value=,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@7558ff4a[name=jira.editor.user.mode,value=source,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@3e569b49[name=AJS.conglomerate.cookie,value=|timesheet.14810.page=1,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@4e876b34[name=JSESSIONID,value=76475C21215EAC7B9839C214CAC54858,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@37e003ab[name=atlassian.xsrf.token,value=BXL0-YWY5-Z0S4-6ZZA_274c63c8c03418f524e478235def4a741f63a038_lin,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@57018b2[name=bpTaskKey,value=2%401%4035326,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0] java.lang.IllegalArgumentException: Id cannot have @ on ends, ids: [true, viewsForTarget@WBS_EXTERNAL_TASK_PANEL@] at com.softwareplant.util.lang.CompoundId.validate(CompoundId.java:31) at com.softwareplant.util.lang.CompoundId.<init>(CompoundId.java:26) at com.softwareplant.util.property.infrastructure.PropertyKey.<init>(PropertyKey.java:19) at com.softwareplant.util.property.infrastructure.PropertyKey.<init>(PropertyKey.java:29) at com.softwareplant.util.property.infrastructure.PropertyKey.of(PropertyKey.java:33) at com.softwareplant.ppm.task.domain.view.ViewRepository.toAppPropertyKey(ViewRepository.java:87) at com.softwareplant.ppm.task.domain.view.ViewRepository.getViewIdsForTarget(ViewRepository.java:91) at com.softwareplant.ppm.task.domain.view.ViewRepository.getViews(ViewRepository.java:48) at com.softwareplant.ppm.task.domain.view.ViewRepository.getViewsOrDefault(ViewRepository.java:38) at com.softwareplant.ppm.task.app.ViewService.getPersonalView(ViewService.java:57) at com.softwareplant.ppm.task.rest.view.ColumnViewResourceServer.getViews(ColumnViewResourceServer.java:51) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:498) at com.softwareplant.system.core.endpoint.BeanProxySystemEndPointRequest.invoke(BeanProxySystemEndPointRequest.java:35) at com.softwareplant.system.core.endpoint.SystemEndPointChain.processRequest(SystemEndPointChain.java:15) at com.softwareplant.system.core.transaction.TransactionManager.invoke(TransactionManager.java:23) at com.softwareplant.system.core.endpoint.SystemEndPointChain.processRequest(SystemEndPointChain.java:19) at com.softwareplant.system.core.endpoint.interceptors.SessionContextSystemEndPointInterceptor.invoke(SessionContextSystemEndPointInterceptor.java:25) at com.softwareplant.system.core.endpoint.SystemEndPointChain.processRequest(SystemEndPointChain.java:19) at com.softwareplant.system.core.cache.TenantCacheSystemEndPointInterceptor.invoke(TenantCacheSystemEndPointInterceptor.java:31) at com.softwareplant.system.core.endpoint.SystemEndPointChain.processRequest(SystemEndPointChain.java:19) at com.softwareplant.system.core.endpoint.interceptors.MonitoringSystemEndPointInterceptor.lambda$invoke$2(MonitoringSystemEndPointInterceptor.java:40) at com.codahale.metrics.Timer.time(Timer.java:104) at com.softwareplant.util.monitoring.DropwizardMetrics.measureCheckedException(DropwizardMetrics.java:43) at com.softwareplant.util.monitoring.MonitoringImpl.monitore(MonitoringImpl.java:32) at com.softwareplant.system.core.endpoint.interceptors.MonitoringSystemEndPointInterceptor.invoke(MonitoringSystemEndPointInterceptor.java:40) at com.softwareplant.system.core.endpoint.SystemEndPointChain.processRequest(SystemEndPointChain.java:19) at com.softwareplant.system.core.endpoint.SystemEndPointInterceptors.run(SystemEndPointInterceptors.java:24) at com.softwareplant.system.core.SimpleSystem.invoke(SimpleSystem.java:96) at com.softwareplant.system.core.endpoint.BeanProxySystemEndPointInvocationHandler.invoke(BeanProxySystemEndPointInvocationHandler.java:38) at com.softwareplant.util.lang.ProxyFactory.lambda$classProxy$7(ProxyFactory.java:32) at com.softwareplant.ppm.task.rest.view.ColumnViewResourceServer$ByteBuddy$SVfkYXXw.getViews(Unknown Source) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:498) ... 18 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:159) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:69) ... 41 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 53 filtered at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66) ... 1 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64) ... 16 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 19 filtered at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) ... 10 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 4 filtered at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36) ... 26 filtered at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) ... 25 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) 2019-03-13 15:23:32,751 http-nio-8080-exec-24 ERROR adrianch 923x55111x1 1pu01ta 192.168.7.21 /rest/softwareplant-bigpicture/1.0/ppm/views/column [c.s.u.rest.exceptionhandling.RequestThrowableTokenizer] Token: 18e3840c8d9816989813c89eb944c885.6455387731fa0c181a4c6772ba77276b.Wed Mar 13 15:23:32 CET 2019, Exception: URL: GET http://jira:8080/rest/softwareplant-bigpicture/1.0/ppm/views/column?contextId=&moduleCode=WBS_EXTERNAL_TASK_PANEL Cookies: javax.servlet.http.Cookie@ce27645[name=systemRESTBaseURL,value=http%3A%2F%2Fjira%3A8080%2Frest%2Fsoftwareplant-bigpicture%2F1.0,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@70195769[name=paramsCookie,value=isLicenseValid%7Etrue%7ChasRightsToCreate%7Efalse%7ChasPluginAdministratorPermission%7Etrue%7CpluginName%7Ebigpicture%7CrestBaseURL%7Esoftwareplant-bigpicture%7CisDownloadingLogsEnabled%7Etrue%7CpluginKey%7Eeu.softwareplant.bigpicture%7CextUserKey%7Eadrianch%7CfeedbackEnabled%7Etrue%7ChasRightsToCreateProject%7Etrue,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@4bcef00f[name=application-base-url,value=,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@25f2f1c5[name=bpRestBaseURL,value=softwareplant-bigpicture,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@3abdeb60[name=bpPluginKey,value=eu.softwareplant.bigpicture,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@254141[name=loggedInUserName,value=Adrian%20Chomicki,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@3c5797c2[name=bpActiveProgramId,value=,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@e192554[name=jira.editor.user.mode,value=source,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@5baa391c[name=AJS.conglomerate.cookie,value=|timesheet.14810.page=1,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@712f4461[name=JSESSIONID,value=76475C21215EAC7B9839C214CAC54858,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@71c62401[name=atlassian.xsrf.token,value=BXL0-YWY5-Z0S4-6ZZA_274c63c8c03418f524e478235def4a741f63a038_lin,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0], javax.servlet.http.Cookie@36b29ce8[name=bpTaskKey,value=2%401%4035326,comment=<null>,domain=<null>,maxAge=-1,path=<null>,secure=false,version=0] java.lang.IllegalArgumentException: Id cannot have @ on ends, ids: [true, viewsForTarget@WBS_EXTERNAL_TASK_PANEL@] at com.softwareplant.util.lang.CompoundId.validate(CompoundId.java:31) at com.softwareplant.util.lang.CompoundId.<init>(CompoundId.java:26) at com.softwareplant.util.property.infrastructure.PropertyKey.<init>(PropertyKey.java:19) at com.softwareplant.util.property.infrastructure.PropertyKey.<init>(PropertyKey.java:29) at com.softwareplant.util.property.infrastructure.PropertyKey.of(PropertyKey.java:33) at com.softwareplant.ppm.task.domain.view.ViewRepository.toAppPropertyKey(ViewRepository.java:87) at com.softwareplant.ppm.task.domain.view.ViewRepository.getViewIdsForTarget(ViewRepository.java:91) at com.softwareplant.ppm.task.domain.view.ViewRepository.getViews(ViewRepository.java:48) at com.softwareplant.ppm.task.domain.view.ViewRepository.getViewsOrDefault(ViewRepository.java:38) at com.softwareplant.ppm.task.app.ViewService.getPersonalView(ViewService.java:57) at com.softwareplant.ppm.task.rest.view.ColumnViewResourceServer.getViews(ColumnViewResourceServer.java:51) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:498) at com.softwareplant.system.core.endpoint.BeanProxySystemEndPointRequest.invoke(BeanProxySystemEndPointRequest.java:35) at com.softwareplant.system.core.endpoint.SystemEndPointChain.processRequest(SystemEndPointChain.java:15) at com.softwareplant.system.core.transaction.TransactionManager.invoke(TransactionManager.java:23) at com.softwareplant.system.core.endpoint.SystemEndPointChain.processRequest(SystemEndPointChain.java:19) at com.softwareplant.system.core.endpoint.interceptors.SessionContextSystemEndPointInterceptor.invoke(SessionContextSystemEndPointInterceptor.java:25) at com.softwareplant.system.core.endpoint.SystemEndPointChain.processRequest(SystemEndPointChain.java:19) at com.softwareplant.system.core.cache.TenantCacheSystemEndPointInterceptor.invoke(TenantCacheSystemEndPointInterceptor.java:31) at com.softwareplant.system.core.endpoint.SystemEndPointChain.processRequest(SystemEndPointChain.java:19) at com.softwareplant.system.core.endpoint.interceptors.MonitoringSystemEndPointInterceptor.lambda$invoke$2(MonitoringSystemEndPointInterceptor.java:40) at com.codahale.metrics.Timer.time(Timer.java:104) at com.softwareplant.util.monitoring.DropwizardMetrics.measureCheckedException(DropwizardMetrics.java:43) at com.softwareplant.util.monitoring.MonitoringImpl.monitore(MonitoringImpl.java:32) at com.softwareplant.system.core.endpoint.interceptors.MonitoringSystemEndPointInterceptor.invoke(MonitoringSystemEndPointInterceptor.java:40) at com.softwareplant.system.core.endpoint.SystemEndPointChain.processRequest(SystemEndPointChain.java:19) at com.softwareplant.system.core.endpoint.SystemEndPointInterceptors.run(SystemEndPointInterceptors.java:24) at com.softwareplant.system.core.SimpleSystem.invoke(SimpleSystem.java:96) at com.softwareplant.system.core.endpoint.BeanProxySystemEndPointInvocationHandler.invoke(BeanProxySystemEndPointInvocationHandler.java:38) at com.softwareplant.util.lang.ProxyFactory.lambda$classProxy$7(ProxyFactory.java:32) at com.softwareplant.ppm.task.rest.view.ColumnViewResourceServer$ByteBuddy$SVfkYXXw.getViews(Unknown Source) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:498) ... 18 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:159) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:69) ... 41 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 53 filtered at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66) ... 1 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64) ... 16 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 19 filtered at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) ... 10 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 4 filtered at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36) ... 26 filtered at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) ... 25 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)

Comments (3)

  1. Dmitrii Apanasevich repo owner

    Hi Marek,

    It's not the add-on issue. I think, the root cause of the problem is nginx configuration. Look, at how other users solved the same issue:

  2. Log in to comment