cancel
Showing results for 
Search instead for 
Did you mean: 

ACF up/download no longer working !

Former Member
0 Kudos

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>

<server>http://isudvjd4.uk.blahplc.com:8000</server>

</download>

<upload>

<directory>$HOME/SAPWORKDIR</directory>

<directory>c:\temp</directory>

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

<server>http://isudvjd4.uk.blahplc.com:8000</server>

</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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

I have experienced the same problem even after installing

JRE 1.6_24. The app just hangs. What I did was to regenerate

SAPFrontEndService.xml and SapFrontendServiceXXXXXXXX.cert

usng transaction WDR_ACF_WLIST.

This fixed the problem

regards

Yuval

Former Member
0 Kudos

Well, after much head scratching, I finally found the problem. The Java version I was using on my PC (1.6.24) is incompatible with ACF - switching to 1.5.something fixed the problem.

That's a bit odd: help.sap.com (http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b9157c878a2d67e10000000a42189c/frameset.htm) says you need 5 or higher, and points to an OSS note (http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b9157c878a2d67e10000000a42189c/frameset.htm) which says you need 1.6 update 12 or higher......

daniel_bauer1
Explorer
0 Kudos

Hi Nick,

I'm experiencing the same issue. Did you or anyone else find any other solution for that? Because Java 1.5. is no longer supported.

We're on a SAP BASIS 702 Level 8 System.

thanks in advance

daniel

Former Member
0 Kudos

Interestingly if I remove the whitelist from the ApplicationData\SAP folder the applet throws a 'valid whitelist not found' exception, and this is also reported via the application, so it is definitely finding the whitelist......

Former Member
0 Kudos

Have tried this in Firefox today, and exactly the same thing happens.

Nick