Applet AccessControlException: access denied (java.util.PropertyPermission * read,write)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ajay_gupta
Posted On:   Thursday, January 18, 2007 05:13 AM

Hi, I have written an applet which at start does some operation and uploads the data in database and then opens a dialog box . When I run this applet using appletviewer it runs fine but in browser it uploads the data in database and it can also access localfile system for reading/writing purpose but its not able to open dialog box and throws following exception. basic: Exception: java.lang.ExceptionInInitializerError java.lang.ExceptionInInitializerError at com.ibm.uima.reference_impl.application.docanalyzer.DocumentAnalyzer. (Unknown Source) at com.ibm.score.HDFCAnnotator.init(HDFCAnnotator.java:52) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.r   More>>

Hi,
I have written an applet which at start does some operation and uploads the data in database and then opens a dialog box . When I run this applet using appletviewer it runs fine but in browser it uploads the data in database and it can also access localfile system for reading/writing purpose but its not able to open dialog box and throws following exception.

			

basic: Exception: java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
at com.ibm.uima.reference_impl.application.docanalyzer.DocumentAnalyzer. (Unknown Source)
at com.ibm.score.HDFCAnnotator.init(HDFCAnnotator.java:52)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.ibm.uima.UIMA_IllegalStateException: The UIMA framework implementation (class com.ibm.uima.reference_impl.UIMAFramework_impl) could not be created.
at com.ibm.uima.UIMAFramework. (Unknown Source)
... 4 more
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
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.checkPropertiesAccess(Unknown Source)
at java.beans.Introspector.setBeanInfoSearchPath(Unknown Source)
at com.ibm.uima.reference_impl.UIMAFramework_impl._initialize(Unknown Source)
... 5 more
basic: Modality pushed
basic: Modality popped



I have given all sort of permission in policy file for accessing local resources but I am not able to figure out why the above exception is thrown.
Could someone please suggest ?

Regards
Ajay    <<Less

Re: Applet AccessControlException: access denied (java.util.PropertyPermission * read,write)

Posted By:   ajay_gupta  
Posted On:   Friday, January 19, 2007 01:11 AM

Hi,
I am able to get the answer for above question by adding following in c:Program Filesjavajre1.5.0_07libsecurityjava.policy file but now I am getting following error so if anyone come across please
help.

Caused by: java.lang.reflect.InvocationTargetException
at com.ibm.uima.reference_impl.UIMAFramework_impl$FactoryConfigParseHandler.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.ibm.uima.reference_impl.UIMAFramework_impl.parseFactoryConfig(Unknown Source)
at com.ibm.uima.reference_impl.UIMAFramework_impl._initialize(Unknown Source)
About | Sitemap | Contact