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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.