Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3158

WhiteSpaces are allowed in the ID field.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jBPM 5.2
    • None
    • Eclipse
    • None
    • Hide

      Either do not allow spaces or trim all the whitespaces on save action.

      Show
      Either do not allow spaces or trim all the whitespaces on save action.
    • Hide

      Create a new process using BPMN2 editor from codehoop.Add a task element to it.Edit its ID field and give a space in it. Now save and try to reopen the process in BPMN2 Editor.It will throw exception.

      Show
      Create a new process using BPMN2 editor from codehoop.Add a task element to it.Edit its ID field and give a space in it. Now save and try to reopen the process in BPMN2 Editor.It will throw exception.

    Description

      WhiteSpaces are allowed in the ID field of all the elements created by BPMN2 editor from codehoop.
      But when i closed and reopend the process it is throwing the following exception :

      java.lang.ClassCastException: org.eclipse.bpmn2.impl.BaseElementImpl cannot be cast to org.eclipse.bpmn2.Activity
      at org.jboss.bpmn2.editor.core.features.activity.AbstractAddActivityFeature.add(AbstractAddActivityFeature.java:50)
      at org.jboss.bpmn2.editor.core.di.DIImport.createShape(DIImport.java:201)
      at org.jboss.bpmn2.editor.core.di.DIImport.importShapes(DIImport.java:144)
      at org.jboss.bpmn2.editor.core.di.DIImport.access$3(DIImport.java:141)
      at org.jboss.bpmn2.editor.core.di.DIImport$1.doExecute(DIImport.java:112)
      at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
      at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:52)
      at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
      at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:39)
      at org.jboss.bpmn2.editor.core.di.DIImport.generateFromDI(DIImport.java:88)
      at org.jboss.bpmn2.editor.ui.editor.BPMN2Editor.importDiagram(BPMN2Editor.java:163)
      at org.jboss.bpmn2.editor.ui.editor.BPMN2Editor.access$0(BPMN2Editor.java:157)
      at org.jboss.bpmn2.editor.ui.editor.BPMN2Editor$1.doExecute(BPMN2Editor.java:150)
      at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
      at org.eclipse.emf.workspace.EMFCommandOperation.doExecute(EMFCommandOperation.java:119)
      at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
      at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:511)
      at org.eclipse.emf.workspace.impl.WorkspaceCommandStackImpl.doExecute(WorkspaceCommandStackImpl.java:208)
      at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165)
      at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:47)
      at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
      at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:39)
      at org.jboss.bpmn2.editor.ui.editor.BPMN2Editor.setInput(BPMN2Editor.java:146)
      at org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEditor.java:346)
      at org.eclipse.graphiti.ui.internal.editor.DiagramEditorInternal.init(DiagramEditorInternal.java:1074)
      at org.jboss.bpmn2.editor.ui.editor.BPMN2Editor.init(BPMN2Editor.java:77)
      at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
      at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
      at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
      at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
      at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
      at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
      at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
      at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:331)
      at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:179)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

      Attachments

        Activity

          People

            bbrodt_jira Robert (Bob) Brodt (Inactive)
            harjinder.singh_jira Harjinder Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: