Upsource installation

Dear upsorce geeks,

first of all, thank you for the great product, it's awesome!

I'm doing now installation of the upsource (v1.0.11826) to our internal cloud-based machine and I'm getting some odd errors. I was hoping that you could help me with that.

I did:

upsource@upsource01:~/Upsource/bin$ ./upsource.sh start

Using Java: /usr/java/jdk1.7.0_25/jre (version "1.7.0_25")

Starting Upsource...

* Configuring Upsource 1.0

[2014-11-14 11:35:27,918]   INFO - brains.bundle.BundleProperties - Made default base-url 'http://upsource01.fonterra.solnetsolutions.co.nz:8080/' from hostname 'upsource01.fonterra.solnetsolutions.co.nz' and listen port '8080'

* Upsource 1.0 is successfully configured

* Configuring Configuration Wizard

* Starting Configuration Wizard

* Upsource 1.0 will be available on [http://upsource01.fonterra.solnetsolutions.co.nz:8080] after start

[2014-11-14 11:35:28,013]   INFO - dle.wizard.ConfigurationWizard - =================================

[2014-11-14 11:35:28,018]   INFO - dle.wizard.ConfigurationWizard - Starting Configuration Wizard

[2014-11-14 11:35:28,058]   INFO -     org.eclipse.jetty.util.log - Logging initialized @867ms

[2014-11-14 11:35:28,575]   INFO - rg.eclipse.jetty.server.Server - jetty-9.2.3.v20140905

[2014-11-14 11:35:30,512]   INFO - pp.StandardDescriptorProcessor - NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet

[2014-11-14 11:35:30,569]   INFO -                              / - Spring WebApplicationInitializers detected on classpath: [com.jetbrains.installer.config.InstallerWebApplicationInitializer@58dbb8cf]

[2014-11-14 11:35:30,727]   INFO -                              / - Initializing Spring FrameworkServlet 'InstallerServletDispatcher'

[2014-11-14 11:35:30,727]   INFO - .web.servlet.DispatcherServlet - FrameworkServlet 'InstallerServletDispatcher': initialization started

[2014-11-14 11:35:30,737]   INFO - ionConfigWebApplicationContext - Refreshing WebApplicationContext for namespace 'InstallerServletDispatcher-servlet': startup date [Fri Nov 14 11:35:30 NZDT 2014]; root of context hierarchy

[2014-11-14 11:35:30,801]   INFO - ionConfigWebApplicationContext - Scanning base packages: [com.jetbrains.installer]

[2014-11-14 11:35:31,852]   INFO - n.RequestMappingHandlerMapping - Mapped "{[/wizard/wait],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto public java.util.Map<java.lang.String, java.lang.String> com.jetbrains.installer.rest.WaitResource.ping() throws java.io.IOException

[2014-11-14 11:35:31,853]   INFO - n.RequestMappingHandlerMapping - Mapped "{[/wizard/wait/url],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto public java.util.Map<java.lang.String, java.lang.String> com.jetbrains.installer.rest.WaitResource.getUrlToShowAfterCompletion() throws java.io.IOException

[2014-11-14 11:35:31,854]   INFO - n.RequestMappingHandlerMapping - Mapped "{[/browse],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto public com.jetbrains.installer.model.Folder com.jetbrains.installer.rest.FilesResource.getFolder(java.lang.String)

[2014-11-14 11:35:31,856]   INFO - n.RequestMappingHandlerMapping - Mapped "{[/wizard/youtrack],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto public com.jetbrains.installer.model.blocks.YouTrackBlock com.jetbrains.installer.rest.YouTrackResource.get(java.lang.String)

[2014-11-14 11:35:31,856]   INFO - n.RequestMappingHandlerMapping - Mapped "{[/wizard/youtrack],methods=[POST],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto public com.jetbrains.installer.model.blocks.YouTrackBlock com.jetbrains.installer.rest.YouTrackResource.post(com.jetbrains.installer.model.blocks.YouTrackBlock,java.lang.String) throws java.io.IOException

[2014-11-14 11:35:31,856]   INFO - n.RequestMappingHandlerMapping - Mapped "{[/wizard/youtrack/locales],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto public java.util.Collection<java.lang.String> com.jetbrains.installer.rest.YouTrackResource.getLocales() throws java.io.IOException

[2014-11-14 11:35:31,858]   INFO - n.RequestMappingHandlerMapping - Mapped "{[/wizard/upsource],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto public com.jetbrains.installer.model.blocks.UpsourceBlock com.jetbrains.installer.rest.UpsourceResource.get()

[2014-11-14 11:35:31,864]   INFO - n.RequestMappingHandlerMapping - Mapped "{[/wizard/upsource],methods=[POST],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto public com.jetbrains.installer.model.blocks.UpsourceBlock com.jetbrains.installer.rest.UpsourceResource.post(com.jetbrains.installer.model.blocks.UpsourceBlock) throws java.io.IOException

[2014-11-14 11:35:32,329]   INFO - eptionHandlerExceptionResolver - Detected @ExceptionHandler methods in requestErrorHandler

[2014-11-14 11:35:32,395]   INFO - .web.servlet.DispatcherServlet - FrameworkServlet 'InstallerServletDispatcher': initialization completed in 1668 ms

[2014-11-14 11:35:32,395]   INFO - .server.handler.ContextHandler - Started o.e.j.w.WebAppContext@11a226f7{/,file:/home/upsource/Upsource/internal/wizard_web/,AVAILABLE}

[2014-11-14 11:35:32,409]   INFO - e.jetty.server.ServerConnector - Started ServerConnector@6dff4890{HTTP/1.1}{0.0.0.0:8080}

[2014-11-14 11:35:32,409]   INFO - rg.eclipse.jetty.server.Server - Started @5221ms

Upsource is running.




Then I started a browser and pointed it to http://10.2.71.170:8080 (I have not setup DNS name yet), a Login page showed up after that, where I modified base-host and port to be like that: http://10.2.71.170:8080. Later on, I got a nice page with several progress bars indicating that cassandra and other stuff are starting. After hub and front end have been started the browser was redirected to http://upsource01.fonterra.solnetsolutions.co.nz:8080/, which is wrong! It is a hostname of the machine I use, but it's not available by it's host name at the moment and probably will never be available...

When I point my browser to http://10.2.71.170:8080 it keeps me redirecting to http://upsource01.fonterra.solnetsolutions.co.nz:8080/.

Ok, then I changed base-host and port through ./upsource cmd utility:

./upsource.sh configure --listen-port 8080 --base-url http://10.2.71.170:8080

Using Java: /usr/java/jdk1.7.0_25/jre (version "1.7.0_25")

* Configuring Upsource 1.0

[2014-11-14 11:45:24,325]   INFO - brains.bundle.BundleProperties - Setting property 'listen-port' to '8080' from arguments

[2014-11-14 11:45:24,326]   INFO - brains.bundle.BundleProperties - Setting property 'base-url' to 'http://10.2.71.170:8080' from arguments

Upsource 1.0 was successfully configured from arguments

* Configuring Service-Container[bundleProcess]

* Configuring Starting Page Service

* Configuring Apache Cassandra

cassandra: Using Java: /usr/java/jdk1.7.0_25/jre (version "1.7.0_25")

* Configuring Hub

hub: Using Java: /usr/java/jdk1.7.0_25/jre (version "1.7.0_25")

hub: [2014-11-14 11:45:28,425]   INFO - ns.hub.service.HubJettyService - Loading properties from /home/upsource/Upsource/temp/bundleProcess/configure-args-4547201078595376476.properties

* Configuring Service-Container[vcsSettingsContainer]

* Configuring VCS Settings

vcs-settings: Using Java: /usr/java/jdk1.7.0_25/jre (version "1.7.0_25")

vcs-settings: 0 [[APP-WRAPPER] Proxy 1] INFO jetbrains.vcs.server.settings.jetty.JettyServiceBase  - Updated service properties file: /home/upsource/Upsource/conf/vcs-settings/vcs-settings.properties

* Configuring Upsource Analyzer

upsource-analyzer: Using Java: /usr/java/jdk1.7.0_25/jre (version "1.7.0_25")

* Configuring Upsource Frontend

upsource-frontend: Using Java: /usr/java/jdk1.7.0_25/jre (version "1.7.0_25")

* Configuring Upsource Monitoring

upsource-monitoring: Using Java: /usr/java/jdk1.7.0_25/jre (version "1.7.0_25")


It seems to me it happily accepted that configuration. I opened http://10.2.71.170:8080 and saw progress bars again, then I was redirected to the Login form, entered corect username and password, pushed OK button, and the browser took me to this url after that:

http://10.2.71.170:8080/hub/api/rest/oauth2/auth?client_id=f58ff4a2-d215-474a-896b-88c4bc17c7c1&redirect_uri=http%3A%2F%2F10.2.71.170%3A8080%2F&response_type=token&scope=f58ff4a2-d215-474a-896b-88c4bc17c7c1+0-0-0-0-0+d2dc0ea7-230e-4e82-a3b2-10c278d3049f&state=c8f0c688-2c47-490b-993d-44ff911cb472&ticket=ST-2-nKoSYrcFjpzGrZEuWR3f-jetpass



And the browser displayed:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<error>Internal Server Error</error>


There are a couple of errors in the Chrome console:

1. Uncaught TypeError: Cannot set property 'cssText' of null jquery.min.js:14      (anonymous function)jquery.min.js:14      kjquery.min.js:14      l.fireWithjquery.min.js:14      p.extend.readyjquery.min.js:14 2. Error in event handler for runtime.onMessage: Failed to read the 'cookie' property from 'Document': Access is denied for this document. Stack trace: Error: Failed to read the 'cookie' property from 'Document': Access is denied for this document.     at Error (native)     at getCookie (chrome-extension://eadndfjplgieldjbigjakmdgkmoaaaoc/content.js:15:31)     at Object.exposed.getStatus (chrome-extension://eadndfjplgieldjbigjakmdgkmoaaaoc/content.js:78:8)     at exposed.messageListener (chrome-extension://eadndfjplgieldjbigjakmdgkmoaaaoc/content.js:58:25)     at EventImpl.dispatchToListener (extensions::event_bindings:397:22)     at Event.publicClass.(anonymous function) [as dispatchToListener] (extensions::utils:93:26)     at EventImpl.dispatch_ (extensions::event_bindings:379:35)     at EventImpl.dispatch (extensions::event_bindings:403:17)     at Event.publicClass.(anonymous function) [as dispatch] (extensions::utils:93:26)     at messageListener (extensions::messaging:188:29) auth:1 3. Failed to load resource: the server responded with a status of 500 (Server Error) http://10.2.71.170:8080/hub/api/rest/oauth2/auth?client_id=f58ff4a2-d215-47…0c688-2c47-490b-993d-44ff911cb472&ticket=ST-2-nKoSYrcFjpzGrZEuWR3f-jetpass


And in Upsource/logs/hub/logs/errors.log:

14 Nov 2014 11:38:55,036 WARN  [stomEditorConfigurer] [rvlet] Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [jetbrains.mps.webr.runtime.util.UserBrowser; offending editor instance: jetbrains.mps.webr.runtime.util.StringNullableEditor@124ccc85

14 Nov 2014 11:38:55,037 WARN  [stomEditorConfigurer] [rvlet] Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [jetbrains.mps.webr.runtime.util.UserOS; offending editor instance: jetbrains.mps.webr.runtime.util.StringNullableEditor@124ccc85

14 Nov 2014 11:38:57,655 ERROR [SupportedLocales    ] [rvlet] Cannot load locales configuration. To add locales configuration create file classpath:translations/supportedLocales.xml

14 Nov 2014 11:38:57,714 WARN  [MessagesContainer   ] [rvlet] Failed to load translations. No translation will be used in application

14 Nov 2014 11:39:00,302 WARN  [RealmVerifier       ] [rvlet] RP discovery / realm validation disabled;

14 Nov 2014 11:39:04,066 WARN  [tJPUserToJPGuestUser] [rvlet] No guest accounts found!

14 Nov 2014 11:39:04,340 WARN  [ToSpecialRootService] [rvlet] No previous root service found

14 Nov 2014 11:39:05,968 ERROR [JetPassMainApp      ] [rvlet] License Name is not set

jetbrains.jetpass.dao.api.LicenseViolationException: License Name is not set

     at jetbrains.jetpass.dao.dnq.license.ValidLicense.<init>(ValidLicense.java:42)

     at jetbrains.jetpass.dao.dnq.api.settings.JetPassSettingsDAO$LicenseSettingsUpdater.updateEntity(JetPassSettingsDAO.java:206)

     at jetbrains.jetpass.dao.dnq.api.settings.JetPassSettingsDAO$LicenseSettingsUpdater.updateEntity(JetPassSettingsDAO.java:188)

     at jetbrains.jetpass.dao.dnq.api.settings.JetPassSettingsDAO.updateEntity(JetPassSettingsDAO.java:73)

     at jetbrains.jetpass.dao.dnq.api.settings.JetPassSettingsDAO.updateEntity(JetPassSettingsDAO.java:35)

     at jetbrains.jetpass.dao.dnq.api.JetPassMutableDAO$2.invoke(JetPassMutableDAO.java:61)

     at jetbrains.jetpass.dao.dnq.api.JetPassReadOnlyDAO$4.invoke(JetPassReadOnlyDAO.java:164)

     at jetbrains.teamsys.dnq.runtime.txn._Txn.runNew(_Txn.java:217)

     at jetbrains.jetpass.dao.dnq.api.JetPassReadOnlyDAO.runTransaction(JetPassReadOnlyDAO.java:161)

     at jetbrains.jetpass.dao.dnq.api.JetPassMutableDAO.update(JetPassMutableDAO.java:56)

     at jetbrains.jetpass.service.bean.JetPassMainApp.initSettings(JetPassMainApp.java:341)

     at jetbrains.jetpass.service.bean.JetPassMainApp$2.run(JetPassMainApp.java:117)

     at jetbrains.jetpass.commonUI.user.auth.cas.BaseCASClient.runAs(BaseCASClient.java:87)

     at jetbrains.jetpass.service.bean.JetPassMainApp.init(JetPassMainApp.java:113)

     at jetbrains.jetpass.server.main.App.init(App.java:64)

     at jetbrains.jetpass.server.main.InitWebApplicationServiceLocatorListener.onAfterInit(InitWebApplicationServiceLocatorListener.java:47)

     at jetbrains.springframework.configuration.runtime.ServiceLocator.fireLocalAfterInit(ServiceLocator.java:112)

     at jetbrains.jetpass.server.main.ServletImpl.init(ServletImpl.java:70)

     at javax.servlet.GenericServlet.init(GenericServlet.java:244)

     at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:600)

     at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:389)

     at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:869)

     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)

     at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1341)

     at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1334)

     at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)

     at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:497)

     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

     at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

     at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

     at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

     at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)

     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

     at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

     at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

     at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

     at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)

     at org.eclipse.jetty.server.Server.start(Server.java:387)

     at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)

     at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)

     at org.eclipse.jetty.server.Server.doStart(Server.java:354)

     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

     at com.jetbrains.service.jetty.JettyServiceBase.start(JettyServiceBase.java:114)

     at com.jetbrains.bundle.services.impl.InProcessJettyService.doStart(InProcessJettyService.java:33)

     at com.jetbrains.bundle.services.impl.ServiceBase.start(ServiceBase.java:51)

     at com.jetbrains.bundle.Services.startService(Services.java:416)

     at com.jetbrains.bundle.Services.startAllServices(Services.java:401)

     at com.jetbrains.bundle.Services.start(Services.java:373)

     at com.jetbrains.bundle.BundleMain.start(BundleMain.java:185)

     at com.jetbrains.bundle.BundleMain.restartServices(BundleMain.java:276)

     at com.jetbrains.bundle.BundleMain.start(BundleMain.java:198)

     at com.jetbrains.bundle.BundleMain.start(BundleMain.java:150)

     at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:78)

     at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:76)

     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

     at java.util.concurrent.FutureTask.run(FutureTask.java:166)

     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

     at java.lang.Thread.run(Thread.java:724)

