cancel
Showing results for 
Search instead for 
Did you mean: 

Session not found upon firing suspend plug

Qualiture
Active Contributor
0 Kudos

Hi,

On our NW 7.31 environment (migrated from NW 7.0) we see the following behavior in a custom developed Web Dynpro application:

An HTML resource is generated, and stored in a context attribute of type IWDResource


byte[] byteArrayHtmlData = null;
try {
    html.toString().getBytes("UTF-8");
catch (UnsupportedEncodingException e) { }

IWDResource htmlResource = WDResourceFactory.createResource(byteArrayHtmlData, "Post.html", WDWebResourceType.HTML);

wdContext.currentContextElement().setResource(htmlResource);

IWDResource storedResource = wdContext.currentContextElement().getResource();

An URL is generated for this resource:


String      url            = storedResource.getUrl(WDFileDownloadBehaviour.AUTO.ordinal());

An exit plug is fired:


wdThis.wdGetInhuurCatalogusCompWindowController().wdFirePlugMyExit(url);

However, upon firing the plug with the URL (which is in the same domain and application context as the WDJ app) the following exception is thrown:

400   Session Not Found  SAP NetWeaver Application Server/Java AS


Failed to process the request: Request refers to an unknown session

Anyone have a clue on why this would happen?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Please share the exact version of your AS JAVA, including SP and patch level. Also share the relevant defaultTrace as an attachment, only the section when the issue occurs. Can you use Fiddler or HttpFox and see whether the session contains JSESSIONID when the problem occurs? There are known issues with cookie handling, especially when upgrading from a previous release to 7.3x. Check the cookie configuration in "cluster_config" -> "system" -> "custom_global" -> "cfg" ->"services" -> "servlet_jsp"-> "persistent" -> "Propertysheet properties"-> "Propertysheet Global_app_config" -> "Propertysheet cookie_config" ->"Propertysheet session_cookie".

Qualiture
Active Contributor
0 Kudos

Hi Samuli,

Thanks for your answer.

We are on kernel version 7.31.3301.349564.20130627115115, and we have upgraded from a NW 7.01 environment.

The sole purpose of this plug was to open a generated html form, submit some extra data and then close the WDJ application.

I have 'solved' this issue by not using a suspend plug, but simply open the generated html in a 1x1 pixel IWDFrame component on the WDJ application view. This works perfectly, and our migrated application works as it dit on our 7.01 environment.

Answers (0)