cancel
Showing results for 
Search instead for 
Did you mean: 

AUTOMATIC CACHE REFRESH IN XI

Former Member
0 Kudos

Hi All,

We are facing cache refresh issuein sxi_cache, if we restart the server or do a maual refresh we can make an object in SLD and activate .But we need to do it automatically.

But there must be some report that should be executed as a background job for refresh of cache, any ideas on this?? Can anyone share the Report names for cache refresh?

We have already refered the how to hanlde cache guide.

Any other help on this.

Regards,

Anirban

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI Anirban Ghatak

There is no need for Background Programs to update Cache...Cache gets updated automatically, IF all setting are okay...

Just Check these settings again,even if you are done with them:

-


There is some problem in Ur HTTP Destination

Got to sm59.and check HTTP Destination: INTEGRATION_DIRECTORY_HMI settings are okay or not.

Procedure:

1. Log on to your SAP Exchange Infrastructure central instance host.

2. Call transaction SM59.

3. Choose Create.

4. Enter at least the following:

RFC destination: INTEGRATION_DIRECTORY_HMI Connection type: H Description: <your description>

5. Choose ENTER

6. Choose the following tabs and enter the required data:

Tab: Technical Settings

• Target Host: host name of the J2EE engine

• Service No.: HTTP port number (The following naming convention applies: 5<Java_instance_number>00 &#56256;&#56518; 50000, if your Java instance is 00)

• Path Prefix: /dir/CacheRefresh

Tab: Security/Logon

• Select Basic Authentication Confirm both the popup and the warning.

• As logon data enter the client of your SAP XI system and the user XIISUSER with the valid password

Save your entry now, before you switch to next tab, otherwise your entries may be lost.

Press Enter to go to the next screen.

Tab: Special Options

• Timeout: 900

• HTTP Settings: Compression: inactive Compressed Response: No

• HTTP Cookies: Accept Cookies: Yes (All)

7. Choose Test Connection.

The test has been executed successfully if the response status code is 500 and you find REQID not found in the HTTP body.

8. Save your settings.

Cheers,

Vijay Raheja

Shabarish_Nair
Active Contributor
0 Kudos

Hi Vijay ...

we have been trying this step and it comes as a success .... the following is what we get after we test the HTTP destination ...

HEADER NAME HEADER VALUE

~response_line HTTP/1.1 500 Internal Server Error

~server_protocol HTTP/1.1

~status_code 500

~status_reason Internal Server Error

connection close

set-cookie JSESSIONID=(linux02_TXT_00)ID3457950DB1140509733537979458End; Version=1; Path=/

set-cookie saplb_*=(linux02_TXT_00)3457950; Version=1; Path=/

server SAP J2EE Engine/6.40

pragma no-cache

content-type text/html;charset=ISO-8859-1

date Tue, 07 Feb 2006 10:07:23 GMT

HTTP BODY

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>

<head> <title>Error Report</title><style>td font-family : Arial,

Tahoma, Helvetica, sans-serif; font-size : 14px;A:link color : #0059

AA;A:visited color : #999999;A:active color : #999999;</style

></head><body marginwidth="0" marginheight="0" leftmargin="0" topmar

gin="0" rightmargin="0"><table width="100%" cellspacing="0" cellpaddin

g="0" border="0" align="left" height="75"><tr bgcolor="#FFFFFF">

<td align="left" colspan="2" height="48"><font face="Arial, Verdana, Hel

vetica" size="4" color="#666666"><b>&nbsp;&nbsp;500 &nbsp Internal Serve

r Error</b></font></td></tr><tr bgcolor="#3F73A3"> <td height="

23" width="84"><img width=1 height=1 border=0 alt=""></td> <td heig

ht="23"><img width=1 height=1 border=0 alt=""></td> <td align="righ

t" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#F

FFFFF"><b>SAP J2EE Engine/6.40&nbsp;</b></font></td></tr><tr bgcolor

="#9DCDFD"> <td height="4" colspan="3"><img width=1 height=1 border

=0 alt=""></td></tr></table><br><br><br><br><br><br><p><font fac

e="Arial, Verdana, Helvetica" size="3" color="#000000"><b>&nbsp;&nbsp;Ap

plication error occurred during the request procession.</b></font></p>

<p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><tabl

e><tr><td valign="top"><b>&nbsp;Details:</b></td><td valign="top"><PRE><

pre>javax.servlet.ServletException: REQID not found at com.sap.aii.ibdi

r.web.abapcache.CacheRefreshSession.getInstance&#40;CacheRefreshSession.

java:50&#41; at com.sap.aii.ibdir.web.abapcache.CacheRefreshServlet.doG

et&#40;CacheRefreshServlet.java:45&#41; at javax.servlet.http.HttpServl

et.service&#40;HttpServlet.java:740&#41; at javax.servlet.http.HttpServ

let.service&#40;HttpServlet.java:853&#41; at com.sap.engine.services.se

rvlets_jsp.server.HttpHandlerImpl.runServlet&#40;HttpHandlerImpl.java:38

5&#41; at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.h

andleRequest&#40;HttpHandlerImpl.java:263&#41; at com.sap.engine.servic

es.httpserver.server.RequestAnalizer.startServlet&#40;RequestAnalizer.ja

va:340&#41; at com.sap.engine.services.httpserver.server.RequestAnalize

r.startServlet&#40;RequestAnalizer.java:318&#41; at com.sap.engine.serv

ices.httpserver.server.RequestAnalizer.invokeWebContainer&#40;RequestAna

lizer.java:821&#41; at com.sap.engine.services.httpserver.server.Reques

tAnalizer.handle&#40;RequestAnalizer.java:239&#41; at com.sap.engine.se

rvices.httpserver.server.Client.handle&#40;Client.java:92&#41; at com.s

ap.engine.services.httpserver.server.Processor.request&#40;Processor.jav

a:147&#41; at com.sap.engine.core.service630.context.cluster.session.Ap

plicationSessionMessageListener.process&#40;ApplicationSessionMessageLis

tener.java:37&#41; at com.sap.engine.core.cluster.impl6.session.Unorder

edChannel$MessageRunner.run&#40;UnorderedChannel.java:71&#41; at com.sa

p.engine.core.thread.impl3.ActionObject.run&#40;ActionObject.java:37&#41

; at java.security.AccessController.doPrivileged&#40;Native Method&#41;

at com.sap.engine.core.thread.impl3.SingleThread.execute&#40;SingleThr

ead.java:94&#41; at com.sap.engine.core.thread.impl3.SingleThread.run&#

40;SingleThread.java:162&#41;</pre></PRE></font></td></tr></table></fon

t></p></body></html>

Time (ms) 1.903

Former Member
0 Kudos

Hi Shabarish Vijaykumar

The test has been executed successfully if the response status code is <b>500</b> and you find <b>REQID not found</b> in the HTTP body.

One altenative to this is, just follow/verify all Post implementaion(Configuration) steps again given in

"Post implementation guide".Might be you are left somewhere...

Cheers,

VIjay Raheja

Former Member
0 Kudos

HI Anirban

Check out these weblogs...

It might solve your problem...

/people/sravya.talanki2/blog/2005/12/02/sxicache--ripped-off

/people/sravya.talanki2/blog/2005/11/03/cache-refresh-errors--new-phenomena

How To handle Caches in SAP XI 3.0

https://websmp206.sap-ag.de/~sapdownload/011000358700003163902004E/HowTo_handle_XI_30_Caches.pdf

Cheers:)

