Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12777

ClassCastException after updating TP when publishing to openshift

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.0.0.Alpha2
    • 4.0.0.Alpha2
    • openshift
    • None
    • Hide
      1. ASSERT: Have JBT 4 Alpha2b installed on eclipse juno sr0
      2. EXEC: Use Check for updates and update IDE and Egit
      3. ASSERT: Updater will install Egit 2.1 (required by Juno SR1) and leave Egit 2.0 installed (required by org.jboss.tools.openshift.express.ui)
      4. EXEC: Try to publish some openshift application e.g. via server adapter

      Result:
      ClassCastException (see below)

      Show
      ASSERT: Have JBT 4 Alpha2b installed on eclipse juno sr0 EXEC: Use Check for updates and update IDE and Egit ASSERT: Updater will install Egit 2.1 (required by Juno SR1) and leave Egit 2.0 installed (required by org.jboss.tools.openshift.express.ui) EXEC: Try to publish some openshift application e.g. via server adapter Result: ClassCastException (see below)

    Description

      Egit 2.0 and Egit 2.1 conflict resulting into:

      java.lang.ClassCastException: org.eclipse.jgit.transport.URIish cannot be cast to org.eclipse.jgit.transport.URIish
      	at org.jboss.tools.openshift.express.internal.ui.console.ConsoleUtils.getPushErrors(ConsoleUtils.java:177)
      	at org.jboss.tools.openshift.express.internal.ui.console.ConsoleUtils.getPushResultAsString(ConsoleUtils.java:128)
      	at org.jboss.tools.openshift.express.internal.ui.console.ConsoleUtils.appendGitPushToConsole(ConsoleUtils.java:119)
      	at org.jboss.tools.openshift.express.internal.core.behaviour.ExpressPublishMethod.commitAndPushProject(ExpressPublishMethod.java:249)
      	at org.jboss.tools.openshift.express.internal.core.behaviour.ExpressPublishMethod.publishFinish(ExpressPublishMethod.java:79)
      	at org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior.publishFinish(DeployableServerBehavior.java:96)
      	at org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior.publishFinish(DelegatingServerBehavior.java:148)
      	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:974)
      	at org.jboss.tools.openshift.express.internal.core.behaviour.ExpressBehaviour.publish(ExpressBehaviour.java:32)
      	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
      	at org.jboss.tools.openshift.express.internal.core.behaviour.ExpressBehaviour.publish(ExpressBehaviour.java:39)
      	at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3108)
      	at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      
      

      Attachments

        Issue Links

          Activity

            People

              adietish@redhat.com André Dietisheim
              sbunciak-rh Stefan Bunciak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: