Skip to Content
author's profile photo Former Member
Former Member

getJCOClientPoolEntry cause nullPointerException

Hi,

I have some application where I use getJCOClientPoolEntry.

Code looks like:

IJCOClientService clientService =

(IJCOClientService)request.getService(IJCOClientService.KEY);

poolEntry = clientService.getJCOClientPoolEntry(sourceSystem, request);

it usually works but sometimes(I didnt find some conditions when) it cause exception:

at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:863)

at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:311)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:143)

at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:325)

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

at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:337)

at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)

at java.lang.Thread.run(Thread.java:479)

Caused by: java.lang.NullPointerException

at java.util.Hashtable.put(Hashtable.java:375)

at java.util.Properties.setProperty(Properties.java:97)

at com.sap.security.core.umap.imp.UserMappingDataImp.enrich(UserMappingDataImp.java:303)

at com.sapportals.portal.prt.service.jco.JCOClientService.internalGetJCOClient(JCOClientService.java:253)

at com.sapportals.portal.prt.service.jco.JCOClientService.getJCOClientPoolEntry(JCOClientService.java:901)

at com.sapportals.portal.prt.service.jco.JCOClientService.getJCOClientPoolEntry(JCOClientService.java:747)

at cz.kct.kwp.praha.JobsDisplay_EP6.JobsDisplayUtils.getClient(JobsDisplayUtils.java:97)

at cz.kct.kwp.praha.JobsDisplay_EP6.JobsDisplayUtils.getCriteria(JobsDisplayUtils.java:128)

at cz.kct.kwp.praha.JobsDisplay_EP6.JobsDisplayUtils.readCriteriaValues(JobsDisplayUtils.java:280)

at cz.kct.kwp.praha.JobsDisplay_EP6.JobsDisplay$JobsDisplayDynPage.doInitialization(JobsDisplay.java:62)

at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:94)

at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)

at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:143)

at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:325)

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

at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:337)

at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)

at java.lang.Thread.run(Thread.java:479)

Does sb know where is problem?(EP6SP2)

thanks

Jiri Juranek

icq52736508

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Jul 19, 2004 at 04:02 PM

    I had this problem once, when I stored too much data in sessions or cache on a small developer (2GB RAM) machine.

    So this may happen when the Java Garbage Collector takes its last actions before stopping the server.

    Add comment
    10|10000 characters needed characters exceeded