Mithlesh

Former Member
0 Kudos

Thank You!!

But i had seen those before and i had written that i have followed how to guide for cache, actually we are getting:

cl_http_client RFC_READ_HTTP_DESTINATION AUTHORITY_NOT_AVAILABLE in sxi_cache. SLD check donot get us any error, any other hint?? Only issue is cache automatic refresh.

Regards,

Anirban.

Former Member
0 Kudos

HI Anirban

Just Check Out the RFC Destination (HTTP) That you have created during post Installation..

You might have not mentioned the username and password.

Some time it happens that after filling the password, when you press the other tab button without saving, then the password is lost. So always remember to save the settings as soon as you fill the username and password field.

Cheers:)

Mithlesh

Former Member
0 Kudos

Thanks again, actually i tried that too. Its fine.Anyways it solved we scheduled SAI_CACHE_REFRESH After every 1 minute, But is it the best solution???

We need to know if there are better solution than this?

Regards,

Anirban.

Former Member
0 Kudos

HI Anirban

To me it doesnt seems to be an ideal solution...But any way its a nice Workaround....

If you can tell me, Is it the same user name for both

---in the RFC Destination...

---The User scheduling the <b>SAI_CACHE_REFRESH</b> in Background...

Bcoz...The Error that you have mentioned seems to have some authorization problem..

Cheers:)

Mithlesh

Former Member
0 Kudos

Hey Anir,

Check the blog by sravya..

/people/sravya.talanki2/blog/2005/11/03/cache-refresh-errors--new-phenomena

Might give you a punch..;)

Cheers!

Venkat

Former Member
0 Kudos

Hi Venkat,

I had seen this about timeout but no use

Regards,

Anirban.