Announcement Announcement Module
Collapse
No announcement yet.
NullPointerException when running roo with Turkish locale Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NullPointerException when running roo with Turkish locale

    Hello Everyone,

    script command produces a NullPointerException when building project files as follows:

    C:\CommandLine\springsource\roo-1.1.0.RELEASE\gwtNoEntities>..\bin\roo.bat
    ____ ____ ____
    / __ \/ __ \/ __ \
    / /_/ / / / / / / /
    / _, _/ /_/ / /_/ /
    /_/ |_|\____/\____/ 1.1.0.RELEASE [rev 793f2b0]


    Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
    roo> script ../samples/gwtNoEntities.roo
    project --topLevelPackage com.springsource.foo
    Created C:\CommandLine\springsource\roo-1.1.0.RELEASE\gwtNoEntities\pom.xml
    Undo failed C:\CommandLine\springsource\roo-1.1.0.RELEASE\gwtNoEntities\pom.xml
    Invalid dependency scope: PROV?DED
    Script execution aborted
    [Timer-0] NullPointerException at org.springframework.roo.classpath.itd.Abstract
    ItdMetadataProvider.notify(AbstractItdMetadataProv ider.java:78)
    com.springsource.foo roo>


    The problem here is directly related to using Turkish as locale. The workaround is switching to English(UK) locale or any other locale that works.

    Tested with:
    * Windows 7
    * JDK 6.2 22u
    * STS 2.5.1
    * roo 1.1.0
    * Java locale: Turkish

    Posted as an FYI for roo devs and others who encounter this problem.

    Cheers.

    Cengiz
    Last edited by CengizOner; Dec 29th, 2010, 01:44 PM.

  • #2
    you need to modify "roo.bat" to fix the problem.
    add "-Duser.language=en" arg to java command in the roo.bat file.

    Code:
    java -Duser.language=en .....
    this will fix roo command line tool.

    if you are using STS, same arg should be added to the "STS.ini" file.
    this will fix eclipse roo plugin.

    Comment

    Working...
    X