Skip to main content

Permission Request File

1 reply [Last post]
hooligancat
Offline
Joined: 2009-10-20
Points: 0

I am trying to acess the Persistent storage and am using the following perm file:

<?xml version="1.0" encoding="UTF-8"?>

xxx.xxx.xxx.xxx

FFFF0001/4000/test.txt

but in TMT i get the following error:

[13:27:32.172] [error] java.lang.NullPointerException
[13:27:32.173] [error] at sun.misc.CharacterDecoder.decodeBuffer(CharacterDecoder.java:168)
[13:27:32.173] [error] at com.arcsoft.security.provider.XmlPolicyParser.getGrantorCert(XmlPolicyParser.java:554)
[13:27:32.173] [error] at com.arcsoft.security.provider.XmlPolicyParser.verifySignatureAndSetFiles(XmlPolicyParser.java:308)
[13:27:32.173] [error] at com.arcsoft.security.provider.XmlPolicyParser.addCredentialPerm(XmlPolicyParser.java:290)
[13:27:32.173] [error] at com.arcsoft.security.provider.XmlPolicyParser.processNode(XmlPolicyParser.java:213)
[13:27:32.174] [error] at com.arcsoft.security.provider.XmlPolicyParser.(XmlPolicyParser.java:146)
[13:27:32.174] [error] at com.arcsoft.security.provider.ArcPolicyUpdate.parserPermXml(ArcPolicyUpdate.java:154)
[13:27:32.174] [error] at com.arcsoft.security.provider.ArcPolicyUpdate.updatePolicy(ArcPolicyUpdate.java:96)
[13:27:32.175] [error] at com.arcsoft.application.xlet.AppProxyImpl.loadXlet(AppProxyImpl.java:247)
[13:27:32.175] [error] at com.arcsoft.application.xlet.AppProxyImpl.startXlet(AppProxyImpl.java:334)
[13:27:32.175] [error] at com.arcsoft.application.xlet.AppProxyImpl.access$600(AppProxyImpl.java:27)
[13:27:32.176] [error] at com.arcsoft.application.xlet.AppProxyImpl$AppProxyEventThreadPool.dealEvent(AppProxyImpl.java:693)
[13:27:32.176] [error] at com.arcsoft.application.xlet.AppProxyImpl$AppProxyEventThreadPool.run(AppProxyImpl.java:635)
[13:27:32.178] [error] at java.lang.Thread.startup(Thread.java:775)
[13:27:32.275] [error] pe is null:ArcSecurityHelper.policyMapping is cleared or current contextid is wrong

If I remove the persistentfilecredential section there are no errors. Do I have an error in the syntax?

I am signing the JAR using:
BDCertGenerator -root ffff0001
BDCerGenerator -app ffff0001
BDSigner 00000.jar

Do I need additional signing for the perm file or is that taken care of with the above?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hooligancat
Offline
Joined: 2009-10-20
Points: 0

After much head scratching and reading forum post after post I found some answers.

The extra section persistentfilecredential is only needed for a disc that requires access to storage data from another disc. So in these early tests is not needed at all.

The actual problem was with TMT. Because I couldn't get it to work, I added in the above section. However, this thread http://forums.java.net/jive/thread.jspa?messageID=355981 has the answer. In the cfg file change

-DNativePlugIOImpl.enableAdaEncrypt=YES

to

-DNativePlugIOImpl.enableAdaEncrypt=NO

After that is worked perfectly!