Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7429569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:59:24+00:00 2026-05-29T08:59:24+00:00

I have a simple object: @RooJavaBean @RooToString @RooJpaActiveRecord @RooJson public class HJAddress { private

  • 0

I have a simple object:

@RooJavaBean
@RooToString
@RooJpaActiveRecord
@RooJson
public class HJAddress {
    private String id;

}

And a simple, empty controller:

@RooWebJson(jsonObject = HJAddress.class)
@Controller
@RequestMapping("/hjaddresses")
public class HJAddressController {

}

The .aj files Roo generates for the controllers are fine, except for the end of the deleteFromJson method. It always generates a compiler error for me. Looking at it, it does:

@RequestMapping(value = "/{id}", method = RequestMethod.DELETE, headers = "Accept=application/json")
public ResponseEntity<String> HJAddressController.deleteFromJson
        (@PathVariable("id") Long id) {
    HJAddress hJAddress = HJAddress.findHJAddress(id);
    HttpHeaders headers = new HttpHeaders();
    headers.add("Content-Type", "application/json");
    if (hJAddress == null) {
        return new ResponseEntity<String>(headers, HttpStatus.NOT_FOUND);
    }
>>> HJAddress_.remove();
    return new ResponseEntity<String>(headers, HttpStatus.OK);
}

And right at the end there, it says HJAddress_.remove() instead of hJAddress.remove(). All of the other methods do indeed use this HJAddress_ naming scheme.

I’m not really sure where to go from here since it’s something internal to Roo.

EDIT: This is using roo 1.2 with STS based on eclipse indigo.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:59:25+00:00Added an answer on May 29, 2026 at 8:59 am

    Apparently it is a bug in Roo 1.2 that is getting fixed in 1.2.1.

    http://forum.springsource.org/showthread.php?122911-RooWebJson-Generates-Invalid-Aspect-Files&p=400871#post400871

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple object as such: public class Info { public string Name
I have a simple object in the format of class MyObject { public string
I have some simple POCO object: public class ProductCategoryDTO { public string Name {
I have a simple object like this public class Test { public string Name
Let us say we have a simple business object: class SimpleBO { public string
If I have a simple object: class MyObject { public string MyValueProperty { get;
Say I have a simple object such as class Something { public int SomeInt
Say I have a simple object which supports implicit casting to System.String public sealed
I have a simple object public class SomeObject { public Int32 id { get;
I have a very simple object called CellData. Is defined as: public sealed class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.