SAP Knowledge Base Article - Preview

2553799 - 500 Internal Server Error when accessing Netweaver As Java Server

Symptom

1. You are accessing the SAP NetWeaver AS Java server (http://<host>:<port>/*) through browsers. (Startpage, NWA, Portal, etc.)

2. "500 internal server error" appears on the page.

3. In defaultTrace, you can find the error as below.

500 Internal Server Error is returned for HTTP request [http://<host>:<port>/webdynpro/resources/sap.com/tc~lm~itsam~ui~mainframe~wd/FloorPlanApp]:
  component [dispatcher],
  web module [webdynpro/resources/sap.com/tc~lm~itsam~ui~mainframe~wd],
  application [sap.com/tc~lm~itsam~ui~mainframe~wd],
  DC name [],
  CSN component[],
  problem categorization [],
  internal categorization [-1381188117].

[EXCEPTION]
java.lang.ArrayIndexOutOfBoundsException: while trying to copy a negative range -4 from a type array with length 20 to a type array with length 16
	at java.lang.System.arraycopy(Native Method)
	at iaik.security.random.o.engineNextBytes(Unknown Source)
	at iaik.security.random.SecRandomSpi.engineNextBytes(Unknown Source)
	at java.security.SecureRandom.nextBytes(SecureRandom.java:468)
	at com.sap.tc.webdynpro.clientserver.session.SessionIdUtils.secureRandomId(SessionIdUtils.java:94)
	at com.sap.tc.webdynpro.clientserver.session.SessionIdUtils.computeSecureId(SessionIdUtils.java:71)
	at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.<init>(ApplicationSession.java:203)
	at com.sap.tc.webdynpro.serverimpl.defaultimpl.session.HttpApplicationSession.<init>(HttpApplicationSession.java:44)
	at com.sap.tc.webdynpro.serverimpl.defaultimpl.sessionctx.SessionManagementFactory.createApplicationSession(SessionManagementFactory.java:142)
	at com.sap.tc.webdynpro.services.sal.sessionctx.core.SessionManagementInternal.createApplicationSession(SessionManagementInternal.java:169)
	at com.sap.tc.webdynpro.serverimpl.core.adapter.AbstractHttpRequestAdapter.createApplicationSession(AbstractHttpRequestAdapter.java:483)
	at com.sap.tc.webdynpro.serverimpl.core.adapter.AbstractHttpRequestAdapter.getSessionObject(AbstractHttpRequestAdapter.java:345)
	at com.sap.tc.webdynpro.serverimpl.core.adapter.AbstractHttpProtocolAdapter.getSessionObject(AbstractHttpProtocolAdapter.java:80)
	at com.sap.tc.webdynpro.clientserver.session.RequestManager.getSessionAndUpdateSessionEventState(RequestManager.java:535)
	at com.sap.tc.webdynpro.clientserver.session.RequestManager.findApplicationSession(RequestManager.java:482)
	at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:320)
	at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
	at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:101)
	at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:55)

Read more...

Environment

NetWeaver As Java 7.50 SP06 and higer SP level

Product

SAP NetWeaver 7.5

Keywords

Internal Server Error, SecRandomSpi, ArrayIndexOutOfBoundsException, SecureRandom , KBA , BC-JAS-SEC-CPG , Cryptography , BC-WD-JAV , Web Dynpro Java , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.