14 Nov 2014 11:45:11,160 WARN  [sientEntityStoreImpl] [rvlet] There're 0 open transient sessions. Print.

14 Nov 2014 11:45:11,208 WARN  [EventsMultiplexer   ] [rvlet] Can't access events multiplexer: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eventsMultiplexer': Bean creation not allowed while this factory is in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

14 Nov 2014 11:48:24,946 WARN  [stomEditorConfigurer] [rvlet] Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [jetbrains.mps.webr.runtime.util.UserBrowser; offending editor instance: jetbrains.mps.webr.runtime.util.StringNullableEditor@72d0eb68

14 Nov 2014 11:48:24,947 WARN  [stomEditorConfigurer] [rvlet] Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [jetbrains.mps.webr.runtime.util.UserOS; offending editor instance: jetbrains.mps.webr.runtime.util.StringNullableEditor@72d0eb68

14 Nov 2014 11:48:27,708 ERROR [SupportedLocales    ] [rvlet] Cannot load locales configuration. To add locales configuration create file classpath:translations/supportedLocales.xml

14 Nov 2014 11:48:27,775 WARN  [MessagesContainer   ] [rvlet] Failed to load translations. No translation will be used in application

14 Nov 2014 11:48:30,310 WARN  [RealmVerifier       ] [rvlet] RP discovery / realm validation disabled;

14 Nov 2014 11:50:53,111 WARN  [BaseExceptionMapper ] [89-38] REST exception for URL: /hub/api/rest/oauth2/auth

jetbrains.jetpass.client.auth.cas.ServiceTicketValidationException: Can't validate CAS ticket

     at jetbrains.jetpass.client.auth.cas.AuthClient.validate(AuthClient.java:124)

     at jetbrains.jetpass.oauth2.server.AuthResourceOwnerValidator.resolveCurrentUser(AuthResourceOwnerValidator.java:53)

     at jetbrains.jetpass.oauth2.server.AuthResourceOwnerValidator.validate(AuthResourceOwnerValidator.java:36)

     at jetbrains.jetpass.oauth2.server.AuthHandler.handleOAuthRequest(AuthHandler.java:48)

     at jetbrains.jetpass.oauth2.server.AuthHandler.handleOAuthRequest(AuthHandler.java:25)

     at jetbrains.jetpass.oauth2.server.OAuth2RequestHandler.handle(OAuth2RequestHandler.java:18)

     at jetbrains.jetpass.oauth2.server.Oauth2Resource.get_Auth(Oauth2Resource.java:40)

     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

     at java.lang.reflect.Method.invoke(Method.java:606)

     at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

     at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)

     at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

     at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)

     at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

     at com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)

     at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

     at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1483)

     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414)

     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)

     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)

     at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)

     at jetbrains.mps.webr.rpc.rest.provider.misc.DefaultRestRequestHandler.handle(DefaultRestRequestHandler.java:181)

     at jetbrains.mps.webr.runtime.requestProcessor.RestRequestProcessor.processRequest(RestRequestProcessor.java:47)

     at jetbrains.mps.webr.runtime.servlet.MainServlet.processRequest(MainServlet.java:252)

     at jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:138)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:769)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1667)

     at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:127)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)

     at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:242)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)

     at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)

     at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)

     at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at jetbrains.jetpass.server.performance.PerformanceFilter$1.invoke(PerformanceFilter.java:24)

     at jetbrains.jetpass.server.performance.PerformanceMonitor.request(PerformanceMonitor.java:75)

     at jetbrains.jetpass.server.performance.PerformanceFilter.doFilter(PerformanceFilter.java:22)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:248)

     at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:211)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)

     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)

     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)

     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)

     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

     at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)

     at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)

     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

     at org.eclipse.jetty.server.Server.handle(Server.java:497)

     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)

     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)

     at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:610)

     at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:539)

     at java.lang.Thread.run(Thread.java:724)

