Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-7463

Unable to publish Teiid Example Project to modeshape repository (IllegalArgumentException)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.2.0.Beta2
    • 3.2.0.M1
    • modeshape
    • None
    • Hide

      1) Install JBDS, start server with modeshape
      2) Open "Teiid Designer" perspective
      3) Import this example: Help -> Project Examples... -> Teiid Designer -> Parts Model Project Set Example
      4) Open "ModeShape" view and create new "modeshape" server
      5) In "Model Explorer" right click PartsProject -> ModeShape -> Publish

      Sometimes I am not able to reproduce this error. Please have a look at it.

      Show
      1) Install JBDS, start server with modeshape 2) Open "Teiid Designer" perspective 3) Import this example: Help -> Project Examples... -> Teiid Designer -> Parts Model Project Set Example 4) Open "ModeShape" view and create new "modeshape" server 5) In "Model Explorer" right click PartsProject -> ModeShape -> Publish Sometimes I am not able to reproduce this error. Please have a look at it.

    Description

      I used soa-5.1.0.ER2 with modeshape 2.3, JBDS 4.0.0.Beta2 and tried to publish Teiid Project Example to default in-memory repository.

      Message:

      Publishing file "/home/psrna/data/testing/workspaces/jbdev23/PartsProject/PartsSourceA.xmi" to path "/PartsProject" in workspace "default" failed.

      Exception Stack Trace:

      java.lang.IllegalArgumentException: The stream argument may not be null
      at org.modeshape.common.util.CheckArg.isNotNull(CheckArg.java:387)
      at org.modeshape.common.util.MimeTypeUtil.load(MimeTypeUtil.java:153)
      at org.modeshape.web.jcr.rest.client.Utils.getMimeType(Utils.java:72)
      at org.modeshape.web.jcr.rest.client.json.FileNode.<init>(FileNode.java:112)
      at org.modeshape.web.jcr.rest.client.json.JsonRestClient.pathExists(JsonRestClient.java:372)
      at org.modeshape.web.jcr.rest.client.json.JsonRestClient.publish(JsonRestClient.java:392)
      at org.jboss.tools.modeshape.rest.ServerManager.publish(ServerManager.java:504)
      at org.jboss.tools.modeshape.rest.jobs.PublishJob.run(PublishJob.java:213)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

      Attachments

        Issue Links

          Activity

            People

              dflorian@redhat.com Daniel Florian (Inactive)
              psrna Pavol Srna
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: