Error on proxy creation

21 views
Skip to first unread message

Alexandre

unread,
Mar 3, 2010, 1:03:36 PM3/3/10
to jlite
Anyone already saw that?

17:46:58,780 INFO [VOMSProxyInit:314] Contacting server
[vo=myvo,host=myvomsserver,port=15000,hostDN=/C=CL/O=MyCA/O=MyOrg/
OU=Test/CN=myvomsserver,globusVersion=null]
17:46:58,866 ERROR [VOMSProxyBuilder:209] Error creating temp proxy:
org.bouncycastle.jce.X509Principal cannot be cast to
org.bouncycastle.asn1.x509.X509Name
17:46:58,867 ERROR [VOMSProxyInit:330] Error connecting to
[vo=myvo,host=myvomsserver,port=15000,hostDN=/C=CL/O=MyCA/O=MyOrg/
OU=Test/
CN=myvomsserver,globusVersion=null]:org.bouncycastle.jce.X509Principal
cannot be cast to org.bouncycastle.asn1.x509.X509Name
17:46:58,868 ERROR [VOMSProxyInit:159] Error connecting to
[vo=myvo,host=myvomsserver,port=15000,hostDN=/C=CL/O=MyCA/O=MyOrg/
OU=Test/
CN=myvomsserver,globusVersion=null]:org.bouncycastle.jce.X509Principal
cannot be cast to org.bouncycastle.asn1.x509.X509Name
17:46:58,870 ERROR [JLite:92] GridAPIException at method run:
jlite.GridAPIException: org.glite.voms.contact.VOMSException: Error
connecting to [vo=myvo,host=myvomsserver,port=15000,hostDN=/C=CL/
O=MyCA/O=MyOrg/OU=Test/
CN=myvomsserver,globusVersion=null]:org.bouncycastle.jce.X509Principal
cannot be cast to org.bouncycastle.asn1.x509.X509Name

I don't know why the cause of this error is casting...In my code I
don't try to do cast in any part like this...

Oleg Sukhoroslov

unread,
Mar 4, 2010, 3:26:48 PM3/4/10
to jl...@googlegroups.com

Alexandre

unread,
Mar 5, 2010, 10:15:53 AM3/5/10
to jlite
Hi Oleg!

See where the exception is thrown:

15:03:52,500 INFO [CRLFileTrustManager:126] Client
CN=wms.dim.uchile.cl, OU=Centro de Modelamiento Matematico, O=UCHILE,
O=REUNACA, C=CL accepted
15:03:57,073 ERROR [JLite:100] GridAPIException at method run:
jlite.GridAPIException: org.glite.wms.wmproxy.CredentialException:


org.bouncycastle.jce.X509Principal cannot be cast to
org.bouncycastle.asn1.x509.X509Name

at jlite.GridSessionImpl.delegateProxy(GridSessionImpl.java:200)
at jlite.GridSessionImpl.delegateProxy(GridSessionImpl.java:184)

this occur when I want delegate the proxy to WMProxy
server...specifically when I try delegate one proxy after another...I
don't understand!
And if I had add this code showed in the adress above, I would have
add it to delegateProxy method in the GridSessionImpl.java of JLite
package, right?

Best regards,

Alexandre

Oleg Sukhoroslov

unread,
Mar 10, 2010, 6:48:45 AM3/10/10
to jl...@googlegroups.com
Hi Alexandre,

The problem seems to be located in Java CoG kit library used by jLite.
See this bug:
http://bugzilla.globus.org/globus/show_bug.cgi?id=6029
Though it was reported to be fixed in version 1.6.0 (used in jLite),
later (see the last message) it appeared again...

I suggest you to try to download the latest CoG JGlobus 1.8.0:
http://dev.globus.org/wiki/CoG_JGlobus_1.8.0
Replace /jLite/lib/external/cog-jglobus-1.6.0.jar with
cog-jglobus-1.8.0.jar from 1.8.0 release.
Then try to run your code again.

By the way, what do you mean by "delegate one proxy after another"?
Can you send me the part of you code which uses jLite?

Regards,
Oleg

Reply all
Reply to author
Forward
0 new messages