Teamcity plugin problems

Answered

hi,

I am using IDEA 10.5.1 and have a TeamCity        Enterprise Version 6.0.3 (build 15925) server. I can not manage to get the plugin to work.

if I upgrade to the latest plugin then I get the following message:

TeamCity plugin version is not compatible with the server.
Server version is 15925, plugin version is 17795, download updated version of plugin?


If I don't update(which really get's an older version) I get a message concerning incompatibilty problems. If I do update IntelliJ IDEA downgrades to 6.15925 and I restart. But then I get an other error:

Cannot login to TeamCity: Cannot construct jetbrains.buildServer.users.UserData as it does not have a no-args constructor

Anyone else have this? Any work-arounds?

Message was edited by: Florian Hehlen

14 comments

Hi Florian,

Looks like TW-16748.

Please try the approach suggested there - run under java over than 1.7 and 1.6.0_21.

Denis

0

The issue has gone away with 1.6.0_26. But I have to say that the issue was happening with 1.7-ea m13... so maybe the issue is back.

thanks

0

The same issue on:

IntelliJ IDEA 2017.1.2
Build #IU-171.4249.39, built on April 25, 2017
JRE: 1.8.0_112-release-736-b16 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1

0

Do you get the same error message? Please provide information about your Server, plugin and IDE versions.

0

The same message.

Plugin: Version: 8.1.30168 

Server: TeamCity Enterprise 8.1.4 (build 30168)

0

Could you please provide idea.log ("Help | Show Log in...") after restarting IDE and reproducing the issue?

0

2017-10-16 09:22:55,546 [ 48630] WARN - r.login.BuildServerLoginDialog - Login failed: com.thoughtworks.xstream.converters.ConversionException: Cannot construct jetbrains.buildServer.users.UserData as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.users.UserData as it does not have a no-args constructor
---- Debugging information ----
message : Cannot construct jetbrains.buildServer.users.UserData as it does not have a no-args constructor
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message : Cannot construct jetbrains.buildServer.users.UserData as it does not have a no-args constructor
class : jetbrains.buildServer.users.UserData
required-type : jetbrains.buildServer.users.UserData
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /jetbrains.buildServer.users.UserData
line number : 1
version : 30168
-------------------------------, enable debug to see stacktrace
2017-10-16 09:22:55,558 [ 48642] INFO - buildServer.BuildServerManager - Login error:
com.thoughtworks.xstream.converters.ConversionException: Cannot construct jetbrains.buildServer.users.UserData as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.users.UserData as it does not have a no-args constructor
---- Debugging information ----
message : Cannot construct jetbrains.buildServer.users.UserData as it does not have a no-args constructor
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message : Cannot construct jetbrains.buildServer.users.UserData as it does not have a no-args constructor
class : jetbrains.buildServer.users.UserData
required-type : jetbrains.buildServer.users.UserData
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /jetbrains.buildServer.users.UserData
line number : 1
version : 30168
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1035)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1019)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:895)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:886)
at jetbrains.buildServer.xstream.XStreamWrapper.fromXML(XStreamWrapper.java:113)
at jetbrains.buildServer.xstream.XStreamWrapper.deserializeObjectInternal(XStreamWrapper.java:258)
at jetbrains.buildServer.xstream.XStreamWrapper.deserializeObject(XStreamWrapper.java:234)
at jetbrains.buildServer.serverProxy.RemoteBuildServerFacade.deserializeObject(RemoteBuildServerFacade.java:299)
at jetbrains.buildServer.serverProxy.RemoteBuildServerFacade.checkPassword(RemoteBuildServerFacade.java:903)
at jetbrains.buildServer.TeamCitySnapshot$8.run(TeamCitySnapshot.java:437)
at jetbrains.buildServer.TeamCityProcessManager.performAction(TeamCityProcessManager.java:116)
at jetbrains.buildServer.TeamCityProcessManager.performAction(TeamCityProcessManager.java:75)
at jetbrains.buildServer.TeamCitySnapshot.authorize(TeamCitySnapshot.java:425)
at jetbrains.buildServer.BuildserverLoginPanel.login(BuildserverLoginPanel.java:175)
at jetbrains.buildServer.login.BuildServerLoginDialog$1.run(BuildServerLoginDialog.java:69)
at jetbrains.buildServer.BuildServerManager$32.run(BuildServerManager.java:1210)
at jetbrains.buildServer.BuildServerManager$31.run(BuildServerManager.java:1190)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:726)
at com.intellij.openapi.progress.impl.CoreProgressManager$6.run(CoreProgressManager.java:410)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:176)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:556)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:594)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct jetbrains.buildServer.users.UserData as it does not have a no-args constructor
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:424)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:229)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
... 36 more

0

Could you please share full file via dropbox/google or send it to yaroslav.bedrov"at"jetbrains.com?

0

Does it help if you update you TeamCity plugin?

0

No, I got message that the plugin version doesn't match server version.

0

You could try to use Oracle JDK to run IDEA: https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under

It should fix the issue.

Other way is to update TeamCity server and plugin.

0

Please sign in to leave a comment.