From: Eric A. D. L. <eri...@co...> - 2002-10-24 00:39:24
|
I am using Cryptix 3.2.0, with JDK 1.4.01 running RedHat Linux Server 7.2 with kernel 2.4.7 I get this error within the following code snippet: // Use NTLM authentication if (this.username != null && this.password != null && this.usernameDomain != null && this.hostname != null && this.hostnameDomain != null && this.securityProviderClassName != null) { System.setProperty("java.protocol.handler.pkgs", "HTTPClient"); if (securityProviderClassName != null) { Class securityProvider = Class.forName(securityProviderClassName); Security.addProvider((Provider)securityProvider.newInstance()); /**** THIS LINE THROWS THE EXCEPTION ****/ } HTTPClient.AuthorizationHandler ntlm = new com.luigidragone.net.ntlm.NTLMAuthorizationHandler(hostname, hostnameDomain, username, usernameDomain, password); HTTPClient.AuthorizationInfo.setAuthHandler(ntlm); java.lang.ExceptionInInitializerError at cryptix.provider.Cryptix.getVersionAsDouble(Cryptix.java:115) at cryptix.provider.Cryptix.<init>(Cryptix.java:93) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at com.quote.io.HttpEventFactory.getResource(HttpEventFactory.java:84) at com.quote.news.feed.HttpFeedManager.run(HttpFeedManager.java:127) Caused by: netscape.security.ForbiddenTargetException: access to target denied at netscape.security.PrivilegeManager.enablePrivilegePrivate(PrivilegeManager.j ava:397) at netscape.security.PrivilegeManager.enablePrivilege(PrivilegeManager.java:412 ) at cryptix.CryptixProperties.setProperties(CryptixProperties.java:443) at cryptix.CryptixProperties.<clinit>(CryptixProperties.java:414) Any help would be truly appreciated! Thanks!! |