Skip to main content

Changing Profile Attributes ERROR

4 replies [Last post]
torosvi
Offline
Joined: 2005-07-20

Hi everybody!

I have created a Profile Table and a profile inside that Table (I

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
stefanogamma
Offline
Joined: 2005-10-18

Hi Torosvi,
looking the stack trace line :
javax.management.MalformedObjectNameException: Unterminated key property part seems you have mispelled the string for the ObjectName creation.
Which MBean are you using to invoke the editProfile operation?

Stefano

torosvi
Offline
Joined: 2005-07-20

I’m using JMX-Console, so I just press this link in the web console: profile="DemoBlock",profileTableName="Block",type=profile

After that I press “Invoke” in the “editProfile” (Operation Name column).

What do you think?

Thanks,

Victor

deruelle_jean
Offline
Joined: 2003-06-24

Check out this thread
http://forums.java.net/jive/thread.jspa?threadID=1038&tstart=45

it might help you

Jean

torosvi
Offline
Joined: 2005-07-20

Hi all!

Using the script created by Stefano it seems to work (good job with the script), but the problem was that the Profile has been created but not committed.

I have solved this bug changing the next line in the .bsh file:
ctx.getLog().info("*** Address " + address[0] + " added to Profile.");

You have to change address[0] -> addresses[0]

Anyway, my problem now is a little bit more complicated because if I use JMX-Console and I use the getProfiles operation, I receive:

JMX MBean Operation Result
Operation getProfiles()

[DemoAddress]

However, if I implement in the SBB the next thing:

Collection profilesID = profileFacility.getProfiles(profileTableName);

The method throws the next exception:

NullPointerException if profileTableName is null.

I can’t understand it because of course the profileTableName is the same string that the one I use with the same Operation in the JMX-Console.

Any suggestion?

Thanks a lot,

Victor