Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319205 - Error opening the editor, when you try to create or edit a new role
Summary: Error opening the editor, when you try to create or edit a new role
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EPF (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: epf.tool-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 00:16 EDT by Mario Andrés CLA
Modified: 2023-02-16 16:25 EST (History)
4 users (show)

See Also:


Attachments
imagen del sistema (78.75 KB, image/png)
2010-07-08 00:19 EDT, Mario Andrés CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Andrés CLA 2010-07-08 00:16:47 EDT
Build Identifier: Eclipse Process Framework Composer  Version: 1.5.0.4


java.lang.NullPointerException
	at org.eclipse.epf.authoring.ui.forms.DescriptionFormPage.dispose(DescriptionFormPage.java:3092)
	at org.eclipse.ui.forms.editor.FormEditor.dispose(FormEditor.java:420)
	at org.eclipse.epf.authoring.ui.editors.AbstractBaseFormEditor.dispose(AbstractBaseFormEditor.java:97)
	at org.eclipse.epf.authoring.ui.editors.MethodElementEditor.dispose(MethodElementEditor.java:1103)
	at org.eclipse.epf.authoring.ui.editors.MethodElementEditor.addPages(MethodElementEditor.java:1041)
	at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:146)
	at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:283)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
	at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
	at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
	at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
	at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:774)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:673)
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:634)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2737)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
	at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2557)
	at org.eclipse.epf.authoring.ui.editors.EditorChooser.openEditor(EditorChooser.java:241)
	at org.eclipse.epf.authoring.ui.editors.EditorChooser.openEditor(EditorChooser.java:167)
	at org.eclipse.epf.authoring.ui.actions.CreateMethodElementCommand.execute(CreateMethodElementCommand.java:102)
	at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:92)
	at org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction.run(StaticSelectionCommandAction.java:232)
	at org.eclipse.epf.authoring.ui.actions.MethodCreateChildAction.superRun(MethodCreateChildAction.java:98)
	at org.eclipse.epf.authoring.ui.actions.MethodCreateChildAction.access$0(MethodCreateChildAction.java:97)
	at org.eclipse.epf.authoring.ui.actions.MethodCreateChildAction$2.run(MethodCreateChildAction.java:109)
	at org.eclipse.epf.library.ui.actions.LibraryLockingOperationRunner$1.run(LibraryLockingOperationRunner.java:53)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
	at org.eclipse.epf.library.ui.actions.LibraryLockingOperationRunner.doRun(LibraryLockingOperationRunner.java:74)
	at org.eclipse.epf.library.ui.actions.LibraryLockingOperationRunner.run(LibraryLockingOperationRunner.java:99)
	at org.eclipse.epf.authoring.ui.actions.MethodCreateChildAction.run(MethodCreateChildAction.java:106)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.epf.rcp.ui.MainApplication.createWorkbenchAdvisor(MainApplication.java:116)
	at org.eclipse.epf.rcp.ui.MainApplication.start(MainApplication.java:82)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1173)


Reproducible: Always

Steps to Reproduce:
1.click in new role
2.EPF try to open de window, bat in this moment, appears this message "Error to opennig the editor"
3.
Comment 1 Mario Andrés CLA 2010-07-08 00:19:36 EDT
Created attachment 173733 [details]
imagen del sistema
Comment 2 Weiping Lu CLA 2010-07-08 00:34:35 EDT
Does it happen only with a specific library? If it does, can you attach the library? thanks
Comment 3 Mario Andrés CLA 2010-07-08 06:03:46 EDT
Weiping Lu, thank you very much for your interest ... actually happens when you try to create any objects (roles, tasks, work products, etc.).
Comment 4 Bingxue Xu CLA 2010-07-08 16:48:00 EDT
On Linux? What JDK do you use? What browser do you use? Have you followed and configured some manual settings you have to do for the browser?

Thanks.
Comment 5 Bingxue Xu CLA 2010-07-08 16:48:47 EDT
Also what type of Linux?

Thanks.
Comment 6 Mario Andrés CLA 2010-07-08 17:02:33 EDT
Operating System: Ubuntu 10.04 LTS

java version "1.6.0_18"
OpenJDK Runtime Environment (lcedtea6 1.8) (1.8-6b18-0ubuntu1)
OpenJDK Server VM (build 14.0-b16, mixed mode)

But when I run the EPF, do as follows

sudo. / epf-vm / home/gerencia/epf-composer/jdk1.5.0_04/jre/bin/java
Comment 7 Bingxue Xu CLA 2010-07-08 17:08:00 EDT
Neither Ubuntu nor OpenJDK is supported by EPF Composer.

You may search some old Bugzilla on this to see anyone else make EPF Composer work under them. I kind of remembered someone was trying this before.

Thanks.
Comment 8 Peter Haumer CLA 2010-07-08 17:17:51 EDT
I do not recognize the error, but one thing you need to do on 10.04 is use an older xulrunner to make the rich text editor work. Google and get xulrunner 1.9.0.x and place it somewhere such as /opt/mozilla/xulrunner. Then add -Dorg.eclipse.swt.browser.XULRunnerPath=/opt/mozilla/xulrunner to eclipse.ini (epf.ini) file.
Comment 9 Mario Andrés CLA 2010-07-08 17:54:33 EDT
Peter Hauman, thank you very much, your recommendation worked perfectly.

To stop the process documented the changes indicated in the file epf.ini

