Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2834

Can't embed Screenr videos

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.0.M1
    • Fix Version/s: 1.2.0.RC1
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      Found while working on ROO-2815 that if you run the following commands to embed a Screenr video:

      project --topLevelPackage org.springsource.embedding
      persistence setup --database HYPERSONIC_IN_MEMORY --provider HIBERNATE 
      web mvc setup
      web mvc embed video --provider SCREENR --videoId DOOs --viewName Screenr

      ... then the shell throws this error:

      [Fatal Error] :1:1: Premature end of file.
      Could not open input stream
      java.lang.IllegalStateException: Could not open input stream
          at org.springframework.roo.support.util.XmlUtils.readXml(XmlUtils.java:109)
          at org.springframework.roo.addon.web.mvc.embedded.provider.VideoEmbeddedProvider.getScreenrId(VideoEmbeddedProvider.java:94)
          at org.springframework.roo.addon.web.mvc.embedded.provider.VideoEmbeddedProvider.install(VideoEmbeddedProvider.java:78)
          at org.springframework.roo.addon.web.mvc.embedded.EmbeddedOperationsImpl.install(EmbeddedOperationsImpl.java:54)
          at org.springframework.roo.addon.web.mvc.embedded.EmbeddedCommands.embedVideo(EmbeddedCommands.java:93)
          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.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
          at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49)
          at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:184)
          at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:147)
          at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
          at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:204)
          at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:394)
          at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:158)
          at java.lang.Thread.run(Thread.java:680)
      Caused by: org.xml.sax.SAXParseException: Premature end of file.
          at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
          at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
          at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
          at org.springframework.roo.support.util.XmlUtils.readXml(XmlUtils.java:107)

        Attachments

          Activity

            People

            Assignee:
            aswan Andrew Swan
            Reporter:
            aswan Andrew Swan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: