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

Bug 447564

Summary: Error opening view Visualization\Dot Graph
Product: [Tools] GEF Reporter: Evaristo Figueiredo <1010836>
Component: GEF ZestAssignee: gef-inbox <gef-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: nyssen, steeg
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
All files refered in the comment n. 2 none

Description Evaristo Figueiredo CLA 2014-10-16 09:29:01 EDT
Dear Sirs

After trying the following scenarios

1. Eclipse Luna + GEF4 - Milestones:
http://download.eclipse.org/tools/gef/gef4/updates/milestones

2. Eclipse Luna + GEF4 - Integration:
http://download.eclipse.org/tools/gef/gef4/updates/integration

3. Eclipse Luna + GEF4 - Master CI:
https://hudson.eclipse.org/hudson/job/gef4-master/lastSuccessfulBuild/artifact/update-site

4. Eclipse Mars + GEF4 - Milestones:
http://download.eclipse.org/tools/gef/gef4/updates/milestones

5. Eclipse Mars + GEF4 - Integration:
http://download.eclipse.org/tools/gef/gef4/updates/integration

6. Eclipse Mars + GEF4 - Master CI:
https://hudson.eclipse.org/hudson/job/gef4-master/lastSuccessfulBuild/artifact/update-site

I keep getting the error when I open de view Visualization\Dot Graph:
Plug-in "org.eclipse.gef4.zest.fx.ui" was unable to instantiate class
"org.eclipse.gef4.zest.fx.ui.view.DotGraphView".

In the scenarios 2 and 5 appeared the old Zest Graph window that does
not give error but does not work

The DOT editor works fine

The window outline works fine

Can you help me please

Many thanks
Comment 1 Fabian Steeg CLA 2014-10-16 09:57:47 EDT
Attempting to reproduce, this is what I did:

* Download 'Eclipse IDE for Java Developers' 4.4.1 from http://eclipse.org/downloads/
* Select a non-existing workspace location on startup
* Help -> Install New Software -> Add http://download.eclipse.org/tools/gef/gef4/updates/integration
* Check the GEF4 Zest category (selects all features in the category)
* When requested, restart Eclipse
* Window -> Show View -> Other -> Visualization -> DOT Graph

The view opens fine and renders *.dot files when sync is enabled.

If you get the issue doing these steps, could you attach your workspace/.metadata/.log file?

If you don't, could you describe in detail (as I did above) what you did?
Comment 2 Evaristo Figueiredo CLA 2014-10-16 12:18:55 EDT
I'll reuse your last comment and add comments to explain in detail what I do because the error remains 
I will also send the file you pointed me

* Download 'Eclipse IDE for Java Developers' 4.4.1 from http://eclipse.org/downloads/

  1. I click in Linux 64 Bit
    1.1 The hiperlink that is in front of the name of the package
        "Eclipse IDE for Java Developers"
    1.2 On top in a blue strip I can read:
        "Eclipse Luna (4.4.1) Release for Linux 
  2. After I chose de mirror
    Eclipse downloads - mirror selection
    All downloads are provided under the terms and conditions 
    of the Eclipse
    Foundation Software User Agreement unless otherwise specified.

    Download eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz from:

    Download [Portugal] Departamento de Ciencia de Computadores, FCUP (http) 

  3. Then I extract the contents of the file:
     eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz
     to the folder:  /media/evaristo/Corrente/Principal/A2_Programacao/A1_Compiladores/A3_Eclipse_Dot

  4. After I double click on the icon called eclipse 

    4.1 The start-up window tells me that the version of eclipse is luna

* Select a non-existing workspace location on startup

  5. I choose /home/evaristo/workspace/Dot

    5.1 Of this path the only folders that already exist are /home/evaristo

    5.2 After this step the eclipse create's the folders workspace/Dot

    5.3 I'm going to send you this folders and their content in a file named:
        5_3_workspace.tar.gz    

* Help -> Install New Software -> Add 
http://download.eclipse.org/tools/gef/gef4/updates/integration

  6. I call my software site GEF4ZEST and I copy/paste the URL 

    6.1 I wait until the string "pending" disappears
    
* Check the GEF4 Zest category (selects all features in the category)

  7. Than I chose only the GEF4 Zest category

    7.1 I'm going to send you a print in a file 
        7_Select_only_GEF4Zest.tar.gz

    7.2 Click Next

    7.3 Print: 7_2_Install_Details.tar.gz
    
    7.4 Click Next
    
    7.5 Accetp the terms of the license agreements

    7.6 Finish

* When requested, restart Eclipse

  8. Before restart I compressed again the folders workspace/Dot

    8.1 I'm going to send you this folders and their content in a file named:
        8_workspace.tar.gz 

    8.2 Click Yes to restart the eclipse 
    
      8.2.2 The start-up window keeps telling me that the version of eclipse is luna 
    
    8.3 Ask me to select workspace

      8.3.1 I choose the same folder /home/evaristo/workspace/Dot
  
      8.3.2 Eclipse gives the following massage

        8.3.2.1 File: 8_3_2_Older_Workspace_Version.tar.gz

        8.3.2.2 Click OK

* Window -> Show View -> Other -> Visualization -> DOT Graph

  9. The window opens with the error  

    9.1 File: 9_1_Error.tar.gz
    
      9.1.1 Print screen of the error message

    9.2 File: 9_2_workspace.tar.gz

      9.2.1 Copy of the workspace folder

The view opens fine and renders *.dot files when sync is enabled.

If you get the issue doing these steps, could you attach your workspace/.metadata/.log file?

If you don't, could you describe in detail (as I did above) what you did?

10. All the files that I refer above will be compressed in one called 
    Comment_2.tar.gz
Comment 3 Evaristo Figueiredo CLA 2014-10-16 12:23:11 EDT
Created attachment 247940 [details]
All files refered in the comment n. 2
Comment 4 Fabian Steeg CLA 2014-10-19 13:20:31 EDT
I've looked at your error log:

org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.gef4.zest.fx.ui" was unable to instantiate class "org.eclipse.gef4.zest.fx.ui.view.DotGraphView".

[...]  

Caused by: java.lang.NullPointerException at org.eclipse.fx.osgi.fxloader.FXClassLoader$FXModuleClassloader$1.findLocalClass(FXClassLoader.java:149)

What seems to be null at that place (in FXClassLoader.java:149) is the classloader, created by a method called `createJREBundledClassloader`.
 
I'm not familiar with the details of the org.eclipse.fx bundle, but I've heard of issues with FX bundling and different Java versions. As a wild guess, could this be an issue with your Java runtime, like running a JRE instead of a JDK?

Alexander, you have any idea?
Comment 5 Alexander Nyßen CLA 2014-10-20 03:00:07 EDT
(In reply to Fabian Steeg from comment #4)
> I've looked at your error log:
> 
> org.eclipse.core.runtime.CoreException: Plug-in
> "org.eclipse.gef4.zest.fx.ui" was unable to instantiate class
> "org.eclipse.gef4.zest.fx.ui.view.DotGraphView".
> 
> [...]  
> 
> Caused by: java.lang.NullPointerException at
> org.eclipse.fx.osgi.fxloader.FXClassLoader$FXModuleClassloader$1.
> findLocalClass(FXClassLoader.java:149)
> 
> What seems to be null at that place (in FXClassLoader.java:149) is the
> classloader, created by a method called `createJREBundledClassloader`.
>  
> I'm not familiar with the details of the org.eclipse.fx bundle, but I've
> heard of issues with FX bundling and different Java versions. As a wild
> guess, could this be an issue with your Java runtime, like running a JRE
> instead of a JDK?
> 
> Alexander, you have any idea?

You should make sure that the JRE you use to start your Eclipse instance is at least a Java 7 JVM, which provides JavaFX, and that e(fx)clipse is properly installed (which should happen automatically if you consume a GEF4 build >= Mars M2. Details about e(fx)clipse requirements can be found in our contributors guide: https://wiki.eclipse.org/GEF/Contributor_Guide.
Comment 6 Alexander Nyßen CLA 2014-12-09 13:05:05 EST
Evaristo, is this still an issue?
Comment 7 Alexander Nyßen CLA 2015-01-08 12:50:31 EST
Resolving as WORKSFORME. Please reopen in case this still holds.