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

Server adapter: always publishes on Eclipse startup

XMLWordPrintable

    • Hide
      1. ASSERT: make sure you have an OpenShift v3 server adapter (ex. called "eap-app at OpenShift 3 (10.1.2.2)")
      2. EXEC: File > Restart to restart Eclipse

      Result:

      • Eclipse is restarted, Servers view is visible: OS 3 server adapter is "[Started]" and turns to "[Started, Publishing...]"
      • if you didnt check "Save password" when creating your connection, you now have the connection dialog popping up, prompting you to provide the password for your connection
      • You get the connection dialog (if you didnt store the password) or at least the SSL certificate dialog presented right after Eclipse restarted since the server adapter is publishing right away.

      The actual callstack shows that OpenshiftResourceChangeListener.MagicProjectChangeJob is triggering a publish upon startup:

      Connection.authorize() line: 232	
      Connection.connect() line: 205	
      Connection.retryList(String, OpenShiftException, String) line: 410	
      Connection.getResources(String, String) line: 365	
      OpenShiftServerUtils.getService(IServerAttributes, Connection) line: 244	
      OpenShiftServerUtils.getService(IServerAttributes) line: 233	
      OpenShiftServerBehaviour.publish(int, List<IModule[]>, IProgressMonitor, IAdaptable) line: 45	
      Server.publishImpl(int, List<IModule[]>, IAdaptable, IProgressMonitor) line: 3172	
      Server.publish(int, IProgressMonitor) line: 1330	
      OpenshiftResourceChangeListener$MagicProjectChangeJob.autoPublish(IResourceChangeEvent) line: 227	
      OpenshiftResourceChangeListener$MagicProjectChangeJob.run(IProgressMonitor) line: 208
      
      Show
      ASSERT: make sure you have an OpenShift v3 server adapter (ex. called "eap-app at OpenShift 3 (10.1.2.2)") EXEC: File > Restart to restart Eclipse Result: Eclipse is restarted, Servers view is visible: OS 3 server adapter is " [Started] " and turns to " [Started, Publishing...] " if you didnt check "Save password" when creating your connection, you now have the connection dialog popping up, prompting you to provide the password for your connection You get the connection dialog (if you didnt store the password) or at least the SSL certificate dialog presented right after Eclipse restarted since the server adapter is publishing right away. The actual callstack shows that OpenshiftResourceChangeListener.MagicProjectChangeJob is triggering a publish upon startup: Connection.authorize() line: 232 Connection.connect() line: 205 Connection.retryList( String , OpenShiftException, String ) line: 410 Connection.getResources( String , String ) line: 365 OpenShiftServerUtils.getService(IServerAttributes, Connection) line: 244 OpenShiftServerUtils.getService(IServerAttributes) line: 233 OpenShiftServerBehaviour.publish( int , List<IModule[]>, IProgressMonitor, IAdaptable) line: 45 Server.publishImpl( int , List<IModule[]>, IAdaptable, IProgressMonitor) line: 3172 Server.publish( int , IProgressMonitor) line: 1330 OpenshiftResourceChangeListener$MagicProjectChangeJob.autoPublish(IResourceChangeEvent) line: 227 OpenshiftResourceChangeListener$MagicProjectChangeJob.run(IProgressMonitor) line: 208

            rob.stryker Rob Stryker (Inactive)
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: