Doh ..

13:49:07,802 INFO  [STDOUT] com.candata.gateway.EncryptionService
org.jboss.mx.loading.UnifiedClassLoader
13:49:13,210 INFO  [STDOUT]
com/entrust/toolkit/x509/policies/ClientSettings
org.jboss.mx.loading.UnifiedClassLoader
13:49:13,224 INFO  [STDOUT] com/entrust/toolkit/util/ByteArray
org.jboss.mx.loading.UnifiedClassLoader

On Wed, 2002-06-05 at 13:53, Dave Smith wrote:
> >From my CCE catch block
> 
>  catch(ClassCircularityError err)
>   {
>     err.printStackTrace();
>     System.out.println("com.candata.gateway.EncryptionService
> "+com.candata.gateway.EncryptionService.class.getClassLoader().getClass().getName());
> 
>     System.out.println("com/entrust/toolkit/x509/policies/ClientSettings
> 
>"+com.entrust.toolkit.x509.policies.ClientSettings.class.getClassLoader().getClass().getName());
>     System.out.println("com/entrust/toolkit/util/ByteArray
> "+com.entrust.toolkit.util.ByteArray.class.getClassLoader().getClass().getName());
>   }
> 
> The Bt
> 
> 13:49:06,299 ERROR [STDERR] java.lang.ClassCircularityError:
> com/entrust/toolkit/util/ByteArray
> 13:49:06,300 ERROR [STDERR]     at
> com.entrust.toolkit.credentials.b.a(StreamUtil.java)
> 13:49:06,300 ERROR [STDERR]     at
> com.entrust.toolkit.credentials.l.b(InternalStreamProfileReader.java)
> 13:49:06,300 ERROR [STDERR]     at
> com.entrust.toolkit.credentials.Profile.a(Profile.java)
> 13:49:06,301 ERROR [STDERR]     at
> com.entrust.toolkit.credentials.Profile.<init>(Profile.java)
> 13:49:06,301 ERROR [STDERR]     at
> com.entrust.toolkit.User.login(User.java)
> 13:49:06,301 ERROR [STDERR]     at
> com.candata.gateway.EncryptionService.init(Unknown Source)
> 13:49:06,301 ERROR [STDERR]     at
> com.candata.gateway.EncryptionService.createMsg(Unknown Source)
> 13:49:06,302 ERROR [STDERR]     at
> java.lang.reflect.Method.invoke(Native Method)
> 13:49:06,302 ERROR [STDERR]     at
> 
>org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
> 13:49:06,302 ERROR [STDERR]     at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> 13:49:06,303 ERROR [STDERR]     at
> com.candata.gateway.CCRAAbstract.invokeMethod(Unknown Source)
> 13:49:06,303 ERROR [STDERR]     at
> com.candata.gateway.CCRAAbstract.postMsg(Unknown Source)
> 13:49:06,303 ERROR [STDERR]     at
> com.candata.gateway.CCRAAbstract.recvMsg(Unknown Source)
> 13:49:06,303 ERROR [STDERR]     at
> com.candata.gateway.CCRAPoll.run(Unknown Source)
> 13:49:06,304 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> On Wed, 2002-06-05 at 13:11, Bordet, Simone wrote:
> > Hi Dave,
> > 
> > > I have decompilied it before to make some sense of it. I now 
> > > there is a
> > > class.forName and a newInstance but I don't think they use there own
> > > classloader.
> > 
> > Uhm.
> > 
> > > All of the classes are in the deploy directory not in the 
> > > jboss lib dir.
> > > The -sevice.xml file that starts this is has them in a classpath def
> > > pointing to the current directory. Where it is dieing it is simply
> > > reading a file that has the x509 certificate info. 
> > 
> > Ok, can you do one more test ?
> > Can you please print the classloader for your classes, via for example:
> > 
> > com.candata.gateway.EncryptionService.class.getClassLoader()
> > 
> > and for the lib classes, via for example:
> > 
> > com.entrust.toolkit.User.class.getClassLoader()
> > com.entrust.toolkit.credentials.Profile.class.getClassLoader()
> > 
> > I think Class.forName may be the source of the problem, as bypasses a direct call 
>to the classloader, going directly to the JVM class cache.
> > 
> > Simon
> > 
> > _______________________________________________________________
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > _______________________________________________
> > Jboss-development mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-development
> 
> 
> 
> _______________________________________________________________
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to