Caused by: java.net.ConnectException: Connection refused

     at java.net.PlainSocketImpl.socketConnect(Native Method)

     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)

     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)

     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)

     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

     at java.net.Socket.connect(Socket.java:579)

     at sun.net.NetworkClient.doConnect(NetworkClient.java:175)

     at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)

     at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)

     at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)

     at sun.net.www.http.HttpClient.New(HttpClient.java:290)

     at sun.net.www.http.HttpClient.New(HttpClient.java:306)

     at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)

     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)

     at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)

     at jetbrains.jetpass.client.auth.cas.Request.get(Request.java:60)

     at jetbrains.jetpass.client.auth.cas.AuthClient.validate(AuthClient.java:101)

     ... 69 more

14 Nov 2014 11:50:53,112 ERROR [faultExceptionMapper] [89-38] Exception while processing rest request

jetbrains.jetpass.client.auth.cas.ServiceTicketValidationException: Can't validate CAS ticket

     at jetbrains.jetpass.client.auth.cas.AuthClient.validate(AuthClient.java:124)

     at jetbrains.jetpass.oauth2.server.AuthResourceOwnerValidator.resolveCurrentUser(AuthResourceOwnerValidator.java:53)

     at jetbrains.jetpass.oauth2.server.AuthResourceOwnerValidator.validate(AuthResourceOwnerValidator.java:36)

     at jetbrains.jetpass.oauth2.server.AuthHandler.handleOAuthRequest(AuthHandler.java:48)

     at jetbrains.jetpass.oauth2.server.AuthHandler.handleOAuthRequest(AuthHandler.java:25)

     at jetbrains.jetpass.oauth2.server.OAuth2RequestHandler.handle(OAuth2RequestHandler.java:18)

     at jetbrains.jetpass.oauth2.server.Oauth2Resource.get_Auth(Oauth2Resource.java:40)

     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

     at java.lang.reflect.Method.invoke(Method.java:606)

     at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

     at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)

     at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

     at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)

     at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

     at com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)

     at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

     at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1483)

     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414)

     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)

     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)

     at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)

     at jetbrains.mps.webr.rpc.rest.provider.misc.DefaultRestRequestHandler.handle(DefaultRestRequestHandler.java:181)

     at jetbrains.mps.webr.runtime.requestProcessor.RestRequestProcessor.processRequest(RestRequestProcessor.java:47)

     at jetbrains.mps.webr.runtime.servlet.MainServlet.processRequest(MainServlet.java:252)

     at jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:138)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:769)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1667)

     at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:127)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)

     at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:242)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)

     at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)

     at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)

     at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at jetbrains.jetpass.server.performance.PerformanceFilter$1.invoke(PerformanceFilter.java:24)

     at jetbrains.jetpass.server.performance.PerformanceMonitor.request(PerformanceMonitor.java:75)

     at jetbrains.jetpass.server.performance.PerformanceFilter.doFilter(PerformanceFilter.java:22)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:248)

     at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:211)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)

     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)

     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)

     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)

     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

     at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)

     at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)

     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

     at org.eclipse.jetty.server.Server.handle(Server.java:497)

     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)

     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)

     at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:610)

     at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:539)

     at java.lang.Thread.run(Thread.java:724)

