How to verify the XML Access Control Policy...

132 views
Skip to first unread message

Saeed Iqbal KhattaK

unread,
Jun 11, 2012, 11:50:40 PM6/11/12
to java-pa...@googlegroups.com
Respected Fellows.

I am new to Java Pathfinder, and my project is based on "TO VERIFY ACCESS CONTROL POLICY.".. Basically the policy is written in XML with name of "com.android.clock"... and Using XmlPullParser i am reading this policy and after reading than perform some operations.....

But problem in XmlPullParser.... i don't know... What is the problem.. Please help me....

I am adding the exception.....When i verify than JPF call this exception....

........................................................................................................START EXCEPTION........................................................................................................
D/APEX:ApexPackagePolicy: Error parsing policy file for package: com.android.clock...caused by: org.xmlpull.v1.XmlPullParserException: resource not found: /META-INF/services/org.xmlpull.v1.XmlPullParserFactory make sure that parser implementing XmlPull API is available
caused by: org.xmlpull.v1.XmlPullParserException: resource not found: /META-INF/services/org.xmlpull.v1.XmlPullParserFactory make sure that parser implementing XmlPull API is available; nested exception is:
org.xmlpull.v1.XmlPullParserException: resource not found: /META-INF/services/org.xmlpull.v1.XmlPullParserFactory make sure that parser implementing XmlPull API is available
at org.xmlpull.v1.XmlPullParserFactory.newInstance(org/xmlpull/v1/XmlPullParserFactory.java:278)
at org.xmlpull.v1.XmlPullParserFactory.newInstance(org/xmlpull/v1/XmlPullParserFactory.java:259)
at org.csrdu.apex.helpers.Xml.newPullParser(org/csrdu/apex/helpers/Xml.java:11)
at org.csrdu.apex.policy.ApexPackagePolicy.loadPoliciesForPackage(org/csrdu/apex/policy/ApexPackagePolicy.java:106)
at org.csrdu.apex.AccessManager.checkExtendedPermissionByPackage(org/csrdu/apex/AccessManager.java:66)
at org.csrdu.apex.helpers.Runner.main(org/csrdu/apex/helpers/Runner.java:9)
..............................................................................................END EXCEPTION.......................................................................................................................



"Sorry for poor english"..

Best Regards

Saeed Iqbal

Saeed Iqbal KhattaK

unread,
Jun 12, 2012, 1:36:44 AM6/12/12
to java-pa...@googlegroups.com
 Respected Fellows,
 
 i am using XmlPullParserFactory in my project, and i have a file kxml2-2.3.0.jar to using this file. 

 When i create new instance of the "XmlPullParserFactory" its show me some exceptions......
 
 XmlPullParserFactory factory = XmlPullParserFactory.newInstance();

 When i call the above line in my program its show me the below errors........

D/APEX:ApexPackagePolicy: Error parsing policy file for package: com.android.clock...caused by: org.xmlpull.v1.XmlPullParserException: resource not found: /META-INF/services/org.xmlpull.v1.XmlPullParserFactory make sure that parser implementing XmlPull API is available
caused by: org.xmlpull.v1.XmlPullParserException: resource not found: /META-INF/services/org.xmlpull.v1.XmlPullParserFactory make sure that parser implementing XmlPull API is available; nested exception is:
org.xmlpull.v1.XmlPullParserException: resource not found: /META-INF/services/org.xmlpull.v1.XmlPullParserFactory make sure that parser implementing XmlPull API is available
at org.xmlpull.v1.XmlPullParserFactory.newInstance(org/xmlpull/v1/XmlPullParserFactory.java:278)
at org.xmlpull.v1.XmlPullParserFactory.newInstance(org/xmlpull/v1/XmlPullParserFactory.java:259)
at org.csrdu.apex.helpers.Xml.newPullParser(org/csrdu/apex/helpers/Xml.java:11)
at org.csrdu.apex.policy.ApexPackagePolicy.loadPoliciesForPackage(org/csrdu/apex/policy/ApexPackagePolicy.java:106)
at org.csrdu.apex.AccessManager.checkExtendedPermissionByPackage(org/csrdu/apex/AccessManager.java:66)
at org.csrdu.apex.helpers.Runner.main(org/csrdu/apex/helpers/Runner.java:9) 
 
 Now what can i do..... I have already build my jpf.properties and build.xml

In jpf.properties, i have already written the below command


apex-jpf = ${config_path}
apex-jpf.classpath = \
${apex-jpf}C:\\Users\\Saeed Iqbal\\workspace\\apex-jpf\\referenced\\kxml2-2.3.0.jar

 
But it show me again the above errors...
Help me..
Best Regards.
Reply all
Reply to author
Forward
0 new messages