-Data
@ User.home/EPF/workspace.150
-Defaultlibrary
OpenUP
-Vmargs
-Xms64m
-Xmx512m
-Dorg.eclipse.swt.browser.XULRunnerPath = / usr/lib/xulrunner-1.9.2.6

(This last line is what is needed to run the editor)
Comment 10 Mario Mol CLA 2010-07-10 15:43:27 EDT
(In reply to comment #9)
> Peter Hauman, thank you very much, your recommendation worked perfectly.
> 
> To stop the process documented the changes indicated in the file epf.ini
> 
> -Data
> @ User.home/EPF/workspace.150
> -Defaultlibrary
> OpenUP
> -Vmargs
> -Xms64m
> -Xmx512m
> -Dorg.eclipse.swt.browser.XULRunnerPath = / usr/lib/xulrunner-1.9.2.6
> 
> (This last line is what is needed to run the editor)

I changed the epf.ini with this last line and i`ve checked the directory /usr/lib/zulrunner-1.9.2.6 exists...

It didnt work for me.

My environment:
Linux mario-laptop 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC 2010 i686 GNU/Linux

# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)

Cheers,
Comment 11 Bingxue Xu CLA 2010-07-12 19:45:19 EDT
I noticed that you are not using OpenJDK while Mario Andres is. Will that make a difference? Try that.

Thanks.
Comment 12 Peter Haumer CLA 2010-07-12 20:15:17 EDT
(In reply to comment #10)
> (In reply to comment #9)
> > Peter Hauman, thank you very much, your recommendation worked perfectly.
> > 
> > To stop the process documented the changes indicated in the file epf.ini
> > 
> > -Data
> > @ User.home/EPF/workspace.150
> > -Defaultlibrary
> > OpenUP
> > -Vmargs
> > -Xms64m
> > -Xmx512m
> > -Dorg.eclipse.swt.browser.XULRunnerPath = / usr/lib/xulrunner-1.9.2.6
> > 
> > (This last line is what is needed to run the editor)
> 
> I changed the epf.ini with this last line and i`ve checked the directory
> /usr/lib/zulrunner-1.9.2.6 exists...
> 
> It didnt work for me.
> 
> My environment:
> Linux mario-laptop 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC
> 2010 i686 GNU/Linux
> 
> # java -version
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> 
> Cheers,

For me xulrunner 1.9.2.x did not work. That's why I recommended using 1.9.0.x.
Comment 13 Mario Mol CLA 2010-07-13 12:36:36 EDT
(In reply to comment #12)
> (In reply to comment #10)
> > (In reply to comment #9)
> > > Peter Hauman, thank you very much, your recommendation worked perfectly.
> > > 
> > > To stop the process documented the changes indicated in the file epf.ini
> > > 
> > > -Data
> > > @ User.home/EPF/workspace.150
> > > -Defaultlibrary
> > > OpenUP
> > > -Vmargs
> > > -Xms64m
> > > -Xmx512m
> > > -Dorg.eclipse.swt.browser.XULRunnerPath = / usr/lib/xulrunner-1.9.2.6
> > > 
> > > (This last line is what is needed to run the editor)
> > 
> > I changed the epf.ini with this last line and i`ve checked the directory
> > /usr/lib/zulrunner-1.9.2.6 exists...
> > 
> > It didnt work for me.
> > 
> > My environment:
> > Linux mario-laptop 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC
> > 2010 i686 GNU/Linux
> > 
> > # java -version
> > java version "1.6.0_20"
> > Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> > 
> > Cheers,
> 
> For me xulrunner 1.9.2.x did not work. That's why I recommended using 1.9.0.x.

I saw that at the first time but i couldnt find this xulrunner 1.9.0.x for ubuntu. I found, installed and the problem persists.

1. Then i found this link 
https://developer.mozilla.org/en/XULRunner%2F%2FOld_Releases

2. Download the xulrunner-2.0b2pre.en-US.linux-i686.tar.bz2

3. Untar and then copy to /usr/local/share/xulrunner

4. EPF.INI : Add this line at the bottom of the file
-Dorg.eclipse.swt.browser.XULRunnerPath = /usr/local/share/xulrunner

5. XULVERSION
/usr/local/share/xulrunner$ ./xulrunner --version
Mozilla XULRunner 2.0b2pre - 20100701030936


6. I checked and is the same exception.
java.lang.NullPointerException	at org.eclipse.epf.authoring.ui.forms.DescriptionFormPage.dispose(DescriptionFormPage.java:3092)


What else can i do?

Cheers,
Comment 14 Peter Haumer CLA 2010-07-13 16:17:17 EDT
My understanding is that newer versions will not work as the richtext does not work with a newer Firefox. You could file an enhancement request.

Try this one to make it work in the current version: http://www.securehost.com/mirror/mozilla/xulrunner/releases/1.9.0.17/runtimes/.
Comment 15 Mario Mol CLA 2010-07-14 10:41:53 EDT
(In reply to comment #14)
> My understanding is that newer versions will not work as the richtext does not
> work with a newer Firefox. You could file an enhancement request.
> 
> Try this one to make it work in the current version:
> http://www.securehost.com/mirror/mozilla/xulrunner/releases/1.9.0.17/runtimes/.

I tryied xulrunner from this link and the problem persists.

# /usr/local/share/xulrunner/xulrunner --version
Mozilla XULRunner 1.9.0.17 - 2009122203

Juts to garantee i started with the argument, but nothing changes.
./epf -Dorg.eclipse.swt.browser.XULRunnerPath = /usr/local/share/xulrunner

Any other advice?