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’m using jmx-console).

The problem is when I try to want to edit attributes. I have tow attributes: BlockedAddress and UserAddresses.

When I invoke editProfile operation I have these exceptions:

****************************************************************
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Failed to invoke operation
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:248)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:79)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:61)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
root cause
javax.management.MalformedObjectNameException: Unterminated key property part
javax.management.ObjectName.construct(ObjectName.java:465)
javax.management.ObjectName.(ObjectName.java:1304)
org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:194)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:241)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:79)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:61)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
***************************************************************

Any help?

Thanks,

Victor

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