Skip to Content
0
Former Member
Mar 24, 2011 at 06:56 PM

ACF up/download no longer working !

286 Views

Hi,

About a month ago I got Thomas' web dynpro up/download ACF example application working - and all was good. Now when I try to run it (with a view to using ACF in my own application) it doesn't work !

Using httpwatch I can see that there is no call to the ICF handler, and after enabling the java console it seems there are two kinds of exception:

UPLOAD:

Exception in thread "kpro thread0" java.security.AccessControlException: access denied (java.io.FilePermission C:\temp\upload\canYouDigIt.jpg 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.checkRead(Unknown Source)

at java.io.File.exists(Unknown Source)

at java.io.Win32FileSystem.canonicalize(Unknown Source)

at java.io.File.getCanonicalPath(Unknown Source)

at java.io.File.getCanonicalFile(Unknown Source)

at com.sap.pls.up.Judiciary.path2CanonFile(Judiciary.java:693)

at com.sap.pls.up.Judiciary.isLegalUpFile(Judiciary.java:503)

at com.sap.pls.up.Executive.uploadFile(Executive.java:403)

at com.sap.pls.up.UpDownApplet$2.run(UpDownApplet.java:263)

at java.lang.Thread.run(Unknown Source)

...and then the application hangs (perpetual spinning doughnut).

DOWNLOAD:

ACF | SEVERE | 18h36m4s816ms | # 0 | AWT-EventQueue-2 | id WD3A | Acf2Delegate.invoke | InvocationTargetException caught, caused by: access denied (java.lang.RuntimePermission getenv.windir) java.security.AccessControlException: access denied (java.lang.RuntimePermission getenv.windir)

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

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

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

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

at com.sap.pls.up.Judiciary.path2CanonFile(Judiciary.java:674)

at com.sap.pls.up.Judiciary.getApplication(Judiciary.java:497)

at com.sap.pls.up.Executive.execute(Executive.java:277)

at com.sap.pls.up.UpDownApplet.execute(UpDownApplet.java:201)

at com.sap.pls.up.UpDownDelegateWrapper.execute(UpDownDelegateWrapper.java:74)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.sap.tc.webdynpro.ace.Acf2Delegate.invoke(Acf2Delegate.java:303)

at com.sap.tc.webdynpro.ace.Acf2Delegate.invokeCaller(Acf2Delegate.java:391)

at com.sap.tc.webdynpro.ace.Acf2Delegate.invokeRuntimeList(Acf2Delegate.java:560)

at com.sap.tc.webdynpro.ace.Acf2Delegate$1.run(Acf2Delegate.java:638)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

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

at java.awt.EventQueue.access$000(Unknown Source)

at java.awt.EventQueue$1.run(Unknown Source)

at java.awt.EventQueue$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)

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

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

at java.awt.EventDispatchThread.pumpEventsForFilter(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)

ACF | SEVERE | 18h36m4s816ms | # 0 | AWT-EventQueue-2 | id WD3A | Acf2Delegate.invokeRuntimeList | invoking caller execute failed, message: access denied (java.lang.RuntimePermission getenv.windir)

This time the application doesn't hang.

Both of these look to be permissions related, but I have write access to the folders in question, and the whitelist is setup like this:

<download>

<directory>$HOME/SAPWORKDIR</directory>

<directory>c:\temp</directory>

<directory>c:\temp\download</directory>

http://isudvjd4.uk.blahplc.com:8000

</download>

<upload>

<directory>$HOME/SAPWORKDIR</directory>

<directory>c:\temp</directory>

<directory>c:\temp\upload</directory>

http://isudvjd4.uk.blahplc.com:8000

</upload>

I think I have upgraded my Java runtime in between it working and not working, and security patches may well have been applied, but I would expect to get some security/certificate warning if this was the problem ?

Any ideas anyone ?

Thanks,

Nick