Caused by: java.net.ConnectException: Connection refused

     at java.net.PlainSocketImpl.socketConnect(Native Method)

     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)

     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)

     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)

     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

     at java.net.Socket.connect(Socket.java:579)

     at sun.net.NetworkClient.doConnect(NetworkClient.java:175)

     at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)

     at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)

     at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)

     at sun.net.www.http.HttpClient.New(HttpClient.java:290)

     at sun.net.www.http.HttpClient.New(HttpClient.java:306)

     at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)

     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)

     at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)

     at jetbrains.jetpass.client.auth.cas.Request.get(Request.java:60)

     at jetbrains.jetpass.client.auth.cas.AuthClient.validate(AuthClient.java:101)

     ... 69 more

14 Nov 2014 11:50:53,123 WARN  [BaseExceptionMapper ] [89-38] REST exception for URL: /hub/api/rest/oauth2/auth

javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class jetbrains.mps.webr.rpc.rest.provider.exception.ErrorBean, and Java type class jetbrains.mps.webr.rpc.rest.provider.exception.ErrorBean, and MIME media type text/html; charset=UTF-8 was not found

     at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:285)

     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1451)

     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)

     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)

     at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)

     at jetbrains.mps.webr.rpc.rest.provider.misc.DefaultRestRequestHandler.handle(DefaultRestRequestHandler.java:181)

     at jetbrains.mps.webr.runtime.requestProcessor.RestRequestProcessor.processRequest(RestRequestProcessor.java:47)

     at jetbrains.mps.webr.runtime.servlet.MainServlet.processRequest(MainServlet.java:252)

     at jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:138)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:769)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1667)

     at jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:127)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)

     at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:242)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)

     at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)

     at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)

     at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at jetbrains.jetpass.server.performance.PerformanceFilter$1.invoke(PerformanceFilter.java:24)

     at jetbrains.jetpass.server.performance.PerformanceMonitor.request(PerformanceMonitor.java:75)

     at jetbrains.jetpass.server.performance.PerformanceFilter.doFilter(PerformanceFilter.java:22)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:248)

     at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:211)

     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)

     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)

     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)

     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)

     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)

     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

     at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)

     at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)

     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

     at org.eclipse.jetty.server.Server.handle(Server.java:497)

     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)

     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)

     at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:610)

     at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:539)

     at java.lang.Thread.run(Thread.java:724)

