problem with validation [message #374813] |
Mon, 25 August 2008 08:22 |
Eclipse User |
|
|
|
Originally posted by: dali.xxxx.com
Hi till ,
thanx a lot for the help, infact it was a problem with the launch config (
Workspace data variable was not pointing to the correct place ).
Now the the file is detected but it's still some exception :
!ENTRY org.eclipse.stp.bpmn.validation 4 4 2008-08-25 10:09:09.624
!MESSAGE
org.eclipse.emf.validation.service.IBatchValidator.validate( Lorg/eclipse/emf/ecore/EObject;)Lorg/eclipse/core/runtime/IS tatus;
!STACK 0
java.lang.NoSuchMethodError:
org.eclipse.emf.validation.service.IBatchValidator.validate( Lorg/eclipse/emf/ecore/EObject;)Lorg/eclipse/core/runtime/IS tatus;
at
org.eclipse.stp.bpmn.validation.providers.BpmnValidationProv ider$ValidateAction.validate(BpmnValidationProvider.java:291 )
at
org.eclipse.stp.bpmn.validation.providers.BpmnValidationProv ider$ValidateAction.access$0(BpmnValidationProvider.java:219 )
at
org.eclipse.stp.bpmn.validation.providers.BpmnValidationProv ider$ValidateAction$2.run(BpmnValidationProvider.java:167)
at
org.eclipse.stp.bpmn.validation.providers.BpmnValidationProv ider$ValidateAction.runValidation(BpmnValidationProvider.jav a:193)
at
org.eclipse.stp.bpmn.validation.builder.BatchValidationBuild er.validateDiagramFile(BatchValidationBuilder.java:336)
at
org.eclipse.stp.bpmn.validation.builder.BatchValidationBuild er.checkBpmnResource(BatchValidationBuilder.java:203)
at
org.eclipse.stp.bpmn.validation.builder.BatchValidationBuild er$BpmnDiagramResourceVisitor.visit(BatchValidationBuilder.j ava:140)
at org.eclipse.core.internal.resources.Resource$2.visit(Resourc e.java:105)
at
org.eclipse.core.internal.resources.Resource$1.visitElement( Resource.java:57)
at
org.eclipse.core.internal.watson.ElementTreeIterator.doItera tion(ElementTreeIterator.java:81)
at
org.eclipse.core.internal.watson.ElementTreeIterator.doItera tion(ElementTreeIterator.java:85)
at
org.eclipse.core.internal.watson.ElementTreeIterator.iterate (ElementTreeIterator.java:126)
at org.eclipse.core.internal.resources.Resource.accept(Resource .java:67)
at org.eclipse.core.internal.resources.Resource.accept(Resource .java:103)
at org.eclipse.core.internal.resources.Resource.accept(Resource .java:87)
at
org.eclipse.stp.bpmn.validation.builder.BatchValidationBuild er.fullBuild(BatchValidationBuilder.java:224)
at
org.eclipse.stp.bpmn.validation.builder.BatchValidationBuild er.build(BatchValidationBuilder.java:158)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildMan ager.java:624)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:166)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:197)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:246)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:249)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop (BuildManager.java:302)
at
org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:334)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBu ildJob.java:137)
at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJ ob.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!ENTRY org.eclipse.ui 4 0 2008-08-25 10:09:10.718
!MESSAGE Unable to create editor ID EkipBPM.BpmnEditor: An exception was
thrown during initialization
!STACK 0
java.lang.NullPointerException
at
org.eclipse.emf.transaction.util.TransactionUtil.getEditingD omain(TransactionUtil.java:50)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.document .DiagramModificationListener. <init>(DiagramModificationListener.java:55)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.docu ment.FileDiagramModificationListener. <init>(FileDiagramModificationListener.java:54)
at
org.eclipse.stp.bpmn.diagram.part.BpmnDocumentProvider$Custo mModificationListener. <init>(BpmnDocumentProvider.java:164)
at
org.eclipse.stp.bpmn.diagram.part.BpmnDocumentProvider.creat eFileInfo(BpmnDocumentProvider.java:114)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.docu ment.FileDocumentProvider.createElementInfo(FileDocumentProv ider.java:486)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.document .AbstractDocumentProvider.connect(AbstractDocumentProvider.j ava:387)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.doSetInput(DiagramDocumentEditor.java:42 6)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
at org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:318)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init( DiagramEditor.java:638)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.init(DiagramDocumentEditor.java:116)
at
org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
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(Editor SashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
at
org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2565)
at
ekipbpm.ApplicationWorkbenchAdvisor.postStartup(ApplicationW orkbenchAdvisor.java:37)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2327)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
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(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at ekipbpm.Application.start(Application.java:20)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
------
i use the bugzilla sample files : .bpmn_diagram and .bpmn diagram .
Best regards ,
Dali
|
|
|
Re: problem with validation [message #374814 is a reply to message #374813] |
Mon, 25 August 2008 11:42 |
Eclipse User |
|
|
|
Originally posted by: dali.xxxx.com
Hi everybody ,
i don't know what i'm doing wrong but i subclassed the BpmnEditor .
Is there other methods to overwrite :
This is my BpmnEditor Class :
package ekipbpm;
import org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor;
import org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditDomain;
import org.eclipse.ui.PlatformUI;
public class BpmnEditor extends BpmnDiagramEditor {
public static final String ID = "EkipBPM.BpmnEditor";
static {
PlatformUI.getWorkbench().getEditorRegistry().
setDefaultEditor("*.bpmn_diagram", ID); //$NON-NLS-1$
}
public BpmnEditor() {
// TODO Auto-generated constructor stub
setEditDomain(new BpmnDiagramEditDomain(this));
}
}
Best regards ,
Dali
|
|
|
|
Re: problem with validation [message #374816 is a reply to message #374815] |
Mon, 25 August 2008 15:31 |
Eclipse User |
|
|
|
Originally posted by: dali.xxxx.com
Hi Till ,
yes the emf validation is in my plugin dependencies .
it's the signature of the methods validate which make problems.
java.lang.NoSuchMethodError:
org.eclipse.emf.validation.service.IBatchValidator.validate( Lorg/eclipse/emf/ecore/EObject;)Lorg/eclipse/core/runtime/IS tatus;
at
org.eclipse.stp.bpmn.validation.providers.BpmnValidationProv ider$ValidateAction.validate(BpmnValidationProvider.java:291 )
Best regards,
Dali
|
|
|
|
Re: problem with validation [message #374818 is a reply to message #374817] |
Mon, 25 August 2008 15:45 |
Eclipse User |
|
|
|
Originally posted by: dali.xxxx.com
Hi till ,
can i have your messenger please.
Infact i'm know in paris for my final study project and due to time shift
i can not contact u when u re online.
Best Regards,
Dali.
|
|
|
|
Re: problem with validation [message #618657 is a reply to message #374813] |
Mon, 25 August 2008 11:42 |
Eclipse User |
|
|
|
Originally posted by: dali.xxxx.com
Hi everybody ,
i don't know what i'm doing wrong but i subclassed the BpmnEditor .
Is there other methods to overwrite :
This is my BpmnEditor Class :
package ekipbpm;
import org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor;
import org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditDomain;
import org.eclipse.ui.PlatformUI;
public class BpmnEditor extends BpmnDiagramEditor {
public static final String ID = "EkipBPM.BpmnEditor";
static {
PlatformUI.getWorkbench().getEditorRegistry().
setDefaultEditor("*.bpmn_diagram", ID); //$NON-NLS-1$
}
public BpmnEditor() {
// TODO Auto-generated constructor stub
setEditDomain(new BpmnDiagramEditDomain(this));
}
}
Best regards ,
Dali
|
|
|
|
Re: problem with validation [message #618659 is a reply to message #374815] |
Mon, 25 August 2008 15:31 |
Eclipse User |
|
|
|
Originally posted by: dali.xxxx.com
Hi Till ,
yes the emf validation is in my plugin dependencies .
it's the signature of the methods validate which make problems.
java.lang.NoSuchMethodError:
org.eclipse.emf.validation.service.IBatchValidator.validate( Lorg/eclipse/emf/ecore/EObject;)Lorg/eclipse/core/runtime/IS tatus;
at
org.eclipse.stp.bpmn.validation.providers.BpmnValidationProv ider$ValidateAction.validate(BpmnValidationProvider.java:291 )
Best regards,
Dali
|
|
|
|
Re: problem with validation [message #618661 is a reply to message #374817] |
Mon, 25 August 2008 15:45 |
Eclipse User |
|
|
|
Originally posted by: dali.xxxx.com
Hi till ,
can i have your messenger please.
Infact i'm know in paris for my final study project and due to time shift
i can not contact u when u re online.
Best Regards,
Dali.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04068 seconds