Announcement Announcement Module
Collapse
No announcement yet.
Error when executing wedding.roo Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error when executing wedding.roo

    I use RC2 and I get the following error on a DOS command shell on Windows XP:

    Code:
    Created SRC_MAIN_WEBAPP\WEB-INF\views\rsvp
    Managed SRC_MAIN_WEBAPP\WEB-INF\config\webmvc-config.xml
    Created SRC_MAIN_WEBAPP\WEB-INF\views\rsvp\list.jspx
    Created SRC_MAIN_WEBAPP\WEB-INF\views\rsvp\show.jspx
    Created SRC_MAIN_WEBAPP\WEB-INF\views\rsvp\create.jspx
    Created SRC_MAIN_WEBAPP\WEB-INF\views\menu.jspx
    Managed SRC_MAIN_WEBAPP\WEB-INF\views\menu.jspx
    Created SRC_MAIN_WEBAPP\WEB-INF\views\rsvp\update.jspx
    Managed SRC_MAIN_WEBAPP\WEB-INF\views\menu.jspx
    Created SRC_MAIN_WEBAPP\WEB-INF\views\rsvp\views.xml
    Created SRC_MAIN_WEBAPP\WEB-INF\urlrewrite.xml
    Created SRC_MAIN_WEBAPP\WEB-INF\web.xml
    Managed SRC_MAIN_WEBAPP\WEB-INF\web.xml
    Undo failed SRC_MAIN_WEBAPP\WEB-INF\web.xml
    C:\www\wedding\src\main\webapp\WEB-INF\web.xml (Der Vorgang ist bei einer Datei mit einem ge÷ffneten Bereich, der einem
    Benutzer zugeordnet ist, nicht anwendbar)
    Script execution aborted
    roo>
    The german text says (directly translated) that the action ist not applicable to a file with an open section, that is assigned to a user. What a strange error message.

    How can this file be open, as it just has been created. The only idea ist, that it conflicts to the refresh workspace option in Eclipse/STS, when creating the project in a directory beneath the workspace. Is this reproducable for anyone?

    Cheers Fireball
    Last edited by Fireball; Oct 8th, 2009, 09:47 AM. Reason: typo

  • #2
    Ok, now I tried different locations/directories and the error appears every time when managing the web.xml file, not only when executing a script.

    Very strange...

    Comment


    • #3
      Can you please type "development mode true" in your shell. That way you'll receive far more detailed exception stack traces, and it will help with diagnosis of what Roo code is throwing the exception. Also, does it only appear when you're running STS at the same time, or does it occasionally show up when using Roo at the console alone?

      Comment


      • #4
        Sorry, took a while, but the error occurs only on a specific machine, others work fine. So, here's the exception:

        Code:
        C:\www\wedding\pom.xml (Der Vorgang ist bei einer Datei mit einem ge÷ffneten Bereich, der einem Benutzer zugeordnet ist,
         nicht anwendbar)
        java.io.FileNotFoundException: C:\www\wedding\pom.xml (Der Vorgang ist bei einer Datei mit einem ge÷ffneten Bereich, der
         einem Benutzer zugeordnet ist, nicht anwendbar)
            at java.io.FileOutputStream.open(Native Method)
            at java.io.FileOutputStream.<init>(Unknown Source)
            at java.io.FileOutputStream.<init>(Unknown Source)
            at org.springframework.roo.process.manager.internal.MonitoredOutputStream.<init>(MonitoredOutputStream.java:36)
            at org.springframework.roo.process.manager.internal.DefaultMutableFile.getOutputStream(DefaultMutableFile.java:57)
            at org.springframework.roo.addon.maven.MavenProjectMetadataProvider.addDependency(MavenProjectMetadataProvider.java:
        188)
            at org.springframework.roo.project.ProjectOperations.dependencyUpdate(ProjectOperations.java:106)
            at org.springframework.roo.addon.jpa.JpaOperations.updateDependencies(JpaOperations.java:265)
            at org.springframework.roo.addon.jpa.JpaOperations.configureJpa(JpaOperations.java:85)
            at org.springframework.roo.addon.jpa.JpaCommands.installJpa(JpaCommands.java:54)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
            at org.springframework.roo.bootstrap.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionS
        trategy.java:33)
            at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.ja
        va:131)
            at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:94)
            at org.springframework.roo.bootstrap.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStra
        tegy.java:31)
            at org.springframework.roo.shell.internal.AbstractShell.executeCommand(AbstractShell.java:120)
            at org.springframework.roo.shell.internal.AbstractShell.script(AbstractShell.java:77)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
            at org.springframework.roo.bootstrap.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionS
        trategy.java:33)
            at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.ja
        va:131)
            at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:94)
            at org.springframework.roo.bootstrap.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStra
        tegy.java:31)
            at org.springframework.roo.shell.internal.AbstractShell.executeCommand(AbstractShell.java:120)
            at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:82)
            at org.springframework.roo.bootstrap.Bootstrap.run(Bootstrap.java:112)
            at org.springframework.roo.bootstrap.Bootstrap.main(Bootstrap.java:52)
        Script execution aborted
        Well, now it is the pom file. Eclipse/STS is closed. What the heck is so special on this machine? Could a virus scanner or anything else interact? I have no problem on my other workstations.
        Last edited by Fireball; Oct 12th, 2009, 10:50 AM.

        Comment


        • #5
          Wow, it was the virus scanner, a Trend Micro with latest patch level. I switched it off and here we are. Hmm...

          Anyone else with this strange behaviour?

          Cheers Fireball

          Comment

          Working...
          X