Hi,

I am using HttpClient application in one of the applets.

I am using this for uploading a file.

I have a signed applet, the applet is trusted by my browser. 

The applet is able to access the file system in the host where the
applet is deployed.

But I am getting a Access Denied exception. 

Somewhere the applet is trying to read the log table of apache.

If Possible please help me in this regard.

I am pasting the stack trace here.

 

Java Plug-in 1.5.0_02

Using JRE version 1.5.0_02 Java HotSpot(TM) Client VM

User home directory = C:\Documents and Settings\Aparajith_Vangal

 

 

----------------------------------------------------

c:   clear console window

f:   finalize objects on finalization queue

g:   garbage collect

h:   display this help message

l:   dump classloader list

m:   print memory usage

o:   trigger logging

p:   reload proxy configuration

q:   hide console

r:   reload policy configuration

s:   dump system and deployment properties

t:   dump thread list

v:   dump thread stack

x:   clear classloader cache

0-5: set trace level to <n>

----------------------------------------------------

 

Exception in thread "AWT-EventQueue-2"
java.lang.ExceptionInInitializerError

            at
org.apache.commons.httpclient.HttpConnection.<clinit>(HttpConnection.jav
a:1320)

            at FileSignAndUpload.HttpPost(FileSignAndUpload.java:550)

            at
FileSignAndUpload.actionPerformed(FileSignAndUpload.java:283)

            at javax.swing.AbstractButton.fireActionPerformed(Unknown
Source)

            at
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

            at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

            at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

            at java.awt.Component.processMouseEvent(Unknown Source)

            at javax.swing.JComponent.processMouseEvent(Unknown Source)

            at java.awt.Component.processEvent(Unknown Source)

            at java.awt.Container.processEvent(Unknown Source)

            at java.awt.Component.dispatchEventImpl(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)

            at java.awt.LightweightDispatcher.processMouseEvent(Unknown
Source)

            at java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.EventQueue.dispatchEvent(Unknown Source)

            at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

            at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

            at java.awt.EventDispatchThread.run(Unknown Source)

Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission
org.apache.commons.logging.LogFactory.HashtableImpl read)

            at
java.security.AccessControlContext.checkPermission(Unknown Source)

            at java.security.AccessController.checkPermission(Unknown
Source)

            at java.lang.SecurityManager.checkPermission(Unknown Source)

            at java.lang.SecurityManager.checkPropertyAccess(Unknown
Source)

            at java.lang.System.getProperty(Unknown Source)

            at
org.apache.commons.logging.LogFactory.createFactoryStore(LogFactory.java
:320)

            at
org.apache.commons.logging.LogFactory.<clinit>(LogFactory.java:1725)

            ... 26 more

 

 

Aparajith VS

Software Er. - Security and Privacy | SETLabs |

Hyderabad | Infosys Technologies Ltd. |

Tel: 040 - 23005222 - 48427

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  

 



**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Reply via email to