[GLASSFISH-970] amx AppserverConnectionSource failures return non published class Created: 18/Aug/06  Updated: 06/Mar/12

Status: Open
Project: glassfish
Component/s: amx
Affects Version/s: 9.0pe
Fix Version/s: not determined

Type: Bug Priority: Minor
Reporter: ludo Assignee: naman_mehta
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 970
Tags: 3_1-exclude

 Description   

If I have a Main program using appsrv-ext.jar for AMX usage, then if I enter a
wrong password in this code:

new AppserverConnectionSource(
AppserverConnectionSource.PROTOCOL_RMI, host, 8686, username,
WRONGpassword, null, null);

then I get an exception showing ClassNotFoundException for
"com.sun.enterprise.security.LoginException"

See:

Aug 15, 2006 5:49:14 PM com.sun.appserv.management.client.ProxyFactory getInstance
SEVERE: ProxyFactory.getInstance: Failure trying to create a new ProxyFactory:
java.lang.ClassNotFoundException: "com.sun.enterprise.security.LoginException
(no security manager: RMI class loader disabled)"
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375)
sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)



 Comments   
Comment by km [ 01/Feb/07 ]

This is a bit tricky to fix.

Comment by km [ 28/Mar/07 ]

I am not sure how this can be fixed without making rather massive changes.
For one, I think the security exception class should be an exposed interface.

I accept that it is rather embarrassing, but can't do much.

I tend to make it a P4. Do you agree?

Comment by gfbugbridge [ 05/Apr/07 ]

<BT6543236>

Comment by Tom Mueller [ 23/Jun/10 ]

Kedar no longer on project.

Comment by prasads [ 07/Oct/10 ]

Excluding these issues from v3.1

Comment by prasads [ 20/Feb/11 ]

Assigning issues to Naman

Comment by Tom Mueller [ 06/Mar/12 ]

Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

Generated at Sat Jul 23 23:56:23 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.