Results 1 to 4 of 4

Thread: java.lang.IllegalStateException with new service addon (Roo 1.2.0.M1)

  1. #1
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    10

    Default java.lang.IllegalStateException with new service addon (Roo 1.2.0.M1)

    I've been playing around with Roo 1.2.0.M1 as I'm hoping to use the new service addon to generate a service layer based on a decent sized database - big enough that I was hoping not to run the service command for every entity anyway. The problem is when I run the command without the entity (using the '*' as default) I get the following exception message:


    roo> service --interface ~.service.TestService
    java.lang.IllegalStateException: Failed to convert '*' to type JavaType for option 'entity'
    Unknown type; please indicate the type as a command option (ie --xxxx)


    I understand this is still a milestone release, but will the service layer support multiple entities?

  2. #2
    Join Date
    Aug 2010
    Location
    Goteborg, Sweden
    Posts
    434

    Default

    I'd also would like to know this. I fail to see the use of a service that only deals with one entity. Why, if I need that I can work with my entity directly.

  3. #3
    Join Date
    Dec 2011
    Posts
    1

    Default

    I am also getting this error with 1.2.0 GA Release. Please let us know when this is resolved, Thanks!

  4. #4
    Join Date
    Mar 2008
    Posts
    257

    Default

    Same for me:

    test integration
    Updated SRC_MAIN_JAVA/com/learnintouch/domain/Webpage_Roo_DbManaged.aj
    java.lang.IllegalStateException: Failed to convert '*' to type JavaType for option 'entity'
    Unknown type; please indicate the type as a command option (ie --xxxx)

    On Roo 1.2.1.RELEASE [rev 6eae723]
    Stephane

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
  •