eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
381 stars 143 forks source link

ConnectionPool page in admin console causes exception #6223

Closed glassfishrobot closed 16 years ago

glassfishrobot commented 16 years ago

After setting up a connection pool I tried to rename a property in the webbased admin console. I changed to the additional properties tab of the connection pools page and changed the value of roleName to user. After pressing "Save" I got a 500 Internal Server Error message.

The root cause according to the page: javax.management.InstanceNotFoundException: amx:j2eeType=X-PropertyConfig,name=roleName,X-JDBCConnectionPoolConfig=pg

Reloading the addtional properties tab showed that the renaming actually worked. Thus this page seems to try to load the value of "roleName" even though this property has just been renamed.

Environment

Operating System: All Platform: All

Affected Versions

[V3]

glassfishrobot commented 6 years ago
glassfishrobot commented 16 years ago

@glassfishrobot Commented kumara said: v3 defect tracking

glassfishrobot commented 16 years ago

@glassfishrobot Commented anilam said: I cannot reproduce the problem. cc'ing Yifeng to see if she can reproduce this. Can you give me more info ? Did you have the 'roleName' property when you first create that ? Or you add that after your creation and then edit it ? What is the datasource classname and Resource type ? This may not be the issue, but just want to be able to reproduce the error you are seeing. thanks

glassfishrobot commented 16 years ago

@glassfishrobot Commented anilam said: -> jdlee

glassfishrobot commented 16 years ago

@glassfishrobot Commented yifeng1 said: using b25 on open solaris, I am not able to reproduce this issue.

I created a new connection pool which points to derby database after creation, I went to additional properties tab tried changing existing property value, save add new property, save change value for new property, save

seems fine.

glassfishrobot commented 16 years ago

@glassfishrobot Commented writtmeyer said: The problem is not with changing the values but with changing the names. This behavior can be observed on Linux and Mac OS X (with build 25) - though I doubt that it is OS related.

glassfishrobot commented 16 years ago

@glassfishrobot Commented yifeng1 said: ok, I got it this time

to reproduce:

change the property name to a different name as sugguested by submitter, this is the stacktrace from console.

HTTP Status 500 -


type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException root cause

java.lang.reflect.UndeclaredThrowableException root cause

javax.management.InstanceNotFoundException: amx:j2eeType=X-PropertyConfig,name=User,X-JDBCConnectionPoolConfig=mypool note The full stack traces of the exception and its root causes are available in the GlassFish/v3 logs.


GlassFish/v3

glassfishrobot commented 16 years ago

@glassfishrobot Commented writtmeyer said: Hoops. My previous comment sounded a bit rude. This was not intentional! I myself mixed property-value and property-name in the bug report and simply wanted to clarify this. Obviously my choice of words was a bit unlucky Please accept my apologies!

glassfishrobot commented 16 years ago

@glassfishrobot Commented anilam said: No problem at all. I always appreciate your effort to help us improve quality. Now that i can reproduce this, fixing is the easy part It is fixed and committed.

glassfishrobot commented 16 years ago

@glassfishrobot Commented Was assigned to jdlee

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-6223

glassfishrobot commented 16 years ago

@glassfishrobot Commented Reported by writtmeyer

glassfishrobot commented 16 years ago

@glassfishrobot Commented Marked as fixed on Tuesday, September 23rd 2008, 5:06:34 am