Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340418

Summary: resource server address cannot be null
Product: [Technology] OSEE Reporter: sholto maud <sholto.maud>
Component: OSEE Application FrameworkAssignee: Ryan Brooks <ryan.d.brooks>
Status: ASSIGNED --- QA Contact:
Severity: major    
Priority: P3 CC: ryan.d.brooks
Version: 0.9.4   
Target Milestone: 0.9.9   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description sholto maud CLA 2011-03-18 08:20:12 EDT
Build Identifier: 20100917-0705

Running Eclipse Helios as Admin on Windows 7, and get "OTE Persistence Bulk Load encountered a problem" org.eclipse.osee.framework.core.exception.OseeArgumentException: resource server address cannot be null
resource server address cannot be null 

Reproducible: Always

Steps to Reproduce:
1.Open Perspective
2.
3.
Comment 1 sholto maud CLA 2011-03-18 16:54:47 EDT
64 bit
Comment 2 sholto maud CLA 2011-03-22 07:25:15 EDT
(In reply to comment #1)
> 64 bit

I seem to be failing to get the Postgres db running correctly - it might be good for us beginners to have a webcast on the initialization step.
Comment 3 Ryan Brooks CLA 2011-03-22 14:32:13 EDT
Hi Sholto,

Since you are running into an issue with the configuration of Postgres, perhaps the easiest solution for you would be for us to provide a build of OSEE that includes an embedded database (which does not require a separate install or confirmation).  We have recently included the H2 Database Engine in OSEE, so if that works for you, we can simply provide an updated version of OSEE.

Regards,
Ryan
Comment 4 Ryan Brooks CLA 2011-03-23 20:42:40 EDT
Just in case your issue is not related to installing Postgres here is a couple of things to check.

The server has to be running before you start the client.
Also in the eclipse.ini (found in the Eclipse install folder) add the following two lines to the end of that file:
-Dosee.arbitration.server=http://localhost:8089
-Dosee.authentication.protocol=trustAll

Please see http://www.eclipse.org/osee/downloads/ as a reference.
Comment 5 sholto maud CLA 2011-03-24 23:12:42 EDT
(In reply to comment #4)
> Just in case your issue is not related to installing Postgres here is a couple
> of things to check.
> 
> The server has to be running before you start the client.
> Also in the eclipse.ini (found in the Eclipse install folder) add the following
> two lines to the end of that file:
> -Dosee.arbitration.server=http://localhost:8089
> -Dosee.authentication.protocol=trustAll
> 
> Please see http://www.eclipse.org/osee/downloads/ as a reference.

I'm running through the Postgres setup again on a different 32bit machine Windows 7 at work. I've run the Postgres.exe setup as administrator and getting the same permissions problems as I did on the 64bit W7 machine at home (see error below). 

On Windows 7 I also have to run the Eclipse application as Administrator in order to download extensions successfully. 

An embedded H2 database may help short circuit this issue.

I'll try to change the permissions on the Program Files directory and then report back.

----The install-postgresql.log file says: 
 
fixing permissions on existing directory C:/Program Files/PostgreSQL/9.0/data ... initdb: could not change permissions of directory "C:/Program Files/PostgreSQL/9.0/data": Permission denied

Called Die(Failed to initialise the database cluster with initdb)...
Failed to initialise the database cluster with initdb

Script stderr:
 Program ended with an error exit code

Error running cscript //NoLogo "C:\Program Files\PostgreSQL\9.0/installer/server/initcluster.vbs" "postgres" "postgres" "****" "C:\Program Files\PostgreSQL\9.0" "C:\Program Files\PostgreSQL\9.0\data" 5432 "DEFAULT" : Program ended with an error exit code
Problem running post-install step. Installation may not complete correctly
 The database cluster initialisation failed.
Comment 6 Ryan Brooks CLA 2011-03-28 11:42:01 EDT
Here are the instructions for installing the release candidate of OSEE that uses H2 instead of Postgres:

download http://www.eclipse.org/downloads/download.php?file=/technology/osee/installs/rc_osee_server_runtime.zip

unzip rc_osee_server_runtime.zip 

launch using rc_osee_server_runtime\runDemo (.bat or .sh)

unzip eclipse-SDK-3.6.2-win32.zip (or use an existing 3.6.2 Eclipse)

Add following two lines to end of eclipse\config.ini
	-Dosee.authentication.protocol=trustAll
	-Dosee.arbitration.server=http://localhost:8089

Launch eclipse.exe

open http://www.eclipse.org/downloads/download.php?file=/technology/osee/installs/rc_update_site in web browser

select a mirror and copy path (i.e. http://mirrors.ibiblio.org/pub/mirrors/eclipse/technology/osee/installs/rc_update_site/)

Help -> Install New Software -> Add -> use path copied from above step
Comment 7 sholto maud CLA 2011-03-28 21:44:42 EDT
(In reply to comment #6)
> Here are the instructions for installing the release candidate of OSEE that
> uses H2 instead of Postgres:
> 
> download
> http://www.eclipse.org/downloads/download.php?file=/technology/osee/installs/rc_osee_server_runtime.zip

done -> success

> unzip rc_osee_server_runtime.zip 

done -> success
 
> launch using rc_osee_server_runtime\runDemo (.bat or .sh)

done -> success
Application Server: [714...] registered 
(left DOS box open)
 
> unzip eclipse-SDK-3.6.2-win32.zip (or use an existing 3.6.2 Eclipse)

done -> success
Downloaded eclipse-SDK-3.6.2-win32.zip & unzipped to "c:\Program files"
 
> Add following two lines to end of eclipse\config.ini
>     -Dosee.authentication.protocol=trustAll
>     -Dosee.arbitration.server=http://localhost:8089
> 

done ->
eclipse\config.ini contents:
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx384m

-Dosee.authentication.protocol=trustAll
-Dosee.arbitration.server=http://localhost:8089


> Launch eclipse.exe

done -> success 
Right click, "Run as administrator" because it is OS Windows 7, 64bit architecture. 
 
> open
> http://www.eclipse.org/downloads/download.php?file=/technology/osee/installs/rc_update_site
> in web browser

done -> success

> select a mirror and copy path (i.e. http://mirrors.ibiblio.org/pub/mirrors/eclipse/technology/osee/installs/rc_update_site/)

done -> success
Used path http://mirrors.ibiblio.org/pub/mirrors/eclipse/technology/osee/installs/rc_update_site/ 
 
> Help -> Install New Software -> Add -> use path copied from above step

done -> Install can see: osee_client 0.9.8 N201103240051	
clicked 'next' 
Calculating Requirements and dependencies -> fail
Message: 
The operation cannot be completed.  See the details.
Details: 
Cannot complete the install because one or more required items could not be found.
  Software being installed: Eclipse OSEE Framework Feature (Incubation) 0.9.8.v201103240051-1968sFD3wThhU9xOTUch (org.eclipse.osee.framework.feature.feature.group 0.9.8.v201103240051-1968sFD3wThhU9xOTUch)
  Missing requirement: Osee DSL Integration 0.9.8.v201103240051 (org.eclipse.osee.framework.core.dsl.integration 0.9.8.v201103240051) requires 'package org.eclipse.emf.compare.diff.metamodel 0.0.0' but it could not be found
  Cannot satisfy dependency:
    From: Eclipse OSEE Framework Feature (Incubation) 0.9.8.v201103240051-1968sFD3wThhU9xOTUch (org.eclipse.osee.framework.feature.feature.group 0.9.8.v201103240051-1968sFD3wThhU9xOTUch)
    To: org.eclipse.osee.framework.core.dsl.integration [0.9.8.v201103240051]
Comment 8 Ryan Brooks CLA 2011-03-30 18:24:54 EDT
The most recent issue you ran into is related to Eclipse's P2 mechanism for installing plugins.

The package org.eclipse.emf.compare.diff.metamodel could not be found.  This is a package that is not directly included in the OSEE clinet, but a dependency that should be resolved by P2.

In the install dialog, please ensure that the check box "contact all update sties during install to find required software" is selected.  Also I used eclipse-SDK-3.6.2-win32.zip to test this, but you will need The 3.6.2 Eclipse that is appropriate for your OS.  I think in your case that would be http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.6.2-201102101200/eclipse-SDK-3.6.2-win32-x86_64.zip

I will try this on a Windows 7 machine to see if I can repeat the issue.
Comment 9 Ryan Brooks CLA 2011-04-01 01:52:10 EDT
Ok so I did install the client update site into eclipse-SDK-3.6.2-win32-x86_64.zip on Windows 7, but it worked for me.  However, the good news is that I have posed the resulting Win 64 Eclipse with OSEE installed in it.  It even has the correct properties added to the .ini file, so all you will need to do is launch the server, download and unzip the client and run eclipse.exe.  Here is the link to a Win 64 Eclipse with OSEE installed:  http://www.eclipse.org/downloads/download.php?file=/technology/osee/builds/osee.client.full.win64_0.9.8_SR2_20110324.zip.  There is a delay between when I post the file and when it is available on the mirrors.
Comment 10 sholto maud CLA 2011-04-03 04:28:58 EDT
> unzip rc_osee_server_runtime.zip 

done -> success

> Downloaded & unzip 
http://www.eclipse.org/downloads/download.php?file=/technology/osee/builds/osee.client.full.win64_0.9.8_SR2_20110324.zip

done -> success!

I'm now able to run Eclipse OSEE (as administrator) client with embedded database and follow the screencast tutorials....well done.