Caused by: com.sun.jersey.api.MessageException: A message body writer for Java class jetbrains.mps.webr.rpc.rest.provider.exception.ErrorBean, and Java type class jetbrains.mps.webr.rpc.rest.provider.exception.ErrorBean, and MIME media type text/html; charset=UTF-8 was not found

     ... 51 more


Any thoughts?
Thank you.

12 comments

Hello,

Thank you for the report.
We're trying now to repro this problem locally.

As for quick workaround, I could recommend you fresh reinstall and give it right base url in the setup wizard

0

Hi Evgeny,

thanks for your reply.

Could you please clarify this:

give it right base url in the setup wizard


What do you mean by "right url"? When I was doing installation I gave IP address (internal IP address) of the machine I used. Furthermore, I accessed that "wizard" through this IP.

Thanks,
Vlad

0

Sorry, I haven't read your message carefully.
This is a bug, actually.
I've filed up the report in our issue tracker: https://youtrack.jetbrains.com/issue/UP-2480

Thank you

0

Would You please attach content of logs and conf directories? It would help us to investigate the issue.

0

Hi All,

thank you for your help. I have attached logs and conf files.

Thanks,
Vlad



Attachment(s):
logs.zip
conf.zip
0

Hi,

Thank you for the logs. Wi'll investigate what's going on shortly

0

HI All,

thanks for your help.

More info on that. I can reproduce this even on my laptop:

1. Add an entry in your /etc/hosts, e.g.

10.2.71.170     localhost

2. Use 10.2.71.170 as host-url for upsource installation.


Thanks,
Vlad

0

Hi,

Ok, this prblem has been fixed, and will be available in the next EAP build shortly.

Thank you

0

Hi Evgeny,

thank you very much. I'm looking forward to trying this fix out. Could you please let me know when the next build is schedulled?

Thanks,
Vlad

0

Hi Evgeny,

thank you very much! It's working now! Awesome!

Some thoughts for improvements:

The feature to identify issue tracking urls is great, but this works only for one project in Jira. Currently we have several sub-projects in Jira (with different url patterns), e.g. FS-123, FEC-345 etc.. Upsource supports only one pattern currently. It would be great if it could support more than one...

Thanks,
Vlad

0

Hi,

Sure. Actually, Upsource supports many patterns, but this is not configurable through UI now, unfortunately.

Thank you

0

Please sign in to leave a comment.