Results 1 to 2 of 2

Thread: NullPointerException when running roo with Turkish locale

  1. #1
    Join Date
    Dec 2010
    Posts
    3

    Exclamation 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 at 12:44 PM.

  2. #2
    Join Date
    Jan 2011
    Posts
    2

    Default

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •