Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-1281

XMLWorkflow throws NullPointerException on "Assign Roles" when not enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: XMLUI
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      4
    • Documentation Status:
      Needed

      Description

      This is occurring on the demo.dspace.org server's XMLUI interface, currently running 3.0-rc1

      To reproduce:
      1. Setup DSpace 3.0-rc1. Keep XMLWorkflow disabled (as it is by default)
      2. Create a Collection in the XMLUI
      3. Edit the Collection
      4. Click on the "Assign Roles" tab

      No error appears in the UI, but the log file will now show a NullPointerException that looks similar to this:

      2012-10-10 20:53:27,746 ERROR org.dspace.xmlworkflow.WorkflowFactory @ Error while retrieving workflow for collection: 10673/19
      java.lang.NullPointerException
      at org.dspace.xmlworkflow.state.Step.<init>(Step.java:51)
      at org.dspace.xmlworkflow.WorkflowFactory.createFirstStep(WorkflowFactory.java:110)
      at org.dspace.xmlworkflow.WorkflowFactory.getWorkflow(WorkflowFactory.java:69)
      at org.dspace.xmlworkflow.WorkflowUtils.getAllExternalRoles(WorkflowUtils.java:263)
      at org.dspace.app.xmlui.aspect.administrative.collection.AssignCollectionRoles.addBody(AssignCollectionRoles.java:120)
      at org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:223)

      2012-10-10 20:53:27,751 ERROR org.dspace.app.xmlui.aspect.administrative.collection.AssignCollectionRoles @ dspacedemo+admin@gmail.com:session_id=E8771EAAC1F1BB3DC97DF9371F3375D7:ip_addr=67.177.108.221:error while getting collection roles:Collection id\colon; 3

        Attachments

          Activity

            People

            Assignee:
            kevin van de velde Kevin Van de Velde (Atmire)
            Reporter:
            tdonohue Tim Donohue
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: